59
3
Random Variables,
Distributions, Moments,
and Statistics
3.1 RANDOM VARIABLES
We can dene a random variable (RV) once we have dened the sample space, based on the possible
events and their probabilities. An RV is a rule, or a function, or a map associating a number to each
event in the sample space (see Figure 3.1).
Example: In the roll of six-sided die, the events are A
i
= side facing up is i where i = 1, 2, …,
6 with P[A
i
] = 1/6. We can make a “discrete” RV, denoted by X, associating each event with
the value of the RV; for example, X taking values X = {1, 2, 3, 4, 5, 6} each with P[x
i
] = 1/6.
We refer to the type of RV described in the example as discrete because its values are discrete, that
is, a set of numbers, in this case integers 1, 2, …, 6. The events can be dened from intervals con-
tained in a range of real values from a to b. In this case, the values of RV X are continuous in this
range. We call this type of RV continuous.
Example: We measure concentration of a mineral (in ppm) at a given location and it can take
values between 0 and 10,000 ppm. Continuous random variable X is concentration. An event
could be dened as A = measured concentration is in the interval 10–15 ppm.
3.2 DISTRIBUTIONS
RV distributions are dened in the following manner. Here we assume that X is an RV.
3.2.1 probability Mass anD Density functions (pmf and pdf)
A discrete distribution or probability “mass” function (pmf) p(X) is a set of probabilities, one for
each value of X. More precisely, denoting x
i
as the values of X
px PX x
()
(3.1)
for all values x
i
of X
px
i
() for all i (3.2)
px
i
i
()
= 1 (3.3)