Lesson 5
Lesson 5
Statistics
0 2 4 6 8 10
0 2 4 6 8 10
Random Variables
Example:
Decide if the random variable x is discrete or continuous.
a.) The distance your car travels on a tank of gas
The distance your car travels is a continuous random
variable because it is a measurement that cannot be
counted. (All measurements are continuous random
variables.)
In Words In Symbols
Guidelines
Let x be a discrete random variable with possible outcomes x1, x2,
… , xn.
1. Make a frequency distribution for the possible outcomes.
2. Find the sum of the frequencies.
3. Find the probability of each possible outcome by dividing its
frequency by the sum of the frequencies.
4. Check that each probability is between 0 and 1 and that the
sum is 1.
Constructing a Discrete Probability Distribution
Example:
The spinner below is divided into two sections. The probability of
landing on the 1 is 0.25. The probability of landing on the 2 is 0.75.
Let x be the number the spinner lands on. Construct a probability
distribution for the random variable x.
x P (x)
1 0.25 Each probability is
2 0.75 between 0 and 1.
Example:
The spinner below is spun two times. The probability of landing on
the 1 is 0.25. The probability of landing on the 2 is 0.75. Let x be
the sum of the two spins. Construct a probability distribution for the
random variable x.
The possible sums are 2, 3, and 4.
Continued.
Constructing a Discrete Probability Distribution
Example continued:
P (sum of 3) = 0.25 0.75 = 0.1875
“or”
P (sum of 3) = 0.75 0.25 = 0.1875
Sum of
spins, x P (x)
Spin a 2 on the first “and” Spin a 1 on the second
2 0.0625 spin. spin.
3 0.375
4 0.1875 + 0.1875 Continued.
Constructing a Discrete Probability Distribution
Example continued:
Sum of
spins, x P (x)
2 0.0625 Each probability is between 0 and 1, and
the sum of the probabilities is 1.
3 0.375
4 0.5625
Graphing a Discrete Probability Distribution
Example:
Graph the following probability distribution using a histogram.
Sum of P(x)
P (x) Sum of Two Spins
spins, x 0.6
2 0.0625
0.5
3 0.375
4 0.5625 0.4
Probability
0.3
0.2
0.1
0 x
2 3 4
Sum
Mean
The mean of a discrete random variable is given by
μ = ΣxP(x).
Each value of x is multiplied by its corresponding probability and
the products are added.
Example:
Find the mean of the probability distribution for the sum of the two
spins.
x P (x) xP (x)
2 0.0625 2(0.0625) = 0.125 ΣxP(x) = 3.5
3 0.375 3(0.375) = 1.125 The mean for the two spins
4 0.5625 4(0.5625) = 2.25 is 3.5.
Variance
The variance of a discrete random variable is given by
2 = Σ(x – μ)2P (x).
Example:
Find the variance of the probability distribution for the sum of the
two spins. The mean is 3.5.
σ = σ 2.
Example:
Find the standard deviation of the probability distribution for the
sum of the two spins. The variance is 0.376.
σ σ2
x P (x) x–μ (x – μ)2 P (x)(x – μ)2
2 0.0625 –1.5 2.25 0.141 0.376 0.613
3 0.375 –0.5 0.25 0.094 Most of the sums
differ from the mean
4 0.5625 0.5 0.25 0.141
by no more than 0.6
points.
Expected Value
The expected value of a discrete random variable is equal to the
mean of the random variable.
Expected Value = E(x) = μ = ΣxP(x).
Example:
At a raffle, 500 tickets are sold for $1 each for two prizes of $100
and $50. What is the expected value of your gain?
Your gain for the $100 prize is $100 – $1 = $99.
Continued.
Expected Value
Example continued:
At a raffle, 500 tickets are sold for $1 each for two prizes of $100
and $50. What is the expected value of your gain?
Gain, x P (x) E(x) = ΣxP(x).
1
$99 500 1 1 498
$99 $49 ($1)
1 500 500 500
$49
500
$0.70
–$1 498
500
Because the expected value is negative, you can
Winning no expect to lose $0.70 for each ticket you buy.
prize
PROBABILITY DISTRIBUTIONS
• Here's an example probability distribution • Some of you might be confused by only dividing by N.
Recall that this is the population variance, the sample
that results from the rolling of a single fair variance, which was the unbiased estimator for the
die. population variance was when it was divided by n-1.
x 1 2 3 4 5 6 sum • Using algebra, this is equivalent to:
p(x) 1/6 1/6 1/6 1/6 1/6 1/6 6/6=1
• Recall that a probability is a long term relative frequency.
• Mean, Variance, and Standard Deviation So every f/N can be replaced by p(x). This simplifies to be:
• Consider the following.
• The definitions for population mean and
variance used with an ungrouped frequency • What's even better, is that the last portion of the variance
distribution were: is the mean squared. So, the two formulas that we will be
using are:
PROBABILITY DISTRIBUTIONS
• Here's the example we were working • The mean is 21/6=7/2 or 3.5
on earlier.
x 1 2 3 4 5 6 sum • The variance is 91/6 - (7/2)2 =
35/12 = 2.916666...
p(x) 1/6 1/6 1/6 1/6 1/6 1/6 6/6 = 1 • The standard deviation is the
square root of the variance =
x*p(x) 1/6 2/6 3/6 4/6 5/6 6/6 21/6 = 3.5 1.7078