Stat 321 – Lecture 8Last Time - Conditional ProbabilityLast Time - IndependenceExample 3: ELISA TestTable SolutionExample 1: Governator VotesSlide 7Slide 8Law of Total ProbabilitySlide 10General ResultExample 2: Randomized ResponseSlide 13Slide 14For FridayStat 321 – Lecture 8Law of Total Probability (2.4)Last Time - Conditional ProbabilityP(A|B) = probability of event A occurring given that event B has occurredTo calculate:restrict sample space to outcomes in B (if equally likely)P(A|B) = P(AB)/P(B)PropertiesP(A|B) vs. P(B|A)P(A'|B) = 1-P(A|B)Multiplication rule: P(AB)=P(B)P(A|B)=P(A)P(B|A)Last Time - IndependenceEvents A and B are independent if P(A|B) = P(A) P(B|A) = P(B)Multiplication Rule for independent eventsP(AB) = P(A|B)P(B) = P(A)P(B) = P(B|A)P(A) = P(A)P(B)To “check” independenceSee if P(A|B) = P(A) or if P(B|A) = P(B) or if P(AB) = P(A)P(B)ABExample 3: ELISA TestGivenIf has AIDS, test says AIDS 97.7% of timeIf doesn’t have AIDS, test says no AIDS 92.6% of timeAbout .5% of people have AIDSGiven that someone has tested positive, what is the probability they have AIDS?Table Solution Positive test Negative test TotalCarries AIDS virusDoes not carry AIDSTotal1,000,000Probability is only .062 that a person who tests positive actually has AIDS!5000995,0004885 1159213707363078515921485Of those with positive test, proportion with AIDS: 4885/78515 = .0622Most physicians think the probability is about 60-70% - confusion of the inverseP(AIDS | positive test) ≠ P(positive test | AIDS)Example 1: Governator VotesCNN.com52% of the white votes17% of the black votes31% of the Hispanic votes37% of the votes from other races. So overall (.52+.17+.31+.37)/4 = .3425 => 34% of votes?Example 1: Governator VotesGiven:.52 = P(A|W).17 = P(A|B).31 = P(A|H).37 = P(A|O).70 = P(W)…Example 1: Governator VotesWhite Black Hisp. Other TotalArnoldA'Total.70 .06 .18 .06 1.00700 60 180 60 1000.52(700)=364P(AW)=.364.0102 .0558 .0222=P(A).4522P(A|W)P(W) + P(A|B)P(B) + P(A|H)P(H) + P(A|O)P(O) = P(A)Law of Total ProbabilityP(B)=P(B|Ai)P(Ai) where {Ai}=partition.70 .18 .06White H B O.06Arnold1234AWAWAHABP(A|W)P(W)P(A|W)P(W)P(A|H)P(H)P(A|B)P(B)Law of Total ProbabilityWHBOA|WNot A|WA|HNot A|HA|BNot A|BA|ONot A|O.70.18.06.06.52.31.17.37P(AW)=(.52)(.70)=.364P(AH)=(.31)(.18)=.0558P(AB)=(.17)(.06)=.0102P(AO)=(.37)(.06)=.0222.364+.0558+.0102+.0222 =.4522P(A)?P(A'W)=(.48)(.70)=.336General ResultLaw of Total ProbabilityP(B)=P(B|A1)P(A1)+P(B|A2)P(A2)+…= (.7)(.52)+(.18)(.31)+(.17)(.06)+.37(.06)Example 2: Randomized ResponseTechnique for asking sensitive questionsRandomly decide which question respondents will answer: sensitive or boringWork backwards with probability rules to estimate proportions for sensitive questionExample 2: Randomized ResponseFlip fair coinHeads: answer sensitive questionTails: answer boring question=“does your home phone number end in even digit?”Determine proportion of “yeses”Define eventsY=“response is yes”S=“respondent answered sensitive question”Example 2: Randomized ResponseRespondents are ensured confidentialityCan still obtain estimate for P(Y|S)For FridayLab 3 dueFinish reading Ch. 2 (Section 2.4!)Will not begin a new lab but have a regular class session (in lab)Review handout available
View Full Document