Random Variables
Random Variables
DNMAOR
IDENTIFY THE WORD:
OARMDN
IDENTIFY THE WORD:
AODRMN
IDENTIFY THE WORD:
OARMDN
IDENTIFY THE WORD:
AODRMN
IDENTIFY THE WORD:
RANDOM
IDENTIFY THE WORD!
CLUES:
AABVRLEI
IDENTIFY THE WORD:
BAARLVEI
IDENTIFY THE WORD:
RBALVEIA
IDENTIFY THE WORD:
VARIABLE
RANDOM VARIABLE
Random
- occurring without definite aim, reason, or pattern
- something unpredictable or unidentified
Variable
- is a symbol (A, B, x, y, etc.) that can take on any of a
specified set of values.
RANDOM VARIABLES
LEARNING TARGETS:
EICSDRET
IDENTIFY THE WORD:
SDICRETE
IDENTIFY THE WORD:
SDIERCET
IDENTIFY THE WORD:
DISCRETE
IDENTIFY THE WORD!
CLUES:
TCINOUONUS
IDENTIFY THE WORD:
ICNOTUONUS
IDENTIFY THE WORD:
CNOTIUUNOS
IDENTIFY THE WORD:
CONTINUOUS
TWO CATEGORIES OF RANDOM VARIABLE
RANDOM VARIABLES
DISCRETE
CONTINUOUS
RANGE SPACE
TTH 2
THT 2
THH 1
HTT 2
HTH 1
HHT 1
HHH 0
EXAMPLE 1:
BBG
BGB
BGG
GGG
GBG
GGB
GBB
EXAMPLE 2:
Value of the Random Variable X
Possible Outcomes
(number of Boys)
BBB 3
BBG 2
BGB 2
BGG 1
GGG 0
GBG 1
GGB 1
GBB 2
EXAMPLE 3:
RRR 3
The VALUES of the random
2 variable R (number of ripe
RRU
bananas) in this experiment are
RUR 2
0, 1, 2 and 3.
2
URR
1
UUR
URU 1
RUU 1
0
UUU
SEATWORK: Determine the values of the random variable
(range space) in each of the following situations:
TTH 2
THT 2
THH 1
HTT 2
HTH 1
HHT 1
HHH 0
EXAMPLE 1:
Value of the Random Variable
Y Number of Occurences
(number of TAILS)
3 1
2 3
1 3
0 1
EXAMPLE 1:
Number of No. of Probability
Tails Occurences (P(X))
1
0 1 8
3
1 3 8
3
2 3
8
3 1 1
8
EXAMPLE 1:
Number of Tails Probability (P(X))
0 0.125
1 0.375
2 0.375
3 0.125
Note:
Just like any other statistical distribution, a probability
mass function may be graphed using a histogram in which
the horizontal axis represents the values of the random
variable X and the vertical axis gives the corresponding
probabilities, P(X).
0.4
0.3
Probability
0.2
P(x)
0.1
0
0 1 2 3
X
EXAMPLE 2:
RRU 2
RUR 2
RUU 1
UUU 0
URU 1
URR 2
UUR 1
EXAMPLE 2:
Value of the Random Variable R
(number of Ripe bananas) Number of Occurences
3 1
2 3
1 3
0 1
EXAMPLE 2:
Number of Ripe
0 1 2 3
Bananas
Probability (P(R))
EXAMPLE 2:
Number of Ripe
Probability (P(R))
Bananas
0 0.125
1 0.375
2 0.375
3 0.125
0.4
0.3
Probability
0.2
P(R)
0.1
0
0 1 2 3
R
EXAMPLE 3:
Determine whether or not the formula below describes
a probability distribution
P(x)=
, where X= 0, 1, 3, If it is, find the following:
1. P(X = 3)
2. P(X ≥ 1)
3. P(X ≤ 1)
PROPERTIES OF A DISCRETE PROBABILITY DISTRIBUTION
0 1/8
1 3/8
2 3/8
3 1/8
EXAMPLE 1:
X P(X) X * P(X)
0 1/8 0
1 3/8 3/8
2 3/8 6/8
3 1/8 3/8
MEAN OF A DISCRETE RANDOM VARIABLE
µ = ∑[X*P(X)]
µ = 1.5
INTERPRETATION:
P(W=2)
Number 2 2
P(W=3)
Number 3 3
P(W=4)
Number 4 4
P(W=5)
Number 5 5
EXAMPLE 2:
Probability
Outcome W W* P(W)
P(W)
1 1/5 1/5
2 1/5 2/5
3 1/5 3/5
4 1/5 4/5
5 1/5 1
THEREFORE,
◼µ = ? ◼µ = 3
TRY THIS!
Outcome Probability P(X)
2 0.042
3 0.010
4 0.021
5 0.375
6 0.188
7 0.344
8 0.021
LEARNING TARGETS:
σ2 = ∑[X2*P(X)] - µ2 σ = √{∑[X2*P(X)] - µ2 }
Where:
µ= mean
X= value of the random variable
P(X) = the probability value of the random variable
σ2 = variance
σ = standard deviation
Determines the homogeneity or heterogeneity of a distribution
Deviation - different from what is usual or expected
Variability can also be defined in terms of how close the scores in the distribution are to the middle of the
distribution. Using the mean as the measure of the middle of the distribution, the variance is defined as the
average squared difference of the scores from the mean.
EXAMPLE 1:
FIND THE VARIANCE AND THE STANDARD DEVIATION OF THE
DISCRETE RANDOM VARIABLE X WITH THE FFG. PROBABILITY
DISTRIBUTION
X P(X)
2 1/4
1 1/2
0 1/4
STEPS:
2 1/4 1/2 4 1
0 1/4 0 0 0
STEPS:
σ2 = ∑[X2*P(X)] - µ2 σ = √{∑[X2*P(X)] - µ2 }
Where:
µ= mean
X= value of the random variable
P(X) = the probability value of the random variable
σ2 = variance
σ = standard deviation
Example 1
The following data show the probability distribution
of the number of computers sold daily in a computer
shop during the past several months.
X P(X) X∙ P ( X ) X2 X2 ∙ P ( X )
0 0.10 0.00 0 0.00
1 0.20 0.20 1 0.20
2 0.45 0.90 4 1.80
3 0.15 0.45 9 1.35
4 0.05 0.20 16 0.80
5 0.05 0.25 25 1.25
Questions:
1. What is the probability that on a given day ----
a) fewer than three computers will be sold?
b) at most, two computers will be sold?
c) at least, four computers will be sold?
d) Exactly three computers will be sold?
2. Compute the mean and standard deviation and interpret 110
the values.
Solution:
1) a) to find the probability that fewer than three computers will be sold, use X = 0, 1,
and 2
P ( X < 3 ) = P ( 0 ) + P ( 1 ) + P ( 2 ) = 0.10 + 0.20 + 0.45 = 0.75
b) to find the probability that at most two computers will be sold, use X = 0, 1, and 2
P ( X ≤ 2 ) = P ( 0 ) + P ( 1 ) + P ( 2 ) = 0.10 + 0.20 + 0.45 = 0.75
c) to find the probability that at least four computers will be sold, use X = 4 and 5
P ( X ≥ 4 ) = P ( 4 ) + P ( 5 ) = 0.05 + 0.05 = 0.10
111
2. Themean of the probability distribution is computed as follows:
µ = ∑ [ X ∙ P ( X ) ] = 2.00
Interpretation: The mean of the probability distribution is 2. This implies
That in the long run, we expect that the average number of computers
that will be sold on a given day will be two.
112
TRY THIS!
X P(X)
2 0.4
4 0.1
6 0.1
8 0.4
x P(x) x (Px) x2 X2(Px)
0.1 0.4
4 16 1.6
6 0.1 0.6 36
3.6
σ2 = ∑[X2*P(X)] - µ2 σ = √{∑[X2*P(X)] - µ2 }
Application of Discrete
Random Variables
EXPECTED
VALUE
EXPECTED VALUE
- also known as “expectation or
payoff value”, is the mean of the
probability distribution of the given
random variable.
µ = E(X) = ∑[X*P(X)]
What is Expected Value? The Expected Value (EV)
is the Predicted Value for using at any point in the
future. This value is also known as expectation,
the average, the mean or the first moment. This is
mainly used in statistics and probability analysis.
EXAMPLE 1:
E(X)= +
= 19.6 + (-199.6)
= -180
EXAMPLE 3
E(X)= +
= 40 + (-60)
= -20