tree diagrams and the binomial distribu2on
TRANSCRIPT
![Page 1: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/1.jpg)
Tree diagrams and the binomial distribu2on
![Page 2: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/2.jpg)
Outline for today
Be#erknowaplayer:HonusWagnerQues5onsaboutworksheet6?Reviewofconceptsinprobability:addi5veandmul5plica5verulesTreediagramsandtheanalysisofStrat-o-ma5cThebinomialdistribu5on
![Page 3: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/3.jpg)
Announcement: class final projects
FinalprojectproposaldueonWednesdayShouldfocusonresearchques5on
• Doesn’thavetobeaboutbaseball,butneedtofinddatasetthatyoucanusetoanswertheques5on
1-2paragraphproposalisduetheWednesdayMarch29thProjectspresenta5onareonMay3rd–goodtostartworkingonthemsoon!
![Page 4: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/4.jpg)
Be>er know a player: Honus Wagner
![Page 5: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/5.jpg)
Probability
Probabilityisawayofmeasuringtheuncertaintyoftheoutcomeofanevent
Defini5ons:Samplespace
• Allpossibleoutcomes
AnEvent• Subsetofthesamplespace
Probabilitykeyproper5es:• 0≤Pr(X)≤1• ΣPr(X=x)=1
![Page 6: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/6.jpg)
Probability rules - Addi2ve rule
IftherearetwoeventsA,andB,thentheprobabilityofAorBhappeningis:
Pr(AorB)=Pr(A)+Pr(B)–Pr(A,B)
EventsarecalledmutuallyexclusiveifeventsAandBcannotbothoccur-i.e.,Pr(A,B)=0
Q:WhatwouldmutuallyexclusiveeventslooklikeintheVenndiagram?A:Thecircleswouldnotoverlap
![Page 7: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/7.jpg)
Mul2plica2ve Rule
Pr(A,B)=Pr(A|B)×Pr(B)
ProbabilityofBhappening×ProbabilityofAhappeninggivenBhappened
Twoeventsareindependentif:Pr(A,B)=Pr(A)xPr(B)i.e.,iftheoccurrenceofBdoesnoteffecttheprobabilityofAhappening
![Page 8: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/8.jpg)
Big League Baseball
Foranyonepitch(notassumingthattheplayisinplay),whatistheprobabilityofgedngahit?
• Probabilityofasingle: 1/3·7/36+• Probabilityofadouble: 1/3·1/36+• Probabilityofatriple: 1/3·1/36+• Probabilityofahomerun: 1/3·1/36=10/108
1 2 3 4 5 61 Single Out Out Out Out Error2 Out Double Single Out Single Out3 Out Single Triple Out Out Out4 Out Out Out Out Out Out5 Out Single Out Out Out Single6 Error Out Out Out Single Homerun
2ndDie
1st D
ie
![Page 9: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/9.jpg)
Strat-o-ma2c
Muchmorecomplexboardgames• TakesintoaccountHi#ersandPitchers• Advancedversionaccountsforaddi5onalfactors(e.g.,ballparksetc.)
![Page 10: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/10.jpg)
Eachplayerisrepresentedbyacard
1.Awhitesingledieisrolledtodeterminewhethertousehi#erorpitcher’scard:
• 1-3->hi#erscard• 4-6->pitcher’scard
2.Then,twodicearerolledandtheirsumdetermineswhichplayinthecardshouldbeused
3.Forsomeplaysaddi5onallya20sideddieisrolledtodeterminethefinaloutcome
• andothertables/rulesonenneedtobeconsulted
Strat-o-ma2c rules and tree diagrams
![Page 11: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/11.jpg)
Let’scalculatetheprobabilityofdifferentevents…
Calcula5ngtheprobabilityofgedngapar5cularcolumnpitcherorhi#er’scardispre#ysimple• Answer?
Calcula5ngthesumofthetwodiceisali#lemoreinvolved…• Whatisthesamplespacehere?
• i.e.,howmanypossibleoutcomesarethere?• Canyoucalculatetheprobabilitydistribu5on?
Strat-o-ma2c: analysis
![Page 12: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/12.jpg)
Fillinthetablebelowwiththesumofthetwodiceandthencalculatetheprobabilityofrollinga2toa12
Strat-o-ma2c: analysis
1 2 3 4 5 61234 756
1st D
ie
2ndDie
![Page 13: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/13.jpg)
Fillinthetablebelowwiththesumofthetwodiceandthencalculatetheprobabilityofrollinga2toa12
Strat-o-ma2c: analysis
1 2 3 4 5 61 2 3 4 5 6 72 3 4 5 6 7 83 4 5 6 7 8 94 5 6 7 8 9 105 6 7 8 9 10 116 7 8 9 10 11 12
1st D
ie
2ndDie
![Page 14: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/14.jpg)
Strat-o-ma2c: analysis
1 2 3 4 5 61 2 3 4 5 6 72 3 4 5 6 7 83 4 5 6 7 8 94 5 6 7 8 9 105 6 7 8 9 10 116 7 8 9 10 11 12
1st D
ie
2ndDie
2 3 4 5 6 7 8 9 10 11 121/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36
![Page 15: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/15.jpg)
Whatistheprobabilityofrollinga1onthewhitedieandthengedngasumof7onthetworeddice?
• 1/6·6/36=6/216
Whatistheprobabilityofrollinga:• 2onthewhitedie….andthengedng…• Sumof8onthetworeddice…andthen…• Anumberfor1-8onthe20sideddie?
• 1/6·5/36·8/20=.00926
Strat-o-ma2c: analysis
2 3 4 5 6 7 8 9 10 11 121/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36
![Page 16: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/16.jpg)
Whatistheprobabilityofrollinga1onthewhitedieora6onthewhitedie?• 1/6+1/6=2/6
Whatistheprobabilityofrollinga:• 5onthewhitedie…andthengedng…• asumof8orasumof10onthetworeddice?• 1/6·(4/36+3/36)=.0324
Strat-o-ma2c: analysis
2 3 4 5 6 7 8 9 10 11 121/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36
![Page 17: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/17.jpg)
Whatistheprobabilityofrollinga3onthewhitedie• andthengedngasumof8tworeddice• orasumof10onthetworeddice
• andthena1-10onthe20sideddie?
Treediagram!
Strat-o-ma2c: analysis
2 3 4 5 6 7 8 9 10 11 121/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36
3
1/6
5/36
3/361-10
1/6·5/36=.0231
10/20
8
10 1/6·3/36·½=.0069
.0231+.0069=.0300
![Page 18: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/18.jpg)
Strat-o-ma2c: Pujols vs. Kershaw
Whatistheprobabilityofahidngadouble?
![Page 19: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/19.jpg)
Strat-o-ma2c: Pujols vs. Kershaw
Whatistheprobabilityofahidngadouble?
![Page 20: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/20.jpg)
Strat-o-ma2c: Pujols vs. Kershaw
2 3 4 5 6 7 8 9 10 11 121/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36
![Page 21: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/21.jpg)
Tree diagram
1
6
6
1/6
1/6
5/36
5/361-146
14/20
![Page 22: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/22.jpg)
Tree diagram
1
6
6
7
8
1/6
1/6
5/36
6/36
5/36
5/361-146
1-2
18-203/20
2/20
14/20
1/6·(5/36·3/20+6/36+5/36·2/20)+1/6·5/36·14/20=.04977
![Page 23: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/23.jpg)
Strat-o-ma2c: Pujols vs. Kershaw
Whatistheprobabilityofahidngahomerun?
![Page 24: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/24.jpg)
Strat-o-ma2c: Pujols vs. Kershaw
Whatistheprobabilityofahidngahomerun?Treediagram!1/6·[3/36+4/36+5/36·17/20]+1/6·(4/36·2/20)=.0594
![Page 25: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/25.jpg)
Parametric probability models
Wehaveexploredprobabilityusing:• Probabilityrulestocalculatetheprobabilityofanevent• Dice/spinners
Weonenusemathema5calformulas,calledprobabilitydistribu5ons,tocalculatetheprobabilityofdifferentevents
![Page 26: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/26.jpg)
Random variates
Wecanthinkofarandomvariateasarandomnumber• Typicallyrandomvariatesaredenotedwithcapitalle#ers,e.g.,X
• Xcantakeonvaluesinthesamplespace• Whichinthiscaseisasetofnumbers
Wecanuseprobabilitydistribu5onstoassesstheprobabilitythatarandomvariateXwillhaveavaluebetweentwoothernumbers• Nota5on:Pr(a<X<b)
![Page 27: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/27.jpg)
Random variates
Randomvariatescanbeeither:• Discrete:Xtakesonintegervalues• Con5nuous:Xtakesonrealvalues
Sameproper5esofprobabilitydistribu5onsapply:• Pr(a<X<b)≥0• ΣPr(X=xi)=1
![Page 28: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/28.jpg)
Bernoulli Distribu2on
Modelstheprobabilityoftwooutcomes:• Success:X=1• Failure:X=0• E.g.,gedngahead(X=1)oratail(X=0)forflippingacoin
Modelhasoneparameterπ,whichistheprobabilityofgednga1• E.g.,theprobabilityofgedngheadonacoinflip• Pr(X=1)=?Pr(X=0)=?
![Page 29: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/29.jpg)
Bernoulli Distribu2on
ProbabilitymassfuncFonstelltheprobabilityofeachoutcomeinthesamplespaceofadiscretedistribu5on
ForBernoulliDistribu5onswecanwritetheprobabilitymassfunc5onas:
Wecanalsoplottheprobabilitymassfunc5on• Ifπ=.5whatwoulditlooklike?• Ifπ=.9whatwoulditlooklike?
Parameterπ
![Page 30: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/30.jpg)
Bernoulli Distribu2on
Canyouthinkofbaseballexample?• Example:Theprobabilitythataplayergetonbaseforagivenatbat• IfweweremodelingDavidOr5z,whatwouldagoodes5mateofπbe?• OBP=.355,soagoodnumbertousewouldbeπ=.355
![Page 31: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/31.jpg)
Binomial distribu2on
Modelstheprobabilityofhavingksuccessesoutofthentrials
• Probabilityofsuccessoneachtrialisπ
Example:ifaplayercomestobat45mesinagame,whatistheprobabilityofgedngon-basek5mes
• Whatisthesamplespace?
Assumesthesameprobabilityofgedngon-baseeachplateappearance(π)
• Aretheassump5onsreasonableforthismodel?• Nostreakiness
![Page 32: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/32.jpg)
Binomial distribu2on
Probabilityofgedngksuccessesoutofntrialsis:
where
WhatvaluescanXtakeon(i.e.,whatisthesamplespace)?
• krangesfrom0,1,…,n
Parameters:πandn
![Page 33: Tree diagrams and the binomial distribu2on](https://reader030.vdocuments.us/reader030/viewer/2022041120/62505cc7d959bf7dfb206279/html5/thumbnails/33.jpg)
n choose k
Nchoosekfunc5ontellsushowmanywaystherearetoorderkitemsoutofntotal
Q:Howmanywaysaretheretochoose3thingsoutofatotalof8?
A:(8·7·6)/(3·2)=56
R:choose(n,k)