Chapter 4 Random Variables Part B (1)
Chapter 4 Random Variables Part B (1)
(6000,7000] 0.00005 0
0 1000 2000 3000 4000 5000 6000 7000
sales
sales
Graph
If we made the intervals infinitesimally small, the bars and the
frequency polygon would become smooth, looking something like
this:
f(x) = p(x)
sales
pmf versus pdf
f(x) = p(x)
a b sales
Hint:
A continuous random variable has an infinite
number of possible values & the probability
of any one particular value is zero.
If X is a continuous random variable,
which of the following probabilities is largest?
Properties of
Cumulative Distribution Function (CDF)
Rectangle Example
2.0
0 1.0 1.5 x
Rectangle Example: What is F(1.2)?
2.0
0 1.0 1.5 x
Rectangle Example: What is F(1.2)?
2.0
f(x)
2.0
Example: What is F(x)?
Expected Values of Continuous Random
21
Variables
Variance of Continuous
22
Random Variables
The Variance of a Continuous Random Variable X is
The p.d.f. of T, the weekly CPU time (in hours) used by an accounting firm, is
given below.
0 if t 0
3 2
fT (t ) 64 t (4 t ) if 0 t 4
0 if t 4
Example (cont)
0.5
0.4
0.3
f T (t ) 0.2
0.1
0
-4 -2 0 2 4 6
-0.1
t
Example (cont)
P(1 T 2)
is equal to the area between the graph of and the x-axis
over the interval.
0.5
0.4
0.3
f(x) 0.2
0.1
0
-4 -2 0 2 4 6
-0.1
x
Another Example
0 if t 0
1 3
FT (t ) 256 t (16 3t ) if 0 t 4
1 if t 4
Find
P(1 T 2)
The graph of the c.d.f.
1.2
1.0
0.8
0.6
F T (t )
0.4
0.2
0.0
-4 -2 -0.2 0 2 4 6
t
Solution
P(1 T 2) P (T 2) P (T 1)
P (T 2) P (T 1)
FT (2) FT (1)
1 1 3
(23 )(16 3 2) (1 )(16 3 1)
256 256
0.2617
Continuous Random Variables
Example of Continuous Random Variables
f ( x) 0
statespace
f ( x)dx 1
Probability Density Function
Example
Suppose that the diameter of a metal cylinder has
a p.d.f
f ( x) 1.5 6( x 50.2) 2 for 49.5 x 50.5
f ( x) 0, elsewhere
f ( x)
49.5 50.5 x
Probability Density Function
50.5
49.5
(1.5 6( x 50.0) 2 ) dx [1.5 x 2( x 50.0)3 ]50.5
49.5
x
F ( x) P( X x) f ( y )dy
dF ( x )
f ( x)
dx
P ( a X b) P ( X b) P ( X a )
F (b) F (a)
P ( a X b) P ( a X b)
Probability Density Function
Example
x
F ( x) P( X x) (1.5 6( y 50.0) 2 )dy
49.5
P( X 50.0) 0.5
F ( x)
P( X 49.7) 0.104
0.5
E ( x) ( y 50)(1.5 6 y 2 )dy
0.5
0.5
(6 y 3 300 y 2 1.5 y 75)dy
0.5
then find
(a) m and s
(b) P(X>0.4)
1.5
f(x)
1
0.5
0
0 0.2 0.4 0.6 0.8 1
x
Solution
41
s 2 Var ( X ) E ( X 2 ) m 2
2
1
1
x f ( x )dx
2
0 3
1
1
1 x x 1
3 4
x 2(1 x )dx 2
2
0
9 3 4 0 9
1 1 1 2 1
2 2
3 4 3 12 9
Solution
43
1 2 1 1 2 1
3 4 3 3 12 18
and the standard deviation is
1
s 0.236
18
Solution
44
(b) x x
F ( x) P( X x) f ( x) dx 2 2 x dx
0 0
2x x2 for 0<x<1