




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The concepts of expected value and variance for a continuous random variable. It provides formulas for calculating these statistics and interprets their meanings. The document also includes examples of calculating expected value and variance for uniform, exponential, and normal distributions.
Typology: Slides
1 / 8
This page cannot be seen from the preview
Don't miss anything!





If X is a random variable with corresponding probability density function f (x), then we define the expected value of X to be
โโ
xf (x)dx
We define the variance of X to be
Var(X) :=
โโ
[x โ E(X)]^2 f (x)dx
1
As with the variance of a discrete random variable, there is a simpler formula for the variance.
Var(X) =
โโ
[x โ E(X)]f (x)dx
=
โโ
[x^2 โ 2 xE(X) + E(X)^2 ]f (x)dx
=
โโ
x^2 f (x)dx โ 2 E(X)
โโ
xf (x)dx
โโ
f (x)dx
=
โโ
x^2 f (x)dx โ 2 E(X)E(X) + E(X)^2 ร 1
=
โโ
x^2 f (x)dx โ E(X)^2
3
The expected value should be regarded as the average value. When X is a discrete random variable, then the expected value of X is precisely the mean of the corresponding data.
The variance should be regarded as (something like) the average of the difference of the actual values from the average. A larger variance indicates a wider spread of values.
As with discrete random variables, sometimes one uses the standard deviation, ฯ =
Var(X), to measure the spread of the distribution instead.
We compute โซ (^) โ
โโ
x^2 f (x)dx =
0
x^2 dx
= 13 x^3 |x x=1=
= (^13)
7
Hence,
Var(X) =
โโ
x^2 f (x)dx โ E(X)^2
= 13 โ (^14)
= 121
Let X be the random variable with probability density function
f (x) =
ex^ if x โค 0 0 if x > 0
Compute E(X) and Var(X).
9
Integrating by parts with โซ u = x and dv = exdx, we see that xexdx = xex^ โ ex^ + C. Thus,
โโ
xf (x)dx
โโ
xexdx
0 rโโโ^ lim
r
xexdx = (^) rโโโlim [โ 1 โ rer^ + er^ ] = 1
[We used LโHหopitalโs rule to see that limrโโโ rer^ = limrโโโ (^) eโrr = limrโโโ (^) โe^1 โr = 0.]
First, we must find the probability density function of X. Differentiating we find that the function
f (x) =
cos(x) if 0 โค x โค ฯ 2 0 otherwise
is the derivative of F at all but two points. Thus, f (x) is a probability density function for X.
13
โโ
xf (x)dx
โซ ฯ 2
0
x cos(x)dx
= (x sin(x) + cos(x))|x=^
ฯ 2 x= = ฯ 2 โ 1
Integrating by parts, we compute
Var(X) =
โซ ฯ 2
0
x^2 cos(x)dx โ E(X)^2
= (x^2 sin(x) โ 2 sin(x) + 2x cos(x))|x=^
ฯ 2 x=0 โ^ (^
ฯ 2
= ฯ
2 4 โ^2 โ^ (^
ฯ^2 4 โ^ ฯ^ + 1) = ฯ โ 3