SlideShare a Scribd company logo
1 of 22
Download to read offline
Conditional Probability, Independence, Bayes Theorem
18.05 Spring 2014
Jeremy Orloff and Jonathan Bloom
Illustration of the Monty Hall problem removed due to copyright restrictions.
Sample Space Confusions
1. Sample space = set of all possible outcomes of an experiment.
2. The size of the set is not the sample space.
3. Outcomes can be sequences of numbers.
Examples.
1. Roll 5 dice: Ω = set of all sequences of 5 numbers between 1 and
6, e.g. (1, 2, 1, 3, 1, 5) ∈ Ω.
The size |Ω| = 65
is not a set.
2. Ω = set of all sequences of 10 birthdays,
e.g. (111, 231, 3, 44, 55, 129, 345, 14, 24, 14) ∈ Ω.
|Ω| = 36510
3. n some number, Ω = set of all sequences of n birthdays.
|Ω| = 365n
.
May 27, 2014 2 / 21
Slides are Posted
Don’t forget that after class we post the slides including
solutions to all the questions.
May 27, 2014 3 / 21
B
A
A ∩ B
Conditional Probability
‘the probability of A given B’.
P(A ∩ B)
P(A|B) = , provided P(B) = 0.
P(B)
Conditional probability: Abstractly and for coin example
May 27, 2014 4 / 21
Concept Question
Toss a coin 4 times. Let
A = ‘at least three heads’
B = ‘first toss is tails’.
1. What is P(A|B)?
a) 1/16 b) 1/8 c) 1/4 d) 1/5
2. What is P(B|A)?
a) 1/16 b) 1/8 c) 1/4 d) 1/5
May 27, 2014 5 / 21
Table Question
“Steve is very shy and withdrawn, invariably
helpful, but with little interest in people, or in the
world of reality. A meek and tidy soul, he has a
need for order and structure and a passion for
detail.”∗
What is the probability that Steve is a librarian?
What is the probability that Steve is a farmer?
∗From Judgment under uncertainty: heuristics and biases by Tversky and
Kahneman.
May 27, 2014 6 / 21
Multiplication Rule, Law of Total Probability
MR: P(A ∩ B) = P(A|B) · P(B).
LoTP: If B1, B2, B3 partition Ω then
P(A) = P(A ∩ B1) + P(A ∩ B2) + P(A ∩ B3)
= P(A|B1)P(B1) + P(A|B2)P(B2) + P(A|B3)P(B3)
Ω
B3B2
B1
A ∩ B1
A ∩ B2 A ∩ B3
May 27, 2014 7 / 21
Trees
Organize computations
Compute total probability
Compute Bayes formula
Example. : Game: 5 red and 2 green balls in an urn. A random ball
is selected and replaced by a ball of the other color.
1. What is the probability the second ball is red?
2. What is the probability the first ball was red given the second ball
was red?
G1R1
R2 G2 R2 G2
5/7 2/7
4/7 3/7 6/7 1/7
First draw
Second draw
May 27, 2014 8 / 21
Concept Question: Trees 1
A1 A2
B1 B2 B1 B2
C1 C2 C1 C2 C1 C2 C1 C2
x
y
z
1. The probability x represents
a) P(A1)
b) P(A1|B2)
c) P(B2|A1)
d) P(C1|B2 ∩ A1).
May 27, 2014 9 / 21
Concept Question: Trees 2
A1 A2
B1 B2 B1 B2
C1 C2 C1 C2 C1 C2 C1 C2
x
y
z
2. The probability y represents
a) P(B2)
b) P(A1|B2)
c) P(B2|A1)
d) P(C1|B2 ∩ A1).
May 27, 2014 10 / 21
Concept Question: Trees 3
A1 A2
B1 B2 B1 B2
C1 C2 C1 C2 C1 C2 C1 C2
x
y
z
3. The probability z represents
a) P(C1)
b) P(B2|C1)
c) P(C1|B2)
d) P(C1|B2 ∩ A1).
May 27, 2014 11 / 21
Concept Question: Trees 4
A1 A2
B1 B2 B1 B2
C1 C2 C1 C2 C1 C2 C1 C2
x
y
z
4. The circled node represents the event
a) C1
b) B2 ∩ C1
c) A1 ∩ B2 ∩ C1
d) C1|B2 ∩ A1.
May 27, 2014 12 / 21
Concept question: Monty Hall
Let’s Make a Deal
1. One door hides a car, two hide goats.
2. Contestant chooses door.
3. Monty (who knows where the car is) opens a different
door with a goat.
4. Contestant can switch doors or keep her original choice.
What is the best strategy for winning a car?
a) Switch b) Don’t switch c) It doesn’t matter
Illustration of the Monty Hall problem removed due to copyright restrictions.
May 27, 2014 13 / 21
Board question: Monty Hall
Organize the Monty Hall problem into a tree and compute
the probability of winning if you always switch.
Hint first break the game into a sequence of actions.
May 27, 2014 14 / 21
Independence
Events A and B are independent if the probability that
one occurred is not affected by knowledge that the other
occurred.
A and B are independent ⇔ P(A ∩ B) = P(A)P(B)
⇔ P(A|B) = P(A)
⇔ P(B|A) = P(B)
May 27, 2014 15 / 21
Concept Question: Independence
Roll two dice.
A = ‘first die is 3’
B = ‘sum is 6’
A and B are independent
a) True b) False
May 27, 2014 16 / 21
Bayes Theorem
Also called Bayes Rule and Bayes Formula.
Allows you to find P(A|B) from P(B|A), i.e. to ‘invert’
conditional probabilities.
P(B|A) · P(A)
P(A|B) =
P(B)
Often compute the denominator P(B) using the law of
total probability.
May 27, 2014 17 / 21
Board Question: Evil Squirrels
Of the one million squirrels on MIT’s campus most are
good-natured. But one hundred of them are pure evil! An
enterprising student in Course 6 develops an “Evil Squirrel
Alarm” which she offers to sell to MIT for a passing
grade. MIT decides to test the reliability of the alarm by
conducting trials.
Photograph of squirrel removed due to copyright restrictions.
May 27, 2014 18 / 21
Evil Squirrels Continued
When presented with an evil squirrel, the alarm goes
off 99% of the time.
When presented with a good-natured squirrel, the
alarm goes off 1% of the time.
a) If a squirrel sets off the alarm, what is the probability
that it is evil?
b) Should MIT co-opt the patent rights and employ the
system?
May 27, 2014 19 / 21
One solution
Evil Nice
Alarm 99 9999 10098
No alarm 1 989901 989902
100 999900 1000000
Summary:
99+989901
Probability a random test is correct = = .991000000
99
Probability a positive test is correct = ≈ .0110098
These probabilities are not the same!
May 27, 2014 20 / 21
Washington Post, hot off the press
Annual physical exam is probably unnecessary if you’re
generally healthy
For patients, the negatives include time away
from work and possibly unnecessary tests.
“Getting a simple urinalysis could lead to a false
positive, which could trigger a cascade of even
more tests, only to discover in the end that you
had nothing wrong with you.” Mehrotra says.
http://www.washingtonpost.com/national/health-science/
annual-physical-exam-is-probably-unnecessary-if-youre­
generally-healthy/2013/02/08/2c1e326a-5f2b-11e2-a389­
ee565c81c565_story.html
May 27, 2014 21 / 21
MIT OpenCourseWare
http://ocw.mit.edu
18.05 Introduction to Probability and Statistics
Spring 2014
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

More Related Content

What's hot

Awareness of IoT Platform and Applications
Awareness of IoT Platform and ApplicationsAwareness of IoT Platform and Applications
Awareness of IoT Platform and ApplicationsDr. Mazlan Abbas
 
Lecture Notes on Adaptive Signal Processing-1.pdf
Lecture Notes on Adaptive Signal Processing-1.pdfLecture Notes on Adaptive Signal Processing-1.pdf
Lecture Notes on Adaptive Signal Processing-1.pdfVishalPusadkar1
 
Eecb351 exp 8 ask fsk
Eecb351 exp 8 ask fskEecb351 exp 8 ask fsk
Eecb351 exp 8 ask fskZufayri Chan
 
180470235 45106998-plc-programming-course2-3-pdf (1)
180470235 45106998-plc-programming-course2-3-pdf (1)180470235 45106998-plc-programming-course2-3-pdf (1)
180470235 45106998-plc-programming-course2-3-pdf (1)Winai Jan
 
Predictive Maintenance in the Industrial Internet of Things
Predictive Maintenance in the Industrial Internet of ThingsPredictive Maintenance in the Industrial Internet of Things
Predictive Maintenance in the Industrial Internet of ThingsTibbo
 
Lecture 19 mathematical modeling of pneumatic and hydraulic systems
Lecture 19   mathematical modeling of pneumatic and hydraulic systemsLecture 19   mathematical modeling of pneumatic and hydraulic systems
Lecture 19 mathematical modeling of pneumatic and hydraulic systemsManipal Institute of Technology
 
Driving Thailand 4.0 with Internet of Things
Driving Thailand 4.0 with Internet of ThingsDriving Thailand 4.0 with Internet of Things
Driving Thailand 4.0 with Internet of ThingsPanita Pongpaibool
 
PID Tuning using Ziegler Nicholas - MATLAB Approach
PID Tuning using Ziegler Nicholas - MATLAB ApproachPID Tuning using Ziegler Nicholas - MATLAB Approach
PID Tuning using Ziegler Nicholas - MATLAB ApproachWaleed El-Badry
 
Lecture 7 modelling-of__real_world_systems
Lecture 7 modelling-of__real_world_systemsLecture 7 modelling-of__real_world_systems
Lecture 7 modelling-of__real_world_systemsSaifullah Memon
 
Signals and classification
Signals and classificationSignals and classification
Signals and classificationSuraj Mishra
 
Instrumentation: Test and Measurement Methods and Solutions - VE2013
Instrumentation: Test and Measurement Methods and Solutions - VE2013Instrumentation: Test and Measurement Methods and Solutions - VE2013
Instrumentation: Test and Measurement Methods and Solutions - VE2013Analog Devices, Inc.
 
Crime Analysis using Regression and ANOVA
Crime Analysis using Regression and ANOVACrime Analysis using Regression and ANOVA
Crime Analysis using Regression and ANOVATom Donoghue
 
ADC - Dual Slope Integrator
ADC - Dual Slope IntegratorADC - Dual Slope Integrator
ADC - Dual Slope IntegratorManjunath Meti
 

What's hot (20)

Awareness of IoT Platform and Applications
Awareness of IoT Platform and ApplicationsAwareness of IoT Platform and Applications
Awareness of IoT Platform and Applications
 
Lecture Notes on Adaptive Signal Processing-1.pdf
Lecture Notes on Adaptive Signal Processing-1.pdfLecture Notes on Adaptive Signal Processing-1.pdf
Lecture Notes on Adaptive Signal Processing-1.pdf
 
Ch1
Ch1Ch1
Ch1
 
Eecb351 exp 8 ask fsk
Eecb351 exp 8 ask fskEecb351 exp 8 ask fsk
Eecb351 exp 8 ask fsk
 
180470235 45106998-plc-programming-course2-3-pdf (1)
180470235 45106998-plc-programming-course2-3-pdf (1)180470235 45106998-plc-programming-course2-3-pdf (1)
180470235 45106998-plc-programming-course2-3-pdf (1)
 
Predictive Maintenance in the Industrial Internet of Things
Predictive Maintenance in the Industrial Internet of ThingsPredictive Maintenance in the Industrial Internet of Things
Predictive Maintenance in the Industrial Internet of Things
 
Lecture 19 mathematical modeling of pneumatic and hydraulic systems
Lecture 19   mathematical modeling of pneumatic and hydraulic systemsLecture 19   mathematical modeling of pneumatic and hydraulic systems
Lecture 19 mathematical modeling of pneumatic and hydraulic systems
 
Driving Thailand 4.0 with Internet of Things
Driving Thailand 4.0 with Internet of ThingsDriving Thailand 4.0 with Internet of Things
Driving Thailand 4.0 with Internet of Things
 
Modelos de risco coletivo para um periodo simples
Modelos de risco coletivo para um periodo simplesModelos de risco coletivo para um periodo simples
Modelos de risco coletivo para um periodo simples
 
Pid controller
Pid controllerPid controller
Pid controller
 
Assignment 2
Assignment 2 Assignment 2
Assignment 2
 
Quantum error correcting codes
Quantum error correcting codesQuantum error correcting codes
Quantum error correcting codes
 
Lecture 23 24-time_response
Lecture 23 24-time_responseLecture 23 24-time_response
Lecture 23 24-time_response
 
PID Tuning using Ziegler Nicholas - MATLAB Approach
PID Tuning using Ziegler Nicholas - MATLAB ApproachPID Tuning using Ziegler Nicholas - MATLAB Approach
PID Tuning using Ziegler Nicholas - MATLAB Approach
 
Lecture 7 modelling-of__real_world_systems
Lecture 7 modelling-of__real_world_systemsLecture 7 modelling-of__real_world_systems
Lecture 7 modelling-of__real_world_systems
 
Signals and classification
Signals and classificationSignals and classification
Signals and classification
 
Instrumentation: Test and Measurement Methods and Solutions - VE2013
Instrumentation: Test and Measurement Methods and Solutions - VE2013Instrumentation: Test and Measurement Methods and Solutions - VE2013
Instrumentation: Test and Measurement Methods and Solutions - VE2013
 
Fourier slide
Fourier slideFourier slide
Fourier slide
 
Crime Analysis using Regression and ANOVA
Crime Analysis using Regression and ANOVACrime Analysis using Regression and ANOVA
Crime Analysis using Regression and ANOVA
 
ADC - Dual Slope Integrator
ADC - Dual Slope IntegratorADC - Dual Slope Integrator
ADC - Dual Slope Integrator
 

Viewers also liked

Probability basics and bayes' theorem
Probability basics and bayes' theoremProbability basics and bayes' theorem
Probability basics and bayes' theoremBalaji P
 
11th Maths - Probability - BAYE’S THEOREM
11th Maths - Probability - BAYE’S THEOREM11th Maths - Probability - BAYE’S THEOREM
11th Maths - Probability - BAYE’S THEOREMEdnexa
 
Probability Review Additions
Probability Review AdditionsProbability Review Additions
Probability Review Additionsrishi.indian
 
6334 Day 3 slides: Spanos-lecture-2
6334 Day 3 slides: Spanos-lecture-26334 Day 3 slides: Spanos-lecture-2
6334 Day 3 slides: Spanos-lecture-2jemille6
 
La Puya Two-Year Anniversay
La Puya Two-Year AnniversayLa Puya Two-Year Anniversay
La Puya Two-Year AnniversayLindsay Bigda
 
Probability & Bayesian Theorem
Probability & Bayesian TheoremProbability & Bayesian Theorem
Probability & Bayesian TheoremAzmi Mohd Tamil
 
Probability based learning (in book: Machine learning for predictve data anal...
Probability based learning (in book: Machine learning for predictve data anal...Probability based learning (in book: Machine learning for predictve data anal...
Probability based learning (in book: Machine learning for predictve data anal...Duyen Do
 
PROBABILITY- BAYE'S THEOREM
PROBABILITY- BAYE'S THEOREM PROBABILITY- BAYE'S THEOREM
PROBABILITY- BAYE'S THEOREM Niraj Dasani
 
5 3 the graphs of quadratic equations-x
5 3 the graphs of quadratic equations-x5 3 the graphs of quadratic equations-x
5 3 the graphs of quadratic equations-xmath123b
 
Module 10 Topic 4 solving quadratic equations part 1
Module 10 Topic 4   solving quadratic equations part 1Module 10 Topic 4   solving quadratic equations part 1
Module 10 Topic 4 solving quadratic equations part 1Lori Rapp
 

Viewers also liked (20)

Bayes Theorem
Bayes TheoremBayes Theorem
Bayes Theorem
 
Probability basics and bayes' theorem
Probability basics and bayes' theoremProbability basics and bayes' theorem
Probability basics and bayes' theorem
 
Stress
StressStress
Stress
 
Genre drama
Genre dramaGenre drama
Genre drama
 
Kesantunanbahasa
KesantunanbahasaKesantunanbahasa
Kesantunanbahasa
 
M 1.4 rm
M 1.4 rmM 1.4 rm
M 1.4 rm
 
03 Conditional
03 Conditional03 Conditional
03 Conditional
 
11th Maths - Probability - BAYE’S THEOREM
11th Maths - Probability - BAYE’S THEOREM11th Maths - Probability - BAYE’S THEOREM
11th Maths - Probability - BAYE’S THEOREM
 
Drift Analysis - A Tutorial
Drift Analysis - A TutorialDrift Analysis - A Tutorial
Drift Analysis - A Tutorial
 
Probability Review Additions
Probability Review AdditionsProbability Review Additions
Probability Review Additions
 
6334 Day 3 slides: Spanos-lecture-2
6334 Day 3 slides: Spanos-lecture-26334 Day 3 slides: Spanos-lecture-2
6334 Day 3 slides: Spanos-lecture-2
 
Bayes theorem
Bayes theoremBayes theorem
Bayes theorem
 
Pen drive bootable
Pen drive bootablePen drive bootable
Pen drive bootable
 
La Puya Two-Year Anniversay
La Puya Two-Year AnniversayLa Puya Two-Year Anniversay
La Puya Two-Year Anniversay
 
Probability & Bayesian Theorem
Probability & Bayesian TheoremProbability & Bayesian Theorem
Probability & Bayesian Theorem
 
probability
probabilityprobability
probability
 
Probability based learning (in book: Machine learning for predictve data anal...
Probability based learning (in book: Machine learning for predictve data anal...Probability based learning (in book: Machine learning for predictve data anal...
Probability based learning (in book: Machine learning for predictve data anal...
 
PROBABILITY- BAYE'S THEOREM
PROBABILITY- BAYE'S THEOREM PROBABILITY- BAYE'S THEOREM
PROBABILITY- BAYE'S THEOREM
 
5 3 the graphs of quadratic equations-x
5 3 the graphs of quadratic equations-x5 3 the graphs of quadratic equations-x
5 3 the graphs of quadratic equations-x
 
Module 10 Topic 4 solving quadratic equations part 1
Module 10 Topic 4   solving quadratic equations part 1Module 10 Topic 4   solving quadratic equations part 1
Module 10 Topic 4 solving quadratic equations part 1
 

Similar to Mit18 05 s14_class3slides

Mit18 05 s14_class4slides
Mit18 05 s14_class4slidesMit18 05 s14_class4slides
Mit18 05 s14_class4slidesAnimesh Kumar
 
Mit18 05 s14_class2slides
Mit18 05 s14_class2slidesMit18 05 s14_class2slides
Mit18 05 s14_class2slidesAnimesh Kumar
 
Mit18 05 s14_class2slides
Mit18 05 s14_class2slidesMit18 05 s14_class2slides
Mit18 05 s14_class2slidesAnimesh Kumar
 
(7) Lesson 9.2
(7) Lesson 9.2(7) Lesson 9.2
(7) Lesson 9.2wzuri
 
Introduction to Invariance Principle
Introduction to Invariance PrincipleIntroduction to Invariance Principle
Introduction to Invariance PrincipleFreeman Cheng
 
5. probability qt 1st tri semester
5. probability qt 1st tri semester 5. probability qt 1st tri semester
5. probability qt 1st tri semester Karan Kukreja
 
Fine Tune Your Quantitative Skills
Fine Tune Your Quantitative SkillsFine Tune Your Quantitative Skills
Fine Tune Your Quantitative Skillsankits11
 
(7) Lesson 9.7
(7) Lesson 9.7(7) Lesson 9.7
(7) Lesson 9.7wzuri
 
G10 Math Q3- Week 9- Mutually Exclusive Events.ppt
G10 Math Q3- Week 9- Mutually Exclusive Events.pptG10 Math Q3- Week 9- Mutually Exclusive Events.ppt
G10 Math Q3- Week 9- Mutually Exclusive Events.pptCheJavier
 
Applied 40S April 20, 2009
Applied 40S April 20, 2009Applied 40S April 20, 2009
Applied 40S April 20, 2009Darren Kuropatwa
 
Probability and Probability Distribution.pptx
Probability and Probability Distribution.pptxProbability and Probability Distribution.pptx
Probability and Probability Distribution.pptxRaffyBarotilla
 
Beginners counting and probability.pptx
Beginners counting and probability.pptxBeginners counting and probability.pptx
Beginners counting and probability.pptxAbbyXiong
 
(7) Lesson 9.3
(7) Lesson 9.3(7) Lesson 9.3
(7) Lesson 9.3wzuri
 
Statistics and probability test questions
Statistics and probability test questionsStatistics and probability test questions
Statistics and probability test questionsrosschristian
 

Similar to Mit18 05 s14_class3slides (20)

Probability Assignment Help
Probability Assignment HelpProbability Assignment Help
Probability Assignment Help
 
Mit18 05 s14_class4slides
Mit18 05 s14_class4slidesMit18 05 s14_class4slides
Mit18 05 s14_class4slides
 
Mathematics Homework Help
Mathematics Homework HelpMathematics Homework Help
Mathematics Homework Help
 
Mit18 05 s14_class2slides
Mit18 05 s14_class2slidesMit18 05 s14_class2slides
Mit18 05 s14_class2slides
 
Mit18 05 s14_class2slides
Mit18 05 s14_class2slidesMit18 05 s14_class2slides
Mit18 05 s14_class2slides
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
(7) Lesson 9.2
(7) Lesson 9.2(7) Lesson 9.2
(7) Lesson 9.2
 
Probability Homework Help
Probability Homework HelpProbability Homework Help
Probability Homework Help
 
Introduction to Invariance Principle
Introduction to Invariance PrincipleIntroduction to Invariance Principle
Introduction to Invariance Principle
 
5. probability qt 1st tri semester
5. probability qt 1st tri semester 5. probability qt 1st tri semester
5. probability qt 1st tri semester
 
Fine Tune Your Quantitative Skills
Fine Tune Your Quantitative SkillsFine Tune Your Quantitative Skills
Fine Tune Your Quantitative Skills
 
(7) Lesson 9.7
(7) Lesson 9.7(7) Lesson 9.7
(7) Lesson 9.7
 
G10 Math Q3- Week 9- Mutually Exclusive Events.ppt
G10 Math Q3- Week 9- Mutually Exclusive Events.pptG10 Math Q3- Week 9- Mutually Exclusive Events.ppt
G10 Math Q3- Week 9- Mutually Exclusive Events.ppt
 
Applied 40S April 20, 2009
Applied 40S April 20, 2009Applied 40S April 20, 2009
Applied 40S April 20, 2009
 
Probability and Probability Distribution.pptx
Probability and Probability Distribution.pptxProbability and Probability Distribution.pptx
Probability and Probability Distribution.pptx
 
PPT8.ppt
PPT8.pptPPT8.ppt
PPT8.ppt
 
Practice Test 2 Solutions
Practice Test 2  SolutionsPractice Test 2  Solutions
Practice Test 2 Solutions
 
Beginners counting and probability.pptx
Beginners counting and probability.pptxBeginners counting and probability.pptx
Beginners counting and probability.pptx
 
(7) Lesson 9.3
(7) Lesson 9.3(7) Lesson 9.3
(7) Lesson 9.3
 
Statistics and probability test questions
Statistics and probability test questionsStatistics and probability test questions
Statistics and probability test questions
 

More from Animesh Kumar

More from Animesh Kumar (9)

10th class weaker students case
10th class weaker students case10th class weaker students case
10th class weaker students case
 
Model selection
Model selectionModel selection
Model selection
 
Portfolios, mutual funds class
Portfolios, mutual funds  classPortfolios, mutual funds  class
Portfolios, mutual funds class
 
2016 may cover
2016 may cover2016 may cover
2016 may cover
 
2016 june cover
2016 june cover2016 june cover
2016 june cover
 
2016 april cover
2016 april cover2016 april cover
2016 april cover
 
2016 march cover
2016 march cover2016 march cover
2016 march cover
 
Spss tutorial-cluster-analysis
Spss tutorial-cluster-analysisSpss tutorial-cluster-analysis
Spss tutorial-cluster-analysis
 
Cjc tutorial
Cjc tutorialCjc tutorial
Cjc tutorial
 

Recently uploaded

Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Recently uploaded (20)

Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 

Mit18 05 s14_class3slides

  • 1. Conditional Probability, Independence, Bayes Theorem 18.05 Spring 2014 Jeremy Orloff and Jonathan Bloom Illustration of the Monty Hall problem removed due to copyright restrictions.
  • 2. Sample Space Confusions 1. Sample space = set of all possible outcomes of an experiment. 2. The size of the set is not the sample space. 3. Outcomes can be sequences of numbers. Examples. 1. Roll 5 dice: Ω = set of all sequences of 5 numbers between 1 and 6, e.g. (1, 2, 1, 3, 1, 5) ∈ Ω. The size |Ω| = 65 is not a set. 2. Ω = set of all sequences of 10 birthdays, e.g. (111, 231, 3, 44, 55, 129, 345, 14, 24, 14) ∈ Ω. |Ω| = 36510 3. n some number, Ω = set of all sequences of n birthdays. |Ω| = 365n . May 27, 2014 2 / 21
  • 3. Slides are Posted Don’t forget that after class we post the slides including solutions to all the questions. May 27, 2014 3 / 21
  • 4. B A A ∩ B Conditional Probability ‘the probability of A given B’. P(A ∩ B) P(A|B) = , provided P(B) = 0. P(B) Conditional probability: Abstractly and for coin example May 27, 2014 4 / 21
  • 5. Concept Question Toss a coin 4 times. Let A = ‘at least three heads’ B = ‘first toss is tails’. 1. What is P(A|B)? a) 1/16 b) 1/8 c) 1/4 d) 1/5 2. What is P(B|A)? a) 1/16 b) 1/8 c) 1/4 d) 1/5 May 27, 2014 5 / 21
  • 6. Table Question “Steve is very shy and withdrawn, invariably helpful, but with little interest in people, or in the world of reality. A meek and tidy soul, he has a need for order and structure and a passion for detail.”∗ What is the probability that Steve is a librarian? What is the probability that Steve is a farmer? ∗From Judgment under uncertainty: heuristics and biases by Tversky and Kahneman. May 27, 2014 6 / 21
  • 7. Multiplication Rule, Law of Total Probability MR: P(A ∩ B) = P(A|B) · P(B). LoTP: If B1, B2, B3 partition Ω then P(A) = P(A ∩ B1) + P(A ∩ B2) + P(A ∩ B3) = P(A|B1)P(B1) + P(A|B2)P(B2) + P(A|B3)P(B3) Ω B3B2 B1 A ∩ B1 A ∩ B2 A ∩ B3 May 27, 2014 7 / 21
  • 8. Trees Organize computations Compute total probability Compute Bayes formula Example. : Game: 5 red and 2 green balls in an urn. A random ball is selected and replaced by a ball of the other color. 1. What is the probability the second ball is red? 2. What is the probability the first ball was red given the second ball was red? G1R1 R2 G2 R2 G2 5/7 2/7 4/7 3/7 6/7 1/7 First draw Second draw May 27, 2014 8 / 21
  • 9. Concept Question: Trees 1 A1 A2 B1 B2 B1 B2 C1 C2 C1 C2 C1 C2 C1 C2 x y z 1. The probability x represents a) P(A1) b) P(A1|B2) c) P(B2|A1) d) P(C1|B2 ∩ A1). May 27, 2014 9 / 21
  • 10. Concept Question: Trees 2 A1 A2 B1 B2 B1 B2 C1 C2 C1 C2 C1 C2 C1 C2 x y z 2. The probability y represents a) P(B2) b) P(A1|B2) c) P(B2|A1) d) P(C1|B2 ∩ A1). May 27, 2014 10 / 21
  • 11. Concept Question: Trees 3 A1 A2 B1 B2 B1 B2 C1 C2 C1 C2 C1 C2 C1 C2 x y z 3. The probability z represents a) P(C1) b) P(B2|C1) c) P(C1|B2) d) P(C1|B2 ∩ A1). May 27, 2014 11 / 21
  • 12. Concept Question: Trees 4 A1 A2 B1 B2 B1 B2 C1 C2 C1 C2 C1 C2 C1 C2 x y z 4. The circled node represents the event a) C1 b) B2 ∩ C1 c) A1 ∩ B2 ∩ C1 d) C1|B2 ∩ A1. May 27, 2014 12 / 21
  • 13. Concept question: Monty Hall Let’s Make a Deal 1. One door hides a car, two hide goats. 2. Contestant chooses door. 3. Monty (who knows where the car is) opens a different door with a goat. 4. Contestant can switch doors or keep her original choice. What is the best strategy for winning a car? a) Switch b) Don’t switch c) It doesn’t matter Illustration of the Monty Hall problem removed due to copyright restrictions. May 27, 2014 13 / 21
  • 14. Board question: Monty Hall Organize the Monty Hall problem into a tree and compute the probability of winning if you always switch. Hint first break the game into a sequence of actions. May 27, 2014 14 / 21
  • 15. Independence Events A and B are independent if the probability that one occurred is not affected by knowledge that the other occurred. A and B are independent ⇔ P(A ∩ B) = P(A)P(B) ⇔ P(A|B) = P(A) ⇔ P(B|A) = P(B) May 27, 2014 15 / 21
  • 16. Concept Question: Independence Roll two dice. A = ‘first die is 3’ B = ‘sum is 6’ A and B are independent a) True b) False May 27, 2014 16 / 21
  • 17. Bayes Theorem Also called Bayes Rule and Bayes Formula. Allows you to find P(A|B) from P(B|A), i.e. to ‘invert’ conditional probabilities. P(B|A) · P(A) P(A|B) = P(B) Often compute the denominator P(B) using the law of total probability. May 27, 2014 17 / 21
  • 18. Board Question: Evil Squirrels Of the one million squirrels on MIT’s campus most are good-natured. But one hundred of them are pure evil! An enterprising student in Course 6 develops an “Evil Squirrel Alarm” which she offers to sell to MIT for a passing grade. MIT decides to test the reliability of the alarm by conducting trials. Photograph of squirrel removed due to copyright restrictions. May 27, 2014 18 / 21
  • 19. Evil Squirrels Continued When presented with an evil squirrel, the alarm goes off 99% of the time. When presented with a good-natured squirrel, the alarm goes off 1% of the time. a) If a squirrel sets off the alarm, what is the probability that it is evil? b) Should MIT co-opt the patent rights and employ the system? May 27, 2014 19 / 21
  • 20. One solution Evil Nice Alarm 99 9999 10098 No alarm 1 989901 989902 100 999900 1000000 Summary: 99+989901 Probability a random test is correct = = .991000000 99 Probability a positive test is correct = ≈ .0110098 These probabilities are not the same! May 27, 2014 20 / 21
  • 21. Washington Post, hot off the press Annual physical exam is probably unnecessary if you’re generally healthy For patients, the negatives include time away from work and possibly unnecessary tests. “Getting a simple urinalysis could lead to a false positive, which could trigger a cascade of even more tests, only to discover in the end that you had nothing wrong with you.” Mehrotra says. http://www.washingtonpost.com/national/health-science/ annual-physical-exam-is-probably-unnecessary-if-youre­ generally-healthy/2013/02/08/2c1e326a-5f2b-11e2-a389­ ee565c81c565_story.html May 27, 2014 21 / 21
  • 22. MIT OpenCourseWare http://ocw.mit.edu 18.05 Introduction to Probability and Statistics Spring 2014 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.