PNT Unit-1 Part-1
PNT Unit-1 Part-1
Solution:
Let
Random Variables
Definition: \
Pn)/1;1hi/it, ;111d N11111/lt·r J'/1cn1'
1.20
. Ii' w l H'll' S' ts lilt; sa111ple spnt.:e ·iss .
~1 10
. ) is ., lurn·t1on I llHI 1 I , . 0(;1a11:d ' ,
.\ 1;1nth)1\t , :H·1:1hk
1
· • (t. \ ., . sl'I ul ,e: tl 1111111lw1 s.
IS ( 1ll '
1
' . l , )l'I iilll'II( :ltld /t r '
,,1tha1,\\Hl)I\\ L\l . ,.· ,(wocoi11s om·l·. llie11
1 ' rtllll'lll ol (OSS III ~~
F"mnpk: ('\,11sidl't t ltl' l'\I \ ,
-- I') (t II) (1 1, I)} .
~ = HJI, //), tll, . 2 \ (II I ') = .\('! ', II ) = I,
~
I I -
[X .r] =- {w E S : X (w) == x} .
I .Fx (x) = P [X ~ x] \
Properties of cdf:
L0:5Fx(x):5 1
2. Fx (-oc) == o
l Fx (oc) =l
~ al = Fx (b) -
4
· p [a .,,, X :5 b) = P [X : b] P [.X F, (a)
5. p [X > a] =1 - I' [X :S ,, l == 1 p\ ( o)
j
·i·ty Mass Function (pmf):
probab11
. ete r ·v X is denoted by p -x ( x) and it is defined as
Thep mf 0 fa d1scr
/~ P-
p j-x (-x)-=- ]/
[1Y_ =_ x---.
Properties of pmf:
I. Px(x) > 0, Vx
2. ~Px(x) =1
X
Expectation:
Mean = E [X ] = L XiPx (x i)
'l
2] = L Xf Px (xi)
1. E [X
i
2
- Variance of X = Var(X) = E [X 2 ] - {E [X]} 2
X -2 -1 0 1 2 3
p(x) 0.1 K 0. 2 2K 0.3 3K
(a) p·
Ind the value of K
(b) Evaluate P (X ·
(c . < 2) and P(- 2 < .rY < 2).
J Find the cdf of X
(d) Fi d .
n the rnean of X.
Solution:
(ci Cdf of X: X
I I ll l!
ll -
-00 -2 -1 0 2 3 co
(i) Let -co < x <-2
Then,
F(x) =0 X
-00 -2 -1 0 1 '2 3 co
(ii) Let-2 ~ X < -1
Then, 1
F(x) = P[X ~ x) = P(X = -2) = 0.1 = lO
X
Then,
10 15 30 6
X
(iv) Let Os; X <1
Then, -2 -1 0 ; 2 3 1.
Proba/)1/ity ancl p , 1
\, 1t1< om Variables
1.23
-2 -oo -1 0 2 3 co
(vii) Let 3 ~ x < oo.
Then,
F(x) = P[X < x] = P[X < 3] = Total probab ility= 1
Thus the cdf is given by
-
_ ,) ( 1 )
IO
5
,
I( i )
- 3_ l +2+9+9
( :5) +
( 10) + ( { )
+0 + l
2 3
16
1 I 2 3 3 _ ____::_---:-----=-
'J, +- +- +- -
- - 15 15 5 5
== -)05
15 15
bTt · distribution:
2. Ar., X l1:1s the followmg proba 11 y
3 4 5 6 7
X 0 l 2
p(x) 0 k 2k 2k 3k k2 2k 2 7kL. +k
Find (i) the value of k, (ii) P{l.5 < X < 4.5/ X > 2} and (iii) the smallest Value of
1
)dor which P(X ~ J\) > 2°
Solution:
⇒ 0 + k + 2k + 2k + 3k + k 2 + 2k 2 + 7k2 + J..: =l
2
⇒ 10k + 9k - l = 0 ⇒
10k 2 + 10k - "It: - 1=O
⇒ lOk(k+l)-l(k+l)=O
(ii) p [ (1.5 ; ~; 4.5)] == P[(l.5 < X < 4.5) 'l (.x· > 2))
P (X > 2)
== P(X == 3) + P(X == 4)
1 - P( X < 2) - - p (_y == 3) + P IX - 4)
1
:::: _ 2k + 3k Sk [~{-Y == 0) + P (~Y == 1; + P ' X == 2)]
1 - [O + k + 2k] == - - === "/io 5 '10 .J
1 - 3k 1 - 3/10 - ', 10 == -;
Prohab1/11y and H·, I
, nc o,n Variables
1.25
1
~ < 01 :::: 0 -:f 2
•'') J'[.,\
l111 ~
P[X = j] = ~ ,j = 1, 2, 3, ...
X 1 2 3 n
I P(x)
1 12 1
- - -
3
2 2 2
Total Probability is
1 (1)2 (1)3
= 2 + 2 + 2 + ... -
- 1 -1/ 1/2
2 = 1/2 = 1
1/2
2
== x + 2x + 3x3 + .... , where x = 1/2
== x(l + 2x + 3x 2 + .... )
X 1/2 - 1/ 2 == 2
= x(l - x)-2 = (1- x)2 = (1 - 1/2)2 - (1/2)2
n, ~,n
, 6 \
'
' l ,.,,
\
\ --" t ) 1) n] (112t
Therefore,
2 2
Var(X) (E(X)] = 6 - 2 = 6 - 4 = 2
= E (X 2) -
P(X is even) = P (X = 2) + P (X = 4) + P(X = 6) + ...
= 2 3 =-L-8 1
1- (½) 1-½-i=7
Note: rt t-w· + u,,.2 + _ a.. ·r
... - y::- 1 - 1 < T < l
r ..
4. ff the r.v. X takes ihc v·1lu I21
/\P [X 3) = 5J' [X _ ] ' . es ' ' and 4 such that 2P [~\"" -= L) = 3P (.Y == 2]::::
' - '1 , ftncl the pmf and cdr or V
Solution : · \. ·
, . 1 ,rob:\bt l,t, .. 1
1\1ta l :::;- .P[ \ - t] + P[X = 2] + P[X = :3] + P [X = 4) -= 1
2.1· 2x
_,__
-, .. + -3 + 2X + -5 = 1
l'
2 3 4 co
(i) Let -oo <x <1
Then,
F(x) = P[X < x] = 0
X
Then,
15
F(x) = P[X < x] = P[X = 1) =
61
X
Then,
~ 1 <x <2 1.
61 ' -
F (x)
~ 2 <x< 3
=== 61 ' -
55
2< X <4
61 ' -
1, 4 < X < 00
The function f x (x) is called the probability density function (pd:f) of the r.v. X and 6
defined by
d
fx (x ) = dx Fx (x)
Properties of fx(x):
2- j f x(x)dx = l
- oo
b
3
· P(a ,:_ X ~ b) = .f f x(x)dx = F (b) - F (a)
a
Jf ( )
a,
4. P( X - a) -- XX dX =Q
a
Probability and Random Variables 1.29
Solution:
212 x2
Consider: / xe-x dx Putt= -
2
-t
ix
=
=
J t
e- dt= -
-e-x2 ; 2
-1
e
dt = -dx
7
(1)
x<O x~ O
(a) (i) Clearly f (x) > 0, f(x)=O 0 f(x)=xe·.'12 co
for all x .
00 0 00
00
0
= -[0 - e0] = 1
X
(b) (i) Let -oo < x < 0. Then, -00 0
F(x) = P[X < x] = O
t
,J ,\ ,,mh'' I /u•otJ' .t
Pr(Jbabi1i '
(1110
1.30 0
.
01) tct O' .r ,I'
f (:l') d:r:
l'[X < .1:) - ./
F(.d N
,1:
_J 0
r (O) / f (r)dJ:
f{<t:),Lr 1· O · ·
- 'v ] X
x
[e -x 2 /2 , by(l)
=
J xe -x2;2dx == - O
= -O [e-x2 /2 - e° ] = - [e-x /2 _
2
1] = (1 - e-x /2) 2
[~us,
Q if - 00 < <0 X
iii. if x1, x2, x3 are 3 independent observations of X, what is the probability thj
exactly one of these 3 is greater than 1.5?
Solution:
X
(i) f (x) is a pdf f(x)==O
I I I
0 1 2 3
~ 3
f(x)=ax f(x)=a f(x)- a~a,
00
'=> j f(x)dx == 1
- 00
z iooam my"nna Random Variables 1.31
2 1
J
0
+ j f(x)d. r =1
3
2 3
n-
)
2 0 1 2 2
- 00 0 1 2 3
Then,
X
00
-oo 0 1 2 3
Then,
X
0 (O)
j fet}dx + j j (x)dx
X
=
-CX) 0
x2 1 ( 2x2) = 4 2
i x ( x2 ) x x
= axdx = a =a = 2 2
2 0
0
-~~ --;-~
~
'fh~ll.
r'
_ ; · /(.r)d.r
F(,l)
~ P[.1; ::f J;] -
- cv X
j
X
= axdx + j adx
0 l
_- a (~ 2) 1+ a(x)f
2 o
=a(½) +a(x-l)
(1)
1
1
=2 2 +2x -( _ 1)
11 1
= -4 + -2 x - -2
1 1
= -x--
2 4
:c
Then,
0 1 2 3
J
Q X
=
- oo
JJ:tfdx+
O
j f (x) dx + j f(x)dx + j f (x)dx
1 2
1 ')
0
2 2
Pm/JahilJty :m<l f~andom Variahles 1.33
I •, tlo,
_ (1, j- (1 j- ,JO,:t
..
•) 2
n.r 2 fJ
::::: :~air; - - n.
2 2
:3 x2 5
- -:.r - - - -
- 2' 4 4
o (0) 1 2 3 oo (0)
= j fet)dx + j f(x)dx +j f(x)dx +j f(x)dx + j fet)dx
-00 0 1 2 3
0 2 3
=;+a + (9a -
9
n- (6a - 2a)
=!a+ a+ ~a -
2 2
4a = 6a - 4a = 2a = 2 (!)2 = 1
Thus:
0, -00 < X <0
x2
, 0 <x<l
4
1 1
F(x) = -X -
2 4' 1 -<
- X < ')...,
2
3:r 1: 5 •)
- - - -, 2 < :l~ <.... v
2 4 4 -
1, 3 < .r <oo
- - - ------::;----=-:- - --:--:-:-;-:-:--::;:~d4 N11I11hC'l 1 11,•pr;
1.34 J>rob:1lnl1lJ an
= 3
G) Gr 3
-
8
3. The cdf of a continuous r. v. X is given by
0 x<O
x2 1
, O<x<
F(x) 2
3 2 1
1- (3 - x) , < X < 3
25 2
1 , X >3
Find the pdf of X, evaluate P (IX/ < I) and P (~ < X < 4) using both pdf and cdf
Solution:
Cdf is given by
O,x < 0
2
x,O<x<½
F(.c) =
l - ~
25
(3 - x) 2 ~<x<3
'2 -
l, ..c > 3
Prob:i/Jil ity a nd Un ndom ½1riahlcs 1.35
. js criYl'll by
.. , 1hc PJI ' t;-,
ThcrclcHl . 0, :r, < ()
df(.r)
2~r., () : .r : I h.
f (.r,) = d:r fj I
2fj (:~ - :r;)' 2~ X < ~J
0, :r, > ;3
U~ing pdf:
P[j \ j ~ l] = P[- 1 < X :s; 1]
1
= j J(x)dx
- 1
100 25
4
=. f f (x )dx + j ~(3
25
1/2
- x )dx
1/.3
1.36
c~ing l'dr:
-
9
E[X] is sometimes
possible values of Xdenhoted by X T .
. he expected , ere of~
' w ere each value is weightedvalue of X is a we1ghted, ,°' e~a~ value·
by the probability that )<.. takes
Probability and RHn<lom Variables 1.37
and variance:
Moments . 1
ed by,
,, • •
E [(X - xr ] = ◄ 00
Note:
l. E [ (X - X)
2
] is called the variance of X and is denoted by oJ.
ed asµ~ = E [Xn ]
2. nth moment about the origin is, denoted byµ~, defin
ed as µn = E [ (X - X) n]
3. nth moment about the mean Xis , denoted µn, defin
4. µ~ = E[X ], the mean value of X
5. µ2 = E[(X - X)2], the variance of X. Also
2
µ2 = E[( X - X) ]
2
= E[X 2 - 2XX + X ]
== a2 { E[X2) - [E(X)]2}
2
== a Var (X)
1 .38 Proha/JilitJ and N 11 mh<'1' Thcoty
MGF:
. ·,,t1 ti.;, \ ' deno tc,.d by J\l ,x: (t), is <lefined as
11h' MGl·• ot, a r:mdl1 ill Yann
I
j etx J(x) dx, if X is a continuous r.v
-oo
Properties of MGF:
tX t X 2 2
lvlx(t) = E[etx] = E[l + 1! + 2! + ...]
t2 2
tn
= l + tE[X] + 21 E[X ] + ... + n !E[Xn] + ...
Therefore,
tn
E[Xn] = Coefficient of - in Nlx(t)
n.1
= n ! {Coefficientof tn in Mx(t)}
\
1
),.. wlu;rc X :ind Varc 111dcpend cn1 vi11fablcs, lhcn tvf /,(t) = tvrx(t) fvfy (t)
it 1i' Z
proof:
,, (t) = 1£l<l'·] :: "✓ [,/CX l Y)l
= B[e'X .,~n, ] =- /~[, lX] f~[eLY],
sin ce X and Y ,ire independent
:.:} 1\!. (t) = 1'vf \'. (l) J\tfy (I)
problems:
2(1 - x) , 0<x<l
I. 1f the pdf of X is given by f (x) ={O , otherwise
2
(i) show that E[Xr] = (r + l)(r + 2)
evaluate E[(2X + 1)
2
(ii) ]
Solution:
0 (0) 1 (0)
j xr f(x)dx = j j xr J(x)dx + j
00 00
= j xr2(l - x)dx
0
1
=2 j (xr - xr+ 1
) dx
0
= 2 [ xr+ l
r+l
_ xr+2
r+2
l l
1 :1
2) 2( n
J \ (I thl
l dl. ~
2 :\ ( I) (,
\ \ 11 + l ){ i 4 !\)
l , O<x<k
1. Ar., X has the pdf given by f(x) === { k
0 , otherwise
Find (i) .MGE (ii) r th moment about the origin (iii) Mean and Variance.
Solution:
f(x)=O
f(x)=O
= E [etX]
00
oo O (0) k (0)
J
=_ etxf(x) dx = .I e "J0;'5dx + .I etx f(x)dx + j e "J¥idx
1
1
oo -oo O k
_J
-
k
o
l
etx kdx = -l ( _etx ) k = -(
k t
l it _ 1)
o kt
,--ronnnillly and Random Variabl!s
= l'l\'']
L: l () ( {) ) ~: X
= l ,.
k
,l'
t l
k. ' .c
0
Therefore,
k
Mean of X = E[X] =
2
and
2
Var(X) = E(X 2 ) - [E(X)]
= Gr=~2 - ~2 - : =~;
3. Let X be a r.v with E[X] =land E[X(X - l)] = 4. Find
Solution:
Given that E[X] = 1, E[X(X - l)] =4
⇒ E(X 2 - X) = 4
⇒ E(X 2 ) - E(X) = 4 ⇒ E (X 2 )) - 1=4
⇒ E(X 2 ) =5
Therefore
'
Var(X) = E(X 2 ) - [E(X)] 2 =5- 12 =4
., \ lltlll1cr
l 1,c,H)
Ptnh:ilu I(,
\ (lJJU
•.\2
G) 2
v,,r(X) = ,J
~(il ) - I
. l) (4) = :w
., 3X)
. ( 3)2 wr(X)
.
om! Vnr(.., o l ot r =
']
, , 1£(X 1 - • O
\ nrc dehn~d b) ; .X > 2] - 0
4 If the monlt:,nts ot 8 P
t.\.\ 1] - u.G 1\IH.l ' ( -
. \ {1] 0. .
~olulion: 1 2 ;3. .. ·
V • o.G, for f == ., l
G\ en that E( Xr]
Mx(t) = E[etX]
2 2
t X tX ]
-El+
[ - + - + ....
- 1! 2!
t t2
_
- E(l ) + -E(X
1! ) + -E(X
2!
2
) + ····
t t2
= 1 + 1! (0.6) + 2! (0.6) + ····
t t2
= 0.4 + 0.6 + 1! (0.6) + 2! (0.6) + ....
2
= 0.4 + 0.6 [1 + 1!t + t2! + .. ·]
= 0.4 + 0.6et
From (1) and (2),
_ Binomial Distribution:
1
. that we conduct n independent Bernoulli trials. Let p denote the probability of
Suppo~e
. •n a trial and let X denote the number of successes in n such trials. Then we say
succe~s 1 . . .
that X is a binomial variate and its pmf 1s given by
Solution: