Part 5
Part 5
16
Continuous random variable
A random variable for which all values within a certain interval are possible is called
a continuous random variable. Such a variable has uncountably infinite number of
possible values.
Example 5:
Let 𝑋𝑋 = weight in gram of a football (regulation size). Then, 410 < 𝑋𝑋 < 450. Here,
number of possible values of 𝑋𝑋 is uncountably infinite.
Example 6:
Let 𝑋𝑋 = Lifetime of an electric component. Then, 0 < 𝑋𝑋 < ∞. Here, number of
possible values of 𝑋𝑋 is uncountably infinite.
(Probabilities of continuous variables will be discussed later.)
Probability mass function for discrete random variable
Let 𝑋𝑋 be a discrete random variable. The probability mass function (pmf) or
probability function of 𝑋𝑋, denoted by 𝑝𝑝(𝑥𝑥), is defined as 𝑝𝑝(𝑥𝑥) = 𝑃𝑃(𝑋𝑋 = 𝑥𝑥). It
satisfies the following two consitions:
(i) 𝑝𝑝(𝑥𝑥) ≥ 0
(ii) � 𝑝𝑝(𝑥𝑥) = 1
𝑥𝑥
Here, 𝑝𝑝(0) = 𝑃𝑃(𝑋𝑋 = 0) = 0.25. That is, for input ‘0’, output of the function is 0.25.
Similarly, 𝑝𝑝(1) = 𝑃𝑃(𝑋𝑋 = 1) = 0.50, and so on.
The function 𝑝𝑝(𝑥𝑥) is plotted against 𝑥𝑥:
17
Frequency distribution vs probability distribution
Let the random experiment in Example 7 be repeated 𝑛𝑛 = 1000 times, and the data
be used to construct the following frequency table.
𝑥𝑥 Frequency Relative Probability
Frequency
0 270 0.27 0.25
1 480 0.48 0.50
2 250 0.25 0.25
Total 1000 1.00 1.00
The last column of the table above uses the probabilities obtained in Example 7.
Note that relative frequencies (sample) are comparable to probabilities (population).
In the plot below, solid lines are used to show probabilities, while dotted lines are
used to show relative frequencies.
18