Professional Documents
Culture Documents
Probability & Statistics For Scientist and Engineers: Dr. M. M. Bhatti
Probability & Statistics For Scientist and Engineers: Dr. M. M. Bhatti
Dr. M. M. Bhatti
Example 2.5
(a) Find the constant c such that the function
2
cx 0<x<3
f (x) =
0 otherwise
(b)
2
2
x2 x3
Z
8 1 7
P (1 < X < 2) = dx = = − = (2)
1 9 27 1 27 27
27
Example 2.6
(a) Find the distribution function for the random variable of Example 2.5.
(b) Use the result of (a) to find P (1 < x ≤ 2).
(a) We have
Z x
F (x) = P (X ≤ x) = f (u)du (3)
−∞
If x ≥ 3, then
3 x 3 x
u2
Z Z Z Z
F (x) = f (u)du + f (u)du = du + 0du = 1 (5)
0 3 0 9 3
(b) We have
P (1 < X ≤ 2) = P (X ≤ 2) − P (X ≤ 1)
23 13 7
= F (2) − F (1) = − = (6)
27 27 27
as in Example 2.5.
The probability that X is between x and x + ∆x is given by
Z x+∆x
P (x ≤ X ≤ x + ∆x) = f (u)du (7)
x
Example 2.7
Let c be a constant and
0 x<0
Fc (x) =
1 − ce−3x x≥0
Clearly,
If c < 0, Fc is decreasing.
If c > 1, Fc (0) = 1 − c < 0.
If 0 ≤ c ≤ 1, then Fc is nondecreasing.
Fc is always right-continuous.
Dr. M. M. Bhatti (SDUST) Chapter 2: Lecture # 8 March 27, 2023 9 / 17
Continuous Random Variables
(a) (b)
Problem 2.5
A random variable X has the density function f (x) = c/(x2 + 1), where
−∞ < x < ∞. (a) Find the value of the constant c. (b) Find the probability
that X 2 lies between 1/3 and 1.
R∞
(a) We must have −∞ f (x)dx = 1, i.e.,
Z ∞
∞
c −1
h π π i
dx = c tan x = c − − =1 (11)
−∞ x2 + 1
−∞ 2 2
so that c = 1/π.
π π
N.B: tan = ∞ ⇒ tan−1 ∞ = .
2 2
√ √
1 3 3
(b) If ≤ X 2 ≤ 1, then either ≤ X ≤ 1 or −1 ≤ X ≤ − . Thus
3 3 3
the required probability is
√
3
Z − 3 Z 1 Z 1
1 dx 1 dx 2 dx
2
+ √
2
= √
π −1 x +1 π 3 x +1 π 3 x2+1
3 3
" √ !#
2 3
= tan−1 (1) − tan−1
π 3
2 π π 1
= − = (12)
π 4 6 6
Problem 2.6
Find the distribution function corresponding to the density function of
Problem 2.5.
x
1 x
Z Z
du 1h −1 x
i
F (x) = f (u)du = = tan x −∞
−∞ π −∞ u2 + 1 π
1 −1 1 h πi
= tan x − tan−1 (−∞) = tan−1 x +
π π 2
1 1
= + tan−1 x (13)
2 π
Find (a) the density function, (b) the probability that X > 2, and (c) the
probability that −3 < X ≤ 4.
d
(a) f (x) = F (x).
dx
2e−2x
d x>0
F (x) =
dx 0 x<0
(b)
Z ∞
∞
−2u −2u
= e−4
P (X > 2) = 2e du = −e (14)
2 2
Dr. M. M. Bhatti (SDUST) Chapter 2: Lecture # 8 March 27, 2023 15 / 17
Continuous random variables and probability distributions
(c)
Z 4 Z 0 Z 4
P (−3 < X ≤ 4) = f (u)du = 0du + 2e−2u du
−3 −3 0
4
= −e−2u 0 =1−e −8
(15)