Ch05 - Probability Concepts 3 Subjective Probability •If there is little or no past experience or...
Transcript of Ch05 - Probability Concepts 3 Subjective Probability •If there is little or no past experience or...
9/5/17
1
ProbabilityConcepts
Chapter5Dr.RichardJerz
© 2017 rjerz.com1
Goals
• ProbabilityConcepts• Defineprobability.• Explainthetermsexperiment,event,andoutcome• Grapheventprobability:probabilitydistribution• Definethetermsconditional probabilityandjointprobability.
• Calculateprobabilitiesusingtherulesofadditionandrulesofmultiplication.
• Graphmultipleevents:treediagram• Describetheclassical,empirical,andsubjectiveapproachestoprobability.
• Calculatethenumberofarrangements,permutations,andcombinations.
© 2017 rjerz.com2
Whatisprobability?
• Probability isameasureofthelikelihoodthataneventinthefuturewillhappen.Itcanonlyassumeavaluebetween0and1,or0and100%
• Avaluenearzeromeanstheeventisnotlikely tohappen.Avaluenear1meansitislikely.
© 2017 rjerz.com3
9/5/17
2
ProbabilityExamples
© 2017 rjerz.com4
ExamplesofBusinessQuestions
• Ifwereviseourproduct,willcustomerspurchaseit?
• Shouldweguaranteeourcompany’stirestolast40,000miles?
• ShouldIhireanewemployee?• IfIamdealtfivecards,willIgetaroyalflush?• Willthenextdicethrowproducea4?• Willthetossofacoinbeheadsortails?• WillHillaryClintonbethenextpresident?• Canastudentguessona10questionmultiplechoicetestandearnan85%?
© 2017 rjerz.com5
TheThreeWaysofAssessingProbability
• Subjective: A Guess,baseduponintuitionorjudgment
• Classical:Baseduponcountingallpossibilitiesthatareequallylikelywithinapopulation(suchasrollingadice)
• Empirical:Baseduponrelativefrequencyofsampleddata(suchasourM&Mdata)
• Classicalandempiricalare“objective”(i.e.,measuredorcalculated)
• InBusinessStatistics:Objective© 2017 rjerz.com6
9/5/17
3
SubjectiveProbability
• Ifthereislittleornopastexperienceorinformation(data)onwhichtobaseaprobability,itmaybearrivedatsubjectively.
• Examplesofsubjectiveprobabilityare:• EstimatingthelikelihoodtheNewEnglandPatriotswillplayintheSuperBowlnextyear.
• Estimatingthelikelihoodthatanewcompetitorwillenterthemarketplace.
• EstimatingthelikelihoodtheU.S.budgetdeficitwillbereducedbyhalfinthenext10years.
© 2017 rjerz.com7
EmpiricalProbability
• Don’thaveallthepopulationdata,wecollectsample data
• Biggersamples arebetter(moreaccurate).“Lawoflargenumbers.”
• Theprobabilityofaneventhappeningisthepercentorfractionofthetimesimilareventshappenedinthepast
• Calculatedbydividingtheoccurrencesoftheeventofinterestbythetotalsamplesize.
© 2017 rjerz.com8
ClassicalProbability
• Wecancountallpossibleoutcomes oftheexperiment
• Wecancountallpossibleoccurrences oftheevent(favorableoutcomes)thatweareinterestedin
• Thecalculatedprobabilityisthedivisionofeventoutcomebyallpossibleoutcomes
• Challenge:canyoucountthese“outcomes?”© 2017 rjerz.com9
9/5/17
4
SummaryofTypesofProbability
© 2017 rjerz.com10
HelpfulDefinitions
• Anexperiment istheobservationofsomeactivityortheactoftakingsomemeasurement.
• Anoutcome istheparticularresultofanexperiment.
• Anevent isthecollectionofoneormoreoutcomesofanexperiment.
© 2017 rjerz.com11
Experiments,EventsandOutcomes
© 2017 rjerz.com12
9/5/17
5
M&MExperiment
• Experiment:pickanM&Mfromabag
• Outcomes:red,blue,brown,green,orange,oryellow
• Events:• aredM&M• aredororangeM&M• aprimarycolorM&M
© 2017 rjerz.com13
M&MExperiment:EmpiricalorClassical?
• Itdepends…
• Onebagastheentirepopulation– classical• Treatingthedataasasample- empirical
© 2017 rjerz.com14
ChartTypesforM&M’s“ProbabilityDistribution”
© 2017 rjerz.com15
3 3
1
3
4
5
0
1
2
3
4
5
6
Blue
Brow
n
Green
Orange
Yellow
Red
FrequencyDiagram16%
16%
5%
16%
21%
26%
PieChart
16% 16%
5%
16%
21%
26%
0%
5%
10%
15%
20%
25%
30%
Blue
Brow
n
Green
Orange
Yellow
Red
RelativeFrequencyDiagram
ProbabilityDistribution
9/5/17
6
UsingaProbabilityDistribution
• Experiment:PickanM&Mfromthebag
• Outcomes:Blue,brown,green,orange,yellow,red
• Probabilityofevent:• “Red”=26%• “Redororange”=42%• “Primarycolor”=63%• “Redandorange”=0%
© 2017 rjerz.com16
16% 16%
5%
16%
21%
26%
0%
5%
10%
15%
20%
25%
30%
Blue
Brow
n
Green
Orange
Yellow
Red
RelativeFrequencyDiagram
UsingaProbabilityDistribution
• Experiment:YellowM&Minabag
• Outcomes:0,1,2…,7,8yellowM&Msinbag
• Probabilityofevents:• Exactly2=16.7%• Lessthan4=22.3%• Greaterthan4=44.5%• Between2and5=33.3%
• Anevennumber=66.7%
© 2017 rjerz.com17
13
0
64
31
02468
1 2 3 4 5 6 7
BagCo
unt
#inBag
#ofBagswithYellowM&M's
5.6%16.7%
0.0%
33.3%22.2%
16.7%5.6%
0.0%10.0%20.0%30.0%40.0%
1 2 3 4 5 6 7
BagPe
rcen
t
#inBag
%ofBagswithYellowM&M's
DiceTossProbabilityDistribution
© 2017 rjerz.com18
9/5/17
7
AnEvenNumber
© 2017 rjerz.com19
0%10%20%30%40%50%60%70%80%90%100%
1 2 3 4 5 6
TossanEvenNumber
ANumberGreaterthan4
© 2017 rjerz.com20
0%10%20%30%40%50%60%70%80%90%100%
1 2 3 4 5 6
ANumberGreaterthan4
ANumberLessthan3
© 2017 rjerz.com21
0%10%20%30%40%50%60%70%80%90%100%
1 2 3 4 5 6
ANumberLessthan3
9/5/17
8
TheComplement Rule
• Thecomplementrule isusedtodeterminetheprobabilityofanevent“notoccurring”bysubtractingtheprobabilityoftheeventoccurringfrom1.
P(A)+P(~A)=1orP(A)=1- P(~A).
© 2017 rjerz.com22
DiagramingtheExperiment
• Multipleformsofquestionscanbeasked:
“not red”,“not redororange”,“not primarycolor”
© 2017 rjerz.com23
16% 16%
5%
16%
21%
26%
0%
5%
10%
15%
20%
25%
30%
Blue
Brow
n
Green
Orange
Yellow
Red
RelativeFrequencyDiagram
Howdowecalculatetheprobabilityofanevent?
• Whatisthe“experiment”(natureofproblem)?
• Whatareallpossibleoutcomes(totalcount)?• Whichoutcomesarecontainedinthe“event”ofinterest?
• Mutuallyexclusive:Arewe“doublecounting”anything?
© 2017 rjerz.com24
9/5/17
9
ComputingEventProbabilitiesRuleofAddition
RulesofAddition• SpecialRuleofAddition- Iftwo
eventsAandBaremutuallyexclusive,theprobabilityofoneORtheotherevent’soccurringequalsthesumoftheirprobabilities.
P(AorB)=P(A)+P(B)
• TheGeneralRuleofAddition- IfAandBaretwoeventsthatarenotmutuallyexclusive,thenP(AorB)isgivenbythefollowingformula:
P(AorB)=P(A)+P(B)- P(AandB)
© 2017 rjerz.com25
JointProbabilityVennDiagram
• JOINTPROBABILITY:Aprobabilitythatmeasuresthelikelihoodtwoormoreeventswillhappenconcurrently.P(AandB)
© 2017 rjerz.com26
AdditionRule- Example
• Whatistheprobabilitythatacardchosenatrandomfromastandarddeckofcardswillbeeitherakingor aheart?
• P(AorB)=P(A)+P(B)- P(AandB)• =4/52+13/52- 1/52• =16/52,or.3077
© 2017 rjerz.com27
9/5/17
10
AdditionRule- Example
• Doesjointprobabilityexist?
“red”,“redororange”,“redand orange”
“redor primarycolor”
© 2017 rjerz.com28
16% 16%
5%
16%
21%
26%
0%
5%
10%
15%
20%
25%
30%
Blue
Brow
n
Green
Orange
Yellow
Red
RelativeFrequencyDiagram
ProbabilityofMultipleEvents
• ThespecialruleofmultiplicationrequiresthattwoeventsAandBareindependent.
• Thisruleiswritten:• P(AandB)=P(A)P(B)
• ThegeneralruleofmultiplicationisusedwhentheprobabilityofeventBisinfluenced,orconditioned,bytheoccurrenceofeventA.
• Thisruleiswritten:• P(AandB)=P(A)P(B|A)
(theconditionalprobabilityofB)
© 2017 rjerz.com29
Example:GeneralMultiplicationRule
• Agolferhas12golfshirtsinhiscloset.Suppose9oftheseshirtsarewhiteandtheothersblue.Hegetsdressedinthedark,sohejustgrabsashirtandputsiton.Heplaysgolftwodaysinarowanddoesnotdolaundry.
• Whatisthelikelihoodbothshirtsselectedarewhite?
© 2017 rjerz.com30
9/5/17
11
GeneralMultiplicationRule-Example
• TheeventthatthefirstshirtselectediswhiteisW1andthesecondshirtisW2
• TheprobabilityisP(W1)=9/12• P(W2)isP(W2|W1)=8/11• Todeterminetheprobabilityof2whiteshirtsbeingselectedweuseformula:P(AandB)=P(A)P(B|A)
• P(W1andW2)=P(W1)P(W2|W1)=(9/12)(8/11)=0.55
© 2017 rjerz.com31
IndependentEventsConditionalProbability
• Questions,withorwithoutreplacement
red,thenanotherred
red,thenanorange
threeredsonthreetries
© 2017 rjerz.com32
16% 16%
5%
16%
21%
26%
0%
5%
10%
15%
20%
25%
30%
Blue
Brow
n
Green
Orange
Yellow
Red
RelativeFrequencyDiagram
TreeDiagramsforIndependentEvents
© 2017 rjerz.com33
9/5/17
12
CalculatingProbabilities:WhatistheQuestion?
• Aking• Aheart• Akingoraheart• Akingandaheart• Aheart,ifthekingisnotreplaced• Aking,thenaheart(withoutreplacement)• Aking,thenaheart(withreplacement)• Many“not”questions,i.e.,notaking
© 2017 rjerz.com34
© 2017 rjerz.com35
ClassicalProbability
• Consideranexperimentofrollingasix-sideddie.Whatistheprobabilityoftheevent “anevennumber ofspotsappearfaceup”?
• Thepossibleoutcomes are:
• Therearethree“favorable”outcomes(atwo,afour,andasix)inthecollectionofsixequallylikelypossibleoutcomes.
© 2017 rjerz.com36
9/5/17
13
“Randomness”StillExists!• Supposewetossafaircoin.Theresultofeachtossiseitheraheadoratail.Ifwetossthecoinagreatnumberoftimes,theprobabilityoftheoutcomeofheadswillapproach.5.Thefollowingtablereportstheresultsofanexperimentofflippingafaircoin1,10,50,100,500,1,000and10,000timesandthencomputingtherelativefrequencyofheads
© 2017 rjerz.com37
CountingallOutcomes
• Forclassicalprobability,weneedtocountthetotalnumberofoutcomes.
• Waysofcounting• Arrangements• Permutations• Combinations
© 2017 rjerz.com38
ArrangementExample
• Anautomobiledealerwantstoadvertisethatfor$29,999youcanbuyaconvertible,atwo-doorsedan,orafour-doormodelwithyourchoiceofeitherwirewheelcoversorsolidwheelcovers.Howmanydifferentarrangementsofmodelsandwheelcoverscanthedealeroffer?
© 2017 rjerz.com39
9/5/17
14
Arrangements:MultiplicationFormula
© 2017 rjerz.com40
AnotherExample:Dell
• Websiteforlaptops• HowmanydifferentmodelsdoesDellhaveforitsInspironlaptop?
© 2017 rjerz.com41
AnotherExample:RollTwoDice
• Whatarealltheoutcomes?• Whatistheprobabilityofrollinga5?A7?
• Solution:6possibilitiesforthefirstdie,and6forthesecond,therefore6x6or36.
© 2017 rjerz.com42
9/5/17
15
Results
© 2017 rjerz.com43
PaintingaRoom
• Ourroomhasfourwalls• Wehave4differentcolorsofpaint
• Howmanywayscanwepainttheroom?
• Howwouldthisdifferifwehad6colorsofpaint?
© 2017 rjerz.com44
Factorialofn
• Denotedasn!• n!=n(n-1)(n-2)…1
• Thus4!=4*3*2*1=24
© 2017 rjerz.com45
9/5/17
16
Counting- Permutation
Apermutation isthenumberofwaystochooser objectsfromagroupn possibleobjectswheretheorderofarrangementsisimportant(abcandcbaaredifferent).
© 2017 rjerz.com46
CountingArrangementsforSubgroupsw/oReplacement
• Howmanywayscanwepick4colorsfromatotalof6colors?
• Permutations(withorder)• Combinations(withoutorder)
• Note:#ofpermutations>=#combinations
© 2017 rjerz.com47
Counting- Combination
• Acombination isthenumberofwaystochooserobjectsfromagroupofnobjectswithoutregardtoorder(abcandcbaarenotdifferent).
© 2017 rjerz.com48
9/5/17
17
Example:Combination
Thereare12playersontheCarolinaForestHighSchoolbasketballteam.CoachThompsonmustpickfiveplayersamongthetwelveontheteamtocomprisethestartinglineup.Howmanydifferentgroupsarepossible?
© 2017 rjerz.com49
792)!512(!5
!12512 =
-=C
Example:Permutation
Supposethatinadditiontoselectingthegroup,hemustalsorankeachoftheplayersinthatstartinglineupaccordingtotheirability.
© 2017 rjerz.com50
040,95)!512(!12
512 =-
=P
UsingExceltoCount
• CombinationsandPermutations
© 2017 rjerz.com51