REVIEW: RANDOM NUMBERS AND SAMPLING THEORY
2
T
ABLE
R.1
Value of X 23456789101112
Frequency12345654321
Probability 1/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36
Assuming that the dice are fair, we can use Figure R.1 to work out the probability of the
occurrence of each value of X. Since there are 36 different combinations of the dice, each outcome
has probability 1/36. {Green = 1, red = 1} is the only combination that gives a total of 2, so the
probability of X = 2 is 1/36. To obtain X = 7, we would need {green = 1, red = 6} or {green = 2, red =
5} or {green = 3, red = 4} or {green = 4, red = 3} or {green = 5, red = 2} or {green = 6, red = 1}. In
this case six of the possible outcomes would do, so the probability of throwing 7 is 6/36. All the
probabilities are given in Table R.1. If you add all the probabilities together, you get exactly 1. This is
because it is 100 percent certain that the value must be one of the numbers from 2 to 12.
The set of all possible values of a random variable is described as the population from which it is
drawn. In this case, the population is the set of numbers from 2 to 12.
Exercises
R.1
A random variable X is defined to be the difference between the higher value and the lower
value when two dice are thrown. If they have the same value, X is defined to be 0. Find the
probability distribution for X.
R.2*
A random variable X is defined to be the larger of the two values when two dice are thrown, or
the value if the values are the same. Find the probability distribution for X. [Note: Answers to
exercises marked with an asterisk are provided in the Student Guide.]
Expected Values of Discrete Random Variables
The expected value of a discrete random variable is the weighted average of all its possible values,
taking the probability of each outcome as its weight. You calculate it by multiplying each possible
value of the random variable by its probability and adding. In mathematical terms, if the random
variable is denoted X, its expected value is denoted E(X).
Let us suppose that X can take n particular values x
1
, x
2
, ..., x
n
and that the probability of x
i
is p
i
.
Then
∑
=
=++=
n
i
iinn
pxpxpxXE
1
11
...)(
(R.1)
(Appendix R.1 provides an explanation of
Σ
notation for those who would like to review its use.)