STA 211 Lecture 2
STA 211 Lecture 2
J. N. Onyeka-Ubaka (Ph.D)
[email protected] +2348059839937
Expectation and Variance of Continuous
Random Variables
Let X be a continuous random variable with probability
density function f(x). Suppose we divide the range X into
smaller intervals, each of length ∆x. the probability that x
falls in the interval (x, x + ∆x) is approximately f(x) ∆x.
∞ 𝑟
▪ In general, E( 𝑋𝑟 ) = −∞ 𝑥 𝑓 𝑥 𝑑𝑥
and
∞
E(φ(X)) = −∞ φ(X)𝑓 𝑥 𝑑𝑥.
1
f(x) = 0<x<6
6
0 elsewhere
6
6 1 1 1 2 1 1
(b) E(X) = 0 𝑥 6 𝑑𝑥 = *
6 2
x 0 = * *36
6 2
=3
6
6 21 1 1 1 1
(c) E(X 2 ) = 0 x 6 𝑑𝑥 = * x3 0 = * *63 = 12
6 3 6 3
1 1
1 −2(μ − 𝑥−μ)2 1 −2 𝑥 2
f(μ – x) = 𝑒 = 𝑒
2𝜋 2𝜋
hence, f(μ + x) = f(μ – x). Thus f(x) is symmetrical about μ.
Distribution Function
𝜇 − 𝑘𝜎 𝜇 𝜇 + 𝑘𝜎
2 2 ∞
𝜎 = 𝐸[(𝑋 − 𝜇) ] = −∞ 𝑓(𝑥 − 𝜇)2 𝑓(𝑥)𝑑𝑥
Then, dividing the integral into three parts as shown in the figure
above, we get
𝜇−𝑘𝜎 𝜇+𝑘𝜎
𝜎 2 = −∞ 𝑓(𝑥 − 𝜇)2 𝑓(𝑥)𝑑𝑥 + 𝜇−𝑘𝜎 𝑓(𝑥 − 𝜇)2 𝑓(𝑥)𝑑𝑥 +
∞
𝜇+𝑘𝜎 𝑓(𝑥 − 𝜇)2 𝑓(𝑥)𝑑𝑥
Since the integrand 𝑓(𝑥 − 𝜇)2 𝑓(𝑥) is non-negative, we can form the
inequality
𝜇−𝑘𝜎 ∞
𝜎 2 ≥ −∞ 𝑓(𝑥 − 𝜇)2 𝑓(𝑥)𝑑𝑥 + 𝜇+𝑘𝜎 𝑓(𝑥 − 𝜇)2 𝑓(𝑥)𝑑𝑥
By deleting the second integral.
Prove of Chebychev’s Inequality Cont’d
Therefore, since (𝑥 − 𝜇)2 ≥ 𝑘 2 𝜎 2 for 𝑥 ≤ 𝜇 − 𝑘𝜎 or 𝑥 ≥ 𝜇 + 𝑘𝜎, it
follows that
2 𝜇−𝑘𝜎 2 2 ∞
𝜎 ≥ −∞ 𝑘 𝜎 𝑓(𝑥)𝑑𝑥 + 𝜇+𝑘𝜎 𝑘 2 𝜎 2 𝑓(𝑥)𝑑𝑥
and hence that
1 𝜇−𝑘𝜎 ∞
≥ −∞ 𝑓(𝑥)𝑑𝑥 + 𝜇+𝑘𝜎 𝑓(𝑥)𝑑𝑥, provided 𝜎2 ≠ 0 .
𝑘2
Since the sum of the two integrals on the right-hand side is the
probability that X will take on a value less than or equal to 𝜇 − 𝑘𝜎 or
greater than or equal to 𝜇 + 𝑘𝜎, we have thus shown that
1
𝑃(|X - μ| ≥ kσ) ≤
𝑘2
and it follows that
1
𝑃(|X - μ| < kσ) ≥ 1 − .
𝑘2
Example
1 3
The probability of at least 1 − = that a random variable X will take
22 4
on a value within two standard deviations of the mean.
1 24
The probability is at least 1 − = that it will take a value within
52 25
five standard deviations of the mean.
Remark: It is in this sense that 𝜎 controls the spread or dispersion of
the distribution of a random variable. Clearly, the probability given by
Chebyshev’s theorem is only a lower bound.
Remarks