Conts RV
Conts RV
Conts RV
UNIT I
March 4, 2021
f (x) = 0
R∞
f (x)dx = 1
−∞
A continuous
random variable X has the distribution function
0, x ≤1
F(x) = k(x − 1)4 , 1 < x ≤ 3 Find the value k, probability
0, x > 3
density function f (x) and P(X < 2).
d
Solution: we know that f (x) = [F(x)]
dx
d
f (x) = [k(x − 1)4 ] = 4k(x − 1)3
dx
0, x ≤ 1
Therefore, f (x) = 4k(x − 1)3 , 1 < x ≤ 3
0, x > 3
xe−x2 /2 x≥0
If p(x) = .
0 x<0
(i) show that is a pdf (ii) find its distribution function.
R∞
Solution: (i) To prove f (x)dx = 1
−∞
R∞ R∞ 2 /2
Now f (x)dx = xe−x dx
−∞ 0
x2 dt
putting t = ⇒ dt = xdx ⇒ dx =
2 x
When x = 0, t = 0 and When x = ∞, t = ∞
R∞ R∞ 2 /2
Hence, f (x)dx = xe−x dx
−∞ 0
R∞
= e−t dt
0
∞
e−t
=
−1 0
= − e − ∞ − e0 = − ( 0 − 1 ) = 1
R∞ 2
⇒ xe−x /2 dx = 1
0
⇒ p(x) is a pdf of X.
R∞
Mean E (X) = xf (x)dx
−∞
R∞ 1 R∞ 3 −x
E (X ) = xf (x)dx = x e dx
0 20
!∞
1 e−x e−x e−x e−x
= x3 − 3x2 + 6x − 6
2 (−1) (−1)2 (−1)3 (−1)4 0
1 ∞
= −x3 e−x − 3x2 e−x − 6xe−x − 6e−x 0
2
1
= − (0 − 6) sin ce e−∞ = 1 and e0 = 1
2
=3
⇒ E (X ) = 3
= 12 − 32 = 12 − 9 = 3 ⇒ Var (X) = 3
Continuous Random Variable 27/1
Problem 9
R∞ R∞
E (X ) = xf (x)dx = x2 e−x dx
0 0 !∞
−
e x e−x e−x
= x2 − 2x +2
(−1) (−1)2 (−1)3 0
∞
= −x2 e−x − 2xe−x − 2e−x 0
= 6 − 22 = 6 − 4 = 2
⇒ Var (X) = 2
Continuous Random Variable 30/1
Problem 10
The distribution
function of a continuous random variable X is
0 x<0
x2
0 ≤ x < 1/2
given by F(x) = 3 .
1 − (3 − x)2 1/2 ≤ x < 3
25
x≥3
1
Find the pdf of X and evaluate P (|X| ≤ 1) and P (1/3 < X < 4)
using both the pdf and cdf.
Solution:
d [F (X)]
we know that f (x) =
dx
0 x<0
2x 0 ≤ x < 1/2
The pdf of X is given f (x) = 6
(3 − x) 1/2 ≤ x < 3
25
x≥3
0
Now using pdf to find P (|X| ≤ 1)
P (|X| ≤ 1) = P (−1 ≤ x ≤ 1)
R1 1/2
R R1 6 13
= f (x) dx = 2xdx + 25 (3 − x)dx = 25
−1 0 1/2
13
Using cdf, P (|X| ≤ 1) = P (−1 ≤ x ≤ 1) = F (1) − F (−1) =
25
0 Rb
2 moment about the point A µr = (x − A)r f (x)dx
a
0 Rb
3 moment about mean µr = (x − µ)r f (x)dx
a
Let the
random variable X has the PDF
1 e−x/2 , x > 0
f (x) = 2 . Find the MGF, mean and variance.
0, elsewhere
Solution:
MX (t) = E(etx ) = etx f (x)dx
R
1
!
R∞ 1 x 1 R∞ −x
2
−t
= etx e− /2 dx = e dx
0 2 20
! ∞
1
− −t x
1 e 2 1 1
= = 0−
2 1 2 1
− −t − −t
2 0
2
1 2 1
= =
2 1 − 2t 1 − 2t
Continuous Random Variable 43/1
1
we have MX (t) = = (1 − 2t)−1
1 − 2t
expanding we have MX (t) = 1 + 2t + (2t)2 + (2t)3 + ...
t
Mean = E(X) = coefficient of =2
1!
t2
E(X2 ) = coefficient of =8
2!
Variance = E(X ) − (E(X))2 = 8 − 4 = 4
2
2
E[Xr ] =
(r + 1)(r + 2)
1
when r = 1, E[X] =
3
2 1
when r = 2, E[X ] =
6
E[(2X + 1)2 ] = E 4X2 + 4X + 1
2 + 4E X + 1
= 4E
X ( )
1 1
= 4× + 4× +1
6 3
2 4
= + +1 = 3
3 3
⇒ E[(2X + 1)2 ] = 3