Académique Documents
Professionnel Documents
Culture Documents
Probability
6.1
Random Experiment
arandomexperimentisanactionorprocessthatleadsto
oneofseveralpossibleoutcomes.Forexample:
Experiment
Outcomes
Flipacoin
Heads,Tails
ExamMarks
Numbers:0,1,2,...,100
AssemblyTime
t>0seconds
CourseGrades
F,D,C,B,A,A+
Probabilities
Listtheoutcomesofarandomexperiment
List:CalledtheSampleSpace
Outcomes:CalledtheSimpleEvents
Thislistmustbeexhaustive,i.e.ALLpossibleoutcomes
included.
Dieroll{1,2,3,4,5}
Dieroll{1,2,3,4,5,6}
Thelistmustbemutuallyexclusive,i.e.notwo
outcomescanoccuratthesametime:
Dieroll{oddnumberorevennumber}
Dieroll{numberlessthan4orevennumber}
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Sample Space
Alistofexhaustive[dontleaveanythingout]andmutually
exclusiveoutcomes[impossiblefor2differenteventsto
occurinthesameexperiment]iscalledasamplespaceandis
denotedbyS.
TheoutcomesaredenotedbyO1,O2,,Ok
Usingnotationfromsettheory,wecanrepresentthesample
spaceanditsoutcomesas:
S={O1,O2,,Ok}
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Requirements of Probabilities
GivenasamplespaceS={O1,O2,,Ok},theprobabilities
assignedtotheoutcomemustsatisfytheserequirements:
(1) Theprobabilityofanyoutcomeisbetween0and1
i.e.0P(Oi)1foreachi,and
(2) Thesumoftheprobabilitiesofalltheoutcomesequals1
i.e.P(O1)+P(O2)++P(Ok)=1
P(Oi)representstheprobabilityofoutcomei
Approaches to Assigning
Probabilities
Therearethreewaystoassignaprobability,P(Oi),toan
outcome,Oi,namely:
Classicalapproach:makecertainassumptions(suchas
equallylikely,independence)aboutsituation.
Relativefrequency:assigningprobabilitiesbasedon
experimentationorhistoricaldata.
Subjectiveapproach:Assigningprobabilitiesbasedonthe
assignorsjudgment.[Bayesian]
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Classical Approach
Ifanexperimenthasnpossibleoutcomes[allequallylikely
tooccur],thismethodwouldassignaprobabilityof1/nto
eachoutcome.
Experiment:
SampleSpace:
Probabilities:
Rollingadie
S={1,2,3,4,5,6}
Eachsamplepointhasa1/6chanceof
occurring.
Whataboutrandomlyselectingastudentandobservingtheir
gender?S={Male,Female}
Aretheseprobabilities?
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Classical Approach
Experiment:Rolling2die[dice]andsumming2numbers
ontop.
What are the
SampleSpace:S={2,3,,12}
underlying, unstated
ProbabilityExamples:
assumptions??
P(2)=1/36
1
2
3
4
5
6
P(7)=6/36
P(10)=3/36
10
10
11
10
11
12
DesktopsSold
#ofDays
10
12
Fromthiswecanconstruct
theestimatedprobabilitiesofanevent 4
(i.e.the#ofdesktopsoldonagivenday)
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
#ofDays
DesktopsSold
2/30 = .07 =
P(X=1)
10
10/30 = .33 =
P(X=2)
12
12/30 = .40 =
P(X=3)
5/30 = .17 =
P(X=4)
3
4
= 1.00
Thereisa40%chanceBits&Byteswillsell3desktopsonanygiven
day[Basedonestimatesobtainedfromsampleof30days]
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Subjective Approach
Inthesubjectiveapproachwedefineprobabilityasthe
degreeofbeliefthatweholdintheoccurrenceofanevent
P(youdropthiscourse)
P(NASAsuccessfullylandamanonthemoon)
P(girlfriendsaysyeswhenyouaskhertomarryyou)
Interpreting Probability
Onewaytointerpretprobabilityisthis:
Ifarandomexperimentisrepeatedaninfinitenumberof
times,therelativefrequencyforanygivenoutcomeisthe
probabilityofthisoutcome.
Forexample,theprobabilityofheadsinflipofabalanced
coinis.5,determinedusingtheclassicalapproach.The
probabilityisinterpretedasbeingthelongtermrelative
frequencyofheadsifthecoinisflippedaninfinitenumber
oftimes.
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Thereareseveraltypesofcombinationsandrelationships
betweenevents:
Complementofanevent[everythingotherthanthatevent]
Intersectionoftwoevents[eventAandeventB]or[A*B]
Unionoftwoevents[eventAoreventB]or[A+B]
Example 6.1
Whyaresomemutualfundmanagersmoresuccessfulthan
others?Onepossiblefactoriswherethemanagerearnedhis
orherMBA.Thefollowingtablecomparesmutualfund
performanceagainsttherankingoftheschoolwherethe
fundmanagerearnedtheirMBA:Wheredowegetthese
probabilitiesfrom?[populationorsample?]
Mutual fund outperforms
the market
.11
.29
.06
.54
VennDiagrams
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Example 6.1
Alternatively,wecouldintroduceshorthandnotationto
representtheevents:
A1=Fundmanagergraduatedfromatop20MBAprogram
A2=Fundmanagerdidnotgraduatefromatop20MBAprogram
B1=Fundoutperformsthemarket
B2=Funddoesnotoutperformthemarket
B1
B2
A1
.11
.29
A2
.06
.54
E.g.P(A2andB1)=.06
=theprobabilityafundoutperformsthemarket
andthemanagerisntfromatop20school.
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Marginal Probabilities
Marginalprobabilitiesarecomputedbyaddingacrossrows
anddowncolumns;thatistheyarecalculatedinthemargins
ofthetable:
P(A2)=.06+.54
whatstheprobabilityafund
managerisntfromatopschool?
B1
B2
P(Ai)
A1
.11
.29
.40
A2
.06
.54
.60
P(Bj)
.17
.83
1.00
P(B1)=.11+.06
whatstheprobabilityafund
outperformsthemarket?
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
BOTHmarginsmustaddto1
(usefulerrorcheck)
Conditional Probability
Conditionalprobabilityisusedtodeterminehowtwoevents
arerelated;thatis,wecandeterminetheprobabilityofone
eventgiventheoccurrenceofanotherrelatedevent.
Experiment:randomselectonestudentinclass.
P(randomlyselectedstudentismale)=
P(randomlyselectedstudentismale/studentison3rdrow)=
ConditionalprobabilitiesarewrittenasP(A|B)andreadas
theprobabilityofAgivenBandiscalculatedas:
Conditional Probability
Again,theprobabilityofaneventgiventhatanotherevent
hasoccurrediscalledaconditionalprobability
P(AandB)=P(A)*P(B/A)=P(B)*P(A/B)botharetrue
Keepthisinmind!
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Conditional Probability
Example6.2Whatstheprobabilitythatafundwill
outperformthemarketgiventhatthemanagergraduated
fromatop20MBAprogram?
Recall:
A1=Fundmanagergraduatedfromatop20MBAprogram
A2=Fundmanagerdidnotgraduatefromatop20MBAprogram
B1=Fundoutperformsthemarket
B2=Funddoesnotoutperformthemarket
Thus,wewanttoknowwhatisP(B1|A1)?
Conditional Probability
WewanttocalculateP(B1|A1)
B1
B2
P(Ai)
A1
.11
.29
.40
A2
.06
.54
.60
P(Bj)
.17
.83
1.00
Thus,thereisa27.5%chancethatthatafundwilloutperformthemarket
giventhatthemanagergraduatedfromatop20MBAprogram.
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Independence
Oneoftheobjectivesofcalculatingconditionalprobability
istodeterminewhethertwoeventsarerelated.
Inparticular,wewouldliketoknowwhethertheyare
independent,thatis,iftheprobabilityofoneeventisnot
affectedbytheoccurrenceoftheotherevent.
TwoeventsAandBaresaidtobeindependentif
P(A|B)=P(A)
and
P(B|A)=P(B)
P(youhaveaflattiregoinghome/radioquitsworking)
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Independence
Forexample,wesawthat
P(B1|A1)=.275
ThemarginalprobabilityforB1is:P(B1)=0.17
SinceP(B1|A1)P(B1),B1andA1arenotindependentevents.
Statedanotherway,theyaredependent.Thatis,the
probabilityofoneevent(B1)isaffectedbytheoccurrenceof
theotherevent(A1).
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Union
Determinetheprobabilitythatafundoutperforms(B 1)
orthemanagergraduatedfromatop20MBAprogram(A 1).
A1orB1occurswhenever:
A1andB1occurs,A1andB2occurs,orA2andB1occurs
B1
B2
P(Ai)
A1
.11
.29
.40
A2
.06
.54
.60
P(Bj)
.17
.83
1.00
Example 6.5
Agraduatestatisticscoursehassevenmaleandthreefemale
students.Theprofessorwantstoselecttwostudentsat
randomtohelpherconductaresearchproject.Whatisthe
probabilitythatthetwostudentschosenarefemale?
P(F1*F2)=???
LetF1representtheeventthatthefirststudentisfemale
P(F1)=3/10=.30
Whataboutthesecondstudent?
P(F2/F1)=2/9=.22
P(F1*F2)=P(F1)*P(F2/F1)=(.30)*(.22)=0.066
NOTE:2eventsareNOTindependent.
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Example 6.6
TheprofessorinExample6.5isunavailable.Her
replacementwillteachtwoclasses.Hisstyleistoselectone
studentatrandomandpickonhimorherintheclass.What
istheprobabilitythatthetwostudentschosenarefemale?
Bothclasseshave3femaleand7malestudents.
P(F1*F2)=P(F1)*P(F2/F1)=P(F1)*P(F2)
=(3/10)*(3/10)=9/100=0.09
NOTE:2eventsAREindependent.
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Addition Rule
Additionruleprovidesawaytocomputetheprobabilityof
eventAorBorbothAandBoccurring;i.e.theunionofA
andB.
P(AorB)=P(A+B)=P(A)+P(B)P(AandB)
WhydowesubtractthejointprobabilityP(AandB)from
thesumoftheprobabilitiesofAandB?
P(AorB)=P(A)+P(B)P(AandB)
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Addition Rule
P(A1)=.11+.29=.40
P(B1)=.11+.06=.17
ByaddingP(A)plusP(B)weaddP(AandB)twice.TocorrectwesubtractP(Aand
B)fromP(A)+P(B)
B1
A1
B1
B2
P(Ai)
A1
.11
.29
.40
A2
.06
.54
.60
P(Bj)
.17
.83
1.00
(A1 or B1) = P(A) + P(B) P(A and B) = .40 + .17 - .11 = .46
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
IfandAandBaremutuallyexclusivetheoccurrenceofone
eventmakestheotheroneimpossible.Thismeansthat
P(AandB)=P(A*B)=0
Theadditionruleformutuallyexclusiveeventsis
P(AorB)=P(A)+P(B)
OnlyifAandBareMutuallyExclusive.
Example 6.7
Inalargecity,twonewspapersarepublished,theSunand
thePost.Thecirculationdepartmentsreportthat22%ofthe
cityshouseholdshaveasubscriptiontotheSunand35%
subscribetothePost.Asurveyrevealsthat6%ofall
householdssubscribetobothnewspapers.Whatproportion
ofthecityshouseholdssubscribetoeithernewspaper?
Thatis,whatistheprobabilityofselectingahouseholdat
randomthatsubscribestotheSunorthePostorboth?
P(SunorPost)=P(Sun)+P(Post)P(SunandPost)
=.22+.35.06=.51
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
First selection
Second selection
)=
P(F|F
/1
3
=
P(F)
P( M
)
This is P(F|F), the probability
of selecting a female student
second, given that a female
was already chosen first
= 7/1
0
P( M|F
)
2/9
= 7/9
= 3/
)
M
|
P(F
P( M|M
)
= 6/9
Probability Trees
Attheendsofthebranches,wecalculatejoint
probabilitiesastheproductoftheindividualprobabilities
ontheprecedingbranches.
First selection
Second selection
2/9
=
)
F
|
P( F
/1
3
=
P(F)
P( M
)=7
/10
P( M|F
)
P(FF)=(3/10)(2/9)
= 7/9
P(FM)=(3/10)(7/9)
P(MF)=(7/10)(3/9)
= 6/9
P(MM)=(7/10)(6/9)
= 3/
)
M
|
P( F
P( M|M
)
SampleSpace:[F1*F2,F1*M2,M1*F2,M1*M2]
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
Joint probabilities
Probability Trees
Note:thereisnorequirementthatthebranchessplitsbe
binary,northatthetreeonlygoestwolevelsdeep,orthat
therebethesamenumberofsplitsateachsubnode
Example 6.8
Lawschoolgradsmustpassabarexam.Supposepassrateforfirst
timetesttakersis72%.Theycanrewriteiftheyfailand88%pass
theirsecondattempt[P(passtake2/failtake1)].Whatisthe
probabilitythatarandomlygradpassesthebar?[samplespace?]
P(Pass) = .72
First exam
.
=
)
s
s
P(Pa
72
P( Fa
il) =
.2
Second exam
.88
=
)
l
i
a
s| F
P(Pas
P( Fa
il
|Fail)
= .12
Bayes Law
BayesLawisnamedforThomasBayes,aneighteenth
centurymathematician.
Initsmostbasicform,ifweknowP(B|A),
wecanapplyBayesLawtodetermineP(A|B)
P(B|A)
P(A|B)
forexample
Breaking News: New test for early detection of cancer has been
developed.
Let
C=eventthatpatienthascancer
Cc=eventthatpatientdoesnothavecancer
+=eventthatthetestindicatesapatienthascancer
=eventthatthetestindicatesthatpatientdoesnothavecancer
Clinicaltrialsindicatethatthetestisaccurate95%ofthetimeindetectingcancerfor
thosepatientswhoactuallyhavecancer:P(+/C)=.95
butunfortunatelywillgivea+8%ofthetimeforthosepatientswhoareknown
nottohavecancer:P(+/Cc)=.08
Ithasalsobeenestimatedthatapproximately10%ofthepopulationhavecancerand
dontknowityet:P(C)=.10
Youtakethetestandreceivea+testresults.Shouldyou
beworried?P(C/+)=?????
Copyright 2005 Brooks/Cole, a division of Thomson Learning, Inc.
What we know.
P(+/C) = .95
P(+/ Cc ) = .08
P(C) = .10
From these probabilities we can find
P(-/C) = .05
P(-/ Cc ) = .92
P(Cc) = .90
Bayesian Terminology
TheprobabilitiesP(A)andP(AC)arecalledprior
probabilitiesbecausetheyaredeterminedpriortothe
decisionabouttakingthepreparatorycourse.
TheconditionalprobabilityP(A|B)iscalledaposterior
probability(orrevisedprobability),becausetheprior
probabilityisrevisedafterthedecisionabouttakingthe
preparatorycourse.