Random Variables and Probability Distributions
Random Variables and Probability Distributions
Random Variables and Probability Distributions
com
Let X : S R be a discrete random variable with range {x1, x2, x3, .}.If xr P(X = xr)
r =1
P (X = xr) = 1
exists, then xr P(X = xr) is called the mean of the random variable X. It is denoted by or x .
If ( xr ) P ( X = xr ) exists, then ( xr ) P ( X = xr ) is called variance of the random
2
variable X. It is denoted by 2 . The positive square root of the variance is called the standard
deviation of the random variable X. It is denoted by
*.
If the range of discrete random variable X is {x1, x2, ., xn, .} and P(X = xn) = Pn for every
2
2
2
Integer n is given then + = xn Pn
* If the probability of happening of an event in one trial be p, then the probability of successive
happening of that event in r trials is
pr .
i =1
X =1
X i pi = X . nC X q n X p X = np ,
2 = npq
= (npq )
The Poisson Distribution : Let X be a discrete random variable which can take on the values
0, 1, 2,... such that the probability function of X is given by
f ( x ) = P( X = x ) =
where
x e
x!
x = 0,1, 2,....
is a given positive constant. This distribution is called the Poisson distribution and a
www.sakshieducation.com
www.sakshieducation.com
Sol.
P(x = 0) + p(x = 1) + p(x = 2) = 1
3c3 + 4c 10c2 + 5c 1 = 1
3c3 102 + 9c 2 = 0----------- (1)
Put c = 1, then 3 10+9 2 = 12 12 = 0
C = 1 satisfy the above equation
C = 1 p(x = 1) = 4-10= -6 which is not possible.
Dividing (1) with c 1,
We get
3c2 7c + 2 = 0
(c 2) (3c 1) = 0
c = 2 or c = 1/3
c = 2 p(x = 0) = 3.23 = 24 which is not possible
c = 1/3
www.sakshieducation.com
www.sakshieducation.com
x
2
2. Find the constant C, so that F(x) = C , x = 1, 2, 3........... is the p.d.f of a discrete random
3
variable X.
x
2
Sol. Given F(x) = C , x = 1, 2, 3
3
x
2
We know that p(x) = C , x = 1, 2,3
3
x
2
p(x) = 1 c = 1
3
x =1
x =1
2 2 2 2 3
c + + + ........ = 1
3 3 3
2 2 2
C 1 + + + ........ = 1
3 3 3
2c 1
2c
1
=1 3 =1 c =
2
3 1
3
2
3.
X=x
P(X=x) 0.1
0.2
0.3
Is the probability distribution of a random variable x. find the value of K and the variance
of x.
n
p(x ) =1
i =1
www.sakshieducation.com
www.sakshieducation.com
3k = 1 0.6 = 0.4
X=x
k=
0.4
= 0.1
4
P(X=x) 0.1
0.2
0.3
Xi.p(xi) -0.2 -k
0.6
3k
Xi2.p(xi) 0.4
1.2
9k
Mean = xi p ( xi )
i =1
= 0.2 k + 0 + 2k + 0.6 + 3k
= 4k + 0.4 = 4(0.1) + 0.4 = 0.4 + 0.4= 0.8
= 0.8
Variance (2) =
x
i =1
2
i
p(x = x i ) 2
www.sakshieducation.com
www.sakshieducation.com
4.
X=x
P(X=x)
3 2 1
1
9
1
9
1
9
1
9
1
9
1
9
1
9
3 2 1
1
9
1
9
1
9
1
9
1
9
1
9
3 2 1
9 9 9
1
9
2
9
3
9
1
9
4
9
9
9
Xi.p(xi)
Xi2.p(xi)
1
9
9
9
4
9
1
9
Mean () = xi p ( xi )
i =1
3 2 1
1 2 3
= + 0 + + + = ( ) = 0
9 9 9
9 9 9
n
Variance(2)= x i 2 p(x = x i ) 2
i =1
9 4 1
1 4 9
28
+ + + 0 + + + 02 =
0
9 9 9
9 9 9
9
2 =
28
9
www.sakshieducation.com
www.sakshieducation.com
5. A random variable x has the following probability distribution.
0
X=x
k 2k 2k 3k K2 2k2 7k2+k
P(X=x) 0
We know that
p(x ) =1
i
i =1
K=
i) k =
1
10
ii)
X=x
0 1 2 3
Mean =
x p(x = x )
i =1
www.sakshieducation.com
www.sakshieducation.com
= 66k2 + 30k
1
1
= 66
+ 30
100
10
= 0.66 + 3 = 3.66
iii) p(0 < x < 5)
p(0 < x < 5) =
p(x = 1) + p(x = 2) + p(x = 3) + p(x = 4)
= k+ 2k + 2k + 3k = 8k
=8
1
1 4
=8 =
10
10 5
6. In the experiment of tossing a coin n times, if the variable x denotes the number of heads
and P(X = 4), P(X = 5), P(X = 6) are in arithmetic progression then find n.
Sol. X follows binomial distribution with
1
2
1
2
1 1
a C4
2 2
n 4
1 1
, C5
2 2
n 5
1 1
C6
2 2
n 6
are in A.P
n C4 , n C 5 , n C6 are in A.P
2 n C5 = n C 4 + n C 6
2 ( n!)
5!( n 5 ) !
n!
n!
+
4!( n 4 ) ! 6!( n 6 ) !
www.sakshieducation.com
www.sakshieducation.com
2 ( n!)
5 4!( n 5 )( n 6 )
n!
n!
+
4!( n 4 )( n 5)( n 6 ) ! 6 5 4!( n 6 ) !
2 ( n!)
5 4!( n 5 )( n 6 ) !
n!
1
1
+
4!( n 6 ) ! ( n 4 )( n 5 ) 30
30 + ( n 4 )( n 5 )
2
=
5 ( n 5)
30 ( n 4 )( n 5 )
2 30 (n 4) = 5[30 + n2 9n + 20]
12n 48 = n2 9n 50
n2 21n + 98 = 0
n2 14n 7n + 98 = 0
n(n 14) 7(n 14) = 0
(n 7) (n 14) = 0
n = 7 or 14
7. Find the maximum number of times a fair coin must be tossed so that the probability of
getting at least one head is at least 0.8.
Sol. Let n be number of times a fair coin tossed x denotes the number of heads getting x follows
binomial distribution with parameters n and p =1/2 given p(x 1) 0.8
1 p(x = 0) 0.8 p(x = 0) 0.2
n
1
1
1
C0 0.2
5
2
2
n
www.sakshieducation.com
www.sakshieducation.com
8. The probability of a bomb hitting a bridge is 1/2 and three direct hits (not necessarily
consecutive) are needed to destroy it. Find the minimum number of bombs required so
that the probability of the bridge being destroyed is greater than 0.9.
Sol. Let n be the minimum number of bombs required and x be the number of bombs that hit the
bridge, then x follows binomial distribution with parameters n and p = 1/2.
Now p(x 3) > 0.9
1 p(x < 3 ) > 0.9
p(x < 3 ) < 0.1
p(x = 0) + p(x = 1) + p(x = 2) < 0.1
0
1 1
1 1
C0 + n C1
2 2
2 2
n
1.
n 1
1 1
+ C2
2 2
n
n 2
< 0.1
1
n n(n 1) 1
1
+ n+
<
n
2
2
2
2
2 10
1
n n2 n 1
1. n + n +
<
10
2
2
2.2n
1
n2 n 1
1
+
n
+
<
2 10
2n
1 2 + 2n + n 2 n 1
<
2
2n
10
5(n2 + n + 2) < 2n
By trial and error, we get n 9
The least value of n is 9
n=9
www.sakshieducation.com
www.sakshieducation.com
9. If the difference between the mean and the variance of a binomial variate is 5/9 then, find
the probability for the event of 2 successes, when the experiment is conducted 5 times.
Sol. Given n = 5, let p be the parameters of the binomial distribution
Mean Variance =5/9
np npq = 5/9
np(1 q) = 5/9 , p + q = 1
n.p2 = 5/9 5p2 = 5/9
p2 = 1/9 p = 1/3
q = 1 p = 1 1/3 = 2/3
3
8 1 80
2 1
p(x = 2) = C 2 = 10 . =
27 9 243
3 3
5
80
243
10. One in 9 ships is likely to be wrecked, when they are set on sail, when 6 ships are on sail,
find the probability for (a) At least one will arrive safely (b) Exactly, 3 will arrive safely.
Sol. P = probability of ship to be wrecked = 1/9
q=1p=1
1 8
=
9 9
Number of ships = n = 6
8
p(x = 0) = C0
9
66
1 1
=
9 9
1
1
= 1 = 1 6
9
9
www.sakshieducation.com
www.sakshieducation.com
3
8 1
b) p(x = 3) = C3
9 9
83
1 6
3
.
C
.8
=
20
6
3
96
9
11. If the mean and variance of a binomial variable x are 2.4 and 1.44 respectively, find
p(1 < x 4).
Sol. Mean = np = 2.4
(1)
(2)
q = 0.6 = 3/5
p = 1 q = 1 0.6 = 0.4 = 2/5
Substituting in (1)
n(0.4) = 2.4 n =
2.4
=6
0.4
2
3 2
3 2
3 2 6
= 6C2 + 6C3 + 6C4 = 6 (15.9 + 20.6 + 15.4 )
5 5
5 5
5 5 5
36
315 36
(135 + 120 + 60 ) =
15625
15625
36 63 2268
=
3125
3125
www.sakshieducation.com
www.sakshieducation.com
12. It is given that 10% of the electric bulbs manufactured by a company are defective. In a
sample of 20 bulbs, find the probability that more than 2 are defective.
Sol. p = probability of defective bulb = 1/10
q=1p=1
1
9
=
10 10
20
20
9
=
10
20
19
19
9
1 20.9
p ( x = 1) = 20 C1 = =
20
10
10 10
18
18
9
1 190.9
p ( x = 2 ) = C2 = =
1020
10
10
20
20
10
10
1020
= 1
20
k =0
= 1
k =0
20
9
Ck
10
20 k
1
10
920k 20 20 920k
Ck 20 = Ck 20
10
k =3
10
www.sakshieducation.com
www.sakshieducation.com
13. On an average, rain falls on 12 days in every 30 days, find the probability that, rain will
fall on just 3 days of a given week.
Sol. Given p=
12 2
2 3
= q = 1 p = 1 =
30 5
5 5
n = 7, r = 3
p(x = 3) = C r.q
n
3 2
.p = C3
5 5
n r
3
4
3 2 35 2 3
= 35. =
57
5 5
14. For a binomial distribution with mean 6 and variance 2, find the first two terms of the
distribution.
Sol. Let n, p be the parameters of a binomial distribution
Mean (np) = 6
(1)
(2)
then
npq 2
1
1 2
= q = p = 1 q = 1 =
np 6
3
3 3
From (1) n p = 6
18
2
n = 6 n = = 9
2
3
1
1
p ( x = 0 ) = C0 = 9 and
3
3
9
1 2 2
p ( x = 1) = C1 = 7
3 3 3
9
www.sakshieducation.com
www.sakshieducation.com
15. In a city 10 accidents take place in a span of 50 days. Assuming that the number of
accidents follows the poisson distribution, find the probability that there will be 3 or more
accidents in a day.
Sol. Average number of accidents per day
=
10 1
= = 0.2
50 5
e
k =3
k
, = 0.2
k!
1. The range of a random variable x is {0, 1, 2}. Given that p(x = 0) = 3c3, p(x = 1) = 4c 10c2,
p(x = 2) = 5c 1
i) Find the value of c
ii) p(x < 1), p(1 < x 3)
Sol. P(x = 0) + p(x = 1) + p(x = 2) = 1
3c3 + 4c 10c2 + 5c 1 = 1
3c3 10c2 + 9c 2 = 0
C = 1 satisfy this equation
C = 1 p(x = 0) = 3 which is not possible dividing with c 1, we get
3c2 7c + 2 = 0 (c 2) (3c 1) = 0
d = 2 or c = 1/3
c = 2 p(x = 0) = 3.23 = 24 which is not possible
www.sakshieducation.com
www.sakshieducation.com
c = 1/3
i) p(x < 1) = p(x =0)
3
1 1
1
= 3.c3 = = 3. =
27 9
3
5
2
1 =
3
3
1
9
= 9c 10c2 1 = 9. 10. 1
= 3
10
10 8
1 = 2 =
9
9 9
p(x = k) = 1
c+
ck
k!
ck
=1
k =1 k
n
c 2 c3
+ ................. = 1
2 3
www.sakshieducation.com
www.sakshieducation.com
c = loge2
P(0 < x < 3) = p(x = 1) = p(x = 2)
c2
2 ( log e 2 )
= c + = log e +
2
2
3. Five coins are tossed 320 times. Find the frequencies of the distribution of number of
heads and tabulate the result.
Sol. 5 coins are tossed 320 times
Prob. of getting a head on a coin
1
p= , n =5
2
p ( x = x ) = Cx ( q )
2
5
1
= Cx
2
5
5 x
1 5 1
= C x x = 0,1, 2,3, 4, 5
2
2
Frequency of
1
www.sakshieducation.com
www.sakshieducation.com
5
1
Having 2 head = 320 C 2 = 100
2
5
1
Having 3 head = 320 C3 = 100
2
5
10 50 100 100 50 10
1
1
,q=
2
2
p ( x 6) =
6
106
10
1
C6
2
10
10
1
1
10
=
Ck
2
2
6
ii) Since the answers are in multiple choice with 4 possible answers
Prob. of success p = 1/4, q = 3/4
Prob. of guessing at least 6 out of 10
106
3
p(x 6) = 10C6
4
10k
1 10 10 1 3
= Ck
4
4 4
6
www.sakshieducation.com
www.sakshieducation.com
5. The number of persons joining a cinema ticket counter in a minute has poission
distribution with parameter 6. Find the probability that i) no one joins the queue in a
particular minute ii) two or more persons join the queue in a minute.
Sol. Here = 6
i) prob. That no one joins the queune in a particular minute
e 0
p(x = 0 ) =
= e 6
0!
ii) prob. that two or more persons join the queue in a minute
p(x 2) = 1 p(x 1)
= 1 [p(x = 0) + p(x = 1)]
= 1 e
0 e 1
+
0!
1!
e6 ( 6 )
6
= 1 e6 +
= 1 7.e
1!
6. A cubical die is thrown. Find the mean and variance of x, giving the number on the face
that shows up.
Sol. Let S be the sample space and x be the random variable associated with S, where p(x) is given
by the following table
X=xi
P(X=xi)
1
6
1
6
1
6
4
1
6
1
6
1
6
www.sakshieducation.com
www.sakshieducation.com
1 1 1 1 1 1
= 1 + 2 + 3 + 4 + 5 + 6
6 6 6 6 6 6
=
1
(1 + 2 + 3 + 4 + 5 + 6 )
6
1 ( 6 )( 6 + 1) 7
= = 3.5
6
2
2
1 2
49
1 + 22 + 32 + 4 2 + 52 + 62
6
4
1 ( 6 )( 6 + 1)( 2 6 + 1) 49
6
6
4
91 49 182 147 35
=
=
6 4
12
12
7. The probability distribution of a random variable x is given below. Find the value of k,
and the mean and variance of x
X=xi
P(X=xi) K 2k 3k 4k 5k
5
Sol. we have
p ( X = x1 ) = 1
r =1
k + 2k + 3k + 4k + 5k = 1 k =
X=xi
1 2
1
15
P(X=xi) K 2k 3k 4k 5k
Xi.p(xi) k 4k 9k 16k 25k
Xi2.p(xi) k 8k 27k 64k 125k
www.sakshieducation.com
www.sakshieducation.com
Mean of x =
r.p ( x = x1 ) =
r 1
r ( rk )
r 1
1 11
=
15 3
Variance (2) =
x
i =1
2
i
p(x = x i ) 2
11
= k + 8k + 27k + 64K +125k
3
= 225k
121
1 121
= 225
9
15 9
135 121 14
=
9
9
( k + 1) c (k = o, 1, 2, 3, )
2k
p(x = k) = 1
k =0
k =0
( k + 1) c = c 1 + 2 1 + 3 1 2 + k = 1
2k
1.
1
2 =1
c
+
1 1 2
1 2 1
2
www.sakshieducation.com
( k + 1) c ,
2k
www.sakshieducation.com
Hint: in A.G.P. S
a
dr
+
1 r (1 r )2
Here a = 1, d = 1, r = 1/2
1
2
=1
c
+
1 1 2
2
c [2 + 2] = 1
c =
1
4
9. Let x be a random variable such that p(x = 2) = p(x = 1) = p(x = 2) = p(x =3) =1/6 and
p(x = 0) = 1/3. Find the mean and variance of x.
Sol. Mean
1
1
1
1
1
= ( 2 ) + ( 1) + 2 + (1) + 0.
6
6
6
6
3
2 1 2 1
= + + +0
6 6 6 6
=0
1
21
4 1
4 1
+ +0+ +
6 6
6 6
10 5
6 3
www.sakshieducation.com
www.sakshieducation.com
10. Two dice are rolled at random. Find the probability distribution of the sum of the
numbers on them. Find the mean of the random variable.
Sol. When two dice are rolled, the sample space S contains 6 6 = 36 sample points.
S = {(1, 1), (1, 2)(1, 6), (2, 1), (2, 2)(6,6)}
Let x denote the sum of the numbers on the two dice
Then the range x = {2, 3, 4, 12}
Probability Distribution of x is given by the following table.
X=xi
10
11
12
P(X=xi)
1
36
2
36
3
36
4
36
5
36
6
36
5
36
4
36
3
36
2
36
1
36
Xi.p(xi) 2/36 6/36 12/36 20/36 30/36 42/36 40/36 36/36 30/36 22/36 12/36
12
Mean of x = = x1p ( X = x1 )
1 2
= 2.
1
2
3
4
5
6
5
4
3
2
1
+ 3. + 4. + 5. + 6. + 7. + 8. + 9. + 10. + 11. + 12.
36
36
36
36
36
36
36
36
36
36
36
1
(2 + 6 + 12 + 20 + 30 + 42 + 40 + 36 + 30 + 22 + 12)
36
252
=7
36
11. 8 coins are tossed simultaneously. Find the probability of getting at least 6 heads.
Sol. p = probability of getting head =
q=1p=1
1
2
1 1
= :n =8
2 2
www.sakshieducation.com
www.sakshieducation.com
6
1 1
1 1
1 1
= C6 + 8 C7 + 8 C7
2 2
2 2
2 2
1
= 8 C6 +8 C7 +8 C8
2
=
1
37
[28 + 8 + 1] =
256
256
12. The mean and variance of a binomial distribution are 4 and 3 respectively. Fix the
distribution and find p(x 1)
Sol. Given distribution is binomial distribution with mean = np = 4
Variance = npq = 3
npq 3
3
= q=
np 4
4
So that p = 1 q = 1
3 1
=
4
4
np = 4
n
1
= 4 n = 16
4
P(x 1) = 1 p(x = 0)
0
16 0
1 3
= 1 C0
4 4
16
16
3
= 1
4
p(x 1)
16
3
= 1
4
www.sakshieducation.com
www.sakshieducation.com
13. The probability that a person chosen at Random is left handed (in hand writing) is 0.1.
What is the probability that in a group of ten people there is one, who is left handed?
Sol. Here n = 10
P = 0.1
q = 1 p = 1 0.1 = 0.9
p(x = 1) = 10C1 (0.1)1(0.9)101
=10 0.1 (0.9)9
= 1 (0.9)9 = (0.9)9
14. In a book of 450 pages, there are 400 typographical errors. Assuming that following the
passion law, the number of errors per page, find the probability that a random sample of 5
pages will contain no typographical error?
Sol. The average number of errors per page in the book is
=
400 8
=
450 9
Here r = 0
p(x = r) =
p ( x = 0) =
e r
r!
8 / 9 8
9 = e 8 / 9
0!
The required probability that a random sample of 5 pages will contain no error is
[p(x = 0)]5 = e8 / 9
www.sakshieducation.com
www.sakshieducation.com
15. Deficiency of red cells in the blood cells is determined by examining a specimen of blood
under a microscope. Suppose a small fixed volume contains on an average 20 red cells for
normal persons. Using the poisson distribution, find the probability that a specimen of
blood taken from a normal person will contain less than 15 red cells.
Sol. Here = 20
14
p ( x < 15 ) = p ( x = r )
r =0
e r 14 20 20r
= e
r!
r!
r =0
r =0
14
r e
, > 0
r!
r e 2 e
=
1!
2!
= 2, ( > 0)
25 e2
p ( x = 5) =
5!
=
32
4
=
2
120e
15e 2
www.sakshieducation.com