Discrete Random Variables Notes
Discrete Random Variables Notes
CELL 0783235483
A. RANDOM VARIABLES
A variable is a characteristic or attribute that can assume different values.
A random variable is a variable whose values are determined by chance /
depend on a random event.
For example the outcomes of rolling a die can assume the values 1,2,3,4,5 or 6
Capital letters such as X, Y , Z etc can be used to represent random variables.
For a random variable X, x is a particular value of X and for Y, y is a
particular value of Y.
If a random variable can only take certain numerical values it is called a
discrete random variable.
EXAMPLES
1. Three coins are tossed and the number of times a head appears is noted.
What are the possible values X can take?
SOLUTION
All three can be Heads ie HHH and this is 3 heads or we can have 2 Heads
and a Tail or 1 head and two tails or 0 heads and three Tails.
x = 0 ; 1 ; 2 or 3
2. A die numbered 1 to 6 is rolled and the number it shows is noted. Letting Y
be the outcome of rolling a die. What are the possible values of Y.
SOLUTION
y = 1 ; 2 ; 3 ; 4 ; 5 or 6
B. PROBABILITY DISTRIBUTIONS
A probability distribution consists of the values a random variable can assume
and the corresponding probabilities of the values.
The distribution will show x values and P(X = x)
EXAMPLES
1
A LEVEL STATISTICS(6046) TEACHING NOTES COMPILED BY MANYUVIRE D. CELL 0783235483
1. Three coins are tossed and the number of times a head appears is noted.
Write down the probability distribution of X.
SOLUTION
Let X be the number of times a head can appear. The possible sample space
and the corresponding number of heads is :
HHH; HHT; HTH; THH; TTT; TTH; THT; HTT
3; 2; 2; 2; 0; 1; 1; 1
X can take the values 0; 1; 2; or 3
P(X= 0) = ; P(X=1) = ; P(X=2) = ; P(X=3) =
The probability distribution table is:
x 0 1 2 3
P(X = x)
example 1
2
A LEVEL STATISTICS(6046) TEACHING NOTES COMPILED BY MANYUVIRE D. CELL 0783235483
+ =1
=
2. The discrete random variable X has a probability function
C. PROBABILITIES OF X
We can calculate probability of X less than or greater a particular value or X
lies between some particular values using a probability distribution table.
EXAMPLE
1. A discrete random variable X has the probability distribution
x 1 2 3 4
P(X = x) 0,4 0,2 0,1 0,3
3
A LEVEL STATISTICS(6046) TEACHING NOTES COMPILED BY MANYUVIRE D. CELL 0783235483
x 0 1 2 3
F(x)
E. EXPECTATION OF X
The expected value of the discrete random variable X is denoted E(X ) and
defined as E(X ) = ΣxP(X = x).
It is a value that we expect our average to get close to as the number of
observations increase.
It is a theoretical quantity and is sometimes referred to as the mean
EXAMPLE
1.A discrete random variable has the following distribution.
x 1 2 3 4
P(X = x)
EXAMPLE
4
A LEVEL STATISTICS(6046) TEACHING NOTES COMPILED BY MANYUVIRE D. CELL 0783235483
x 1 2 3 4
P(X = x)
x 1 2 3 4
P(X = x)
H. STANDARD DEVIATION
Standard deviation of a discrete random variable X is denoted by and is the
square root of the variance.
To calculate standard deviation, calculate variance of X and then find its
square root.
5
A LEVEL STATISTICS(6046) TEACHING NOTES COMPILED BY MANYUVIRE D. CELL 0783235483
You can calculate the expected value of g(X ) using the formula:
E(g(X )) = Σ g(x)P(X = x)
If X is a random variable and a and b are constants, then
E(aX + b) = aE(X ) + b
If X and Y are random variables, then E(X + Y ) = E(X ) + E(Y )
If X is a random variable and a and b are constants then
Var(aX + b) = a2 Var(X )
If X and Y are random variables, then Var(X + Y ) = Var(X ) + Var(Y )
If X and Y are random variables, then E(aX + bY ) = a2Var(X ) + b2Var(Y )
EXAMPLES
1..A discrete random variable has the following distribution.
x 1 2 3 4
P(X = x)
x 1 2 3 4
z 1 -1 -3 -5
P(X = x)
b) E(X) = 1×
=
=2,25
2
E(X ) = 1×
=
= 6,42
Var(X) = E(X2) –
Var(X) =
Var(X) =
= 1,35
6
A LEVEL STATISTICS(6046) TEACHING NOTES COMPILED BY MANYUVIRE D. CELL 0783235483
+3 =4
= =
5 = 5,4
d) E Y Z Var Y Z
= 2E(Y) –E(Z) = 22Var(Y)+Var(Z)
= 2(5 5 5 =4 +
= 11+1,5
=12,5 =
= 27,08
REVISION QUESTIONS
1. A tetrahedral die has the numbers 1;2;3 and 4 on its sides. Find the probability
distribution of X the number on which the die lands on a single roll.
2. Two coins are tossed and the number of times a head appears is noted. Write
down the probability distribution of X the number of times a head appears.
3. Two spinners with numbers 1 ; 2 ; 3 on each are spun and the sum of the numbers
from each spinner is noted. Write down the probability distribution of X the sum
of the scores from each spinner.
4. The random variable X has a probability distribution as shown in the table.
x 1 2 3 4 5
P(X= x) 0,1 p 0,3 q 0,2
a) Given that E(X ) = 3, write down two equations involving p and q.
b) Find the value of p and the value of q.
5. The discrete random variable X has probability function
7
A LEVEL STATISTICS(6046) TEACHING NOTES COMPILED BY MANYUVIRE D. CELL 0783235483