discrete probability distributions n random variables n discrete probability distributions n...
TRANSCRIPT
Discrete Probability DistributionsDiscrete Probability Distributions
Random VariablesRandom Variables Discrete Probability DistributionsDiscrete Probability Distributions Expected Value and VarianceExpected Value and Variance Binomial Probability DistributionBinomial Probability Distribution Poisson Probability DistributionPoisson Probability Distribution
.10.10
.20.20
.30.30
.40.40
0 1 2 3 4 0 1 2 3 4
A A random variablerandom variable is a numerical description of the is a numerical description of the outcome of an experiment.outcome of an experiment. A A random variablerandom variable is a numerical description of the is a numerical description of the outcome of an experiment.outcome of an experiment.
Random VariablesRandom Variables
A A discrete random variablediscrete random variable may assume either a may assume either a finite number of values or an infinite sequence offinite number of values or an infinite sequence of values.values.
A A discrete random variablediscrete random variable may assume either a may assume either a finite number of values or an infinite sequence offinite number of values or an infinite sequence of values.values.
A A continuous random variablecontinuous random variable may assume any may assume any numerical value in an interval or collection ofnumerical value in an interval or collection of intervals.intervals.
A A continuous random variablecontinuous random variable may assume any may assume any numerical value in an interval or collection ofnumerical value in an interval or collection of intervals.intervals.
Let Let xx = number of TVs sold at the store in one day, = number of TVs sold at the store in one day,
where where xx can take on 5 values (0, 1, 2, 3, 4) can take on 5 values (0, 1, 2, 3, 4)
Let Let xx = number of TVs sold at the store in one day, = number of TVs sold at the store in one day,
where where xx can take on 5 values (0, 1, 2, 3, 4) can take on 5 values (0, 1, 2, 3, 4)
Example: JSL AppliancesExample: JSL Appliances
Discrete random variable with a Discrete random variable with a finitefinite number number of values of values
Let Let xx = number of customers arriving in one day, = number of customers arriving in one day,
where where xx can take on the values 0, 1, 2, . . . can take on the values 0, 1, 2, . . .
Let Let xx = number of customers arriving in one day, = number of customers arriving in one day,
where where xx can take on the values 0, 1, 2, . . . can take on the values 0, 1, 2, . . .
Example: JSL AppliancesExample: JSL Appliances
Discrete random variable with an Discrete random variable with an infiniteinfinite sequence of valuessequence of values
We can count the customers arriving, but there is noWe can count the customers arriving, but there is nofinite upper limit on the number that might arrive.finite upper limit on the number that might arrive.
Random VariablesRandom Variables
QuestionQuestion Random Variable Random Variable xx TypeType
FamilyFamilysizesize
xx = Number of dependents in = Number of dependents infamily reported on tax returnfamily reported on tax return
DiscreteDiscrete
Distance fromDistance fromhome to storehome to store
xx = Distance in miles from = Distance in miles fromhome to the store sitehome to the store site
ContinuousContinuous
Own dogOwn dogor cator cat
xx = 1 if own no pet; = 1 if own no pet; = 2 if own dog(s) only; = 2 if own dog(s) only; = 3 if own cat(s) only; = 3 if own cat(s) only; = 4 if own dog(s) and cat(s)= 4 if own dog(s) and cat(s)
DiscreteDiscrete
The The probability distributionprobability distribution for a random variable for a random variable describes how probabilities are distributed overdescribes how probabilities are distributed over the values of the random variable.the values of the random variable.
The The probability distributionprobability distribution for a random variable for a random variable describes how probabilities are distributed overdescribes how probabilities are distributed over the values of the random variable.the values of the random variable.
We can describe a discrete probability distributionWe can describe a discrete probability distribution with a table, graph, or equation.with a table, graph, or equation. We can describe a discrete probability distributionWe can describe a discrete probability distribution with a table, graph, or equation.with a table, graph, or equation.
Discrete Probability DistributionsDiscrete Probability Distributions
The probability distribution is defined by aThe probability distribution is defined by a probability functionprobability function, denoted by , denoted by ff((xx), which provides), which provides the probability for each value of the random variable.the probability for each value of the random variable.
The probability distribution is defined by aThe probability distribution is defined by a probability functionprobability function, denoted by , denoted by ff((xx), which provides), which provides the probability for each value of the random variable.the probability for each value of the random variable.
The required conditions for a discrete probabilityThe required conditions for a discrete probability function are:function are: The required conditions for a discrete probabilityThe required conditions for a discrete probability function are:function are:
Discrete Probability DistributionsDiscrete Probability Distributions
ff((xx) ) >> 0 0ff((xx) ) >> 0 0
ff((xx) = 1) = 1ff((xx) = 1) = 1
a tabular representation of the probabilitya tabular representation of the probability distribution for TV sales was developed.distribution for TV sales was developed.
Using past data on TV sales, …Using past data on TV sales, …
Example: JSL AppliancesExample: JSL Appliances
NumberNumber Units SoldUnits Sold of Daysof Days
00 80 80 11 50 50 22 40 40 33 10 10 44 20 20
200200
xx ff((xx)) 00 .40 .40 11 .25 .25 22 .20 .20 33 .05 .05 44 .10 .10
1.001.00
80/20080/200
Example: JSL AppliancesExample: JSL Appliances
Graphical Representation of the Probability Graphical Representation of the Probability DistributionDistribution
.10.10
.20.20
.30.30
.40.40
.50.50
0 1 2 3 40 1 2 3 4Values of Random Variable Values of Random Variable xx (TV sales) (TV sales)Values of Random Variable Values of Random Variable xx (TV sales) (TV sales)
Pro
babili
tyPro
babili
tyPro
babili
tyPro
babili
ty
Discrete Uniform Probability DistributionDiscrete Uniform Probability Distribution
The The discrete uniform probability distributiondiscrete uniform probability distribution is the is the simplest example of a discrete probabilitysimplest example of a discrete probability distribution given by a formula.distribution given by a formula.
The The discrete uniform probability distributiondiscrete uniform probability distribution is the is the simplest example of a discrete probabilitysimplest example of a discrete probability distribution given by a formula.distribution given by a formula.
The The discrete uniform probability functiondiscrete uniform probability function is is The The discrete uniform probability functiondiscrete uniform probability function is is
ff((xx) = 1/) = 1/nnff((xx) = 1/) = 1/nn
where:where:nn = the number of values the random = the number of values the random variable may assumevariable may assume
the values of the values of thethe
random random variablevariable
are equally are equally likelylikely
the values of the values of thethe
random random variablevariable
are equally are equally likelylikely
Expected Value and VarianceExpected Value and Variance
The The expected valueexpected value, or mean, of a random variable, or mean, of a random variable is a measure of its central location.is a measure of its central location. The The expected valueexpected value, or mean, of a random variable, or mean, of a random variable is a measure of its central location.is a measure of its central location.
The The variancevariance summarizes the variability in the summarizes the variability in the values of a random variable.values of a random variable. The The variancevariance summarizes the variability in the summarizes the variability in the values of a random variable.values of a random variable.
The The standard deviationstandard deviation, , , is defined as the positive, is defined as the positive square root of the variance.square root of the variance. The The standard deviationstandard deviation, , , is defined as the positive, is defined as the positive square root of the variance.square root of the variance.
Var(Var(xx) = ) = 22 = = ((xx - - ))22ff((xx))Var(Var(xx) = ) = 22 = = ((xx - - ))22ff((xx))
EE((xx) = ) = = = xfxf((xx))EE((xx) = ) = = = xfxf((xx))
Expected Value of a Discrete Random VariableExpected Value of a Discrete Random Variable
Example: JSL AppliancesExample: JSL Appliances
expected number expected number of TVs sold in a dayof TVs sold in a day
xx ff((xx)) xfxf((xx))
00 .40 .40 .00 .00
11 .25 .25 .25 .25
22 .20 .20 .40 .40
33 .05 .05 .15 .15
44 .10 .10 .40.40
EE((xx) = 1.20) = 1.20
Variance and Standard DeviationVariance and Standard Deviation of a Discrete Random Variableof a Discrete Random Variable
Example: JSL AppliancesExample: JSL Appliances
00
11
22
33
44
-1.2-1.2
-0.2-0.2
0.80.8
1.81.8
2.82.8
1.441.44
0.040.04
0.640.64
3.243.24
7.847.84
.40.40
.25.25
.20.20
.05.05
.10.10
.576.576
.010.010
.128.128
.162.162
.784.784
x - x - ((x - x - ))22 ff((xx)) ((xx - - ))22ff((xx))
Variance of daily sales = Variance of daily sales = 22 = 1.660 = 1.660
xx
TVsTVssquaresquare
dd
TVsTVssquaresquare
dd
Standard deviation of daily sales = 1.2884 TVsStandard deviation of daily sales = 1.2884 TVs
Formula WorksheetFormula Worksheet
A B C
1 Sales Probability Sq.Dev.from Mean2 0 0.40 =(A2-$B$8)^23 1 0.25 =(A3-$B$8)^24 2 0.20 =(A4-$B$8)^25 3 0.05 =(A5-$B$8)^26 4 0.10 =(A6-$B$8)^278 Mean =SUMPRODUCT(A2:A6,B2:B6)9 Variance =SUMPRODUCT(C2:C6,B2:B6)
10 Std.Dev. =SQRT(B9)
Using Excel to Compute the ExpectedUsing Excel to Compute the ExpectedValue, Variance, and Standard DeviationValue, Variance, and Standard Deviation
Value WorksheetValue Worksheet
A B C
1 Sales Probability Sq.Dev.from Mean2 0 0.40 1.443 1 0.25 0.044 2 0.20 0.645 3 0.05 3.246 4 0.10 7.8478 Mean 1.29 Variance 1.66
10 Std.Dev. 1.2884
Using Excel to Compute the ExpectedUsing Excel to Compute the ExpectedValue, Variance, and Standard DeviationValue, Variance, and Standard Deviation
Four Properties of a Binomial ExperimentFour Properties of a Binomial Experiment
3. The probability of a success, denoted by 3. The probability of a success, denoted by pp, does, does not change from trial to trial.not change from trial to trial.3. The probability of a success, denoted by 3. The probability of a success, denoted by pp, does, does not change from trial to trial.not change from trial to trial.
4. The trials are independent.4. The trials are independent.4. The trials are independent.4. The trials are independent.
2. Two outcomes, 2. Two outcomes, successsuccess and and failurefailure, are possible, are possible on each trial.on each trial.2. Two outcomes, 2. Two outcomes, successsuccess and and failurefailure, are possible, are possible on each trial.on each trial.
1. The experiment consists of a sequence of 1. The experiment consists of a sequence of nn identical trials.identical trials.1. The experiment consists of a sequence of 1. The experiment consists of a sequence of nn identical trials.identical trials.
stationaritstationarityy
assumptioassumptionn
stationaritstationarityy
assumptioassumptionn
Binomial Probability DistributionBinomial Probability Distribution
Binomial Probability DistributionBinomial Probability Distribution
Our interest is in the Our interest is in the number of successesnumber of successes occurring in the occurring in the nn trials. trials. Our interest is in the Our interest is in the number of successesnumber of successes occurring in the occurring in the nn trials. trials.
We let We let xx denote the number of successes denote the number of successes occurring in the occurring in the nn trials. trials. We let We let xx denote the number of successes denote the number of successes occurring in the occurring in the nn trials. trials.
where:where: ff((xx) = the probability of ) = the probability of xx successes in successes in nn trials trials nn = the number of trials = the number of trials pp = the probability of success on any one trial = the probability of success on any one trial
( )!( ) (1 )
!( )!x n xn
f x p px n x
( )!( ) (1 )
!( )!x n xn
f x p px n x
Binomial Probability DistributionBinomial Probability Distribution
Binomial Probability FunctionBinomial Probability Function
( )!( ) (1 )
!( )!x n xn
f x p px n x
( )!( ) (1 )
!( )!x n xn
f x p px n x
Binomial Probability DistributionBinomial Probability Distribution
!!( )!
nx n x
!!( )!
nx n x
( )(1 )x n xp p ( )(1 )x n xp p
Binomial Probability FunctionBinomial Probability Function
Probability of a particularProbability of a particular sequence of trial outcomessequence of trial outcomes with with xx successes in successes in nn trials trials
Probability of a particularProbability of a particular sequence of trial outcomessequence of trial outcomes with with xx successes in successes in nn trials trials
Number of experimentalNumber of experimental outcomes providing exactlyoutcomes providing exactly
xx successes in successes in nn trials trials
Number of experimentalNumber of experimental outcomes providing exactlyoutcomes providing exactly
xx successes in successes in nn trials trials
Example: Evans ElectronicsExample: Evans Electronics
Binomial Probability DistributionBinomial Probability Distribution
Evans is concerned about a low retention Evans is concerned about a low retention rate for employees. In recent years, rate for employees. In recent years, management has seen a turnover of 10% of management has seen a turnover of 10% of the hourly employees annually. Thus, for any the hourly employees annually. Thus, for any hourly employee chosen at random, hourly employee chosen at random, management estimates a probability of 0.1 management estimates a probability of 0.1 that the person will not be with the company that the person will not be with the company next year.next year.
Example: Evans ElectronicsExample: Evans Electronics
Binomial Probability DistributionBinomial Probability Distribution
Choosing 3 hourly employees at random, Choosing 3 hourly employees at random, what is the probability that 1 of them will leave what is the probability that 1 of them will leave the company this year?the company this year?
f xn
x n xp px n x( )
!!( )!
( )( )
1f xn
x n xp px n x( )
!!( )!
( )( )
1
1 23!(1) (0.1) (0.9) 3(.1)(.81) .243
1!(3 1)!f
1 23!
(1) (0.1) (0.9) 3(.1)(.81) .2431!(3 1)!
f
LetLet: p: p = .10, = .10, nn = 3, = 3, xx = 1 = 1
Tree DiagramTree Diagram
Example: Evans ElectronicsExample: Evans Electronics
1st Worker 1st Worker 2nd Worker2nd Worker 3rd Worker3rd Worker xx Prob.Prob.
Leaves (.1)Leaves (.1)
Stays (.9)Stays (.9)
33
22
00
22
22
Leaves (.1)Leaves (.1)
Leaves (.1)Leaves (.1)
S (.9)S (.9)
Stays (.9)Stays (.9)
Stays (.9)Stays (.9)
S (.9)S (.9)
S (.9)S (.9)
S (.9)S (.9)
L (.1)L (.1)
L (.1)L (.1)
L (.1)L (.1)
L (.1)L (.1) .0010.0010
.0090.0090
.0090.0090
.7290.7290
.0090.0090
11
11
.0810.0810
.0810.0810
.0810.0810
1111
Using Excel to ComputeUsing Excel to ComputeBinomial ProbabilitiesBinomial Probabilities
Formula WorksheetFormula Worksheet
A B
1 3 = Number of Trials (n ) 2 0.1 = Probability of Success (p ) 34 x f (x )5 0 =BINOMDIST(A5,$A$1,$A$2,FALSE)6 1 =BINOMDIST(A6,$A$1,$A$2,FALSE)7 2 =BINOMDIST(A7,$A$1,$A$2,FALSE)8 3 =BINOMDIST(A8,$A$1,$A$2,FALSE)9
Value WorksheetValue Worksheet
Using Excel to ComputeUsing Excel to ComputeBinomial ProbabilitiesBinomial Probabilities
A B
1 3 = Number of Trials (n ) 2 0.1 = Probability of Success (p ) 34 x f (x )5 0 0.7296 1 0.2437 2 0.0278 3 0.0019
Using Excel to ComputeUsing Excel to ComputeCumulative Binomial ProbabilitiesCumulative Binomial Probabilities
Formula WorksheetFormula Worksheet
A B
1 3 = Number of Trials (n ) 2 0.1 = Probability of Success (p ) 34 x Cumulative Probability5 0 =BINOMDIST(A5,$A$1,$A$2,TRUE)6 1 =BINOMDIST(A6,$A$1,$A$2,TRUE)7 2 =BINOMDIST(A7,$A$1,$A$2,TRUE)8 3 =BINOMDIST(A8,$A$1,$A$2,TRUE)9
Value WorksheetValue Worksheet
Using Excel to ComputeUsing Excel to ComputeCumulative Binomial ProbabilitiesCumulative Binomial Probabilities
A B
1 3 = Number of Trials (n ) 2 0.1 = Probability of Success (p ) 34 x Cumulative Probability5 0 0.7296 1 0.9727 2 0.9998 3 1.0009
Binomial Probability DistributionBinomial Probability Distribution
(1 )np p (1 )np p
Expected ValueExpected Value
VarianceVariance
Standard DeviationStandard Deviation
EE((xx) = ) = = = npnpEE((xx) = ) = = = npnp
Var(Var(xx) = ) = 22 = = npnp(1 (1 pp))Var(Var(xx) = ) = 22 = = npnp(1 (1 pp))
Binomial Probability DistributionBinomial Probability Distribution
• Expected ValueExpected Value
• VarianceVariance
• Standard DeviationStandard Deviation
3(.1)(.9) .52 employees 3(.1)(.9) .52 employees
EE((xx) = ) = = 3(.1) = .3 employees out of 3 = 3(.1) = .3 employees out of 3EE((xx) = ) = = 3(.1) = .3 employees out of 3 = 3(.1) = .3 employees out of 3
Var(Var(xx) = ) = 22 = 3(.1)(.9) = .27 = 3(.1)(.9) = .27Var(Var(xx) = ) = 22 = 3(.1)(.9) = .27 = 3(.1)(.9) = .27
Binomial Probability DistributionBinomial Probability Distribution
A Poisson distributed random variable is oftenA Poisson distributed random variable is often useful in estimating the number of occurrencesuseful in estimating the number of occurrences over a over a specified interval of time or spacespecified interval of time or space
A Poisson distributed random variable is oftenA Poisson distributed random variable is often useful in estimating the number of occurrencesuseful in estimating the number of occurrences over a over a specified interval of time or spacespecified interval of time or space
It is a discrete random variable that may assumeIt is a discrete random variable that may assume an an infinite sequence of valuesinfinite sequence of values (x = 0, 1, 2, . . . ). (x = 0, 1, 2, . . . ). It is a discrete random variable that may assumeIt is a discrete random variable that may assume an an infinite sequence of valuesinfinite sequence of values (x = 0, 1, 2, . . . ). (x = 0, 1, 2, . . . ).
Poisson Probability DistributionPoisson Probability Distribution
Examples of a Poisson distributed random variable:Examples of a Poisson distributed random variable: Examples of a Poisson distributed random variable:Examples of a Poisson distributed random variable:
the number of knotholes in 24 linear feet ofthe number of knotholes in 24 linear feet of pine boardpine board the number of knotholes in 24 linear feet ofthe number of knotholes in 24 linear feet of pine boardpine board
the number of vehicles arriving at athe number of vehicles arriving at a toll booth in one hourtoll booth in one hour the number of vehicles arriving at athe number of vehicles arriving at a toll booth in one hourtoll booth in one hour
Poisson Probability DistributionPoisson Probability Distribution
Poisson Probability DistributionPoisson Probability Distribution
Two Properties of a Poisson ExperimentTwo Properties of a Poisson Experiment
2.2. The occurrence or nonoccurrence in anyThe occurrence or nonoccurrence in any interval is independent of the occurrence orinterval is independent of the occurrence or nonoccurrence in any other interval.nonoccurrence in any other interval.
2.2. The occurrence or nonoccurrence in anyThe occurrence or nonoccurrence in any interval is independent of the occurrence orinterval is independent of the occurrence or nonoccurrence in any other interval.nonoccurrence in any other interval.
1.1. The probability of an occurrence is the sameThe probability of an occurrence is the same for any two intervals of equal length.for any two intervals of equal length.1.1. The probability of an occurrence is the sameThe probability of an occurrence is the same for any two intervals of equal length.for any two intervals of equal length.
Poisson Probability FunctionPoisson Probability Function
Poisson Probability DistributionPoisson Probability Distribution
f xe
x
x( )
!
f x
e
x
x( )
!
where:where:
f(x) f(x) = probability of = probability of xx occurrences in an interval occurrences in an interval
= mean number of occurrences in an interval= mean number of occurrences in an interval
ee = 2.71828 = 2.71828
Example: Mercy HospitalExample: Mercy Hospital
Poisson Probability FunctionPoisson Probability Function
Patients arrive at the Patients arrive at the
emergency room of Mercyemergency room of Mercy
Hospital at the averageHospital at the average
rate of 6 per hour onrate of 6 per hour on
weekend evenings. weekend evenings.
What is theWhat is the
probability of 4 arrivals inprobability of 4 arrivals in
30 minutes on a weekend evening?30 minutes on a weekend evening?
MERCYMERCY
Example: Mercy HospitalExample: Mercy Hospital
Poisson Probability FunctionPoisson Probability Function
4 33 (2.71828)(4) .1680
4!f
4 33 (2.71828)
(4) .16804!
f
MERCYMERCY
= 6/hour = 3/half-hour, = 6/hour = 3/half-hour, xx = 4 = 4
Using Excel to ComputeUsing Excel to ComputePoisson ProbabilitiesPoisson Probabilities
Formula WorksheetFormula Worksheet
A B
1 3 = Mean No. of Occurrences ( ) 2
3Number of Arrivals (x ) Probability f (x )
4 0 =POISSON(A4,$A$1,FALSE)5 1 =POISSON(A5,$A$1,FALSE)6 2 =POISSON(A6,$A$1,FALSE)7 3 =POISSON(A7,$A$1,FALSE)8 4 =POISSON(A8,$A$1,FALSE)9 5 =POISSON(A9,$A$1,FALSE)
10 6 =POISSON(A10,$A$1,FALSE)
… and so on … and so on
MERCYMERCY
Value WorksheetValue Worksheet
Using Excel to ComputeUsing Excel to ComputePoisson ProbabilitiesPoisson Probabilities
A B
1 3 = Mean No. of Occurrences ( ) 2
3Number of Arrivals (x ) Probability f (x )
4 0 0.04985 1 0.14946 2 0.22407 3 0.22408 4 0.16809 5 0.1008
10 6 0.0504
… and so on … and so on
MERCYMERCY
Poisson Distribution of ArrivalsPoisson Distribution of Arrivals
Example: Mercy HospitalExample: Mercy Hospital MERCYMERCY
Poisson Probabilities
0.00
0.05
0.10
0.15
0.20
0.25
0 1 2 3 4 5 6 7 8 9 10
Number of Arrivals in 30 Minutes
Pro
bab
ilit
y
actually, actually, the the
sequencesequencecontinues:continues:11, 12, …11, 12, …
Using Excel to ComputeUsing Excel to ComputeCumulative Poisson ProbabilitiesCumulative Poisson Probabilities
Formula WorksheetFormula Worksheet
A B
1 3 = Mean No. of Occurrences ( ) 2
3Number of Arrivals (x ) Cumulative Probability
4 0 =POISSON(A4,$A$1,TRUE)5 1 =POISSON(A5,$A$1,TRUE)6 2 =POISSON(A6,$A$1,TRUE)7 3 =POISSON(A7,$A$1,TRUE)8 4 =POISSON(A8,$A$1,TRUE)9 5 =POISSON(A9,$A$1,TRUE)
10 6 =POISSON(A10,$A$1,TRUE)
MERCYMERCY
… and so on … and so on
Value WorksheetValue Worksheet
Using Excel to ComputeUsing Excel to ComputeCumulative Poisson ProbabilitiesCumulative Poisson Probabilities
A B
1 3 = Mean No. of Occurrences ( ) 2
3Number of Arrivals (x ) Cumulative Probability
4 0 0.04985 1 0.19916 2 0.42327 3 0.64728 4 0.81539 5 0.9161
10 6 0.9665
MERCYMERCY
… and so on … and so on