27
Sec$on 6.1: Discrete and Con.nuous Random Variables Tuesday, November 14 th, 2017

Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

Sec$on6.1:

DiscreteandCon.nuousRandomVariables

Tuesday,November14th,2017

Page 2: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

Learning Objectives After this section, you should be able to:

The Practice of Statistics, 5th Edition 2

ü  COMPUTE probabilities using the probability distribution of a discrete random variable.

ü  CALCULATE and INTERPRET the mean and standard deviation of a discrete random variable.

Thursday:

ü  COMPUTE probabilities using the probability distribution of certain continuous random variables.

Discrete and Continuous Random Variables

Page 3: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

Introduc$on:Supposewetossafaircoin3$mes.

1.  Whatisthesamplespaceforthischanceprocess?Howmanyoutcomesarepossible?Whatisthelikelihoodofeachoutcome?

SampleSpace:HHHHHTHTHHTTTHHTHTTTHTTT

Thereare8equallylikelyoutcomesinoursamplespace.

Theprobabilityis1/8foreachoutcome.

Page 4: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

2.LetX=numberofheadsobtainedinatoss.ThevalueofXwillvaryfrom____,____,_____,or_____.HowlikelyisXtotakeeachofthosevalues?

10 32

Page 5: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

3.FindandinterpretP(X≥1).

Thisprobabilitymeansthatifweweretorepeatedlyflip3coinsandrecordthenumberofheads,wewillget1ormoreheadsabout87.5%ofthe$me.

Page 6: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

Whatisarandomvariable?Whatarethetwomaintypesofrandomvariables?

Anumericalvaluethatdescribestheoutcomes

ofachanceprocess.

DISCRETERANDOMVARIABLES

CONTINUOUSRANDOMVARIABLES

Page 7: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

Whatisaprobabilitydistribu.on?

Aprobabilitydistribu$onisamodelthatgivesthepossiblevaluesandprobabili$esofarandomvariable.

Canbegivenastablesorhistograms.

Page 8: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

Whatisadiscreterandomvariable?Givesomeexamples.

•  Arandomvariablewithgapsbetweenthevalues

•  Discreterandomvariablesareo=en>mesthingsyoucancount.

•  Forexample,shoesizevs.actuallengthoffoot..Whichoneisdiscrete?

Page 9: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

EXAMPLE1:ApgarScores(BabiesHealthatBirth)

Page 10: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

a)Showtheprobabilitymodelislegi.mate.

•  Alloftheprobabili.esfortheApgarscoresarebetween0and1.

•  Theprobabili.esaddupto1.•  Therefore,wecanconcludethatthisisalegi.mateprobabilitymodel.

Page 11: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

b)Makeahistogramoftheprobabilitydistribu.on.Describewhatyousee.

•  Shape:thedistribu.onappears

skewedleXandsingle-pinked.ArandomlyselectednewbornismostlikelytohaveahigherApgarscore,meaningtheyarehealthy.

•  Center:ThemedianApgarscoreappearstobeascoreof8.

•  Spread:Apgarscoresvarybetween0and10,althoughmostofthescoresarebetween6and10.

Page 12: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

c)DoctorsdecidedthatApgarscoresof7orhigherindicateahealthybaby.What’stheprobabilitythatarandomly

selectedbabyishealthy?

Wewouldhaveabouta91%chanceofselec$ngahealthynewborn.

Page 13: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

READP.350-351

Page 14: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

Mean (Expected Value) of a Discrete Random Variable

The mean of any discrete random variable is an average of the possible outcomes, with each outcome weighted by its probability.

Suppose that X is a discrete random variable whose probability distribution is

Value: x1 x2 x3 … Probability: p1 p2 p3 …

To find the mean (expected value) of X, multiply each possible value by its probability, then add all the products: ∑=

+++==µ

ii

x

pxpxpxpxXE ...)( 332211

Page 15: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

d)ComputethemeanoftherandomvariableX.Interpretthisvalueincontext.We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So the mean (expected value) of X is: The mean Apgar score of a randomly selected newborn is 8.128. This is the average Apgar score of many, many randomly chosen babies.

Page 16: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

PG.352-353

Page 17: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

Standard Deviation of a Discrete Random Variable The definition of the variance of a random variable is similar to the definition of the variance for a set of quantitative data.

Suppose that X is a discrete random variable whose probability distribution is

Value: x1 x2 x3 … Probability: p1 p2 p3 …

and that µX is the mean of X. The variance of X is

Var(X) =σX2 = (x1 −µX )

2 p1 + (x2 −µX )2 p2 + (x3 −µX )

2 p3 + ...

= (xi −µX )2 pi∑

To get the standard deviation of a random variable, take the square root of the variance.

Page 18: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

e)Computeandinterpretthestandarddevia.onoftherandomvariableX.

The standard deviation of X is σX = √(2.066) = 1.437. A randomly selected baby’s Apgar score will typically differ from the mean (8.128) by about 1.4 units.

Page 19: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

Now You Try!!Imagine selecting a U.S. high school student at random. Define the random variable X = number of languages spoken by the randomly selected student. The table below gives the probability distribution of X, based on a sample of students from the U.S. Census at School database. !!!!

* 5 randomly selected students will write and present their answers to the class on the whiteboard *

Page 20: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

Showthattheprobabilitydistribu.onforXislegi.mate.

Alltheprobabili.esarebetween0and1andtheyaddto1,sothisisalegi.mateprobabilitydistribu.on.

Page 21: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

Makeahistogramoftheprobabilitydistribu.on.Describewhatyousee.

Shape:Thehistogramisstronglyskewedtotheright.Center:Themedianis1,butthemeanwillbeslightlyhigherduetotheskewness.Spread:Thenumberoflanguagesvariesfrom1to5,butnearlyallofthestudentsspeakjustoneortwolanguages.

Page 22: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

(c)Whatistheprobabilitythatarandomlyselectedstudentspeaksatleast3

languages?P(X≥3)=P(X=3)+P(X=4)+P(X=5)=0.065+0.008+0.002=0.075.Thereisa0.075probabilityofrandomlyselec$ngastudentwhospeaksthreeormorelanguages.

Page 23: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

(d)ComputethemeanoftherandomvariableXandinterpretthisvaluein

context.

Page 24: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

(e)Computeandinterpretthestandarddevia.onoftherandomvariableX.

Page 25: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

ExitTicket:ChecksforUnderstanding

CompletethefollowingCheckYourUnderstandingProblemsonbinderpapertoturnin:•  Pg.350#1-3•  Pg.355#1-2

Page 26: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

Bynextclass:

READ355-357aboutcon.nuousrandomvariablesandfinishthenotes.

Page 27: Sec$on 6.1 - wghsvoinea.weebly.com€¦ · We see that 1 in every 1000 babies would have an Apgar score of 0; 6 in every 1000 babies would have an Apgar score of 1; and so on. So

Chapter5Quiz:Thursday!

•  HW#21isdueThursday•  CompletetheChapter5Prac.ceTestonyourown

•  Comebytotutorialforextrahelp!