SlideShare a Scribd company logo
1 of 47
CS 221: Artificial Intelligence Lecture 4: Probabilistic Inference Sebastian Thrun and Peter Norvig Slide credit: Dan Klein
Announcements ,[object Object],[object Object],[object Object],[object Object],[object Object]
Consistency ,[object Object],[object Object],[object Object],[object Object],[object Object],n n’ G c = 1 h(n) = 5; actual = 5 h(n’) ≥ 4 ok; h(n’) ≤ 4 bad   actual = 5
Probability “ Probability theory is nothing  But common sense reduced to  calculation.” -  Pierre Laplace, 1819 The true logic for this world is the  calculus of Probabilities, which takes  account of the magnitude of the probability which is, or ought to be,  in a reasonable man’s mind.” -  James Maxwell, 1850
Probabilistic Inference ,[object Object]
Google Whiteboard
Example: Alarm Network B urglary E arthquake A larm J ohn calls M ary calls B P(B) +b 0.001  b 0.999 E P(E) +e 0.002  e 0.998 B E A P(A|B,E) +b +e +a 0.95 +b +e  a 0.05 +b  e +a 0.94 +b  e  a 0.06  b +e +a 0.29  b +e  a 0.71  b  e +a 0.001  b  e  a 0.999 A J P(J|A) +a +j 0.9 +a  j 0.1  a +j 0.05  a  j 0.95 A M P(M|A) +a +m 0.7 +a  m 0.3  a +m 0.01  a  m 0.99
Probabilistic Inference ,[object Object],[object Object],[object Object],[object Object],B E A J M
Inference by Enumeration ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],B E A J M
Inference by Enumeration P (+ b , + j , + m )    = ∑ e   ∑ a  P (+ b , + j , + m ,  e ,  a ) = ∑ e   ∑ a  P (+ b )  P ( e )  P ( a |+ b , e )  P (+ j | a )  P (+ m | a )  =   B E A J M
Inference by Enumeration ,[object Object],=  P (+ b )  ∑ e   P ( e )  ∑ a  P ( a |+ b , e )  P (+ j | a )  P (+ m | a )  or   =  P (+ b )  ∑ a  P (+ j | a )  P (+ m | a )  ∑ e   P ( e )  P ( a |+ b , e ) P (+ b , + j , + m )    = ∑ e   ∑ a  P (+ b , + j , + m ,  e ,  a ) = ∑ e   ∑ a  P (+ b )  P ( e )  P ( a |+ b , e )  P (+ j | a )  P (+ m | a ) B E A J M
Inference by Enumeration Not just 4 rows; approximately 10 16  rows! Problem?
How can we make inference tractible?
Causation and Correlation
Causation and Correlation J M A B E B E A J M
Causation and Correlation M J E B A B E A J M
Variable Elimination ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Variable Elimination Factors ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],T W P hot sun 0.4 hot rain 0.1 cold sun 0.2 cold rain 0.3 T W P cold sun 0.2 cold rain 0.3
Variable Elimination Factors ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],T W P hot sun 0.8 hot rain 0.2 cold sun 0.4 cold rain 0.6 T W P cold sun 0.4 cold rain 0.6
Variable Elimination Factors ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],T W P hot rain 0.2 cold rain 0.6
Example: Traffic Domain ,[object Object],[object Object],[object Object],[object Object],T L R P   ( L  |  T  ) +r 0.1 -r 0.9 +r +t 0.8 +r -t 0.2 -r +t 0.1 -r -t 0.9 +t +l 0.3 +t -l 0.7 -t +l 0.1 -t -l 0.9
[object Object],[object Object],[object Object],[object Object],[object Object],Variable Elimination Outline +r 0.1 -r 0.9 +r +t 0.8 +r -t 0.2 -r +t 0.1 -r -t 0.9 +t +l 0.3 +t -l 0.7 -t +l 0.1 -t -l 0.9 +t +l 0.3 -t +l 0.1 +r 0.1 -r 0.9 +r +t 0.8 +r -t 0.2 -r +t 0.1 -r -t 0.9
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Operation 1: Join Factors T R R,T +r 0.1 -r 0.9 +r +t 0.8 +r -t 0.2 -r +t 0.1 -r -t 0.9 +r +t 0.08 +r -t 0.02 -r +t 0.09 -r -t 0.81
Operation 2: Eliminate ,[object Object],[object Object],[object Object],[object Object],[object Object],+r +t 0.08 +r -t 0.02 -r +t 0.09 -r -t 0.81 +t 0.17 -t 0.83
Example: Compute P( L ) Sum out R T L T R L Join R R,   T L +r +t 0.08 +r -t 0.02 -r +t 0.09 -r -t 0.81 +t +l 0.3 +t -l 0.7 -t +l 0.1 -t -l 0.9 +t 0.17 -t 0.83 +t +l 0.3 +t -l 0.7 -t +l 0.1 -t -l 0.9 +r 0.1 -r 0.9 +r +t 0.8 +r -t 0.2 -r +t 0.1 -r -t 0.9 +t +l 0.3 +t -l 0.7 -t +l 0.1 -t -l 0.9
Example: Compute P( L ) Join T Sum out T T, L L Early marginalization  is variable elimination T L +t 0.17 -t 0.83 +t +l 0.3 +t -l 0.7 -t +l 0.1 -t -l 0.9 +t +l 0.051 +t -l 0.119 -t +l 0.083 -t -l 0.747 +l 0.134 -l 0.886
[object Object],[object Object],[object Object],[object Object],Evidence +r 0.1 -r 0.9 +r +t 0.8 +r -t 0.2 -r +t 0.1 -r -t 0.9 +t +l 0.3 +t -l 0.7 -t +l 0.1 -t -l 0.9 +r 0.1 +r +t 0.8 +r -t 0.2 +t +l 0.3 +t -l 0.7 -t +l 0.1 -t -l 0.9
[object Object],[object Object],[object Object],[object Object],Evidence II Normalize +l 0.26 -l 0.74 +r +l 0.026 +r -l 0.074
General Variable Elimination ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Example Choose  A Σ a
Example Choose E Finish with B Normalize Σ e
Pause for Questions
Approximate Inference ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],S A F
Prior Sampling Cloudy Sprinkler Rain WetGrass Cloudy Sprinkler Rain WetGrass Samples: +c, -s, +r, +w -c, +s, -r, +w … +c 0.5 -c 0.5 +c +s 0.1 -s 0.9 -c +s 0.5 -s 0.5 +c +r 0.8 -r 0.2 -c +r 0.2 -r 0.8 +s +r +w 0.99 -w 0.01 -r +w 0.90 -w 0.10 -s +r +w 0.90 -w 0.10 -r +w 0.01 -w 0.99
Prior Sampling ,[object Object],[object Object],[object Object],[object Object],[object Object]
Example ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Cloudy Sprinkler Rain WetGrass C S R W
Rejection Sampling ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Cloudy Sprinkler Rain WetGrass C S R W
Sampling Example ,[object Object],[object Object],[object Object],[object Object],747/ 1000
Likelihood Weighting ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Burglary Alarm Burglary Alarm ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Likelihood Weighting Samples: +c, +s, +r, +w … Cloudy Sprinkler Rain WetGrass Cloudy Sprinkler Rain WetGrass 0.099 +c 0.5 -c 0.5 +c +s 0.1 -s 0.9 -c +s 0.5 -s 0.5 +c +r 0.8 -r 0.2 -c +r 0.2 -r 0.8 +s +r +w 0.99 -w 0.01 -r +w 0.90 -w 0.10 -s +r +w 0.90 -w 0.10 -r +w 0.01 -w 0.99
Likelihood Weighting ,[object Object],[object Object],[object Object],Cloudy R C S W
Likelihood Weighting ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Cloudy Rain C S R W
Markov Chain Monte Carlo ,[object Object],[object Object],[object Object],[object Object],+a +c +b +a +c -b -a +c -b
[object Object]
Monty Hall Problem ,[object Object],[object Object],[object Object],[object Object]
Monty Hall on Monty Hall Problem
Monty Hall on Monty Hall Problem

More Related Content

What's hot

Lecture 3 - Introduction to Interpolation
Lecture 3 - Introduction to InterpolationLecture 3 - Introduction to Interpolation
Lecture 3 - Introduction to InterpolationEric Cochran
 
Multiple estimators for Monte Carlo approximations
Multiple estimators for Monte Carlo approximationsMultiple estimators for Monte Carlo approximations
Multiple estimators for Monte Carlo approximationsChristian Robert
 
Can we estimate a constant?
Can we estimate a constant?Can we estimate a constant?
Can we estimate a constant?Christian Robert
 
Non-sampling functional approximation of linear and non-linear Bayesian Update
Non-sampling functional approximation of linear and non-linear Bayesian UpdateNon-sampling functional approximation of linear and non-linear Bayesian Update
Non-sampling functional approximation of linear and non-linear Bayesian UpdateAlexander Litvinenko
 
How to find a cheap surrogate to approximate Bayesian Update Formula and to a...
How to find a cheap surrogate to approximate Bayesian Update Formula and to a...How to find a cheap surrogate to approximate Bayesian Update Formula and to a...
How to find a cheap surrogate to approximate Bayesian Update Formula and to a...Alexander Litvinenko
 
Lundi 16h15-copules-charpentier
Lundi 16h15-copules-charpentierLundi 16h15-copules-charpentier
Lundi 16h15-copules-charpentierArthur Charpentier
 
Delayed acceptance for Metropolis-Hastings algorithms
Delayed acceptance for Metropolis-Hastings algorithmsDelayed acceptance for Metropolis-Hastings algorithms
Delayed acceptance for Metropolis-Hastings algorithmsChristian Robert
 
The proof complexity of matrix algebra - Newton Institute, Cambridge 2006
The proof complexity of matrix algebra - Newton Institute, Cambridge 2006The proof complexity of matrix algebra - Newton Institute, Cambridge 2006
The proof complexity of matrix algebra - Newton Institute, Cambridge 2006Michael Soltys
 

What's hot (20)

Slides univ-van-amsterdam
Slides univ-van-amsterdamSlides univ-van-amsterdam
Slides univ-van-amsterdam
 
Lecture 3 - Introduction to Interpolation
Lecture 3 - Introduction to InterpolationLecture 3 - Introduction to Interpolation
Lecture 3 - Introduction to Interpolation
 
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
 
Multiattribute utility copula
Multiattribute utility copulaMultiattribute utility copula
Multiattribute utility copula
 
Course material mca
Course material   mcaCourse material   mca
Course material mca
 
Multiple estimators for Monte Carlo approximations
Multiple estimators for Monte Carlo approximationsMultiple estimators for Monte Carlo approximations
Multiple estimators for Monte Carlo approximations
 
Inequality #4
Inequality #4Inequality #4
Inequality #4
 
Econometrics 2017-graduate-3
Econometrics 2017-graduate-3Econometrics 2017-graduate-3
Econometrics 2017-graduate-3
 
Can we estimate a constant?
Can we estimate a constant?Can we estimate a constant?
Can we estimate a constant?
 
Non-sampling functional approximation of linear and non-linear Bayesian Update
Non-sampling functional approximation of linear and non-linear Bayesian UpdateNon-sampling functional approximation of linear and non-linear Bayesian Update
Non-sampling functional approximation of linear and non-linear Bayesian Update
 
How to find a cheap surrogate to approximate Bayesian Update Formula and to a...
How to find a cheap surrogate to approximate Bayesian Update Formula and to a...How to find a cheap surrogate to approximate Bayesian Update Formula and to a...
How to find a cheap surrogate to approximate Bayesian Update Formula and to a...
 
Lundi 16h15-copules-charpentier
Lundi 16h15-copules-charpentierLundi 16h15-copules-charpentier
Lundi 16h15-copules-charpentier
 
2018 MUMS Fall Course - Bayesian inference for model calibration in UQ - Ralp...
2018 MUMS Fall Course - Bayesian inference for model calibration in UQ - Ralp...2018 MUMS Fall Course - Bayesian inference for model calibration in UQ - Ralp...
2018 MUMS Fall Course - Bayesian inference for model calibration in UQ - Ralp...
 
Slides ensae 8
Slides ensae 8Slides ensae 8
Slides ensae 8
 
Delayed acceptance for Metropolis-Hastings algorithms
Delayed acceptance for Metropolis-Hastings algorithmsDelayed acceptance for Metropolis-Hastings algorithms
Delayed acceptance for Metropolis-Hastings algorithms
 
The proof complexity of matrix algebra - Newton Institute, Cambridge 2006
The proof complexity of matrix algebra - Newton Institute, Cambridge 2006The proof complexity of matrix algebra - Newton Institute, Cambridge 2006
The proof complexity of matrix algebra - Newton Institute, Cambridge 2006
 
Fougeres Besancon Archimax
Fougeres Besancon ArchimaxFougeres Besancon Archimax
Fougeres Besancon Archimax
 
Inequalities #3
Inequalities #3Inequalities #3
Inequalities #3
 
Notes 17
Notes 17Notes 17
Notes 17
 
Nested sampling
Nested samplingNested sampling
Nested sampling
 

Viewers also liked

Mobiliteitsscan.com MKB demorapport - Slimmer Werken Slimmer Reizen
Mobiliteitsscan.com MKB demorapport - Slimmer Werken Slimmer ReizenMobiliteitsscan.com MKB demorapport - Slimmer Werken Slimmer Reizen
Mobiliteitsscan.com MKB demorapport - Slimmer Werken Slimmer ReizenMobiliteitsscan.com
 
Cs221 lecture6-fall11
Cs221 lecture6-fall11Cs221 lecture6-fall11
Cs221 lecture6-fall11darwinrlo
 
해외 건설 계약 리스크 관리 2013
해외 건설 계약 리스크 관리 2013해외 건설 계약 리스크 관리 2013
해외 건설 계약 리스크 관리 2013Sungdae Lee
 
BioengineeredTumorModel_DrJonasMoses_r2015
BioengineeredTumorModel_DrJonasMoses_r2015BioengineeredTumorModel_DrJonasMoses_r2015
BioengineeredTumorModel_DrJonasMoses_r2015Dr. Jonas Moses
 
Cs221 logic-planning
Cs221 logic-planningCs221 logic-planning
Cs221 logic-planningdarwinrlo
 
Pintura cinquecento
Pintura cinquecentoPintura cinquecento
Pintura cinquecentomasinisa
 
.: 3rd i innovations :. Portfolio
.: 3rd i innovations :. Portfolio.: 3rd i innovations :. Portfolio
.: 3rd i innovations :. PortfolioPrabanjan TR
 
Garage 紹介 slideshare
Garage 紹介 slideshareGarage 紹介 slideshare
Garage 紹介 slideshareToshikazu Oka
 
The Conscientious Objector - Election Edition
The Conscientious Objector - Election EditionThe Conscientious Objector - Election Edition
The Conscientious Objector - Election Editionmrmennonite
 
PK Meiosis Project
PK Meiosis ProjectPK Meiosis Project
PK Meiosis Projecthamishac27
 
Mobiliteitsscan.com presentatie intervisie agentschap nl 022011
Mobiliteitsscan.com presentatie intervisie agentschap nl 022011Mobiliteitsscan.com presentatie intervisie agentschap nl 022011
Mobiliteitsscan.com presentatie intervisie agentschap nl 022011Mobiliteitsscan.com
 
Socialprob
SocialprobSocialprob
Socialprobahshaw1
 

Viewers also liked (20)

Ren21 general
Ren21 generalRen21 general
Ren21 general
 
Elastisitas
ElastisitasElastisitas
Elastisitas
 
Mobiliteitsscan.com MKB demorapport - Slimmer Werken Slimmer Reizen
Mobiliteitsscan.com MKB demorapport - Slimmer Werken Slimmer ReizenMobiliteitsscan.com MKB demorapport - Slimmer Werken Slimmer Reizen
Mobiliteitsscan.com MKB demorapport - Slimmer Werken Slimmer Reizen
 
Cs221 lecture6-fall11
Cs221 lecture6-fall11Cs221 lecture6-fall11
Cs221 lecture6-fall11
 
해외 건설 계약 리스크 관리 2013
해외 건설 계약 리스크 관리 2013해외 건설 계약 리스크 관리 2013
해외 건설 계약 리스크 관리 2013
 
BioengineeredTumorModel_DrJonasMoses_r2015
BioengineeredTumorModel_DrJonasMoses_r2015BioengineeredTumorModel_DrJonasMoses_r2015
BioengineeredTumorModel_DrJonasMoses_r2015
 
Me
MeMe
Me
 
Treball 11111
Treball 11111Treball 11111
Treball 11111
 
Lubricants
LubricantsLubricants
Lubricants
 
Cs221 logic-planning
Cs221 logic-planningCs221 logic-planning
Cs221 logic-planning
 
Pintura cinquecento
Pintura cinquecentoPintura cinquecento
Pintura cinquecento
 
My Hobbies
My HobbiesMy Hobbies
My Hobbies
 
.: 3rd i innovations :. Portfolio
.: 3rd i innovations :. Portfolio.: 3rd i innovations :. Portfolio
.: 3rd i innovations :. Portfolio
 
About WIL group
About WIL groupAbout WIL group
About WIL group
 
Garage 紹介 slideshare
Garage 紹介 slideshareGarage 紹介 slideshare
Garage 紹介 slideshare
 
The Conscientious Objector - Election Edition
The Conscientious Objector - Election EditionThe Conscientious Objector - Election Edition
The Conscientious Objector - Election Edition
 
PK Meiosis Project
PK Meiosis ProjectPK Meiosis Project
PK Meiosis Project
 
Mobiliteitsscan.com presentatie intervisie agentschap nl 022011
Mobiliteitsscan.com presentatie intervisie agentschap nl 022011Mobiliteitsscan.com presentatie intervisie agentschap nl 022011
Mobiliteitsscan.com presentatie intervisie agentschap nl 022011
 
The global transportation pallet
The global transportation palletThe global transportation pallet
The global transportation pallet
 
Socialprob
SocialprobSocialprob
Socialprob
 

Similar to Cs221 lecture4-fall11

Unit-1 DAA_Notes.pdf
Unit-1 DAA_Notes.pdfUnit-1 DAA_Notes.pdf
Unit-1 DAA_Notes.pdfAmayJaiswal4
 
Matlab polynimials and curve fitting
Matlab polynimials and curve fittingMatlab polynimials and curve fitting
Matlab polynimials and curve fittingAmeen San
 
Recursion Algorithms Derivation
Recursion Algorithms DerivationRecursion Algorithms Derivation
Recursion Algorithms DerivationRodrigue Tchamna
 
CMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of FunctionsCMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of Functionsallyn joy calcaben
 
01 EC 7311-Module IV.pptx
01 EC 7311-Module IV.pptx01 EC 7311-Module IV.pptx
01 EC 7311-Module IV.pptxVSUDHEER4
 
Tìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIES
Tìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIESTìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIES
Tìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIESTùng Thanh
 
Design and analysis of algorithm ppt ppt
Design and analysis of algorithm ppt pptDesign and analysis of algorithm ppt ppt
Design and analysis of algorithm ppt pptsrushtiivp
 
Matrix 2 d
Matrix 2 dMatrix 2 d
Matrix 2 dxyz120
 
1.02.Mathematical_background.pptx
1.02.Mathematical_background.pptx1.02.Mathematical_background.pptx
1.02.Mathematical_background.pptxPrachiDawer1
 
Applied machine learning for search engine relevance 3
Applied machine learning for search engine relevance 3Applied machine learning for search engine relevance 3
Applied machine learning for search engine relevance 3Charles Martin
 
Otter 2016-11-28-01-ss
Otter 2016-11-28-01-ssOtter 2016-11-28-01-ss
Otter 2016-11-28-01-ssRuo Ando
 
Polynomials and Curve Fitting in MATLAB
Polynomials and Curve Fitting in MATLABPolynomials and Curve Fitting in MATLAB
Polynomials and Curve Fitting in MATLABShameer Ahmed Koya
 
Recursive Definitions in Discrete Mathmatcs.pptx
Recursive Definitions in Discrete Mathmatcs.pptxRecursive Definitions in Discrete Mathmatcs.pptx
Recursive Definitions in Discrete Mathmatcs.pptxgbikorno
 

Similar to Cs221 lecture4-fall11 (20)

Unit-1 DAA_Notes.pdf
Unit-1 DAA_Notes.pdfUnit-1 DAA_Notes.pdf
Unit-1 DAA_Notes.pdf
 
Randomized algorithms ver 1.0
Randomized algorithms ver 1.0Randomized algorithms ver 1.0
Randomized algorithms ver 1.0
 
factoring
factoringfactoring
factoring
 
Matlab polynimials and curve fitting
Matlab polynimials and curve fittingMatlab polynimials and curve fitting
Matlab polynimials and curve fitting
 
Recursion Algorithms Derivation
Recursion Algorithms DerivationRecursion Algorithms Derivation
Recursion Algorithms Derivation
 
CMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of FunctionsCMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of Functions
 
01 EC 7311-Module IV.pptx
01 EC 7311-Module IV.pptx01 EC 7311-Module IV.pptx
01 EC 7311-Module IV.pptx
 
Tìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIES
Tìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIESTìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIES
Tìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIES
 
Intro to ABC
Intro to ABCIntro to ABC
Intro to ABC
 
CDT 22 slides.pdf
CDT 22 slides.pdfCDT 22 slides.pdf
CDT 22 slides.pdf
 
Design and analysis of algorithm ppt ppt
Design and analysis of algorithm ppt pptDesign and analysis of algorithm ppt ppt
Design and analysis of algorithm ppt ppt
 
Unit 3
Unit 3Unit 3
Unit 3
 
Unit 3
Unit 3Unit 3
Unit 3
 
Matrix 2 d
Matrix 2 dMatrix 2 d
Matrix 2 d
 
1.02.Mathematical_background.pptx
1.02.Mathematical_background.pptx1.02.Mathematical_background.pptx
1.02.Mathematical_background.pptx
 
Applied machine learning for search engine relevance 3
Applied machine learning for search engine relevance 3Applied machine learning for search engine relevance 3
Applied machine learning for search engine relevance 3
 
Otter 2016-11-28-01-ss
Otter 2016-11-28-01-ssOtter 2016-11-28-01-ss
Otter 2016-11-28-01-ss
 
Computer science-formulas
Computer science-formulasComputer science-formulas
Computer science-formulas
 
Polynomials and Curve Fitting in MATLAB
Polynomials and Curve Fitting in MATLABPolynomials and Curve Fitting in MATLAB
Polynomials and Curve Fitting in MATLAB
 
Recursive Definitions in Discrete Mathmatcs.pptx
Recursive Definitions in Discrete Mathmatcs.pptxRecursive Definitions in Discrete Mathmatcs.pptx
Recursive Definitions in Discrete Mathmatcs.pptx
 

More from darwinrlo

Cs221 probability theory
Cs221 probability theoryCs221 probability theory
Cs221 probability theorydarwinrlo
 
Cs221 linear algebra
Cs221 linear algebraCs221 linear algebra
Cs221 linear algebradarwinrlo
 
Cs221 lecture8-fall11
Cs221 lecture8-fall11Cs221 lecture8-fall11
Cs221 lecture8-fall11darwinrlo
 
Cs221 lecture7-fall11
Cs221 lecture7-fall11Cs221 lecture7-fall11
Cs221 lecture7-fall11darwinrlo
 
Cs221 lecture5-fall11
Cs221 lecture5-fall11Cs221 lecture5-fall11
Cs221 lecture5-fall11darwinrlo
 
Cs221 lecture3-fall11
Cs221 lecture3-fall11Cs221 lecture3-fall11
Cs221 lecture3-fall11darwinrlo
 

More from darwinrlo (7)

Cs221 probability theory
Cs221 probability theoryCs221 probability theory
Cs221 probability theory
 
Cs221 linear algebra
Cs221 linear algebraCs221 linear algebra
Cs221 linear algebra
 
Cs221 lecture8-fall11
Cs221 lecture8-fall11Cs221 lecture8-fall11
Cs221 lecture8-fall11
 
Cs221 lecture7-fall11
Cs221 lecture7-fall11Cs221 lecture7-fall11
Cs221 lecture7-fall11
 
Cs221 lecture5-fall11
Cs221 lecture5-fall11Cs221 lecture5-fall11
Cs221 lecture5-fall11
 
Cs221 lecture3-fall11
Cs221 lecture3-fall11Cs221 lecture3-fall11
Cs221 lecture3-fall11
 
Cs221 rl
Cs221 rlCs221 rl
Cs221 rl
 

Recently uploaded

How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 

Recently uploaded (20)

How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 

Cs221 lecture4-fall11

  • 1. CS 221: Artificial Intelligence Lecture 4: Probabilistic Inference Sebastian Thrun and Peter Norvig Slide credit: Dan Klein
  • 2.
  • 3.
  • 4. Probability “ Probability theory is nothing But common sense reduced to calculation.” - Pierre Laplace, 1819 The true logic for this world is the calculus of Probabilities, which takes account of the magnitude of the probability which is, or ought to be, in a reasonable man’s mind.” - James Maxwell, 1850
  • 5.
  • 7. Example: Alarm Network B urglary E arthquake A larm J ohn calls M ary calls B P(B) +b 0.001  b 0.999 E P(E) +e 0.002  e 0.998 B E A P(A|B,E) +b +e +a 0.95 +b +e  a 0.05 +b  e +a 0.94 +b  e  a 0.06  b +e +a 0.29  b +e  a 0.71  b  e +a 0.001  b  e  a 0.999 A J P(J|A) +a +j 0.9 +a  j 0.1  a +j 0.05  a  j 0.95 A M P(M|A) +a +m 0.7 +a  m 0.3  a +m 0.01  a  m 0.99
  • 8.
  • 9.
  • 10. Inference by Enumeration P (+ b , + j , + m ) = ∑ e ∑ a P (+ b , + j , + m , e , a ) = ∑ e ∑ a P (+ b ) P ( e ) P ( a |+ b , e ) P (+ j | a ) P (+ m | a ) = B E A J M
  • 11.
  • 12. Inference by Enumeration Not just 4 rows; approximately 10 16 rows! Problem?
  • 13. How can we make inference tractible?
  • 15. Causation and Correlation J M A B E B E A J M
  • 16. Causation and Correlation M J E B A B E A J M
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25. Example: Compute P( L ) Sum out R T L T R L Join R R, T L +r +t 0.08 +r -t 0.02 -r +t 0.09 -r -t 0.81 +t +l 0.3 +t -l 0.7 -t +l 0.1 -t -l 0.9 +t 0.17 -t 0.83 +t +l 0.3 +t -l 0.7 -t +l 0.1 -t -l 0.9 +r 0.1 -r 0.9 +r +t 0.8 +r -t 0.2 -r +t 0.1 -r -t 0.9 +t +l 0.3 +t -l 0.7 -t +l 0.1 -t -l 0.9
  • 26. Example: Compute P( L ) Join T Sum out T T, L L Early marginalization is variable elimination T L +t 0.17 -t 0.83 +t +l 0.3 +t -l 0.7 -t +l 0.1 -t -l 0.9 +t +l 0.051 +t -l 0.119 -t +l 0.083 -t -l 0.747 +l 0.134 -l 0.886
  • 27.
  • 28.
  • 29.
  • 30. Example Choose A Σ a
  • 31. Example Choose E Finish with B Normalize Σ e
  • 33.
  • 34. Prior Sampling Cloudy Sprinkler Rain WetGrass Cloudy Sprinkler Rain WetGrass Samples: +c, -s, +r, +w -c, +s, -r, +w … +c 0.5 -c 0.5 +c +s 0.1 -s 0.9 -c +s 0.5 -s 0.5 +c +r 0.8 -r 0.2 -c +r 0.2 -r 0.8 +s +r +w 0.99 -w 0.01 -r +w 0.90 -w 0.10 -s +r +w 0.90 -w 0.10 -r +w 0.01 -w 0.99
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40. Likelihood Weighting Samples: +c, +s, +r, +w … Cloudy Sprinkler Rain WetGrass Cloudy Sprinkler Rain WetGrass 0.099 +c 0.5 -c 0.5 +c +s 0.1 -s 0.9 -c +s 0.5 -s 0.5 +c +r 0.8 -r 0.2 -c +r 0.2 -r 0.8 +s +r +w 0.99 -w 0.01 -r +w 0.90 -w 0.10 -s +r +w 0.90 -w 0.10 -r +w 0.01 -w 0.99
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46. Monty Hall on Monty Hall Problem
  • 47. Monty Hall on Monty Hall Problem