Professional Documents
Culture Documents
PPCh04 PDF
PPCh04 PDF
Ivo Dinov,
Assistant:
http://www.stat.ucla.edu/~dinov/
Slide 1
Chapter 4
Continuous
Random Variables
and Probability
Distributions
Slide 2
4.1
Continuous Random
Variables and
Probability
Distributions
Slide 3
Probability Distribution
Let X be a continuous rv. Then a
probability distribution or probability
density function (pdf) of X is a function
f (x) such that for any two numbers a
and b,
Slide 4
P ( a X b ) = f ( x)dx
a
y = f ( x)
Area = 1
Slide 6
Continuous RVs
y = f ( x)
b
Slide 7
Slide 9
Uniform Distribution
A continuous rv X is said to have a
uniform distribution on the interval [A, B]
if the pdf of X is
1
A x B
f ( x; A, B ) = B A
0
otherwise
Slide 11
Slide 8
b
Stat 110A, UCLA, Ivo Dinov
Slide 10
P ( a X b) = P ( a < X b)
= P( a X < b)
= P( a < X < b)
Slide 12
4.2
Cumulative Distribution
Functions and Expected
Values
Slide 13
F ( x) = P ( X x ) =
P ( X > a ) = 1 F (a)
and for any numbers a and b with a < b,
f ( y )dy
F ( x) = f ( x).
P ( a X b ) = F (b) F (a)
Slide 15
Slide 17
Median
Percentiles
p = F ( ( p ) ) =
Slide 16
f ( y )dy
Slide 18
Expected Value
The expected or mean value of a
continuous rv X with pdf f (x) is
X = E ( X ) =
x f ( x)dx
Slide 19
X2 = V ( x) =
(x )
f ( x)dx
h( x) f ( x)dx
Slide 20
( )
V ( X ) = E X 2 [ E ( X )]
= E[( X ) ]
Slide 22
Normal Distributions
4.3
The Normal
Distribution
Slide 23
2
2
1
e( x ) /(2 )
2
Slide 24
< x <
Standard
normal
curve
Slide 25
Slide 26
c. P (2.1 Z 1.78)
Find the area to the left of 1.78 then
subtract the area to the left of 2.1.
= P( Z 1.78) P ( Z 2.1)
a. P ( Z 0.85)
Area to the left of 0.85 = 0.8023
= 0.9625 0.0179
= 0.9446
1 P( Z 1.32) = 0.0934
Slide 27
Slide 28
z Notation
z will denote the value on the
z = 1.46.
b. P(z < Z < z) = 0.8132
P(z < Z < z ) = 2P(0 < Z < z)
= 2[P(z < Z ) ]
= 2P(z < Z ) 1 = 0.8132
0
Slide 29
z
Stat 110A, UCLA, Ivo Dinov
Slide 30
z = 1.32
Stat 110A, UCLA, Ivo Dinov
Z=
Normal Curve
Approximate percentage of area within
given standard deviations (empirical
rule).
99.7%
95%
68%
Slide 31
P ( X 65 ) = P Z
20
= P ( Z .75 )
= 0.2266
Slide 33
96
3.75 6
P ( 3.75 X 9 ) = P
Z
1.5
1.5
= P ( 1.5 Z 2 )
= 0.9772 0.0668
Slide 32
Slide 34
= 0.9104
Slide 35
Slide 36
= np = 500(.72) = 360
= npq = 500(.72)(.28) 10
375.5 360
P ( X 375)
= (1.55)
10
x + 0.5 np
P( X x)
npq
Slide 37
= 0.9394
Slide 38
z Suppose Y~Binomial(n, p)
z Then Y=Y1+ Y2+ Y3++ Yn, where
1/2
Standardize Y:
Z=(Y-np) / (np(1-p))1/2
By CLT Z ~ N(0, 1). So, Y ~ N [np, (np(1-p))1/2]
z Yk = X1 + X2 + + Xk ~ Poisson(k), E(Yk)=Var(Yk)=k.
z Yk = X1 + X2 + + Xk ~ Poisson(400), E(Yk)=Var(Yk)=400.
z Yk ~ N(k, (k)1/2).
Slide 41
y
WHY? e
n p y (1 p ) n y
n
n
y n
y!
n pn
( ) = x 1e x dx
0
4.4
The Gamma
Distribution and Its
Relatives
Slide 44
Gamma Distribution
A continuous rv X has a gamma
distribution if the pdf is
1
x 1e x / x 0
f ( x; , ) = ( )
0
otherwise
Slide 47
Slide 46
Exponential Distribution
Slide 49
otherwise
x ( v / 2)1e x / 2
v/2
f ( x; v ) = 2 (v / 2)
Slide 53
= =
2 = 2 =
Slide 50
Slide 51
x0
x<0
Slide 54
Constructing QQ plots
Vq
Slide 55
3
2
1
0
-1
-2
-3
Slide 57
C:\Ivo.dir\UCLA_Classes\Winter2002\AdditionalInstructorAids
BirthdayDistribution_1978_systat.SYD
SYSTAT, Graph Probability Plot, Var4, Normal Distribution
4.5
Other Continuous
Distributions
Slide 58
f ( x; , ) =
x0
x<0
= 1 +
1
2 1
2
2
= 1 + 1 +
Slide 60
10
Weibull Distribution
Lognormal Distribution
Slide 61
x0
x<0
2
2
1
e[ln( x ) ] /(2 )
f ( x; , ) = 2 x
Slide 62
E( X ) = e
V (X ) = e
Slide 63
2 + 2
x<0
Lognormal Distribution
The cdf of the lognormal distribution is
given by
x0
(e
F ( x; , ) = P( X x ) = P[ln( X ) ln( x )]
ln( x )
ln( x)
= P Z
=
Slide 64
Beta Distribution
f ( x; , , A, B) =
1
1
1
( + ) x A B x
B A ( ) ( ) B A B A
0
otherwise
Slide 65
x0
= A + ( B A)
2 =
( B A)2
( + ) 2 ( + + 1)
Slide 66
11
Sample Percentile
4.6
Probability
Plots
Slide 67
Slide 68
observation
of the distribution
Beyond Normality
Consider a family of probability
distributions involving two parameters
1 and 2 . Let F ( x;1, 2 ) denote the
corresponding cdfs. The parameters
1 and 2 are said to location and scale
parameters if
x 1
F ( x;1, 2 ) is a function of
.
Z=
Normal (X)
Normal (Z)
2 = i =1 Z i
Y = eX
df
1
Chi-square ( )
Weibull
Lognormal (Y)
, 2
Uniform(X)
= n / 2, = 2
,
U=
Beta
Gamma
X = ( )U +
Uniform(U)
= =1
0,1
Tdf=n
(0,1)
df
0, 1
X = ln Y
,
Slide 71
Cauchy
(0,1)
=1
n=2
=1
Exponential(X)
X = ln U
Slide 72
12