Random Variable
Random Variable
Random Variable:
A variable, whose values are any definite numbers or quantities that arise as a result of chance
factors such that they cannot exactly be predicted in advance, is called a random variable.
Example:
A school consists of 7 teachers of whom 4 are males and 3 are females. A committee of 2 teachers
is to be formed. If “Y” stands for the number of male teachers selected, then “Y” is a random
variable having values 0, 1 and 2. The possible outcomes and the values of the random variable
“Y” are:
Example:
a. Number of telephone calls received in a telephone booth per day.
b. Number of under-five children in a family
Continuous random variable:
A random variable defined over a continuous sample space (i.e. which may take on any value in
a certain interval) is referred to as a continuous random variable.
Example:
a. Weight of six-month-old baby
b. Longevity of an electric bulb
Probability distribution:
Any statement of a function associating each of a set of mutually exclusive and exhaustive classes
or class intervals with its probability is a probability distribution.
A probability distribution will be either discrete or continuous according to the random variable of
interest.
The function f(x) defined above must satisfy the following conditions to be a pmf:
1. f(x) ≥ 0
2. ∑x f(x) = 1
3. P(X=x) = f(x)
Solution:
a. Summing the function over the entire range of X,
∑3x=0 f(x) = f(0) + f(1) + f(2) + f(3)
1 1 3 5
= -8 +8+8+8
=1
1
Here, the total probability is 1 but P(X=0) = f(0) = - 8 , which provides impossible
negative value. So, f(x) is not a pmf.
9 12
b. Here, ∑2x=1 f(x) = + = 1
21 21
f(x) > 0
Solution:
The random variable X is the number of males which takes values 0, 1, 2.
Now,
3𝐶 3
f(0) = P(X=0) = 27𝐶 = 21
2
4𝐶 × 31𝐶 12
f(1) = P(X=1) = 1 7𝐶 = 21
2
4𝐶 6
2
f(2) = P(X=2) = 7𝐶 =
2 21
x: 0 1 2
3 12 6
f(x): 21 21 21
4𝐶 × 2−𝑥3𝐶
f(x) = 𝑥 7𝐶 , x= 0, 1, 2
2
*The pmf of X is given as
3
f(x) = α( 4 )𝑥 , x= 0, 1, 2, …, ∞
=0 , elsewhere
Evaluate α and find P(X≤3).
Solution:
Since f(x) is a probability function, ∑∞
x=0 f(x) = 1.
3
Now, f(0) = α( 4 )0 = α
3 3
f(1) = α( )1 = α ( )
4 4
3
f(2) = α( 4 )2
3
f(3) = α( 4 )3
and so on.
Hence,
3 3 3
∑∞ 2 3
x=0 f(x) = α + α ( 4 ) + α( 4 ) + α( 4 ) + ... = 1
3 3 3
α (1 + + ( 4 )2 + ( 4 )3 + ...) = 1
4
1
α( 3 )=1
1−
4
α×4=1
1
α=4
1 3
So, the complete pmf of X is f(x) = ( 4 )𝑥 , x= 0, 1, 2, …, ∞
4
lim F(x) = 1
𝑥→+∞
* A coin is tossed three times. If X is the random variable representing the number of heads
obtained, find the probability distribution of X and hence obtain F(x).
Solution:
Sample space, S = {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT}
Let X be the number of head observed.
.˙. From the sample space, [X = 3, 2, 2, 1, 2, 1, 1, 0]
X= 0, 1, 2, 3
1
P(X=0) = P(TTT) = 8
3
P(X=1) = P(HTT, THT, TTH ) = 8
And so on.
So the probability distribution is:
X: 0 1 2 3
1 3 3 1
f(x): 8 8 8 8
1
Therefore, F(0) = f(0) = 8
4
F(1) = f(0) + f(1) = 8
7
F(2) = f(0) + f(1) + f(2) = 8
1. f(x) ≥ 0
∞
2. ∫−∞ f(x)dx = 1
b
3. P(a<X<b) = ∫a f(x)dx
1 𝑥
ii) For k= 8 , f(x) = , 0<x<4
8
1 2 3
.˙. P(1<X<2) = ∫ xdx = 16
8 1
1 4 𝑥2 3
P(X>2) = 8 ∫2 xdx = [ 2 ]42 = 4
2
*If f(x) = 27 ( 1 + x ), 2<x<5
Solution:
2 x
The distribution function is F(x) = 27 ∫2 (1 + t)dt
1
= 27 ( x 2 + 2x − 8)
16 7 1
Hence, F(4) – F(3) = - 27 = 3
27
Obtain F(x).
Solution:
0, x≤0
𝑥 𝑥2
∫0 𝑡𝑑𝑡 = , 0<x≤1
2
F(x) = P(X≤x) =
1 𝑥 𝑥2
∫0 𝑡𝑑𝑡 + ∫1 (2 − 𝑡)𝑑𝑡 = 2x - -1, 1<x≤2
2