4 Discrete Random Variable
4 Discrete Random Variable
Draw up a probability distribution table relating to a given situation involving a discrete random variable X.
Define what a fair game is and solve questions involving fair games.
Definitions
A variable with an unknown value or a function
that gives values to each experiment's results.
Random Variables
There are two types of random variables: discrete
and continuous.
Discrete random variables can have a finite or an infinite number of outcomes. It is usually denoted by an uppercase letter
(X or Y or Z), whereas the particular values that are given to this variable are denoted by lowercase letters (r1 , r2 , r3 ). Thus,
we have P (X = r1 , r2 , r3 …).
i=1
Example,
score on two
2 3 4 5 6 7 8
dice, X
1 2 3 4 5 6 5
probability,f (x)
36 36 36 36 36 36 36
The table shown above is the probability distribution (table) for the random variable, X, the total score on two dice. We can
make similar probability distribution tables for other cases that we will be presented with within the form of a table or a
chart.
Solution
i) The two columns of the tables are labelled with the possible outcomes for both dice and the sum of those
possible throws are recorded in the table on the right.
Using this table, we can note down the probability distribution for X as shown in the table below. We do so by
noting the probability of all those sums occurring in the entire table and noting that fraction below it.
r 2 3 4 5 6 7 8
1 2 3 4 3 2 1
P(X=r) 16
16
16
16
16
16
ii) To show this in the form of a graph, we can plot r on the x-axis and P (X = r ) as a decimal on the y-axis as
shown in the graph below,
= P (X = 3) + P (X = 5) + P (X = 7)
2 4 2
= 16
+ 16
+ 16
1
= 2
Solution
We can have up to six possible outcomes: 1, 2, 3, 4, 5, 6. Each of these has a probability of 1/6 of occurring.
Let X represent the outcome of this experiment.
P (X = 1) = 1/6 (indicating that the probability of the outcome of the experiment is 1 is 1/6)
P (X = 2) = 1/6 (the probability that you throw a 2 is 1/6)
P (X = 3) = 1/6 (the probability that you throw a 3 is 1/6)
P (X = 4) = 1/6 (the probability that you throw a 4 is 1/6)
P (X = 5) = 1/6 (the probability that you throw a 5 is 1/6)
E(X) = 1 × P (X = 1) + 2 × P (X = 2) + 3 × P (X = 3) + 4 × P (X = 4) + 5 × P (X = 5) + 6 ×
P (X = 6)
1 2 3 4 5 6
Therefore E (X ) = 6
+ 6
+ 6
+ 6
+ 6
+ 6
= 72
So, the expectation is 3.5.
Logically speaking, 3.5 is halfway between the possible values the die can take and so this is what you should
have expected.
4.3.2 Variance
The variance of a random variable tells us something about
the spread of the possible values of the variable. Important Note
For a discrete random variable X, the variance of X is The notation μis given for the distributive
written as Var(X). In other words, the variance is a measure mean and σ for its standard deviation, and
of how spread out the values of X would be if the
the notation for P (X = r)is shortened.
experiment leading to X were repeated a number of times.
E (X ) = ∑ xp
2
Var (x) = ∑ x2 p − [E (X )]
r 0 1 2 3
1. Find E(X)
2. Find E(X2)
Solution
r Pr rPr
r 2 Pr
0 0.2 0 0
1. E (X ) = μ = ∑ rPr
2. E (X 2 ) = ∑ r 2 Pr
9709/6/October 2007
The random variable X takes the value -2, 0 and 4 only. It is given that P(X=−2) = 2p, P(X=0) = p and P(X=4) = 3p.
1. Find p.
Solution
2p + p + 3p = 1
6p = 1
p = 61
1
2. P (X = −2) = 2p = 2 ∗ 6
= 13
1
P (X = 0) = p = 6
1
P (X = 4) = 3p = 3 ∗ 6
= 12
= − 23 + 06 + 42
8
= 6
4
= 3
9
)
= [ 34
+ 06 + 162
] − ( 16
9
)
= − 16
28
3 9
Var (X ) = 68
9
Points to Note
A discrete random variable is a type of variable that can only hold a set of values from an interval.
Discrete random variables are shown by uppercase letter (X or Y or Z), values that are given to this variable are denoted
by lowercase letters (r1 , r2 , r3 ). Thus, we have
P (X = r1 , r2 , r3 …)
The sum of all probabilities should be equal to 1 and is given by the formula below:
n
∑i=1 P (X = xi ) = 1
The expectation is what you would expect to get if you were to carry out the experiment a large number of times and
calculate the 'mean'.
E (X ) = μ = ∑ rP (X = x) = ∑ rpr
The variance of a random variable tells us something about the spread of the possible values of the variable.
σ 2 = E ([X − μ] ) = ∑ (r − μ) pr
2 2