SlideShare a Scribd company logo
1 of 48
CS 221: Artificial Intelligence Lecture 3: Probability and Bayes Nets Sebastian Thrun and Peter Norvig Naranbaatar Bayanbat, Juthika Dabholkar, Carlos Fernandez-Granda, Yan Largman, Cameron Schaeffer, Matthew Seal Slide Credit: Dan Klein (UC Berkeley)
Goal of Today ,[object Object]
Probability ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Probability ,[object Object]
Probability ,[object Object]
Joint Probability ,[object Object],Has cancer? Test positive? P(C,TP) yes yes 0.018 yes no 0.002 no yes 0.196 no no 0.784
Joint Probability ,[object Object],[object Object]
Conditional Probability ,[object Object],[object Object]
Conditional Probability ,[object Object],[object Object],Has cancer? Test positive? P(TP, C) yes yes yes no no yes no no Has cancer? Test positive? P(TP, C) yes yes 0.018 yes no 0.002 no yes 0.196 no no 0.784
Conditional Probability ,[object Object],Has cancer? Test positive? P(TP, C) yes yes 0.018 yes no 0.002 no yes 0.196 no no 0.784
Bayes Network ,[object Object],Cancer Test positive P(cancer) and P(Test positive | cancer) is called the “model” Calculating P(Test positive) is called “prediction” Calculating P(Cancer | test positive) is called “diagnostic reasoning”
Bayes Network ,[object Object],Cancer Test positive Cancer Test positive versus
Independence ,[object Object],[object Object],[object Object],Cancer Test positive
Independence ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Example: Independence ,[object Object],h 0.5 t 0.5 h 0.5 t 0.5 h 0.5 t 0.5
Example: Independence? T W P warm sun 0.4 warm rain 0.1 cold sun 0.2 cold rain 0.3 T W P warm sun 0.3 warm rain 0.2 cold sun 0.3 cold rain 0.2 T P warm 0.5 cold 0.5 W P sun 0.6 rain 0.4
Conditional Independence ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Bayes Network Representation Cavity Catch Toothache P(cavity) P(catch | cavity) P(toothache | cavity) 1 parameter 2 parameters 2 parameters Versus: 2 3 -1 = 7 parameters
A More Realistic Bayes Network
Example Bayes Network: Car
Graphical Model Notation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Example: Coin Flips ,[object Object],[object Object],X 1 X 2 X n
Example: Traffic ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],R T
Example: Alarm Network ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],B urglary E arthquake A larm J ohn calls M ary calls
Bayes Net Semantics ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],A 1 X A n A Bayes net = Topology (graph) + Local Conditional Probabilities
Probabilities in BNs ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Example: Coin Flips X 1 X 2 X n Only distributions whose variables are absolutely independent can be represented by a Bayes ’ net with no arcs. h 0.5 t 0.5 h 0.5 t 0.5 h 0.5 t 0.5
Example: Traffic R T +r 1/4  r 3/4 +r +t 3/4  t 1/4  r +t 1/2  t 1/2 R T joint +r +t 3/16 +r -t 1/16 -r +t 3/8 -r -t 3/8
Example: Alarm Network B urglary E arthqk A larm J ohn calls M ary calls How many parameters? 1 1 4 2 2 10
Example: Alarm Network B urglary E arthqk 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
Example: Alarm Network B urglary E arthquake A larm J ohn calls M ary calls
Bayes ’ Nets ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Remainder of this Class ,[object Object],[object Object]
Causal Chains ,[object Object],[object Object],[object Object],X Y Z Yes! X: Low pressure Y: Rain Z: Traffic
Common Cause ,[object Object],[object Object],[object Object],[object Object],X Y Z Yes! Y: Alarm X: John calls Z: Mary calls
Common Effect ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],X Y Z X: Raining Z: Ballgame Y: Traffic
The General Case ,[object Object],[object Object],[object Object]
Reachability ,[object Object],[object Object],[object Object],[object Object],[object Object],R T B D L
Reachability (D-Separation) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Active Triples Inactive Triples
Example Yes R T B T ’
Example R T B D L T ’ Yes Yes Yes
Example ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],T S D R Yes
A Common BN T 1 T 2 A T N T 3 … Unobservable cause Tests time Diagnostic Reasoning:
A Common BN T 1 T 2 A T N T 3 … Unobservable cause Tests time Diagnostic Reasoning:
A Common BN T 1 T 2 A T N T 3 … Unobservable cause Tests time Diagnostic Reasoning:
A Common BN T 1 T 2 A T N T 3 … Unobservable cause Tests time Diagnostic Reasoning:
Causality? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Summary ,[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

Viewers also liked

Garage 紹介 slideshare
Garage 紹介 slideshareGarage 紹介 slideshare
Garage 紹介 slideshareToshikazu Oka
 
Reactancia e impedancia ( imprimir)
Reactancia  e  impedancia  ( imprimir)Reactancia  e  impedancia  ( imprimir)
Reactancia e impedancia ( imprimir)Dany Saccsa
 
Anexos a heráldica do exército na república portuguesa no sé
Anexos a heráldica do exército na república portuguesa no séAnexos a heráldica do exército na república portuguesa no sé
Anexos a heráldica do exército na república portuguesa no séCleber de Oliveira
 
Cs221 lecture4-fall11
Cs221 lecture4-fall11Cs221 lecture4-fall11
Cs221 lecture4-fall11darwinrlo
 
Marketing artikel factomagazine 1107 en 1108 (white space conflict)
Marketing artikel factomagazine 1107 en 1108 (white space conflict)Marketing artikel factomagazine 1107 en 1108 (white space conflict)
Marketing artikel factomagazine 1107 en 1108 (white space conflict)Mobiliteitsscan.com
 
Cs221 lecture6-fall11
Cs221 lecture6-fall11Cs221 lecture6-fall11
Cs221 lecture6-fall11darwinrlo
 
One size doesn’t fit all final draft
One size doesn’t fit all final draftOne size doesn’t fit all final draft
One size doesn’t fit all final draftTrenton Akers
 
A retrospective and comparative analysis of food crises and food insecurity i...
A retrospective and comparative analysis of food crises and food insecurity i...A retrospective and comparative analysis of food crises and food insecurity i...
A retrospective and comparative analysis of food crises and food insecurity i...Sahel and West Africa Club (SWAC/OECD)
 
Final portfolio michael voit 140130
Final portfolio michael voit 140130Final portfolio michael voit 140130
Final portfolio michael voit 140130voit1
 
2013 top 7 wis hes
2013 top 7 wis hes2013 top 7 wis hes
2013 top 7 wis hesSunho Lee
 

Viewers also liked (20)

About WIL group
About WIL groupAbout WIL group
About WIL group
 
Garage 紹介 slideshare
Garage 紹介 slideshareGarage 紹介 slideshare
Garage 紹介 slideshare
 
Krishi mitr
Krishi mitrKrishi mitr
Krishi mitr
 
Reactancia e impedancia ( imprimir)
Reactancia  e  impedancia  ( imprimir)Reactancia  e  impedancia  ( imprimir)
Reactancia e impedancia ( imprimir)
 
You tube
You tubeYou tube
You tube
 
Anexos a heráldica do exército na república portuguesa no sé
Anexos a heráldica do exército na república portuguesa no séAnexos a heráldica do exército na república portuguesa no sé
Anexos a heráldica do exército na república portuguesa no sé
 
Audience theories
Audience theoriesAudience theories
Audience theories
 
Congresmap VSG congres 2011
Congresmap VSG congres 2011Congresmap VSG congres 2011
Congresmap VSG congres 2011
 
La carta de garcia.
La carta de garcia.La carta de garcia.
La carta de garcia.
 
Cs221 lecture4-fall11
Cs221 lecture4-fall11Cs221 lecture4-fall11
Cs221 lecture4-fall11
 
Marketing artikel factomagazine 1107 en 1108 (white space conflict)
Marketing artikel factomagazine 1107 en 1108 (white space conflict)Marketing artikel factomagazine 1107 en 1108 (white space conflict)
Marketing artikel factomagazine 1107 en 1108 (white space conflict)
 
Cs221 lecture6-fall11
Cs221 lecture6-fall11Cs221 lecture6-fall11
Cs221 lecture6-fall11
 
Warm up
Warm upWarm up
Warm up
 
One size doesn’t fit all final draft
One size doesn’t fit all final draftOne size doesn’t fit all final draft
One size doesn’t fit all final draft
 
A retrospective and comparative analysis of food crises and food insecurity i...
A retrospective and comparative analysis of food crises and food insecurity i...A retrospective and comparative analysis of food crises and food insecurity i...
A retrospective and comparative analysis of food crises and food insecurity i...
 
Cultural revolution
Cultural revolutionCultural revolution
Cultural revolution
 
Final portfolio michael voit 140130
Final portfolio michael voit 140130Final portfolio michael voit 140130
Final portfolio michael voit 140130
 
2013 top 7 wis hes
2013 top 7 wis hes2013 top 7 wis hes
2013 top 7 wis hes
 
Light present
Light presentLight present
Light present
 
Warm up 3A
Warm up 3AWarm up 3A
Warm up 3A
 

Similar to Cs221 lecture3-fall11

08 Exponential Random Graph Models (ERGM)
08 Exponential Random Graph Models (ERGM)08 Exponential Random Graph Models (ERGM)
08 Exponential Random Graph Models (ERGM)dnac
 
08 Inference for Networks – DYAD Model Overview (2017)
08 Inference for Networks – DYAD Model Overview (2017)08 Inference for Networks – DYAD Model Overview (2017)
08 Inference for Networks – DYAD Model Overview (2017)Duke Network Analysis Center
 
DTI brain networks analysis
DTI brain networks analysisDTI brain networks analysis
DTI brain networks analysisemapesce
 
Lecture1
Lecture1Lecture1
Lecture1ntpc08
 
CS221: HMM and Particle Filters
CS221: HMM and Particle FiltersCS221: HMM and Particle Filters
CS221: HMM and Particle Filterszukun
 
NIPS2007: structured prediction
NIPS2007: structured predictionNIPS2007: structured prediction
NIPS2007: structured predictionzukun
 
The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...
The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...
The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...Catarina Moreira
 
Basic Concept Of Probability
Basic Concept Of ProbabilityBasic Concept Of Probability
Basic Concept Of Probabilityguest45a926
 
NCE, GANs & VAEs (and maybe BAC)
NCE, GANs & VAEs (and maybe BAC)NCE, GANs & VAEs (and maybe BAC)
NCE, GANs & VAEs (and maybe BAC)Christian Robert
 
Review Of Probability
Review Of ProbabilityReview Of Probability
Review Of ProbabilityMALAKI12003
 

Similar to Cs221 lecture3-fall11 (20)

08 Exponential Random Graph Models (2016)
08 Exponential Random Graph Models (2016)08 Exponential Random Graph Models (2016)
08 Exponential Random Graph Models (2016)
 
08 Exponential Random Graph Models (ERGM)
08 Exponential Random Graph Models (ERGM)08 Exponential Random Graph Models (ERGM)
08 Exponential Random Graph Models (ERGM)
 
08 Inference for Networks – DYAD Model Overview (2017)
08 Inference for Networks – DYAD Model Overview (2017)08 Inference for Networks – DYAD Model Overview (2017)
08 Inference for Networks – DYAD Model Overview (2017)
 
DTI brain networks analysis
DTI brain networks analysisDTI brain networks analysis
DTI brain networks analysis
 
Lecture1
Lecture1Lecture1
Lecture1
 
Bayesian statistics
Bayesian statisticsBayesian statistics
Bayesian statistics
 
CS221: HMM and Particle Filters
CS221: HMM and Particle FiltersCS221: HMM and Particle Filters
CS221: HMM and Particle Filters
 
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
 
AI Lesson 29
AI Lesson 29AI Lesson 29
AI Lesson 29
 
Lesson 29
Lesson 29Lesson 29
Lesson 29
 
NIPS2007: structured prediction
NIPS2007: structured predictionNIPS2007: structured prediction
NIPS2007: structured prediction
 
The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...
The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...
The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...
 
Bayesian networks
Bayesian networksBayesian networks
Bayesian networks
 
AI Lesson 28
AI Lesson 28AI Lesson 28
AI Lesson 28
 
Lesson 28
Lesson 28Lesson 28
Lesson 28
 
CDT 22 slides.pdf
CDT 22 slides.pdfCDT 22 slides.pdf
CDT 22 slides.pdf
 
Basic Concept Of Probability
Basic Concept Of ProbabilityBasic Concept Of Probability
Basic Concept Of Probability
 
NCE, GANs & VAEs (and maybe BAC)
NCE, GANs & VAEs (and maybe BAC)NCE, GANs & VAEs (and maybe BAC)
NCE, GANs & VAEs (and maybe BAC)
 
Review Of Probability
Review Of ProbabilityReview Of Probability
Review Of Probability
 
Ch02
Ch02Ch02
Ch02
 

More from darwinrlo

Cs221 probability theory
Cs221 probability theoryCs221 probability theory
Cs221 probability theorydarwinrlo
 
Cs221 logic-planning
Cs221 logic-planningCs221 logic-planning
Cs221 logic-planningdarwinrlo
 
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
 

More from darwinrlo (7)

Cs221 probability theory
Cs221 probability theoryCs221 probability theory
Cs221 probability theory
 
Cs221 logic-planning
Cs221 logic-planningCs221 logic-planning
Cs221 logic-planning
 
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 rl
Cs221 rlCs221 rl
Cs221 rl
 

Recently uploaded

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 

Recently uploaded (20)

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 

Cs221 lecture3-fall11

  • 1. CS 221: Artificial Intelligence Lecture 3: Probability and Bayes Nets Sebastian Thrun and Peter Norvig Naranbaatar Bayanbat, Juthika Dabholkar, Carlos Fernandez-Granda, Yan Largman, Cameron Schaeffer, Matthew Seal Slide Credit: Dan Klein (UC Berkeley)
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16. Example: Independence? T W P warm sun 0.4 warm rain 0.1 cold sun 0.2 cold rain 0.3 T W P warm sun 0.3 warm rain 0.2 cold sun 0.3 cold rain 0.2 T P warm 0.5 cold 0.5 W P sun 0.6 rain 0.4
  • 17.
  • 18. Bayes Network Representation Cavity Catch Toothache P(cavity) P(catch | cavity) P(toothache | cavity) 1 parameter 2 parameters 2 parameters Versus: 2 3 -1 = 7 parameters
  • 19. A More Realistic Bayes Network
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27. Example: Coin Flips X 1 X 2 X n Only distributions whose variables are absolutely independent can be represented by a Bayes ’ net with no arcs. h 0.5 t 0.5 h 0.5 t 0.5 h 0.5 t 0.5
  • 28. Example: Traffic R T +r 1/4  r 3/4 +r +t 3/4  t 1/4  r +t 1/2  t 1/2 R T joint +r +t 3/16 +r -t 1/16 -r +t 3/8 -r -t 3/8
  • 29. Example: Alarm Network B urglary E arthqk A larm J ohn calls M ary calls How many parameters? 1 1 4 2 2 10
  • 30. Example: Alarm Network B urglary E arthqk 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
  • 31. Example: Alarm Network B urglary E arthquake A larm J ohn calls M ary calls
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40. Example Yes R T B T ’
  • 41. Example R T B D L T ’ Yes Yes Yes
  • 42.
  • 43. A Common BN T 1 T 2 A T N T 3 … Unobservable cause Tests time Diagnostic Reasoning:
  • 44. A Common BN T 1 T 2 A T N T 3 … Unobservable cause Tests time Diagnostic Reasoning:
  • 45. A Common BN T 1 T 2 A T N T 3 … Unobservable cause Tests time Diagnostic Reasoning:
  • 46. A Common BN T 1 T 2 A T N T 3 … Unobservable cause Tests time Diagnostic Reasoning:
  • 47.
  • 48.