SlideShare a Scribd company logo
1 of 14
Elementary Statistics
Chapter 4:
Probability
4.3 Complements and
Conditional
Probability, and Bayes’
Theorem
1
Chapter 4: Probability
4.1 Basic Concepts of Probability
4.2 Addition Rule and Multiplication Rule
4.3 Complements and Conditional Probability, and Bayes’ Theorem
4.4 Counting
4.5 Probabilities Through Simulations (available online)
2
Objectives:
• Determine sample spaces and find the probability of an event, using classical probability or empirical probability.
• Find the probability of compound events, using the addition rules.
• Find the probability of compound events, using the multiplication rules.
• Find the conditional probability of an event.
• Find the total number of outcomes in a sequence of events, using the fundamental counting rule.
• Find the number of ways that r objects can be selected from n objects, using the permutation rule.
• Find the number of ways that r objects can be selected from n objects without regard to order, using the combination rule.
• Find the probability of an event, using the counting rules.
Notation: P(A) = the probability of event A , 0 ≤ P(A) ≤ 1
The sum of the probabilities of all the outcomes in the sample space is 1: 𝑃𝑖 = 1
Impossible Set: If an event E cannot occur (i.e., the event contains no members in the sample space), its probability
is 0. P(A) = 0
Sure (Certain) Set: If an event E is certain, then the probability of E is 1. P(E) = 1
Complementary Events: 𝐴: consists of all outcomes that are not included in the outcomes of event A.
𝑃 𝐴 = 1 − 𝑃(𝐴)
The actual odds against event A: O 𝐴 =
𝑃 𝐴
𝑃(𝐴)
, (expressed as form of a:b or “a to b”); a and b are integers.
The actual odds in favor of event A: O 𝐴 =
𝑃 𝐴
𝑃 𝐴
(the reciprocal of the actual odds against the even) If the odds
against A are a:b, then the odds in favor of A are b:a.
The payoff odds against event A: Payoff odds against event A = (net profit):(amount bet)
Payoff odds against event A =
net profit
amount bet
net profit = (Payoff odds against event A)(amount bet)
Value: Give the exact fraction or decimal or round off final decimal results to 3 significant digits. 3
Recall 4.1 Basic Concepts of Probability
Addition Rule:
P(A or B) = P(in a single trial, event A occurs or event B occurs or they both occur)
P(A or B) = P(A) + P(B) − P(A and B)
where P(A and B) denotes the probability that A and B both occur at the same time as an
outcome in a trial of a procedure.
Multiplication rule:
A tool to find P(A and B), which is the probability that event A occurs and event B occurs.
The word “and” in the multiplication rule is associated with the multiplication of
probabilities.
Sampling with replacement: Selections are independent events. P(A ∩ B) = P(A)  P(B)
Sampling without replacement: Selections are dependent events. P(A and B) = P(A)  P(B |
A)
Disjoint (or mutually exclusive): Events A and B are disjoint (or mutually exclusive) if
they cannot occur at the same time. (That is, disjoint events do not overlap.)
Complementary Events: Rules 𝑷 𝑨 + 𝑷 𝑨 = 𝟏
𝐴 𝑎𝑛𝑑 𝐴 must be disjoint.
Recall 4.2 Addition & Multiplication Rules
Venn
Diagram
for
Events
That Are
Not
Disjoint
Venn
Diagram
for
Disjoint
Events
4
Key Concept: We extend the use of the multiplication rule to include the
probability that among several trials, we get at least one of some specified
event. We consider conditional probability: the probability of an event
occurring when we have additional information that some other event has
already occurred. We provide a brief introduction to Bayes’ theorem.
4.3 Complements and Conditional Probability, and Bayes’Theorem
Complements: The Probability of “At Least One”
When finding the probability of some event occurring “at least once,” we
should understand the following:
• “At least one” has the same meaning as “one or more.”
• The complement of getting “at least one” particular event is that you get no
occurrences of that event.
P(at least one occurrence of event A) = 1 − P(no occurrences of event A)
5( t least 1) 1 ( )P A P None 
Example 1
If a couple plans to have 3 children, (Assume equally likely and independency)
a) what is the probability that they will have at least one girl?
b) What is the probability that they will have at most one girl?
6
Complementary Events: Rules ( ) 1 ( )P A P A 
Solution: Two ways: Write the sample space
P( 𝐴 ) = P(All boys)=
1
2
3
=
1
8
1) {ggg, ggb, gbg, gbb, bgg, bgb, bbg, bbb}, P (At least one girl) = 7/8
Interpretation There is a 7/8 probability that if a couple has 3 children,
at least 1 of them is a girl.
2) (At Least One) 1 ( )P P None 
3
1 1 7
(At Least One Girl) 1 1
2 8 8
P
 
     
 
1 3 4 1
8 8 8 2
   ) (At Most One Girl) (0) (1)b P P P 
( t least 1) 1 ( )P A P None 
Example 2
Assume that 3% of ties sold in the United States are bow ties (B). If 4
customers who purchased a tie are randomly selected, find the probability
that at least 1 purchased a bow tie.
7
Complementary Events: Rules ( ) 1 ( )P A P A 
   : 0.03, 1 0.03 0.97, 4Given P B P B n    
         no bow tiesP P B P B P B P B   
   at least 1 bow tie 1 no bow tiesP P 
 
4
0.97 0.885 
1 0.885 0.115  
( t least 1) 1 ( )P A P None 
 
4
1 0.97 
Example 3
Assume 6% of damaged iPads are damaged by backpacks.
If 20 damaged iPads are randomly selected, find the probability of getting at least one
that was damaged in a backpack. Is the probability high enough so that we can be
reasonably sure of getting at least one iPad damaged in a backpack?
8
Complementary Events: Rules ( ) 1 ( )P A P A 
   : 0.06, 1 0.06 0.94, 20Givven P D P D n    
   
20
no Damage by backpackP P D 
 
 
 
at least 1 Damaged by Bagback
1 None Damaged
P
P 
 
20
0.94 0.2901 
1 0.2901 0.7099  
Interpretation:
n = 20 & P = 0.7099 probability of getting at least 1 iPad damaged in a backpack.
This probability is not very high, so to be reasonably sure of getting at least 1 iPad damaged in a backpack, we should select more than
20 damaged iPads.
Very High Probability means: As n (the sample size) gets larger the probability should get closer to 1.
( t least 1) 1 ( )P A P None 
A conditional probability of an event is a probability obtained with the additional
information that some other event has already occurred.
Notation
P(B | A) denotes the conditional probability of event B occurring, given that event A
has already occurred.
It can be found by assuming that event A has occurred and then calculating the
probability that event B will occur.
9
4.3 Complements and Conditional Probability, and Bayes’Theorem
 
 
 
 
 
 
Conditional Probability
and
and
P A B
P A B
P B
P A B
P B A
P A


( )
Prob of A Given B: ( ) , ( ) 0
( )
( )
Prob of B Given A: ( ) ; ( ) 0
( )
P A B
P A B P B
P B
P A B
P B A P A
P A

 

 
Example 4
The probability that Sean parks in a no-parking zone and gets a parking
ticket is 0.08, and the probability that Sean cannot find a legal parking
space and has to park in the no-parking zone is 0.40. If Sean arrives at
school and has to park in a no-parking zone, find the probability that he
will get a parking ticket.
10
Conditional Probability
Solution: N = parking in a no-parking zone & T = getting a ticket
 
 
 
|
P N T
P T N
P N


0.08
0.20
0.40
 
   : and 0.08, 0.40Given P N T P N 
 
 
 
 
 
 
Conditional Probability
and
and
P A B
P A B
P B
P A B
P B A
P A


Example 5
A group of 150 randomly selected CEO’s was tested for
personality type. The following table gives the result of this
survey. (Contingency table or frequency distribution table
for Bivariate data)
a. If one CEO is selected at random from this group, find
the probability that this CEO
i. Has a Type A personality.
ii. Is a Woman.
iii. Is a Man given that he has a Type A personality.
iv. Has a Type B personality given that she is a Woman.
v. Has Type A personality and is a Woman.
11
blank Type A (A) Type B (B) Total
Men (M) 78 42 120
Women (W) 19 11 30
Total 97 53 150
 
 
 
|
P A B
P A B
P B


 
 
( )
n A
P A
n s
 78 19 97
150 150

 
 
 
( )
n w
P w
n s
 19 11 30
150 150

 
1
5

 
 
 
|
P M A
P M A
P A


78
97

 
 
 
|
P B W
P B W
P W


11/150 11
30/150 30
 
 
 
( )
n A W
P A W
n s

 
19
150

Example 5 Continued
A group of 150 randomly selected CEO’s was tested
for personality type. The following table gives the
result of this survey. (Contingency table or
frequency distribution table for Bivariate data)
a. If one CEO is selected at random from this group,
find the probability that this CEO
i. Is a Man or has a Type B personality
b. Are the events Woman and Type A personality
mutually exclusive? Are the events Type A and
Type B personalities mutually exclusive?
c. Are the events Type A personality and Men
independent?
12
 
 
 
|
P A B
P A B
P B


P(M or B) = P ( M ) + P ( B ) - P (M and B)
: ( ) ( | ) ( ) ( ) ( | )OR P M P B M P M B P B P M B  
120 53 120 42 120 53 53 42 131
150 150 150 120 150 150 150 53 150
       
19
( ) ,
150
P A w No  ( ) 0,P A B Yes 
 
120 78
( ) | ,
150 120
P M P M A NO  
blank Type A (A) Type B (B) Total
Men (M) 78 42 120
Women (W) 19 11 30
Total 97 53 150
( ) ( ) ( )
( )
( )
n M n B n M B
P M B
N s
 

120 53 42 131
150 150
 
 
Example 6: Find the following using the table:
a. If 1 of the 555 test subjects is randomly selected,
find the probability that the subject had a positive
test result, given that the subject actually uses
drugs. That is, find P(positive test result | subject
uses drugs).
b. If 1 of the 555 test subjects is randomly selected,
find the probability that the subject actually uses
drugs, given that he or she had a positive test result.
That is, find P(subject uses drugs | positive test
result).
13
blank Positive Test Result (P)
(Test shows drug use.)
Negative Test Result (N)
(Test shows no drug use.)
Total
Subject Uses
Drugs (D)
45
(True Positive)
5
(False Negative)
50
Subject Does Not
Use Drugs (ND)
25
(False Positive)
480
(True Negative)
505
Total 70 485 555
 
 
 
|
P P D
P P D
P D


45/555
50/555

45 9
0.9
50 10
  
 
 
 
|
P P D
P D P
P P


45/555
70/555

45 9
0.643
70 14
  
a. Interpretation: A subject who uses drugs has a
0.9 probability of getting a positive test result.
b. Interpretation: A
subject who gets a positive
test result, there is a 0.643
probability that this subject
actually uses drugs.
Note that P(positive test
result | subject uses drugs)
≠ P(subject uses drugs |
positive test result).
14
Confusion of the Inverse: In general, P(B | A) ≠ P(A | B).
There could be individual cases where P(A | B) and P(B | A ) are equal, but they
are generally not equal.
Incorrect assumption of: P(B | A) = P(A | B) is called confusion of the inverse.
Example 7: Consider these events: D: It is dark outdoors. M: It is midnight.
Ignore the Alaskan winter and other such anomalies.
P(D | M) = 1 (It is certain to be dark given that it is midnight.)
P(M | D) = 0 (The probability that it is exactly midnight given that it
dark is almost zero.)
Here, P(D | M) ≠ P(M | D).
Confusion of the inverse occurs when we incorrectly switch those
probability values or think that they are equal.

More Related Content

What's hot

Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: EstimationParag Shah
 
Session 4 Structural Model Evaluation
Session 4 Structural Model Evaluation Session 4 Structural Model Evaluation
Session 4 Structural Model Evaluation Dr. Firdaus Basbeth
 
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsSolution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsLong Beach City College
 
Chapter 12
Chapter 12Chapter 12
Chapter 12bmcfad01
 
Exploratory factor analysis
Exploratory factor analysisExploratory factor analysis
Exploratory factor analysisJames Neill
 
Basic Concepts of Inferential statistics
Basic Concepts of Inferential statisticsBasic Concepts of Inferential statistics
Basic Concepts of Inferential statisticsStatistics Consultation
 
Theorems And Conditional Probability
Theorems And Conditional ProbabilityTheorems And Conditional Probability
Theorems And Conditional Probabilitymathscontent
 
Chapter 3 260110 044503
Chapter 3 260110 044503Chapter 3 260110 044503
Chapter 3 260110 044503guest25d353
 
Chap01 describing data; graphical
Chap01 describing data;  graphicalChap01 describing data;  graphical
Chap01 describing data; graphicalJudianto Nugroho
 
Chapter 16
Chapter 16Chapter 16
Chapter 16bmcfad01
 
Business Statistics Chapter 9
Business Statistics Chapter 9Business Statistics Chapter 9
Business Statistics Chapter 9Lux PP
 
Hypothesis testing , T test , chi square test, z test
Hypothesis testing , T test , chi square test, z test Hypothesis testing , T test , chi square test, z test
Hypothesis testing , T test , chi square test, z test Irfan Ullah
 

What's hot (20)

Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: Estimation
 
Session 4 Structural Model Evaluation
Session 4 Structural Model Evaluation Session 4 Structural Model Evaluation
Session 4 Structural Model Evaluation
 
Probability
ProbabilityProbability
Probability
 
Nonparametric and Distribution- Free Statistics
Nonparametric and Distribution- Free Statistics Nonparametric and Distribution- Free Statistics
Nonparametric and Distribution- Free Statistics
 
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsSolution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
 
Chapter 12
Chapter 12Chapter 12
Chapter 12
 
Conditional Probability
Conditional ProbabilityConditional Probability
Conditional Probability
 
Bayes Theorem
Bayes TheoremBayes Theorem
Bayes Theorem
 
STATISTIC ESTIMATION
STATISTIC ESTIMATIONSTATISTIC ESTIMATION
STATISTIC ESTIMATION
 
Exploratory factor analysis
Exploratory factor analysisExploratory factor analysis
Exploratory factor analysis
 
Basic Concepts of Inferential statistics
Basic Concepts of Inferential statisticsBasic Concepts of Inferential statistics
Basic Concepts of Inferential statistics
 
Malhotra21
Malhotra21Malhotra21
Malhotra21
 
Theorems And Conditional Probability
Theorems And Conditional ProbabilityTheorems And Conditional Probability
Theorems And Conditional Probability
 
Probability
ProbabilityProbability
Probability
 
Chapter 3 260110 044503
Chapter 3 260110 044503Chapter 3 260110 044503
Chapter 3 260110 044503
 
Probability
ProbabilityProbability
Probability
 
Chap01 describing data; graphical
Chap01 describing data;  graphicalChap01 describing data;  graphical
Chap01 describing data; graphical
 
Chapter 16
Chapter 16Chapter 16
Chapter 16
 
Business Statistics Chapter 9
Business Statistics Chapter 9Business Statistics Chapter 9
Business Statistics Chapter 9
 
Hypothesis testing , T test , chi square test, z test
Hypothesis testing , T test , chi square test, z test Hypothesis testing , T test , chi square test, z test
Hypothesis testing , T test , chi square test, z test
 

Similar to Complements conditional probability bayes theorem

1 Probability Please read sections 3.1 – 3.3 in your .docx
 1 Probability   Please read sections 3.1 – 3.3 in your .docx 1 Probability   Please read sections 3.1 – 3.3 in your .docx
1 Probability Please read sections 3.1 – 3.3 in your .docxaryan532920
 
Probability Theory
Probability TheoryProbability Theory
Probability TheoryParul Singh
 
Probability and its basic concept
Probability and its basic conceptProbability and its basic concept
Probability and its basic conceptAhsanAjmal1
 
probability_statistics_presentation.pptx
probability_statistics_presentation.pptxprobability_statistics_presentation.pptx
probability_statistics_presentation.pptxvietnam5hayday
 
Probability concepts for Data Analytics
Probability concepts for Data AnalyticsProbability concepts for Data Analytics
Probability concepts for Data AnalyticsSSaudia
 
Probability concepts-applications-1235015791722176-2
Probability concepts-applications-1235015791722176-2Probability concepts-applications-1235015791722176-2
Probability concepts-applications-1235015791722176-2satysun1990
 
Probability Concepts Applications
Probability Concepts  ApplicationsProbability Concepts  Applications
Probability Concepts Applicationsguest44b78
 
1-Probability-Conditional-Bayes.pdf
1-Probability-Conditional-Bayes.pdf1-Probability-Conditional-Bayes.pdf
1-Probability-Conditional-Bayes.pdfKrushangDilipbhaiPar
 
Chapter 05
Chapter 05Chapter 05
Chapter 05bmcfad01
 
Triola t11 chapter4
Triola t11 chapter4Triola t11 chapter4
Triola t11 chapter4babygirl5810
 

Similar to Complements conditional probability bayes theorem (20)

Addition rule and multiplication rule
Addition rule and multiplication rule  Addition rule and multiplication rule
Addition rule and multiplication rule
 
Basic Concepts of Probability
Basic Concepts of ProbabilityBasic Concepts of Probability
Basic Concepts of Probability
 
Basic concepts of probability
Basic concepts of probabilityBasic concepts of probability
Basic concepts of probability
 
1 Probability Please read sections 3.1 – 3.3 in your .docx
 1 Probability   Please read sections 3.1 – 3.3 in your .docx 1 Probability   Please read sections 3.1 – 3.3 in your .docx
1 Probability Please read sections 3.1 – 3.3 in your .docx
 
Basic concepts of probability
Basic concepts of probability Basic concepts of probability
Basic concepts of probability
 
tps5e_Ch5_3.ppt
tps5e_Ch5_3.ppttps5e_Ch5_3.ppt
tps5e_Ch5_3.ppt
 
tps5e_Ch5_3.ppt
tps5e_Ch5_3.ppttps5e_Ch5_3.ppt
tps5e_Ch5_3.ppt
 
Probability Theory
Probability TheoryProbability Theory
Probability Theory
 
Probability and its basic concept
Probability and its basic conceptProbability and its basic concept
Probability and its basic concept
 
probability_statistics_presentation.pptx
probability_statistics_presentation.pptxprobability_statistics_presentation.pptx
probability_statistics_presentation.pptx
 
Addition Rule and Multiplication Rule
Addition Rule and Multiplication RuleAddition Rule and Multiplication Rule
Addition Rule and Multiplication Rule
 
Probability concepts for Data Analytics
Probability concepts for Data AnalyticsProbability concepts for Data Analytics
Probability concepts for Data Analytics
 
Probability concepts-applications-1235015791722176-2
Probability concepts-applications-1235015791722176-2Probability concepts-applications-1235015791722176-2
Probability concepts-applications-1235015791722176-2
 
Probability Concepts Applications
Probability Concepts  ApplicationsProbability Concepts  Applications
Probability Concepts Applications
 
1-Probability-Conditional-Bayes.pdf
1-Probability-Conditional-Bayes.pdf1-Probability-Conditional-Bayes.pdf
1-Probability-Conditional-Bayes.pdf
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
Stat11t chapter4
Stat11t chapter4Stat11t chapter4
Stat11t chapter4
 
Lecture3
Lecture3Lecture3
Lecture3
 
Triola t11 chapter4
Triola t11 chapter4Triola t11 chapter4
Triola t11 chapter4
 
03 Conditional
03 Conditional03 Conditional
03 Conditional
 

More from Long Beach City College

Practice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samplesPractice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samplesLong Beach City College
 
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaSolution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaLong Beach City College
 
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaPractice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaLong Beach City College
 
Practice test ch 8 hypothesis testing ch 9 two populations
Practice test ch 8 hypothesis testing ch 9 two populationsPractice test ch 8 hypothesis testing ch 9 two populations
Practice test ch 8 hypothesis testing ch 9 two populationsLong Beach City College
 
Solution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability DistributionSolution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability DistributionLong Beach City College
 
Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)Long Beach City College
 

More from Long Beach City College (20)

Practice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samplesPractice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samples
 
Practice Test Ch 8 Hypothesis Testing
Practice Test Ch 8 Hypothesis TestingPractice Test Ch 8 Hypothesis Testing
Practice Test Ch 8 Hypothesis Testing
 
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaSolution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
 
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaPractice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anova
 
Practice test ch 8 hypothesis testing ch 9 two populations
Practice test ch 8 hypothesis testing ch 9 two populationsPractice test ch 8 hypothesis testing ch 9 two populations
Practice test ch 8 hypothesis testing ch 9 two populations
 
Solution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability DistributionSolution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
 
Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)
 
Practice Test 2 Solutions
Practice Test 2  SolutionsPractice Test 2  Solutions
Practice Test 2 Solutions
 
Practice Test 2 Probability
Practice Test 2 ProbabilityPractice Test 2 Probability
Practice Test 2 Probability
 
Practice Test 1 solutions
Practice Test 1 solutions  Practice Test 1 solutions
Practice Test 1 solutions
 
Practice Test 1
Practice Test 1Practice Test 1
Practice Test 1
 
Stat sample test ch 12 solution
Stat sample test ch 12 solutionStat sample test ch 12 solution
Stat sample test ch 12 solution
 
Stat sample test ch 12
Stat sample test ch 12Stat sample test ch 12
Stat sample test ch 12
 
Stat sample test ch 11
Stat sample test ch 11Stat sample test ch 11
Stat sample test ch 11
 
Stat sample test ch 10
Stat sample test ch 10Stat sample test ch 10
Stat sample test ch 10
 
Two-Way ANOVA
Two-Way ANOVATwo-Way ANOVA
Two-Way ANOVA
 
One-Way ANOVA
One-Way ANOVAOne-Way ANOVA
One-Way ANOVA
 
Contingency Tables
Contingency TablesContingency Tables
Contingency Tables
 
Goodness of Fit Notation
Goodness of Fit NotationGoodness of Fit Notation
Goodness of Fit Notation
 
Regression
RegressionRegression
Regression
 

Recently uploaded

Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Recently uploaded (20)

Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 

Complements conditional probability bayes theorem

  • 1. Elementary Statistics Chapter 4: Probability 4.3 Complements and Conditional Probability, and Bayes’ Theorem 1
  • 2. Chapter 4: Probability 4.1 Basic Concepts of Probability 4.2 Addition Rule and Multiplication Rule 4.3 Complements and Conditional Probability, and Bayes’ Theorem 4.4 Counting 4.5 Probabilities Through Simulations (available online) 2 Objectives: • Determine sample spaces and find the probability of an event, using classical probability or empirical probability. • Find the probability of compound events, using the addition rules. • Find the probability of compound events, using the multiplication rules. • Find the conditional probability of an event. • Find the total number of outcomes in a sequence of events, using the fundamental counting rule. • Find the number of ways that r objects can be selected from n objects, using the permutation rule. • Find the number of ways that r objects can be selected from n objects without regard to order, using the combination rule. • Find the probability of an event, using the counting rules.
  • 3. Notation: P(A) = the probability of event A , 0 ≤ P(A) ≤ 1 The sum of the probabilities of all the outcomes in the sample space is 1: 𝑃𝑖 = 1 Impossible Set: If an event E cannot occur (i.e., the event contains no members in the sample space), its probability is 0. P(A) = 0 Sure (Certain) Set: If an event E is certain, then the probability of E is 1. P(E) = 1 Complementary Events: 𝐴: consists of all outcomes that are not included in the outcomes of event A. 𝑃 𝐴 = 1 − 𝑃(𝐴) The actual odds against event A: O 𝐴 = 𝑃 𝐴 𝑃(𝐴) , (expressed as form of a:b or “a to b”); a and b are integers. The actual odds in favor of event A: O 𝐴 = 𝑃 𝐴 𝑃 𝐴 (the reciprocal of the actual odds against the even) If the odds against A are a:b, then the odds in favor of A are b:a. The payoff odds against event A: Payoff odds against event A = (net profit):(amount bet) Payoff odds against event A = net profit amount bet net profit = (Payoff odds against event A)(amount bet) Value: Give the exact fraction or decimal or round off final decimal results to 3 significant digits. 3 Recall 4.1 Basic Concepts of Probability
  • 4. Addition Rule: P(A or B) = P(in a single trial, event A occurs or event B occurs or they both occur) P(A or B) = P(A) + P(B) − P(A and B) where P(A and B) denotes the probability that A and B both occur at the same time as an outcome in a trial of a procedure. Multiplication rule: A tool to find P(A and B), which is the probability that event A occurs and event B occurs. The word “and” in the multiplication rule is associated with the multiplication of probabilities. Sampling with replacement: Selections are independent events. P(A ∩ B) = P(A)  P(B) Sampling without replacement: Selections are dependent events. P(A and B) = P(A)  P(B | A) Disjoint (or mutually exclusive): Events A and B are disjoint (or mutually exclusive) if they cannot occur at the same time. (That is, disjoint events do not overlap.) Complementary Events: Rules 𝑷 𝑨 + 𝑷 𝑨 = 𝟏 𝐴 𝑎𝑛𝑑 𝐴 must be disjoint. Recall 4.2 Addition & Multiplication Rules Venn Diagram for Events That Are Not Disjoint Venn Diagram for Disjoint Events 4
  • 5. Key Concept: We extend the use of the multiplication rule to include the probability that among several trials, we get at least one of some specified event. We consider conditional probability: the probability of an event occurring when we have additional information that some other event has already occurred. We provide a brief introduction to Bayes’ theorem. 4.3 Complements and Conditional Probability, and Bayes’Theorem Complements: The Probability of “At Least One” When finding the probability of some event occurring “at least once,” we should understand the following: • “At least one” has the same meaning as “one or more.” • The complement of getting “at least one” particular event is that you get no occurrences of that event. P(at least one occurrence of event A) = 1 − P(no occurrences of event A) 5( t least 1) 1 ( )P A P None 
  • 6. Example 1 If a couple plans to have 3 children, (Assume equally likely and independency) a) what is the probability that they will have at least one girl? b) What is the probability that they will have at most one girl? 6 Complementary Events: Rules ( ) 1 ( )P A P A  Solution: Two ways: Write the sample space P( 𝐴 ) = P(All boys)= 1 2 3 = 1 8 1) {ggg, ggb, gbg, gbb, bgg, bgb, bbg, bbb}, P (At least one girl) = 7/8 Interpretation There is a 7/8 probability that if a couple has 3 children, at least 1 of them is a girl. 2) (At Least One) 1 ( )P P None  3 1 1 7 (At Least One Girl) 1 1 2 8 8 P           1 3 4 1 8 8 8 2    ) (At Most One Girl) (0) (1)b P P P  ( t least 1) 1 ( )P A P None 
  • 7. Example 2 Assume that 3% of ties sold in the United States are bow ties (B). If 4 customers who purchased a tie are randomly selected, find the probability that at least 1 purchased a bow tie. 7 Complementary Events: Rules ( ) 1 ( )P A P A     : 0.03, 1 0.03 0.97, 4Given P B P B n              no bow tiesP P B P B P B P B       at least 1 bow tie 1 no bow tiesP P    4 0.97 0.885  1 0.885 0.115   ( t least 1) 1 ( )P A P None    4 1 0.97 
  • 8. Example 3 Assume 6% of damaged iPads are damaged by backpacks. If 20 damaged iPads are randomly selected, find the probability of getting at least one that was damaged in a backpack. Is the probability high enough so that we can be reasonably sure of getting at least one iPad damaged in a backpack? 8 Complementary Events: Rules ( ) 1 ( )P A P A     : 0.06, 1 0.06 0.94, 20Givven P D P D n         20 no Damage by backpackP P D        at least 1 Damaged by Bagback 1 None Damaged P P    20 0.94 0.2901  1 0.2901 0.7099   Interpretation: n = 20 & P = 0.7099 probability of getting at least 1 iPad damaged in a backpack. This probability is not very high, so to be reasonably sure of getting at least 1 iPad damaged in a backpack, we should select more than 20 damaged iPads. Very High Probability means: As n (the sample size) gets larger the probability should get closer to 1. ( t least 1) 1 ( )P A P None 
  • 9. A conditional probability of an event is a probability obtained with the additional information that some other event has already occurred. Notation P(B | A) denotes the conditional probability of event B occurring, given that event A has already occurred. It can be found by assuming that event A has occurred and then calculating the probability that event B will occur. 9 4.3 Complements and Conditional Probability, and Bayes’Theorem             Conditional Probability and and P A B P A B P B P A B P B A P A   ( ) Prob of A Given B: ( ) , ( ) 0 ( ) ( ) Prob of B Given A: ( ) ; ( ) 0 ( ) P A B P A B P B P B P A B P B A P A P A      
  • 10. Example 4 The probability that Sean parks in a no-parking zone and gets a parking ticket is 0.08, and the probability that Sean cannot find a legal parking space and has to park in the no-parking zone is 0.40. If Sean arrives at school and has to park in a no-parking zone, find the probability that he will get a parking ticket. 10 Conditional Probability Solution: N = parking in a no-parking zone & T = getting a ticket       | P N T P T N P N   0.08 0.20 0.40      : and 0.08, 0.40Given P N T P N              Conditional Probability and and P A B P A B P B P A B P B A P A  
  • 11. Example 5 A group of 150 randomly selected CEO’s was tested for personality type. The following table gives the result of this survey. (Contingency table or frequency distribution table for Bivariate data) a. If one CEO is selected at random from this group, find the probability that this CEO i. Has a Type A personality. ii. Is a Woman. iii. Is a Man given that he has a Type A personality. iv. Has a Type B personality given that she is a Woman. v. Has Type A personality and is a Woman. 11 blank Type A (A) Type B (B) Total Men (M) 78 42 120 Women (W) 19 11 30 Total 97 53 150       | P A B P A B P B       ( ) n A P A n s  78 19 97 150 150        ( ) n w P w n s  19 11 30 150 150    1 5        | P M A P M A P A   78 97        | P B W P B W P W   11/150 11 30/150 30       ( ) n A W P A W n s    19 150 
  • 12. Example 5 Continued A group of 150 randomly selected CEO’s was tested for personality type. The following table gives the result of this survey. (Contingency table or frequency distribution table for Bivariate data) a. If one CEO is selected at random from this group, find the probability that this CEO i. Is a Man or has a Type B personality b. Are the events Woman and Type A personality mutually exclusive? Are the events Type A and Type B personalities mutually exclusive? c. Are the events Type A personality and Men independent? 12       | P A B P A B P B   P(M or B) = P ( M ) + P ( B ) - P (M and B) : ( ) ( | ) ( ) ( ) ( | )OR P M P B M P M B P B P M B   120 53 120 42 120 53 53 42 131 150 150 150 120 150 150 150 53 150         19 ( ) , 150 P A w No  ( ) 0,P A B Yes    120 78 ( ) | , 150 120 P M P M A NO   blank Type A (A) Type B (B) Total Men (M) 78 42 120 Women (W) 19 11 30 Total 97 53 150 ( ) ( ) ( ) ( ) ( ) n M n B n M B P M B N s    120 53 42 131 150 150    
  • 13. Example 6: Find the following using the table: a. If 1 of the 555 test subjects is randomly selected, find the probability that the subject had a positive test result, given that the subject actually uses drugs. That is, find P(positive test result | subject uses drugs). b. If 1 of the 555 test subjects is randomly selected, find the probability that the subject actually uses drugs, given that he or she had a positive test result. That is, find P(subject uses drugs | positive test result). 13 blank Positive Test Result (P) (Test shows drug use.) Negative Test Result (N) (Test shows no drug use.) Total Subject Uses Drugs (D) 45 (True Positive) 5 (False Negative) 50 Subject Does Not Use Drugs (ND) 25 (False Positive) 480 (True Negative) 505 Total 70 485 555       | P P D P P D P D   45/555 50/555  45 9 0.9 50 10          | P P D P D P P P   45/555 70/555  45 9 0.643 70 14    a. Interpretation: A subject who uses drugs has a 0.9 probability of getting a positive test result. b. Interpretation: A subject who gets a positive test result, there is a 0.643 probability that this subject actually uses drugs. Note that P(positive test result | subject uses drugs) ≠ P(subject uses drugs | positive test result).
  • 14. 14 Confusion of the Inverse: In general, P(B | A) ≠ P(A | B). There could be individual cases where P(A | B) and P(B | A ) are equal, but they are generally not equal. Incorrect assumption of: P(B | A) = P(A | B) is called confusion of the inverse. Example 7: Consider these events: D: It is dark outdoors. M: It is midnight. Ignore the Alaskan winter and other such anomalies. P(D | M) = 1 (It is certain to be dark given that it is midnight.) P(M | D) = 0 (The probability that it is exactly midnight given that it dark is almost zero.) Here, P(D | M) ≠ P(M | D). Confusion of the inverse occurs when we incorrectly switch those probability values or think that they are equal.