Professional Documents
Culture Documents
Chapter 5e
Chapter 5e
Chapter 5e
CHAPTER-FIVE
5. One-dimensional Random Variables
5.1 Random variable: definition and distribution function
Definitions:
Variable: is any characteristic or attribute that can assume different values.
A random variable (r.v): is a variable whose values are determined by chance.
Definition: A random variable is a numerical description of the outcomes of an experiment or a
numerical valued function defined on sample space, usually denoted by capital letters.
If X is a random variable, then it is a function from the elements of the sample space to the set of
real numbers. I.e. X is a function X: S → R
Discrete variables: are variables whose values are determined by counting.
Continuous Variables: are variables whose values are determined by measuring rather than
counting.
A probability distribution is a description of the value a random variable can assume and the
corresponding probabilities of the values. It is often displayed in a graph, table, or formula.
Notation:
Random Variables are usually denoted by X or Y.
The probability a random variable 𝑋 takes on a value 𝑥𝑖 is:
𝑃𝑋 (𝑋 = 𝑥𝑖 ) = 𝑃(𝑋 = 𝑥𝑖 ) = 𝑃(𝑥𝑖 ) 𝑓𝑜𝑟 𝑑𝑖𝑠𝑐𝑟𝑒𝑡𝑒 𝑟. 𝑣 𝑎𝑛𝑑 𝑓𝑋 (𝑥) = 𝑓(𝑥) 𝑓𝑜𝑟 𝑐𝑜𝑛𝑡𝑖𝑛𝑜𝑢𝑠 𝑟. 𝑣.
A Probability Distribution, then, is a specification of 𝑃(𝑥𝑖 ) for each 𝑥𝑖 that is an outcome of
a procedure. As mentioned before, this could be done in a graph, table, or formula.
5.2 Discrete random variables
Definition: Let 𝑋 be a r.v. If the number of possible values of 𝑋 is finit or countably infinit, we
call 𝑿 a discrete r.v. That is, the possible values of 𝑋 may be listed as 𝑥1 , 𝑥2 , 𝑥3 , … , 𝑥𝑛 , … in the
finite case the list terminates and in the countably infinite case the list continues indefinitely.
5.2.1 Probability Mass Function (Discrete Probability Distribution):
Definition: If 𝑋 is a discrete 𝑟. 𝑣 with distinct values 𝑥1 , 𝑥2 , … , 𝑥𝑛 , …, then the function
𝑝(𝑥)defined as:
𝑃(𝑋 = 𝑥𝑖 ) = 𝑝𝑖 , 𝑖𝑓 𝑥 = 𝑥𝑖
𝑝𝑋 (𝑥) = {
0 , 𝑖𝑓 𝑥 ≠ 𝑥𝑖 ; 𝑖 = 1,2,3, …
3 4 5 12 4
𝑃(𝑋 > 2) = 𝑃(𝑋 = 3) + 𝑃(𝑋 = 4) + 𝑃(𝑋 = 5) = 15 + 15 + 15 = 15 = 5.
2 3 4 9 3
𝑃(1 < 𝑋 ≤ 4) = 𝑃(𝑋 = 2) + 𝑃(𝑋 = 3) + 𝑃(𝑋 = 4) = 15 + 15 + 15 = 15 = 5.
Values of X, x: 0 1 2 3 4 5 6 7
𝒑(𝒙) 0 k 2k 2k 3k k2 2k2 7k2+k
a). Find the value of 𝑘. b). Evaluate 𝑃(𝑋 < 6), 𝑃(𝑋 ≥ 6) 𝑎𝑛𝑑 𝑃(0 <
𝑋 < 5).
𝑨𝒏𝒔: 𝑎) 𝑘 = 1/10 𝑏) 𝑃(𝑋 < 6) = 81/100, 𝑃(𝑋 ≥ 6) = 19/100 𝑎𝑛𝑑 𝑃(0 < 𝑋 <
5) = 4/5.
5.3 Continuous random variables
A random variable X is said to be continuous if it can take all possible values (integral as well as
fractional) between a certain limits. Continuous random variable is a random variable that can be
measured to any desired degree of accuracy. For instance, the life length of an electric bulb, the
speed of a car, weights, heights, and the like are continuous.
In such cases, probabilities are associated with intervals or regions of a continuous
random variable, and not with individual points.
5.3.1 Probability Density Function (pdf)
Consider the small interval (𝑥, 𝑥 + 𝑑𝑥) of length 𝑑𝑥 round the point 𝑥 . Let 𝑓(𝑥) be any
continuous function of 𝑥 so that 𝑓(𝑥)𝑑𝑥 represents the probability that 𝑋 falls in the infinitesimal
interval(𝑥, 𝑥 + 𝑑𝑥). Sybollically, 𝑃(𝑥 ≤ 𝑋 ≤ 𝑥 + 𝑑𝑥) = 𝑓(𝑥)𝑑𝑥.
𝑓(𝑥)𝑑𝑥
𝑦 = 𝑓(𝑥)
𝑥 𝑥 + 𝑑𝑥
In the figure, 𝑓(𝑥)𝑑𝑥 represents the area bounded by the curve 𝑦 = 𝑓(𝑥), 𝑥-axis and ordinates
at the points 𝑥 and 𝑥 + 𝑑𝑥. The function 𝑓𝑋 (𝑥) = 𝑓(𝑥) so defined is known as probability
density function (pdf) of random variable X. The expression , 𝑓(𝑥)𝑑𝑥, usually written as 𝑑𝐹(𝑥),
is known as probability differential and the curve 𝑦 = 𝑓(𝑥) is known as the probability density
curve.
𝑃(𝑥 ≤ 𝑋 ≤ 𝑥 + 𝛿𝑥)
𝑓𝑋 (𝑥) = 𝑓(𝑥) = lim
𝛿𝑥→0 𝛿𝑥
The probability for a variate value to lie in the interval 𝑑𝑥 𝑖𝑠 𝑓(𝑥)𝑑𝑥 and hence the probability
for a variate value to fall in the finite interval [𝑎, 𝑏] is:
𝑏
𝑃(𝑎 ≤ 𝑋 ≤ 𝑏) = ∫𝑎 𝑓(𝑥)𝑑𝑥 ,
Which represents area between the curve 𝑦 = 𝑓(𝑥), 𝑥- axis and the ordinates at 𝑥 = 𝑎 𝑎𝑛𝑑 𝑥 =
𝑏.
𝑏
Further, since the total probability is unity, we have ∫𝑎 𝑓(𝑥)𝑑𝑥 = 1, where [𝑎, 𝑏] the
range of the random variable is𝑋. The range of the variable may be finite or infinite.
The probability density function (p.d.f.) of a random variable X , usually denoted by
𝑓𝑋 (𝑥) 𝑜𝑟 𝑠𝑖𝑚𝑝𝑙𝑦 𝑏𝑦 𝑓(𝑥) has the following obvious properties:
∞
1. 𝑓(𝑥) ≥ 0, 2. ∫−∞ 𝑓(𝑥)𝑑𝑥 = 1.
Important remarks: In the case of discrete random variable, the probability at a point,
i.e., 𝑃(𝑋 = 𝑐) is not zero for some fixed c. However, in case of continuous random
variables the probability at a point is always zero, 𝑖. 𝑒., 𝑃(𝑋 = 𝑐) = 𝑃(𝑐 ≤ 𝑋 ≤ 𝑐) =
𝑐
∫𝑐 𝑓(𝑥)𝑑𝑥 = 0, ∀ 𝑐.
This property of continuous 𝑟. 𝑣. , 𝑣𝑖𝑧., 𝑃(𝑋 = 𝑐) = 0, ∀ 𝑐 leads us to the following important
result:
𝑃(𝑎 ≤ 𝑋 ≤ 𝑏) = 𝑃(𝑎 ≤ 𝑋 < 𝑏) = 𝑃(𝑎 < 𝑋 ≤ 𝑏) = 𝑃(𝑎 < 𝑋 < 𝑏).
𝑖. 𝑒., in case of continuous 𝑟. 𝑣., it does not matter whether we include the end points of
interval from 𝑎 𝑡𝑜 𝑏. However, this result is, in general, not true for discrete random
variables.
Example: The diameter of an electric cable, say 𝑋, is assumed to be a continuous
𝑟. 𝑣. 𝑤𝑖𝑡ℎ 𝑝𝑑𝑓:
𝑓(𝑥) = 6𝑥 (1 − 𝑥) , 0 ≤ 𝑥 ≤ 1.
a). Check that 𝑓(𝑥) is 𝑝𝑑𝑓. b). Compute 𝑃(𝑋 < 1/2).
𝐹(𝑥𝑖−1 ).
Graphs of the discrete and continuous distribution function for the random variable X.
F(x) F(x)
x x
1 2 3 4 5 6 7
𝑥 𝑥
Solution: For any x such that −∞ ≤ x < 0; 𝐹(𝑥) = 𝑃(𝑋 ≤ 𝑥) = ∫−∞ 𝑓(𝑡)𝑑𝑡 = ∫−∞ 0. 𝑑𝑡 =
0.
0 𝑥
For any x, where 0 ≤ 𝑥 < 1; 𝐹(𝑥) = 𝑃(𝑋 ≤ 𝑥) = ∫−∞ 0. 𝑑𝑡 + ∫0 𝑡/2𝑑𝑡 = x 2 /4.
0 1 𝑡𝑑𝑡 𝑥 1𝑑𝑡 2x−1
For x, 1 ≤ 𝑥 < 2; 𝐹(𝑥) = 𝑃(𝑋 ≤ 𝑥) = ∫−∞ 0. 𝑑𝑡 + ∫0 + ∫1 = .
2 2 4
0 1 𝑡 2 1 𝑥 −𝑡 3
For x, 2 ≤ 𝑥 < 3; 𝐹(𝑥) = 𝑃(𝑋 ≤ 𝑥) = ∫−∞ 0. 𝑑𝑡 + ∫0 𝑑𝑡 + ∫1 𝑑𝑡 + ∫2 ( 2 + 2) 𝑑𝑡
2 2
1 1 𝑥 2 3𝑥 𝑥 2 3𝑥 5
= + (1 − ) + (− + − 2) = − + − .
4 2 4 2 4 2 4
0 1 𝑡 2 1 3 −𝑡 3
For x, 3 ≤ 𝑥 < ∞; 𝐹(𝑥) = 𝑃(𝑋 ≤ 𝑥) = ∫−∞ 0. 𝑑𝑡 + ∫0 𝑑𝑡 + ∫1 𝑑𝑡 + ∫2 ( 2 + 2) 𝑑𝑡 +
2 2
𝑥
∫3 0. 𝑑𝑡
1 1 9 9
= + (1 − ) + (− + + 1 − 3) = 1.
4 2 4 2
Hence the cumulative distribution function 𝐹(x) is given by:
0 𝑓𝑜𝑟 − ∞ ≤ 𝑥 < 0
x2
𝑓𝑜𝑟 0 ≤ 𝑥 < 1
4
𝐹(𝑥) = 2x −1
𝑓𝑜𝑟 1 ≤ 𝑥 < 2
4
𝑥 2 3𝑥 5
− 4 + 2 −4 𝑓𝑜𝑟 2 ≤ 𝑥 < 3
{ 1 𝑓𝑜𝑟 3 ≤ 𝑥 < ∞