Random Variable - DRV
Random Variable - DRV
MODULE - I
X 0 , 1 , 2
X 0 , 1 , 2
1
P X 0 P Random variable which has no head
4
2 1
P X 1 P Random variable which has one head
4 2
1
P X 2 P Random variable which has two head
4 X 0 1 2
1 1 1 P X 1 1 1
P X 0 P X 1 P X 2 1 4 2 4
4 2 4
Here each of the probability is a non-negative fraction (never greater than 1) and their sum is 1.
Definition:
Let us consider that a discrete random variable X assumes values x1 , x2 , x3 , x4 xn with
probabilities p1 , p2 , p3 , p4 pn respectively where
i) p1 p2 p3 p4 pn 1 p
n 1
i 1 P xi 1
Eg: i) F 0 P X 0 P X 0
ii) F 2 P X 2 P X 0 P X 1 P X 2
Note:
1) The probability of X taking the values > x i.e., F x P X x 1 P X x
2) If a, b are the values of X with b a then P a X b P X b P X a
Mean or Expectation: or E X
x1 p1 x2 p2 x3 p3 x4 p4 xn pn
px i i
p 1
p1 p2 p3 p4 pn p
i
i
pi xi
Variance: V or 2
In statistics, the variance is the measure of the speed or scatter in data. Likewise, the variability
or spread in the values of the random variable may be measured by variance.
x p
2
V 2
i i
p 1
p
i
i
V 2 x p
2
i i
V 2 x 2 x p
2
i
2
i i
V 2
x p p 2 x p
2
i i
2
i i i
V 2 x p p 2
2
i i
2
i
V 2
x p 1 2
2
i i
2 2
V 2 x p
2
i i
2
Standard deviation:
For the non-negative number x V ar x is the standard deviation of the random variable X
.
Problems:
1. If X is a discrete random variable, where probability distribution is given by
X 2 3 11
P X 1 1 1
3 2 6
Solution:
Mean = xi pi
3 1 1
2 3 11
2 2 6
4
Variance = V 2 xi2 pi 2
3 1 1
V 2 4 9 121 42
2 2 6
V 2 10
Standard deviation = V
SD 3.1622
2. The probability distribution of a finite random variable X is given by the following
table
X 2 1 0 1 2 3
i) Determine the value of k and find the mean, variance and standard deviation
ii) Find P X 1 ; P 1 X 2 ; P X 1
Solution:
i) wkt p i 1
X 2 1 0 1 2 3
Mean = xi pi
Variance = V 2 xi2 pi 2
V 2 4 0.1 1 0.1 0 0.2 1 0.2 4 0.3 9 0.1 0.8
2
V 2 2.16
Standard deviation = V
SD 1.4697
ii) P X 1
P X 1 1 P X 1 P X 1 P X 2 P X 1 P X 0
P X 1 1 P X 1 P X 2 P X 3 P X 1 0.1 0.1 0.2
P X 1 1 0.2 0.3 0.1 or P X 1 0.4
P X 1 1 0.6
P X 1 0.4
P 1 X 2
P 1 X 2 P X 0 P X 1 P X 2
P 1 X 2 0.2 0.2 0.3
P 1 X 2 0.7
P X 1
P X 1 1 P X 1 P X 1 P X 0 P X 1 P X 2 P X 3
P X 1 1 P X 2 P X 1 P X 1 0.2 0.2 0.3 0.1
P X 1 1 0.1 0.1 or P X 1 0.8
P X 1 1 0.2
P X 1 0.8
X 0 1 2 3 4 5 6 7
P X 0 k 2k 2k 3k k2 2k 2 7k 2 k
Solution:
i) wkt p i 1
0 k 2k 2k 3k k 2 2k 2 7k 2 k 1
10k 2 9k 1
10k 2 9k 1 0
10k 1 k 1 0
k 0.1 & k 1 P X 0
X 0 1 2 3 4 5 6 7
P X 6
P X 6 1 P X 6
P X 6 1 P X 6 P X 7
P X 6 1 0.02 0.17
P X 6 1 0.19
P X 6 0.81
P X 6
P X 6 P X 6 P X 7
P X 6 0.02 0.17
P X 6 0.19
P 3 X 6
P 3 X 6 P X 4 P X 5 P X 6
P 3 X 6 0.3 0.01 0.02
P 3 X 6 0.33
X 1 2 3 4
P X p1 p2 p3 p4
Given 2 P X 1 3P X 2 P X 3 5P X 4
2 p1 3 p2 p3 5 p4
2
2 p1 3 p2 p2 p1 i
3
2 p1 p3 p3 2 p1 ii
2
2 p1 5 p4 p4 p1 iii
5
wkt p i 1
p1 p2 p3 p4 1
2 2
p1 p1 2 p1 p1 1 Substituting i , ii & iii
3 5
2 2
p1 1 2 1
3 5
15 10 30 6
p1 1
15
61
p1 1
15
15
p1
61
Substituting p1 in i , ii & iii
2 10
i p2 p1 p2
3 61
30
ii p3 2 p1 p3
61
2 6
iii p4 p1 p3
5 61
X 1 2 3 4
P X 15 10 30 6
61 61 61 61
FX 15 25 55 61
61 61 61 61
5. A random variable X takes the values -3, -2, -1, 0, 1, 2, 3, such that
P X 3 P X 2 P X 1 P X 1 P X 2 P X 3 and
P X 0 P X 0 . Find the probability distribution function of X .
Solution: Let us consider the probability distribution as
X 3 2 1 0 1 2 3
P X p1 p2 p3 p4 p5 p6 p7
p1 p2 p3 p5 p6 p7 p 1
and P X 0 P X 0
p4 p1 p2 p3 3 p 2
wkt p i 1
p1 p2 p3 p4 p5 p6 p7 1
p p p 3p p p p 1
9p 1
1 1
p & p4 3 p
9 3
Probability distribution of random variable is given by
X 3 2 1 0 1 2 3
P X 1 1 1 1 1 1 1
9 9 9 3 9 9 9
6. A coin is tossed three times. Let X denote the number of heads showing up. Find
the distribution of X . Also find its mean, variance and standard deviation.
Solution: Tossing a coin thrice.
S HHH , HHT , HTH , HTT , THT , THH , TTH , TTT
1
P X 0 P Random variable which has no head
8
3
P X 1 P Random variable which has one head
8
3
P X 2 P Random variable which has two head
8
1
P X 3 P Random variable which has three head
8
Probability distribution of random variable is given by
X 0 1 2 3
P X 1 3 3 1
8 8 8 8
Mean = xi pi
0 18 1 3 8 2 3 8 3 18
3 2 1.5
Variance = V 2 xi2 pi 2
V 2 0.75
Standard deviation = V
SD 0.866
X 0 1 2 3
P X 14 28 12 1
55 55 55 55
Mean = xi pi
0 14 55 1 28 55 2 12 55 3 155
1
Variance = V 2 xi2 pi 2
V 2 0 14 55 1 28 55 4 12 55 9 155 1 2
V 2 30 0.54
55
Standard deviation = V
SD 0.54
8. From the sealed box containing 3 white and 9 red balls, obtain the probability
distribution of the number of white balls when 2 balls are drawn at random. Also,
find the mean and standard deviation.
Solution: Total number of balls = 12 (3 white and 9 red balls).
The number of ways of selecting 2 items out of 12 = o S 12C2 22
X : Number of 2 white balls selected out of 3.
X 0 , 1 , 2
X 0 1 2
P X 12 9 1
22 22 22
Mean = xi pi
0 12 22 1 9 22 2 1 22
1 2 0.5
Variance = V 2 xi2 pi 2
V 2 15 0.6812
22
9. A pair of dice is rolled once. Let X be the random variable whose value for any
outcome is the sum of the two numbers on the dice.
i) Find the probability distribution of X
ii) Find the probability that X is an odd number
iii) Find P 5 X 8 .
1 x 6 is 1st die
Let x, y where
1 y 6 is 2nd die
Let P X probability of getting the outcome as the sum of the two numbers on the dice
2 1,1 1
3 1, 2 , 2,1 2
4 1,3 , 3,1 , 2, 2 3
8 2, 6 , 6, 2 , 3,5 , 5,3 , 4, 4 5
10 4, 6 , 6, 4 , 5,5 3
11 5, 6 , 6,5 2
12 6, 6 1
X 2 3 4 5 6 7 8 9 10 11 12
P X 1 2 3 4 5 6 5 4 3 2 1
36 36 36 36 36 36 36 36 36 36 36
P X 3 P X 5 P X 7 P X 9 P X 11
2 4 6 4 2
36 36 36 36 36
18
36
iii) P 5 X 8
P 5 X 8 P X 5 P X 6 P X 7 P X 8
P 5 X 8 4 5 6 5
36 36 36 36
P 5 X 8 20 5
36 9
10. A die is tossed thrice. A success is getting ‘1 or 6’ on a toss. Find the mean and
variance of the number of successes.
Solution: Number of ways of tossing a die thrice = o S 63
X : Number of success (Success is getting 1 or 6 in all three trials)
X 0 , 1 , 2, 3
X 0 1 2 3
P X 8 12 6 1
27 27 27 27
Mean = xi pi
0 8 27 1 12 27 2 6 27 3 1 27
1
Variance = V 2 xi2 pi 2
For what value of k this represents a valid probability distribution and find
P X 4, P X 5, P3 X 6 . Determine the minimum value of k so that P X 2 0.3
, also find mean and variance of the distribution.
5 A random variable X has the following probability function:
X 0 1 2 3 4 5 6 7
P(X) 0 k 2k 2k 3k k2 2k2 7k2 +k
8 A random variable X takes the value -3, -2, -1, 0, 1, 2, 3 such that
P X 3 P X 2 P X 1 P X 1 P X 2 P X 3 and
P X 0 P X 0. Find the probability distribution
9 Find the value of k such that the following represents a finite probability distribution
X -3 -2 -1 0 1 2 3
P(X) k 2k 3k 4k 3k 2k k
Find mean and standard deviation and also find P X 1, P X 1, P 1 X 2 .
10
A random variable X has the following probability mass function
X 0 1 2 3 4 5 6 7 8
P(X) a 3a 5a 7a 9a 11a 13a 15a 17a
X 0 1 2 3 4 5
P(X) k 3k 5k 7k 9k 11k
X 0 1 2 3 4 5
P X k 5k 10k 10k 5k k
Find k, P X 1 , P 0 X 3 .
15 A pair of dice is rolled once. Let X be the random variable whose value for any outcome is
the sum of the two numbers on the dice.
i) Find the probability distribution of X
ii) Find the probability that X is an odd number
iii) Find P 5 X 8 .
16 A box contains 12 items of which 4 are defective. A sample of 3 items is selected from the
box. Let X denotes the number of defective items in the sample. Find the probability
distribution of X. Determine the mean and standard deviation of the distribution.
17 Five defective bulbs are accidently mixed with twenty good bulbs. It is not possible to just
look at a bulb and tell whether or not it is defective. Find the probability distribution of the
number of defective bulbs, if four bulbs are drawn at random.
18 From the sealed box containing 3 white and 9 red balls, obtain the probability distribution
of the number of white balls when 2 balls are drawn at random. Also, find the mean and
standard deviation.