






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Course:StatisticsandProbability Date:September 28 , 2021 Professor/Speaker:Maam Absalo
Lesson 1 :Random Variables
Performingastatisticalexperimentwillgeneratedataorproduceoutcomes Theseoutcomeshaveacorrespondingchanceofoccurrence. Example:Tossing 2 coinsandcountingforthenumberoftails ● 2 heads ● 2 tails ● 1 heador 1 tail Thevaluesofthesepossibleoutcomesarethevaluesofarandom variable
Random variablesareusedtomodeloutcomesofrandom processesthatcannotbepredicted inadvance,buttherangeofnumericaloutcomesmaybeviewed
Inthecoinexample,therandom variableXcanbeassignedasthenumberoftailsthatappears intossing 2 coins Resultsmayhave: ● 0 (bothheads) ● 1 (oneisheadandtheotheristails) ● 2 (bothtails) ● Arandom variableisnotavariablelikeinalgebra.Thevaluesofarandom variableare associatedwithprobabilities.
Random Variable ● Arandom variableisafunctionthatassociatesarealnumbertoeachelementinthe samplespace ● (setofallpossibleoutcomes) ● Usuallydenotedbyanuppercaseletter"X"
● Eachparticularvalueisdenotedbyalowercaseletter"x" ● Notethatthelettermayvarydependingonyourchoice. ● Canbeclassifiedeither o Discrete o Continous
TypeofRandom Variables ● DiscreteRandom Variables o Arerandom variablesonafinitenumberofdistinctvalues. o Possiblevaluesarecountable ▪ Examples: ● Numberofchildreninafamily ● Numberofcomputerunitsinacomputercafe ● numberofhousesinastreet ● ContinousRandom Variables o Arerandom variablesonaninfinitelyuncountablenumberofvalues. o Possiblevaluesaretypicallymeasurable ▪ Examples: ● Timeittakesastudenttofinishanexam ● Weightofaninfant ● Annualincomeofsomeone
Lesson 2 :ProbabilityDistributions
ProbabilityDistributionofaDiscreteRandom Variable ● TheProbabilityDistributionorProbabilityMassFunction(PMF)ofadiscreterandom variableshowsallpossiblevalues(samplespace)oftherandom variablemaybe expressedintabular,graphical(histogram)form,orasaformula
Valuesofthe Random Variable
Probabilities
0 1 / 4 1 1 / 2 2 1 / 4
o Sincetherandom variableCrepresentsthenumberoftailsasstatedinthe problem,wewillonlycounthowmanytailsappearedineachoutcome. o Thepossiblevalueoftherandom variableCare 0 , 1 , 2 ,and 3.
o b.ProbabilityDistributioninTabularandGraphicalForm (Histogram) C Probability P(C=c) 0 1 / 8 1 3 / 8 2 3 / 8 3 1 / 8
o SampleSpace ▪ Thesetofallpossibleoutcomesofastatisticalexperiment
● 4 Laptopsaretested.LetLbetherandom variablerepresentingthenumberofdefective laptops o a.Findthevaluesoftherandom variableL o b.Constructtheprobabilitydistributionoftherandom variableLintabularand graphicalform andasaformula
o Solution: o a.LetD=defectivelaptop o N=notdefective o Sooursamplespaceiscomposedof 16 possibleoutcomes ▪ (nk= 24 = 16 ) PossibleOutcomes l DDDD 4 DDDN 3 DDND 3 DNDD 3
(TabularForm:) (GraphiocalForm:) l Probability
- NDDD - DNDN - NDND - DNND - NDDN - DDNN - NNDD - DNNN - NDNN - NNDN - NNND - NNNN o Wenowusetheprobabilitydistributiontoanswerthequestions o a.P(M =m)=P(M = 1 )= 0. 42 or 42 % o b.P(M ≤m)=P(M ≤ 4 ) o =P(M = 1 )+P(M = 2 )+P(M = 3 )+P(M = 4 ) o = 0. 42 + 0. 27 + 0. 15 + 0. 10 o = 0. 94 or 94 % o c.P(m ≤M ≤m)=P( 3 ≤M ≤ 5 ) o =P(M = 3 )+P(M = 4 )+P(M = 5 ) o = 0. 15 + 0. 10 + 0. 04 o = 0. 29 or 29 % o d.P(M >m)=P(M > 3 ) o =P(M = 4 )+P(M = 5 )+P(M = 6 ) o = 0. 10 + 0. 04 + 0. 02 o = 0. 16 or 16 % o Sowehave 300 x 0. 16 = 48 .Thereforeoutof 300 customers, 48 areexpectedto buymorethanthreemilkteas.
TryThis!
Lesson 3 :MeanofaDiscreteRandom Variable
Example ● Considerrollingadie.Whatistheaveragenumberofspotsthatwouldappear? o Average--->MeanorExpectedValue
o LetXbetherandom variablerepresentingthenumberofspotsthatwouldappear Numberof Spots(x)
Probability P(X=x)
x P(X=x)
1 1 / 6 1 / 6 2 1 / 6 2 / 6 3 1 / 6 3 / 6 4 1 / 6 4 / 6 5 1 / 6 5 / 6 6 1 / 6 6 / 6
o total= 21 / 6 = 3. 5 ▪ that'sthemeanorexpectedvalue
ExpectedValueofaDiscreteRandom Variable ● Themeandenotedbyμ ● alsocalledtheexpectedvalue ● symbol---> E(X) ● Itisthesum ofproductsformedbymultiplyingthepossiblevaluesof Xwiththeir correspondingprobabilities.
● Themeanorexpectedvalueofadiscreterandom variableisgivenby: ● μ= E(X)=∑[ x⋅P(X=x)]
o E(A)=∑[ a⋅P(A=a)] o =( 100 )( 12 / 52 )+(- 30 )( 40 / 52 ) o =( 100 )( 3 / 13 )+(- 30 )( 10 / 13 ) o = 0 o Thegameisconsideredfairbecausetheplayer'sexpectedgainis 0.
TryThis!
Lesson 4 :VarianceandStandardDeviationofaDiscreteRandom Variable
Variance ● Definedasthemeasureofspreadforadistributionthatdeterminesthedegreetowhich thevaluesofarandom variabledifferfrom theexpectedvalue.Also,itistheweighted averageofsquaredofthevaluesof Xfrom themean. ● Thevarianceisdenotedbythesymbol: o σ^2 ▪ notethattheE(X)ismean ● Thevarianceofadiscreterandom variableisgivenby: o σ^2 =Var(X)= E(X^2 )-[ E(X)]^2
StandardDeviation ● Definedasthemeasureofhowspreadoutagroupofnumbersisfrom themean.Itis thesquarerootofthevariance. ● Thestandarddeviationisdenotedbythesymbol: o σ ● Thestandarddeviationofadiscreterandom variableisgivenby: o σ=√Var(X) ● Ifwehavethevalueofstandarddeviationwecanalsosolvethevalueofvarianceand viceversa
Example ● Determinethevarianceandstandarddeviationoftheprobabilitydistributiongiventhen tablebelow. x P(X=x) 0 0. 1 1 0. 3 2 0. 2 3 0. 4
o E(X)=( 0 )( 0. 1 )+( 1 )( 0. 3 )+( 2 )( 0. 2 )+( 3 )( 0. 4 ) o = 1. 9 o E(X^2 )=( 02 )( 0. 1 )+( 12 )( 0. 3 )+( 22 )( 0. 2 )+( 32 )( 0. 4 ) o = 4. 7
o σ^2 =Var(X)= E(X^2 )-[ E(X)]^2 = 4. 7 - ( 1. 9 ) 2 = 1. 09 o σ=√Var(X)=√ 1. 09 ≈ 1. 04 o Thevarianceandstandarddeviationare 1. 09 and 1. 04 ,respectively.