Continuous Random Variables and Probability Densities
Continuous Random Variables and Probability Densities
densities
a b
Cumulative distribution function:
𝟐
(c)p(X> )
𝟑
(d) Mean and variance.
Solution;
∞ 𝟏 𝟎
(a) We know , −∞
𝒇 𝒙 𝒅𝒙 = 𝟏 or,k( − )=1
𝟒 𝟒
𝟎 𝟏 ∞
Or, −∞
𝒇 𝒙 𝒅𝒙 + 𝟎 𝒇 𝒙 𝒅𝒙 + 𝟏 𝒇 𝒙 𝒅𝒙=1 ∴𝒌=𝟒
𝟏
Or, 0 + 𝟎 𝒌𝒙𝟑 dx + 0 =1
𝟏
𝒌𝒙𝟒
Or, 0 =1
𝟒
continue
(b)
4 3/4 𝑘 3
3
1 3 𝑘𝑥 1 81 1 80
P( ≤𝑋≤ )= 14 𝑘𝑥 3 dx= = {( )4 -( )4 }=( − ) = =0.3125
4 4 4 1/4 4 4 4 256 256 256
4
(c)
∞ 1 3 ∞ 𝑥4 1 1 16
P(X>2/3)= 2/3
𝑓𝑥 𝑑𝑥= 2/3 𝑘𝑥 dx+ 1 0𝑑𝑥=k =4{ - }=0.8025
4 2/3 4 324
∞ 0 1 ∞
(d)Mean(𝜇)= −∞
𝑥𝑓 𝑥 𝑑𝑥= −∞
𝑥𝑓(𝑥)𝑑𝑥 + 0
𝑥𝑓 𝑥 𝑑𝑥 + 1
𝑥𝑓 𝑥 𝑑𝑥
1
=0 + 0 𝑘𝑥 4 dx + 0
𝑘𝑥 5 1
=
5 0
4
= =0.8
5
continue
∞ 𝟐
Variance(𝝈 )= −∞ 𝒙 f(x)dx -𝝁𝟐
𝟐
𝟎 𝟏 ∞
= −∞ 𝒙𝟐 𝒇 𝒙 𝒅𝒙 + 𝟎 𝒙𝟐 𝒇(𝒙)dx+ 𝟏 𝒙𝟐 𝒇 𝒙 𝒅𝒙- 𝝁𝟐
𝟏
= 0 + 𝟎 𝒙𝟐 .k𝒙𝟑 dx + 0 - (𝟎. 𝟖)𝟐
𝟏
= 𝟎 𝒌𝒙𝟓 dx -0.64
1
𝒙𝟔
=k - 0.64
𝟔 0
𝟒
= -0.64
𝟔
=0.027
2. Show that the following function is probability density function:
𝟎 𝒇𝟎𝒓 𝟎 < 𝒙 < 𝟐
𝟏
f(x)= 𝟓 + 𝟐𝒙 𝒇𝒐𝒓𝟐 ≤ 𝒙 ≤ 𝟒
𝟐𝟐
𝟎 𝒇𝒐𝒓 𝒙 > 𝟒
Solution;
(i) We know, (ii)
∞ ∞ 𝟐
Mean(𝝁) = −∞
𝒙𝒇 𝒙 𝒅𝒙 Variance(𝝈𝟐 )= −∞
𝒙 𝒇 𝒙 𝒅𝒙 − 𝝁𝟐
𝟎 ∞ 𝟎 𝟐 𝒇 𝒙 𝒅𝒙 + ∞ 𝒙𝟐 𝒇
= −∞
𝒙𝒇 𝒙 𝒅𝒙 + 𝟎
𝒙𝒇 𝒙 𝒅𝒙 = −∞
𝒙 𝟎
𝒙 𝒅𝒙 − 𝝁𝟐
∞ ∞ 𝟐 −𝒙
= 0 + 𝟎 𝒙𝒆−𝒙 dx = 0 + 𝟎 𝒙 𝒆 dx - 1
∞ ∞
= 𝟎 𝒆−𝒙 𝒙𝟐−𝟏 dx = 𝟎 𝒆−𝒙 𝒙𝟑−𝟏 dx -1
=Γ(2) =Γ(3) -1
=(2-1)! =(3-1)! - 1
=1 =2-1
=1
∞ −𝒙 𝒏−𝟏
[∵ 𝟎
𝒆 𝒙 dx=Γ(𝒏)]
𝟏
−𝟐𝒙𝟐
5.If the pdf of X is f(x)= 𝒆 𝒇𝒐𝒓 𝟎 < 𝑿 < ∞ . Find Mean and
𝟎 𝒐𝒕𝒉𝒆𝒓𝒘𝒊𝒔𝒆
Variance.
6. The diameter say X of an electric cable is assumed to be continuous random variable with
𝟔𝒙 𝟏 − 𝒙 𝒇𝒐𝒓 𝟎 ≤ 𝑿 ≤ 𝟏
pdf as f(x)= .
𝟎 𝒐𝒕𝒉𝒆𝒓𝒘𝒊𝒔𝒆
(a) check above is a pdf. (b)Obtain the expression for cdf of X.
𝟏 𝟏 𝟐
(c)compute p(X≤ / ≤ 𝑿 ≤ ). (d) Determine the number k such that
𝟐 𝟑 𝟑
P(x<k)=p(x>k).
Solution;
(a)Do yourself.
(b)Expression for cdf of X:
We know,
𝒙
𝟎
𝟔𝒙 𝟏 − 𝒙 𝒅𝒙 𝒇𝒐𝒓 𝟎 ≤ 𝑿 ≤ 𝟏
𝒙 𝒙
F(x)= −∞
𝒇 𝒙 𝒅𝒙 = −∞
𝟎(𝒅𝒙) 𝒇𝒐𝒓 𝒙 < 𝟎
𝒙
𝟏
𝒐. 𝒅𝒙 𝒇𝒐𝒓 𝒙 > 𝟏
𝟐 𝟑
= 𝟑𝒙 − 𝟐𝒙 𝒇𝒐𝒓𝟎 ≤ 𝒙 ≤ 𝟏
𝟎 𝒐𝒕𝒉𝒆𝒓𝒘𝒊𝒔𝒆
continue
𝟏 𝟏 𝟐 𝟏 𝟏 𝟐 𝟏 𝟐
(c)p(X≤ / ≤𝑿≤ )= p(X≤ ∩ ≤ 𝑿 ≤ )/p( ≤𝑿≤ )
𝟐 𝟑 𝟑 𝟐 𝟑 𝟑 𝟑 𝟑
𝟏 𝟏 𝟏 𝟐
=p( ≤ 𝑿 ≤ )/p( ≤ 𝑿 ≤ )
𝟑 𝟐 𝟑 𝟑
𝟏/𝟐
𝟏/𝟑
𝟔𝒙 𝟏−𝒙 𝒅𝒙
= 𝟐/𝟑
𝟏/𝟑
𝟔𝒙 𝟏−𝒙 𝒅𝒙
Now complete yourself. 0
𝒌 𝟏
Or, 𝟑𝒙𝟐
− 𝟐𝒙𝟑 =
0 𝟐 0
𝟏
Or,3𝒌𝟐 − 𝟐𝒌𝟑 =
𝟐
or.,4𝒌𝟑 − 𝟔𝒌𝟐 + 𝟏 = 𝟎
Or,4𝒌𝟑 − 𝟐𝒌𝟐 − 𝟒𝒌𝟐 + 𝟐𝒌 − 𝟐𝒌 + 𝟏 = 𝟎
Or, 2𝒌𝟐 (2k-1) -2k(2k-1)-1(2k-1)=0
Or,(2k-1)(2𝒌𝟐 -2k-1)=0
Either 2k-1=0 ∴ 𝒌 = 𝟏/𝟐
𝟏± 𝟑
0r, 2𝒌𝟐 -2k-1=0 ∴𝒌=
𝟐