Random Variables & Discrete Probability Distributions
Random Variables & Discrete Probability Distributions
Random Variables & Discrete Probability Distributions
Discrete Probability
Distributions
Random Variables
A random variable x represents a numerical value
associated with each outcome of a probability distribution.
Basically it is just a symbol that represents the outcome of
an experiment.
X = number of heads when the experiment is flipping a coin
20 times.
C = the daily change in a stock price.
R = the number of miles per gallon you get on your auto
during a family vacation.
Y = the amount of medication in a blood pressure pill.
2
Random Variables
3
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.)
5
Probability functions
6
Discrete example: roll of a die
p(x)
1/6
x
1 2 3 4 5 6
P(x) 1
all x
7
Probability mass function
x p(x)
1 p(x=1)=1/6
2 p(x=2)=1/6
3 p(x=3)=1/6
4 p(x=4)=1/6
5 p(x=5)=1/6
6 p(x=6)=1/6
1.0
8
Practice Problem:
The number of patients seen in the ER in any given hour is a
random variable represented by x. The probability distribution
for x is:
x 10 11 12 13 14
P(x) .4 .2 .2 .1 .1
Find the probability that in a given hour:
a. exactly 14 patients arrive p(x=14)= .1
9
Review Question 1
a. 1/6
b. 1/3
c. 1/2
d. 5/6
e. 1.0
10
Review Question 1
a. 1/6
b. 1/3
c. 1/2
d. 5/6
e. 1.0
11
Review Question 2
a. 1/5
b. 2/3
c. 1/2
d. 5/6
e. 1.0
12
Review Question 2
13
Probability
Distributions
Discrete Probability Distributions
A discrete probability distribution lists each possible value
the random variable can assume, together with its
probability. A probability distribution must satisfy the
following conditions.
In Words In Symbols
1. The probability of each value of 0 P (x) 1
the discrete random variable is
between 0 and 1, inclusive.
15
Constructing a Discrete Probability Distribution
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.
16
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.
1
x P ( x)
1 0.25 Each probability is
2 between 0 and 1.
2 0.75
17
Constructing a Discrete Probability Distribution
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.
Continued.
18
Constructing a Discrete Probability Distribution
Example continued:
Example continued:
Sum of
P ( x)
spins, x
2 0.0625 Each probability is between
3 0.375 0 and 1, and the sum of the
4 0.5625 probabilities is 1.
20
PROBABILITY HISTOGRAM
21
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
Probability
4 0.5625 0.4
0.3
0.2
0.1
0 x
2 3 4
Sum
22