Unit 1 mth145 Random Variable
Unit 1 mth145 Random Variable
Unit 1 mth145 Random Variable
2 3 7 8 9 10 11 12
2 6 4
PCX 36 36 36 36 36 36 36
3
36
1
36
This constitute a discrete probability distribution.
1.8. PROBABILITY FUNCTION OR PROBABILITY MASS FUNCTION
(pmf)
Probability function of probability mass function (p.m.f.) of a random variable Xis mathematical
function p(x) which gives the probabilities corresponding to different
possible discrete set ofvalues say
X1 2 *3 . *, of variable x.
Properties:
1. IfXis a random variable and 'a is constant then
() E(a) =a
i) E(a) =aE()
(i) E (X-u) = 0
2. Ifr and y are two random variables then E(X+ Y) = E(X) + E(Y).
= p (x-p)2
=
2pr2 + Zpu2-22pux
pr+p-2px
Epr3+ 2-2
pr-2
= EX)- [ E P
sOLVED EXAMPLES
Example 1.41. () A pair of two coins is tossed, what is the
expected value?
(i) A pair of dice is thrown together, find the
expected value.
Solution. (i) Expected value or mean value
E(X) =
H
P(x) 4
E)x0x1*x2=1
1 11
As the probability of getting no head, one head and two heads is respectively
( In a throw of pair of dice the sum (X) is a discrete random variable which is an integer between
2 and 12 with the probabilities as given below:
x2 34 6 8 10 11 12
3 4 5
336
PCX) 36 36 36 36 36 36 36
Expected value - E ( ) = 4 2 t 3 4 +1 0 l l 1 2
252
-36 7
Note. The variance in each of the above cases is given by
- PA-w = Epx' -u'
In the tossing of two coins, we have
p.10o*.
Variance = = p - f = - 1 - 5
In case of a pair of dice, we have
p 4916253649
64+81+100+
36 36 36
121+144
36
=4+18+48+100+180+294+320+324+300+242+144)
(1974)=329
36 6
Variance g--(7=
Standarddeviation= g 35
PROBABILITY AND STATIS
34
0.1+k+0.22k+0.3+k = 1
0.6+4k= 1
k= 0.1
random variable Xis
Now the probability distribution ofthe
2 3
X -2 -1 0
0.2 0.3 0.1
0.1 0.1 0.2
PX)
(i Mean 2xp(r)
= (-2) * (0.1) +(-1)* (0.1) + (0) x (0.2) + (1) x (0.2) + (2)
x
(0.3) + (3) * (0.1)
= 0.8
C6,3)x C2.0)
Now P PCX=0)= C(8,3)
623!x5! F
20
3!x2! 2!8! 56
P2 PX=1) = C(6,2)xC(2,1)
CC8,3)
6! 2!3!x 5! 30
4!x1!IxI 8! 56
P(X) n
Mean E(X)=++ n
1+2+3.n
n
1 nn +)n+1
l 2 J2
Variance EX)-[E(X)P
F+2 t n
+
n(n+1)(2n+1)
6n
n+ 2n+l_(n+1)
23 2
36. PROBABILITY AND STATISTIC-
Determine: () k, (ii) mean, (iin) variance, (iv) smallest value ofx such that P(X Sx)> ;.
2fx) = 1
Solution. ()
0+k+ 2k +2k+3k+ k2+2k2 +7k2 + k=1
10k2+9k-1 = 0
1
10k -
1 or
1 2 3 2 77
0 10 100 100 100
10 10
Px 0)f(0) =0
(iv)
P(rS1) = f0) +f(1) =0.1
P(xs2) = 0+0.1 +0.2 0.3
P(xs3)= 0.3+0.2 0.5
P (x4) =0.5 +0.3 =0.8
Smallest value of X such that P(KSx) 20.5 is 4.
Example 1.47. Two dice are thrown. Let X assign to each point (a, b) in S the maximum of its
number ie, X(4, b) max (a, b). Find the probability distribution of random variable x with
X(S) = {1, 2,3, 4, 5, 6 .
PX=1)= 1/36
X[(2, 1) (2, 2), (1, 2)] - 2, P(X=2) = 3/36
X[(1, 3) (3, 1)(2, 3), (3, 2) (3, 3)] = 3, P(X=3) =5/36
X[(1,4) (4, 1)(2,4), (4, 2) (3, 4) (4, 3) (4, 4.)] =4, P(x = 4)] = 7/36
X[(1, 5)(5, 1)(2, 5) (5, 2) (3, 5) (5, 3), (4, 5) (5, 4), (5, 5)] = 5, P(X=5) =9/36
X[1,6) (6, 2) (2, 6) (3, 6), (6, 3) (4, 6), (6, 4), (15, 6), (6, 5), (6, 6)] = 6, P(x = 6) = 11/36
Probability distribution to random variable Xis
X 2 3 4 6
P(X) 9 11
36 36 36 36 36
Example 1.48. A fair coin is tossed until head or five tails occurs. Find expected number of
tosses of the coins.
Solution. Probability of getting head=1/2-p
Porbability of getting tail = 1/2=q
X 1 2 3 4 5 6
Outcome H TH TTH TTTH TTTTH TTTTT
Probability
The expected number of tosses are
Ex)= 2xP;
1p + 2pg+ 3.gp + 44p +
=
5q'p + 6q
-1)))
= 1.9687 =2
Example 1.49. Two cards are drawn successively with replacement from a well shuffled pack
of 52 cards. Find the mean and variance of the number of kings.
Solution. Let Xbe the random variable. The
X= Number of kings obtained in two draws
Clearly, Xcan assume the value 0, 1,2
4
P (drawing a king)= 52 13
P (not drawing a king) |--12
=13 13
P(X= 0)= P(not a king in the Ist draw and not a king in 2nd draw)
144
169
PROBABILITY ANDNO STAn
STATISTICs
38.
in the lst drawn and not a king in the 2nd draw)
PX=1)= P(a king lst draw anda king the 2nd d-
in
orP (not a king in the drawn
24
- 169
in the 2nd draw)
P(X=2)=P (a king in the 1st draw and king
a
Mean, (140
169
Variance, o p,x-
169
Sales in units 0 1 2 3 4 5
3
Solution.
P(success) 62
and P(failure) =1-5-
BASIC PROBABILITY 39
PX=0)5*
P(X=1) = -
PIX-2)
Hence, the probability distribution is given by
-
X
1 1
P()
4
,a-Exo+ 4
Variance, o-p,x2-H=
Example 1.52. Find the expected value of the absolute difference of upturned faces in the
experiment of tossing of two dies.
Solution. Abs. DIf. Total no. of cases
Pr)
0 (1,1). (2, 2), (3, 3), (4, 4), (5, 5), (6, 6) 6/36
(1,2) (2, 3), (3, 4), (4, 5) (5, 6)
(2,1), (3, 2) (4, 3), (5, 4), (6, 5) 10/36
(1,3).(2, 4, 3,5), (4, 6), (3, 1), (4, 2) (5, 3), (6, 4) 8/36
3 (1,4), 2, 5), (3,6), (4, 1), (5, 2) (6, 3) 6/36
4 (1, 5), (2, 6), (5, 1) (6, 2) 4/36
5 (1,6) (6, 1) 2/36
2
=
70 35
36 18
Cxample 1.53. If X and Y are discrete random variables and K is a constant then prove that:
() ECX+ K) =
E (X) +K and (i) E (X+ ) =
E (X) +E (Y).
Solution. Given Xand Yare discrete random variable and K is a
constant.
Since EC) = P a ) and P =1
i=l
PROBABILuTY AND ATISTICS
40
ECX+K) (X+K)»,
Now
P +KP =
E(X) +K-1
i=1
= E(X) + K
E(X+K) E(X) +K
i=l i=l
= E(X) +E(Y
EXERCISE 1.3
11.40. CHEBYSHEV'S INEQUALITY
Let X be a random variable with E[X] = u and var [X]= o?.
Then for any constant c > 0,
P[X-ELX]|<e]2 1-var
c
[X].
Remark. 2. IfX is a random variable with finite variance, then
sOLVED EXAMPLES
Example 1.92.IfXis a random variablesuch that E[X]= 3 and EX"=13, use the
Chebyshev',
inequality to determine the lower bound for P-2 <X< 8].
Or
If X is a variate such that EX]
3, EX"] = =
13, show that
P-2<X<8] 2 21/25.
Solution. We know var [X] =
E[X]- {E[X]}
=
13 -9 =4 0
=2.
Now P-2<X<8] = P[-2-3 <X-3 <8-3]
=
P-5<X-3 <5]
P[IX-3 |<5]21 -(2/52). by Chebyshev's inequality
Hence, P-2 <X<8] 2 21/25 i.e., 21/25 is a lower bound for P[-2 <X< 8]
Example 1.93. Variate Xtakes the values-1,1,3,
5 with associated probability zT7:.
Computep=P[|X-3|21] directly and find on upper bound top by using
Chebyshev's inequality.
Solution. ELX= - = 3,
ELX = 1. 43
p=Pllx-3|s 2 ( c=1)
Hence, an upper bound to p is 16/3.
Actual
p 1 -P[lx-3|< 1]=1 -P- 1 <X-3 <
1]
-
1- P[2 <X< 4] 1
= -
P[X= 3] =
1- -
BASIC PROBABILITY 87
Example 1.94. If Xis the number scored in a throw of a fair die, show that the Chebyshev's
inequality gives Pl| X-4|> 2.5] <0.47, while the actual probability is zero.
=
1-P-2.5 +3.5 X<2.5 + 3.5]
=
Solution.
(1+24+342 + 443.), (A = ;
(1-42=2.
E'1
-+44+94.. d+A)0-A)" =6.
=
PEIX-21s2]>
The actual probability is given by
P[X-2|s2] P[-2 s X-2s2] =PO SXs4]
88
PeOBABILTI AMD GTAte
15
3 and compare it
al
with the upper bound obtained
Find the actual probability PI| X-p|S
by Chebychev's inequality.
Solution. We have
ELX- J d =
0,
EL- d -
63 -3/5) - 1.
and u =0.
a= var [X]=E[X]- {E[X];2=1
have
By Chebyshev's inequality,
we
=1.c=
The actual probability is given by
( 0 , G =1)
P -u/2
-PxI
dx
23
23,3-132-V3
/2'222
Hence, the actual probability is (2 3 2 , whereas the upper bound obtained by Chebyshev
inequality is 4/9.
BASIC PROBABILITYy 89
Example 1.97. The rainfall Xin a certain locality is a normally distributed random variable
with mean 40 cm and variance 4 cm2. Find a simple upper bound on the probability that rainfall
in a particular year will exceed the mean by 5 cm.
Solution. We have u = 40 and o2 = 4.
Thus an upper bound to the probability is 0.16, which is totally different from the exact probability
.0124.