Lecture Notes For Class5
Lecture Notes For Class5
b
a
f pxq dx
Continuous Random Variables
Example: The current in a certain circuit as measured by an am-
meter is a continuous random variable X with the following den-
sity function:
f pxq
#
.075x `.2 if 3 x 5
0 otherwise
a. Graph the pdf and verify that the total area under the density
curve is indeed 1.
b. Calculate PpX 4q. How does this probability compare to
PpX 4q?
c. Calculate Pp3.5 X 4.5q and also Pp4.5 Xq.
Continuous Random Variables
a.- The pdf is an ane curve. To check that the total mass is in-
deed 1:
5
3
.075x `.2 dx .0375x
2
`.2x
5
3
. . . 1
b.- PpX 4q PpX 4q PpX 4q. Since X is a continuous
r.v. this is zero.
PpX 4q
4
3
.075x `.2 dx . . . .4625
Continuous Random Variables
We have:
f pxq 0 for all x
and
8
8
f pxq dx 1
Constructing pdf of a continuous r.v. for dierent experiments will
be more delicate than in the discrete case. However, there is a
very elementary distribution that we now describe:
Problem: We wish to nd the pdf of a distribution that, given an
interval rA, Bs R, has PprA, Bsq 1, and the probability of any
subinterval depends only in the length of the subinterval.
Continuous Random Variables
Answer: Clearly, one must have f pxq cte. To see exactly which
constant, we recall that PprA, Bsq 1, so
pB Aq cte 1
We call this the uniform distribution supported on rA, Bs. Thus, it
has pdf:
f pxq
#
pB Aq
1
, if x P rA, Bs
0, otherwise
Continuous Random Variables
Example: Suppose the reaction temperature X (in degrees Cel-
sius) in a certain chemical process has a uniform distribution with
A 5 and B 5.
a. Compute PpX 0q.
b. Compute Pp2.5 X 2.5q.
d. For k satisfying 5 k k `4 5, compute
Ppk X k `4q
Continuous Random Variables
Answer: Of course, one can compute the desired probabilities
with the integral of the (constant) density, but it is faster to use
the characterization of the uniform distribution.
Here, the interval where the distribution is supported is r5, 5s, So
Pp5 X 5q 1
Clearly, then,
PpX 0q 1{2 , Pp2.5 X 2.5q 1{2
(since both intervals are of the same length equal to one half of
the length of the supporting interval), and
Ppk X k `4q 0.4
Continuous Random Variables
HW: Section 4.1, 5, 6 ,10
(ans. for 6: b) k 3{4, d) 0.367 , e) .3125)
(ans. for 10: d) p{aq
k
p{bq
k
)
Continuous Random Variables
Question: How to dene the Expected Value and the Variance?
Answer: Recall that ppxq f pxq dx. Hence,
X
ErXs
8
8
x f pxq dx
If hpXq is a function of the r.v. X, then as before we can consider
the r.v. hpXq. Similarly to the discrete case, we have:
ErhpXqs
8
8
hpxq f pxq dx
Continuous Random Variables
As for the Variance:
VrXs E
pX q
2
8
8
px q
2
f pxq dx
As in the discrete case, it measures the average deviation from the
mean
X
of the r.v.
It can be shown, and it is easier to compute:
VrXs ErX
2
s pErXsq
2
Continuous Random Variables
HW: Section 4.2 , 15, 17, 21, 22.
(ans. for 15: b) 0.0107 , e) ErXs .8182, VrXs 0.0124).
(ans for 21: 314.79 m
2
)
(ans for 22: b) median = 1.640 , c) ErXs 1.614, d) 0.061 )
Continuous Random Variables