W7_Random Variables and Probability Distribution
W7_Random Variables and Probability Distribution
Maryam Zangiabadi
Ch. 9: Random Variables and Probability
Distributions
Learning Objectives
1) Calculate the expected value and variance of discrete random variable
2) Analyze the effect of adding and subtracting random variables
3) Model discrete random variables
2
Expected Value of a Random Variable
A variable whose value is based on the outcome of a random event is called a random
variable
If we can list all possible outcomes, the random variable is called a discrete random
variable
Example: An inspector examines the light bulbs in a box of 6. The possible outcome of
this experiment defines the number of defective light bulbs in the box. The possible
outcomes are x = {0,1, 2, 3, 4, 5, 6}. The variable x is a discrete random variable.
If a random variable can take on any value between two values in an interval, it is
called a continuous random variable
Example: The exact time that takes a bus to complete its route between two towns
may be any value 20 minutes to 30 minutes. The variable x is a continuous random
variable.
3
Expected Value of a Random Variable
For both discrete and continuous random variables, the set of all the possible values
and their associated probabilities is called the probability model
When the probability model is known, then the expected value can be calculated:
4
Expected Value of a Random Variable
Example: The probability model for a particular life insurance policy is shown in the
table below. Find the expected annual payout on a policy.
1 2 997
E ( X ) = $100,000 + $50,000 + $0 $200
1000 1000 1000
Policyholder Payout x Probability P (X = x)
𝐸(𝑋) = $200 Outcome (cost)
We expect that the Death 100,000 1
insurance company will pay 1000
out $200 per policy per year Disability 50,000 2
1000
Neither 0 997
1000
Table - Probability model for an insurance policy.
5
Standard Deviation and Variance of a
Random Variable
The standard deviation also measures the dispersion or spread in the values of a
random variable.
6
Standard Deviation and Variance of a
Random Variable
Example: The probability model for a particular life insurance policy is shown. Find the
variance and standard deviation of the annual payout.
Policyholder Outcome Payout x (cost) Probability P (X = x) Deviation (x − E (x))
7
Standard Deviation and Variance of a
Random Variable
Example: Consider the distribution of the number of children per household in a city shown
below. Find the standard deviation of the number of children in families per household.
Difference between outcome x & EV
For finding EV Deviates 𝟐 𝟐
𝑿 𝑷(𝒙) 𝒙𝑷(𝒙) (𝒙 − 𝑬(𝑿)) 𝒙−𝑬 𝑿 𝒙−𝑬 𝑿 𝒑(𝒙)
0 0.2 0 -1.6 2.56 0.512
1 0.25 0.25 -0.6 0.36 0.09
2 0.35 0.7 0.4 0.16 0.056
3 0.15 0.45 1.4 1.96 0.294
4 0.05 0.2 2.4 5.76 0.288
Helps measure the “spread”
Total 1 1.6 of values around the mean 1.24
This is E(X) This is Var(X)
2𝑃
𝑉𝑎𝑟 𝑋 = 𝑥 − 𝐸 𝑋 𝑥 = 1.24, 𝑆𝐷 𝑋 = 𝑉𝑎𝑟 𝑋 = 1.24 = 1.11
8
Book251
Multiplying X by a constant a:
E (aX ) = aE ( X ),and variance depends on the square of
the deviations from the mean. Since
Var (aX ) = a 2Var ( X ).
variance is based on squared
SD(aX ) = a SD( X ). differences, any scaling effect is
also squared.
9
Book252
This insurance company sells policies to10
more than just one person. We’ve just
Note: we always add the Variances (even when subtracting the Random Variables)
11
13
Book259
14
Book260
15
1
Expected value: =
p
Standard deviation: q
=
p2
16
2.
17
2. 𝑃 3 = 𝑃 𝑥 = 3 = 0.147
False = exact range
21
B. What’s the probability at most one of them have a Tax-Free Saving Account?
𝑃 𝑥 ≤1 =𝑃 𝑥 =0 +𝑃 𝑥 =1
18! 0 18 18!
= (0.41 ) 0.59 + (0.411 ) 0.5918−1
0! 18−0 ! 1! 18−1 !
= 0.000075 + 0.000939 = 0.001014
23
e −4 40
P ( X = 0) = = e −4 = 0.0183(recall that e 2.71828).
0!
29
2) 𝑝 𝑋 ≤ 2 = 𝑝 𝑋 = 0 + 𝑝 𝑋 = 1 + 𝑝 𝑋 = 2 = 0.1247
References
The slides are a combination of the material from your text and Pearson recourses as
well as the original material.
30