STAT230 Chap4
STAT230 Chap4
STAT230 Chap4
Rami El Haddad
[email protected]
Summer 2023
1 / 127
Outline
2 / 127
Outline
3 / 127
Probability Distributions for Continuous Variables
Denition
A random variable X is continuous if it satises these two conditions:
4 / 127
Probability Distributions for Continuous Variables
5 / 127
pictured in Figure 4.1(b); it has a much smoot
Probability Distributions Figure 4.1(a). If we continue
for Continuous in this way to mea
Variables
0 M 0
(a) (b)
M 0 M 0
) (b)
stribution.
If we continue in this way, the resulting sequence of histograms
approaches a smooth curve, as pictured in the following gure.
M 0 M
b) (c)
Because for each histogram the total area of all rectangles equals 1, the
total area under the smooth curve is also 1.
measured to the nearest meter; (b) probability
timeter; (c) a limit of a sequence of discrete
8 / 127
narrower, though the total area of all rectangles is still 1. A possible histogram is
Probability Distributions
pictured in Figure 4.1(b); it has a for
muchContinuous Variables
smoother appearance than the histogram in
Figure 4.1(a). If we continue in this way to measure depth more and more finely, the
resulting sequence of histograms approaches a smooth curve, such as is pictured in
Figure 4.1(c). Because for each histogram the total area of all rectangles equals 1,
the total area
Example under the smooth
1 (continued). The curve is also 1.
probability Thethe
that probability
depth at that the depth at a
a randomly
randomly
chosen chosen
point point is between
is between a and ba and b isthe
is just justarea
the area under
under thethe smoothcurve
smooth curve
between a and b. It is exactly a smooth curve of the type pictured in Figure 4.1(c)
between a and b .
that specifies a continuous probability distribution.
0 M 0 M 0 M
(a) (b) (c)
Figure 4.1 (a) Probability histogram of depth measured to the nearest meter; (b) probability
Any continuous
histogram probability
of depth measured to the distribution is specied
nearest centimeter; (c) a limit ofusing a smooth
a sequence curve
of discrete
histograms
of the type pictured in (c). ¨
Denition
Let X be a continuous rv. Then a probability distribution or probability
density function (pdf ) of X is a real valued function f such that
10 / 127
#
a
Probability Distributions for Continuous Variables
That is, the probability that X takes on a value in the interval [a, b] is the area
above this interval and under the graph of the density function, as illustrated in
Figure 4.2. The graph of f(x) is often referred to as the density curve.
That is, the probability that X takes values in the interval [a; b] is the
area above this interval and under the graph of the density function.
f(x)
x
a b
4.2 PIP(a
FigureFigure: # X # b) 5 the area under the density curve between a and b
(a ≤ X ≤ b) is the area under the density curve f between a and b
For f (x) to be a legitimate pdf, it must satisfy the following two conditions:
f (x) $ 0 for all x
`
11 / 127
Probability Distributions for Continuous Variables
IP(a ≤ X ≤ b) = 1
f(x)
x
a b
We say that X will take its values in [a; b] with probability 1 or almost
surely (sometimes abbreviated as a.s).
In the lake example, the density vanishes outside [0; M]: The values of X
range between 0 and M.
12 / 127
Probability Distributions for Continuous Variables
1
ȷ
360
0 ≤ x < 360
f (x) =
0 otherwise
2. What is the probability that the angle is between 90◦ and 180◦ ?
13 / 127
P(90 # X # 180) 5 #90 360
dx 5
360 u x590
5
4
5
Probability Distributions for Continuous Variables
The probability that the angle of occurrence is within 908 of the re
P(0 # X # 90) 1 P(270 # X , 360) 5 .25 1 .25 5
Example 2 (continued).
f(x) f(x)
x
0 360 90 180
Thus, f DEFINITION
is a legitimate pdf. Morevover, X takes its values in [0; 360].
A continuous rv X is said to have a uniform distribution o
[A, B] if the pdf of X is
1
A # x # B14 / 127
e pdf is graphed in Figure 4.3. Clearly f(x) $ 0. The area under the density curve
Probability Distributions for Continuous Variables
ust the area of a rectangle: (height)(base) 5 (1/360)(360) 5 1. The probability
t the angle is between 908 and 1808 is
180
u
x5180
1 x 1
Example 2 180)
P(90 # X # 5
(continued).#90 360
dx 5
360 x590
5
4
5 .25
2. The probability that the angle is between 90◦ and 180◦ is
e probability that the angle of occurrence is within 908 of the reference line is
180
P(0 # X # 90) 1 P(270 # X , 360) 5 .25 .25 5 .50
Z
11 x ˛˛x=180 1
IP(90 ≤ X ≤ 180) = dx = = = :25
360 360 x=90 4
˛
90
f(x)
x x
360 90 180 270 360
15 / 127
.5
1 1
b2a B2A
a b x A x B
Z c
IP(X = c) = IP(c ≤ X ≤ c) = f (x)dx = 0
c
17 / 127
The graph of f(x) is given in Figure 4.4; there is no density associated with
headway
Probability times less than .5, and for
Distributions headway density decreases rapidly
Continuous Variables(exponentially
fast) as x increases from .5. Clearly, f(x) $ 0; to show that #2`
`
f (x) dx 5 1, we use
the calculus result #a e dx 5 (1/k)e . Then
` 2kx 2k?a
f (x)
.15
IP (X # 5)
x
0 2 4 6 8 10
.5
Figure 4.4 The density curve for time headway in Example 4.5
1. Show that f is a legitimate pdf.
All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
ppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
2. Compute the probability that X is at most 5 and the probability that
X is less than 5.
18 / 127
Probability Distributions for Continuous Variables
Example 3 (continued).
1. Clearly f (x) ≥ 0 and
Z ∞ Z ∞ Z ∞
−:15(x−:5)
f (x)dx = :15e dx = :15e :075
e−:15x dx
−∞ :5 :5
1 (:15)(:5)
= :15e:075 · e =1
:15
2. The probability that X is at most 5 is
Z 5 Z 5
IP(X ≤ 5) = f (x)dx = :15e−:15(x−:5) dx
−∞ :5
Z 5 „ «
1 −:15x ˛˛x=5
= :15e:075 e−:15x dx = :15e:075 · − e
:15
˛
:5 x=:5
20 / 127
Cumulative Distribution Function
Denition
The cumulative distribution function F (x) for a continuous rv X is
dened for every number x by
Z x
F (x) = IP(X ≤ x) = f (y )dy
−∞
21 / 127
Cumulative Distribution Function
22 / 127
for every number x by
x
Cumulative Distribution Function
F(x) 5 P(X # x) 5 # 2`
f(y) dy
For each x, F(x) is the area under the density curve to the left of x. This is illus-
For in
trated each x , F4.5,
Figure (x) where
is the area
F(x) under the smoothly
increases density curve to the left of x .
as x increases.
Clearly, F (x) increases as x increases.
f(x) F (x)
F(8) 1
F(8)
.5
x x
5 10 5 10
8 8
Figure 4.5 A pdf and associated cdf
Figure: A pdf (left) and associated cdf (right)
Let X, the thickness of a certain metal sheet, have a uniform distribution on
[A, B]. The density function is shown in Figure 4.6. For x , A, F(x) 5 0, since
there is no area under the graph of the density function to the left of such an x. For
x $ B, F(x) 5 1, since all the area is accumulated to the left of such an x. Finally, for
23 / 127
x $ B, F(x) 5 1, since all the area is accumulated to the left of suc
Cumulative Distribution Function
A # x # B,
x x
1 1
# # u
y5x
F(x) 5 f(y)dy 5 dy 5 ?y 5
A B2A B 2 Arv X
Example 4. The thickness of a certain metal sheet is a continuous
2` y5A
that has a uniform distribution on [a; b].
f(x) f (x)
Shaded area 5
1 1
b2a B 2A
a b x A x B
x x Z x
1 1 Z x 1y5x x2A
# # u x −a
˛y =x
F(x) 5 f(y)dyF 5
(x) =B 2 A fdy(y5
)dy = ?y 5 = 1 · y ˛˛
dy =
2` A −∞
B 2 A a b− a
y5A B 2 A
b−a y =a b−a
f (x) f (x)
Shaded area 5 F(x)
1 1
B2A b2a
A B x a x b
8
< 0 x <a
x−a
F (x) = b−a
a≤x <b
4.2 Cumulative
1 Distribution
b ≤ x Functionsand expected Values 14
:
F(x)
1
a b x
Figure Figure:
4.7 The cdf for a uniform distribution
The cdf of a uniform rv on [a; b]
n
importance of the cdf here, just as for discrete rv’s, is that probabilities of vari
26 / 127
ous intervals can be computed from a formula for or table of F(x).
TION Let X be a continuous rv with pdf f (x) and cdf F(x). Then for any number a,
Proposition P(X . a) 5 1 2 F(a)
Letand
X for
be any two numbers
a continuous and bpdf
rvawith withf aand
, b,cdf F. Then
f(x)
5 2
a b b a
E 4.7 Suppose the pdf of the magnitude X of a dynamic load on a bridge (in newtons) is 27 / 127
Cumulative Distribution Function
1
+ 38 x
ȷ
8
0≤x ≤2
f (x) =
0 otherwise
28 / 127
Cumulative Distribution Function
Example 5 (continued).
Z x Z x „ «
1 3 x 3
F (x) = f (y )dy = + y dy = + x2
−∞ 0 8 8 8 16
Thus 8
< 0 x <0
x 3 2
F (x) = 8
+ 16
x 0≤x ≤2
1 2<x
:
29 / 127
Cumulative Distribution Function
Example 5 (continued).
30 / 127
Cumulative Distribution Function
Theorem
If the cdf F of a rv X is continuous everywhere and dierentiable except
possibly at some numbers, then X is continuous and, at every x at which
the derivative F ′ (x) exists,
F ′ (x) = f (x)
Remark
If the cdf of a rv X is not continuous, then X cannot be continuous.
31 / 127
Cumulative Distribution Function
Example 6. When X has a uniform distribution on [a; b], recall that its
cdf is given by 8
< 0 x <a
x−a
F (x) = b−a
a≤x ≤b
1 x >b
:
32 / 127
Outline
33 / 127
Percentiles of a Continuous Distribution
Denition
Let p be a number between 0 and 1. The (100p )th percentile of the
distribution of a continuous rv X, denoted by ”(p), is dened by
Z ”(p)
p = F (”(p)) = f (x)dx
−∞
34 / 127
2`
According to Expression (4.2), h(p) is that value on the measurement axis such that
In words, ”(p) is that value on the x -axis such that 100p% of the area
100p% of the area under the graph of f (x) lies to the left of h(p) and 100(1 2 p)%
under the graph of f lies to the left of ”(p) and 100(1 − p)% lies to the
lies to the right. Thus h(.75), the 75th percentile, is such that the area under the graph
of fright.
(x) to the left of h(.75) is .75. Figure 4.10 illustrates the definition.
f (x) F(x)
Shaded area 5 p 1
p 5 F(h (p))
h ( p) h ( p) x
9 The distribution of the amount of gravel (in tons) sold by a particular construction
supply company in a given week is a continuous rv X with pdf
3 35 / 127
Percentiles of a Continuous Distribution
Example 7. Let X denote the amount of time (in hours) a book on two
hour reserve is actually checked out. The following pdf of X is proposed:
x
ȷ
2
0≤x ≤2
f (x) =
0 otherwise
36 / 127
Percentiles of a Continuous Distribution
Example 7 (continued).
x
y 2 ˛˛y =x x2
Z
y
F (x) = dy = =
2 4 y =0 4
˛
0
[”(p)]2
p = F (”(p)) =
4
2 √
that is, [”(p)] = 4p , which gives ”(p) = 2 p .
The 80th percentile corresponds to p = :8 and is given by
√
”(:8) = 2 :8 = 1:7889
We can say that in 80% of the books were checked for less than 1.8
hours.
37 / 127
Percentiles of a Continuous Distribution
Example 7 (continued).
2. The value that cuts o the top 60% of the values of X is exactly the
value that cuts o the lower 40%. So we need to compute the 40th
percentile. That is
√
”(:4) = 2 :4 = 1:2649
Sixty perent of the books will be check for more than 1.26 hours.
38 / 127
ON The median of a continuous distribution, denoted by m ,, is the 50th percentile,
,
Percentiles ,
of a Continuous Distribution
so m satisfies .5 5 F(m). That is, half the area under the density curve is to the
, and half is to the right of ,
left of m m.
Denition
The median of a continuous distribution, denoted by —
˜ , is the 50th
percentile, so —
˜ satises F (—)
˜ = :5 . That is, half the area under the
A continuous distribution whose pdf is symmetric—the graph of the pdf to the
density curve f is to the left of —
left of some point is a mirror image˜ ,ofand
the half
graphis to the right of — ˜ . point—has
to the right of that
median m , equal to the point of symmetry, since half the area under the curve lies
to either side of this point. Figure 4.12 gives several examples. The error in
A continuous distribution whose pdf is symmetric has a median — ˜ equal
a measurement of a physical quantity is often assumed to have a symmetric
to the point of symmetry, since half the area under the curve lies to
distribution.
either side of this point.
x x x
a m˜ b m̃ m̃
40 / 127
Expected Values
Denition
The expected or mean value of a continuous rv X with pdf f is
Z ∞
—X = IE(X) = x · f (x)dx
−∞
41 / 127
Expected Values
3
− x 2)
ȷ
2
(1 0≤x ≤1
f (x) =
0 otherwise
42 / 127
Expected Values
Z ∞ Z 1
3
IE(X) = x · (1 − x 2 )dx
x · f (x)dx =
−∞ 0 2
Z 1 „ 2
x 4 ˛˛x=1
«
3 3 3 x
= (x − x )dx = −
2 0 2 2 4
˛
x=0
3
=
8
¨
43 / 127
Expected Values
Proposition
If X is a continuous rv with pdf f and h(X) is any function of X, then
Z ∞
IE[h(X)] = —h(X) = h(x) · f (x)dx
−∞
44 / 127
Expected Values
Example 9. Let X be a rv that has a uniform distribution on [0; 1], and let
0 ≤ X < 21
ȷ
1−X if
h(X) = max(X; 1 − X) = 1
X if
2
≤X≤1
45 / 127
Expected Values
Z ∞ Z 1
IE[h(X)] = h(x) · f (x)dx = max(x; 1 − x)dx
−∞ 0
Z 1=2 Z 1
= max(x; 1 − x)dx + max(x; 1 − x)dx
0 1=2
Z 1=2 Z 1
= (1 − x)dx + xdx
0 1=2
x 2 ˛˛x=1=2 x ˛ 2 ˛x=1
„ «
= x− + ˛
2 2 x=1=2
˛
x=0
1 1 1 1 3
= − + − =
2 8 2 8 4
¨
46 / 127
Expected Values
Denition
The variance of a continuous random variable X with pdf f and mean
value — is
Z ∞
s 2 = sX2 = V(X) = IE[(X − —)2 ] = (x − —)2 · f (x)dx
−∞
p
The standard deviation (SD) of X is ff = ffX = V(X).
47 / 127
Expected Values
Proposition
48 / 127
Expected Values
Proposition
If h(X) is an ane function of X , h(X) = aX + b , the expected value
and variance of h(X) satisfy the same properties as in the discrete case:
and
V[h(X)] = V(aX + b) = a2 V(X) = a2 ff 2
49 / 127
Expected Values
Proposition
If X has a uniform distribution on [a; b], then
a+b (a − b)2
IE[X] = and V(X) =
2 12
In fact,
∞ b
x 2 ib
Z Z
x a+b
IE(X) = xf (x; a; b)dx = dx = =
−∞ a b−a 2(b − a) a 2
Moreover,
b
x2 x 3 ib b 2 + ab + a2
Z
2
IE(X )= dx = =
a b−a 3(b − a) a 3
50 / 127
Outline
51 / 127
Chebyshev's Inequality
Proposition
Let X be a random variable with mean — and variance ff 2 . Then, for any
positive number c,
ff 2
IP(|X − —| ≥ c) ≤
c2
Remark
Chebyshev's inequality holds also for IP(|X − —| > c).
52 / 127
Chebyshev's Inequality
Remark
Let k be a positive integer. Taking c = kff in the Chebychev's inequality,
gives
1
IP(|X − —| ≥ kff) ≤
k2
This means that the probability of X taking values at least kff units from
its mean is at most 1=k 2 ; equivalently, the probability that X takes
values within k standard deviations of the mean is at least 1 − 1=k 2 . In
particular,
• X takes values
the probability that within two standard deviations of
0:75.
the mean, is at least
53 / 127
Chebyshev's Inequality
at least 89%
at least 75%
34% 34%
Figure: Visual illustration of Chebyshev's Inequality: The percentages are the areas of
54 / 127
Chebyshev's Inequality
Example 10. Flip a fair coin 3000 times. What does Chebyshev inequality
say about the probability that the fraction of heads being between 0.46
and 0.54?
55 / 127
Chebyshev's Inequality
56 / 127
Chebyshev's Inequality
ff 2 750
IP(|X − —| > 120) ≤ = = :0521
1202 14400
Hence, „ «
X
IP :46 ≤ ≤ :54 ≥ 1 − :0521 = :9479
n
Hence, the probability that the fraction of heads is between .46 and .54
in at least .94. ¨
57 / 127
Chebyshev's Inequality
5
ȷ
x6
x ≥1
f (x) =
0 otherwise
58 / 127
Chebyshev's Inequality
Z ∞ Z ∞
5
—= x · f (x)dx = x· dx
−∞ 1 x6
∞
−5 ˛˛x=∞
Z
5
= dx =
x5 4x 4 x=1
˛
1
5
=
4
The variance isff 2 = IE(X 2 ) − [IE(X)]2 , where
Z ∞ Z ∞
2 5 −5 ˛˛x=∞ 5
IE(X ) = x 2 · f (x)dx = 4
dx = 3
=
x 3x x=1 3
˛
−∞ 1
Thus,
„ «2
2 2 5 2 5 5
ff = IE(X ) − [IE(X)] = − = = :1042
3 4 48
59 / 127
Chebyshev's Inequality
Example 11 (continued).
1. We write
61 / 127
The Normal Distribution
Denition
A continuous rv X is said to have a normal distribution with parameters
— and ff 2 , where −∞ < — < ∞ and ff > 0 if the pdf of X is
1 2 2
f (x; —; ff) = √ e−(x−—) =(2ff ) for −∞<x <∞
ff 2ı
R∞
Clearly, f (x; —; ff) > 0. We can also verify that
−∞
f (x; —; ff) = 1. The
rst condition implies that X takes its values between −∞ and ∞.
62 / 127
The Normal Distribution
Proposition
If X ∼ N(—; ff 2 ), then
63 / 127
The Normal Distribution
In the following gure, we picture graphs of the density f (x; —; ff) for two
dierent values of — but the same ff .
64 / 127
The Normal Distribution
65 / 127
The Normal Distribution
66 / 127
The Normal Distribution
Denition
The normal distribution with parameters —=0 and ff = 1 is called the
standard normal distribution. A random variable having a standard
normal distribution is called a standard normal random variable and will
be denoted by Z. The pdf of Z is
1 2
f (z; 0; 1) = √ e−z =2 −∞<z <∞
2ı
The graph of f (z; 0; 1) is called the standard normal (or z) curve. The
cdf of Z is Z z
IP(Z ≤ z) = f (y ; 0; 1)dy
−∞
67 / 127
The standard
The Normal normal distribution
Distribution almost never serves as a model for a natura
ing population. Instead, it is a reference distribution from which informat
ut other normal distributions can be obtained. Appendix Table A.3 giv
The values Φ(z) = IP(Z ≤ z) are tabulated for
) 5 P(Z # z), the−3:48;
z = −3:49; area :under the
: : ; 3:48; standard
3:49 . normal density curve to the left of
z 5 23.49, 23.48,…, 3.48, 3.49. Figure 4.14 illustrates the type of cumulat
a (probability) tabulated
On the graph of the in Table we
z curve, A.3. From
can this
picture table,
the value various otheris probabilit
Φ(z), which the
0 z
Figure 4.14 Standard normal cumulative areas tabulated in Appendix Table A.3
/ 1271.
’s determine the following standard normal probabilities: (a) P(Z68#
The Normal Distribution
Example 12. Using the z table, determine the following standard normal
probabilities:
1. IP(Z ≤ 1:25)
2. IP(Z > 1:25)
3. IP(Z ≤ −1:25)
4. IP(−:38 ≤ Z ≤ 1:25)
5. IP(Z ≤ 5)
69 / 127
The Normal Distribution
Example 12 (continued).
70 / 127
The Normal Distribution
0 1.25 0 1.25
(a) (b)
On the other hand, in order to compute Φ(−1:25) (called the lower-tail
Figure 4.15 Normal curve areas (probabilities) for Example 4.13
area), notice that, by symmetry of the z curve, the lower-tail area and the
upper-tail area are equal, i.e. Φ(−1:25) = IP(Z > 1:25). This leads to
c. P(Z # 21.25) 5 F(21.25), a lower-tail area. Directly from Appendix Table
A.3, F(21.25)Φ(−1:25) − IP(Z ≤of1:25)
5 .1056.=By1 symmetry = 1 −this
the z curve, Φ(1:25)
is the same answer as
in part (b).
This applies#to
d. P(2.38 any
Z# number
1.25) z . under the standard normal curve above the inter-
is the area
val whose left endpoint is 2.38 and whose right endpoint is 1.25. From Section
4.2, if X is a continuous rv with cdf F(x), then P(a # X # b) 5 F(b) 2 F(a).
Thus P(2.38 # Z # 1.25) 5 F(1.25) 2 F(2.38) 5 .8944 2 .3520 5 .5424.
(See Figure 4.16.) 71 / 127
The Normal Distribution
Proposition
For any number z
Φ(−z) = 1 − Φ(z):
Therefore, one table is sucent to compute all the Φ(z). We usually use
the one for z ≥ 0.
72 / 127
The Normal Distribution
The z table gives for xed z the area under the standard normal curve to
the left of z. In some situations, we have area and want the value of z.
The table can be used in an inverse fashion: Find in the middle of the
table the probability Φ(z), the row and column in which it lies identify
the desired value z.
73 / 127
The Normal Distribution
Example 13. Find the 99th percentile, the rst percentile, the 95th
percentile and the fth percentile of the standard normal distribution.
74 / 127
The Normal Distribution
To nd the 95th percentile, we look for .9500 inside the table. Although
it does not appear, both .9495 and .9505 do, corresponding to z = 1:64
and 1.65, respectively. Since .9500 is halfway between the two
probabilities that do appear, we will use 1.645 as the 95th percentile and
−1:645 as the 5th percentile. ¨
75 / 127
NotationDistribution
The Normal
za will denote the value on the z axis for which a of the area under the z curve
lies to the right of za. (See Figure 4.19.)
Let ¸ be a number between 0 and 1. We denote by z¸ the value on the z
axis for which ¸ of the area under the z curve lies to the right of z¸ .
ForFor example,zz.10 captures
example, upper-tail area .10, and z.01. captures upper-tail area .01.
:05 captures upper-tail area :05
za
z curve
Shaded area 5 .05 Shaded area 5 .05
X −—
ff
Subtracting — shifts the mean from — to zero, and then dividing by ff
scales the variable so that the standard deviation is 1 rather than ff .
78 / 127
The Normal Distribution
Proposition
If X has a normal distribution with mean — and standard deviation ff ,
then
X −—
Z=
ff
has a standard normal distribution. Thus
„ «
a−— X −— b−—
IP(a ≤ X ≤ b) = IP ≤ ≤
ff ff ff
„ « „ «
b−— a−—
=Φ −Φ
ff ff
„ « „ «
a−— b−—
IP(X ≤ a) = Φ and IP(X ≥ b) = 1 − Φ
ff ff
79 / 127
The Normal Distribution
80 / 127
The Normal Distribution
X − 1:25
Z= ∼ N(0; 1)
:46
Thus,
„ «
1 − 1:25 X − 1:25 1:75 − 1:25
IP(1 ≤ X ≤ 1:75) = IP ≤ ≤
:46 :46 :46
„ «
:25 :5
= IP − ≤Z≤
:46 :46
„ « „ «
:5 :25
=Φ −Φ −
:46 :46
= Φ(1:09) − Φ(−:54)
= Φ(1:09) − (1 − Φ(:54))
= :8621 − 1 + :7054
= :5675
81 / 127
The Normal Distribution
„ «
2 − 1:25
IP(X ≥ 2) = IP Z ≥
:46
= IP(Z > 1:63)
= 1 − Φ(1:63)
= 1 − :9484
= :0516
82 / 127
The Normal Distribution
83 / 127
The Normal Distribution
„ «
— − ff − — X −— — + ff − —
IP(— − ff ≤ X ≤ — + ff) = IP ≤ ≤
ff ff ff
= IP(−1 ≤ Z ≤ 1) = Φ(1) − Φ(−1)
= Φ(1) − (1 − Φ(1)) = 2Φ(1) − 1 = :6826
Similarly,
„ «
— − 2ff − — X −— — + 2ff − —
IP(— − 2ff ≤ X ≤ — + 2ff) = IP ≤ ≤
ff ff ff
= IP(−2 ≤ Z ≤ 2) = Φ(2) − Φ(−2)
= Φ(2) − (1 − Φ(2)) = 2Φ(2) − 1 = :9544
and
IP(— − 3ff ≤ X ≤ — + 3ff) = 2Φ(3) − 1 = :9974
¨
84 / 127
The Normal Distribution
85 / 127
The Normal Distribution
50% 50%
34% 34%
13.7% 13.7%
2.15% 2.15%
0.15% 0.15%
µ-3σ µ-2σ µ-σ µ µ+σ µ+2σ µ+3σ
68%
95.4%
99.7%
86 / 127
good approximation, especially in the middle part of the picture. The area of any
rectangle (probability of any particular X value) except those in the extreme tails can
The Normal Distribution
be accurately approximated by the corresponding normal curve area. For example,
P(X 5 10) 5 B(10; 25, .6) 2 B(9; 25, .6) 5 .021, whereas the area under the normal
curve between
In the following 9.5 and we
gure, 10.5 display
is P(22.25a#histogram
Z # 21.84) 5 for.0207.a binomial rv
X ∼pB(25; :6), for which the mean is — = (25) · (:6) = 15 and the SD is
√Distribution n p
ff = (25) · (:6) · (:4) = Binomial
6 = 2:449 0.6 normal curve with this — and ff
25 . A
0.18
0.16
0.14
0.12
0.10
Density
0.08
0.06
0.04
0.02
0.00
5.0 7.5 10.0 12.5 15.0 17.5 20.0 22.5
X
Figure 4.25 Binomial probability histogram for n 5 25, p 5 .6 with normal approximation
curve superimposed
87 / 127
The Normal Distribution
88 / 127
The Normal Distribution
89 / 127
The Normal Distribution
Proposition
Let X be a binomial rv based on n trials with success probability p. Then
if the binomial probability histogram is not too skewed, X has
√
approximately a normal distribution with — = np and ff = npq . In
particular, for a possible value x of X,
„ «
x + :5 − np
IP(X ≤ x) = B(x; n; p) ≈ Φ √
npq
and „ «
x − :5 − np
IP(X ≥ x) = 1 − B(x; n; p) ≈ 1 − Φ √
npq
90 / 127
The Normal Distribution
91 / 127
The Normal Distribution
Example 17 (continued).
92 / 127
The Normal Distribution
Example 17 (continued).
√
2. Let— = IE(X) = np = 12:5 and ff = ffX = npq = 3:06. Since
np = (50) · (:25) = 12:5 > 10 and nq = 37:5 > 10, the
approximation with a normal distribution can safely be applied.
a. The probability that at most 10 students receive aid is
„ «
10 + :5 − 12:5
IP(X ≤ 10) ≈ Φ = Φ(−:65) = :2578
3:06
93 / 127
Outline
94 / 127
The Exponential Distribution
Denition
A rv X is said to have an exponential distribution with (scale) parameter
–, – > 0, if the pdf of X is
–e−–x
ȷ
x ≥0
f (x; –) =
0 otherwise
R∞
f (x; –) > 0 and −∞ f (x; –)dx = 1.
Clearly,
Moreover, since f (x; –) = 0 for x < 0, X will take non negative values
almost surely (i.e. with probability 1).
95 / 127
The Exponential Distribution
f (x; l)
2
l52
1 l 5 .5
l51
.5
F(x; l) 5 5 0
2lx
x,0
96 / 127
The Exponential Distribution
Proposition
If X has an exponential distribution with parameter –, then
1 1 1
IE(X) = ; V(X) = and ffX =
– –2 –
97 / 127
The Exponential Distribution
2
For the variance, the computation of IE(X ) requires integrating by parts
′ −–x
twice in succession (u =x 2
and v = –e u = x and v ′ = e−–x ):
, then
Z ∞ ˛x=∞ Z ∞
2
IE(X ) = x 2 –e−–x dx = −x 2 e−–x ˛ + 2xe−–x dx
˛
0 x=0 0
Z ∞ Z ∞ −–x «
xe−–x ˛˛x=∞
„
e
=0+2 xe−–x dx = 2 − + dx
– x=0 –
˛
0 0
2 ∞ −–x
Z ˛x=∞
2 2
= e dx = − 2 e−–x ˛ = 2
˛
– 0 – x=0 –
Thus,
„ «2
2 2 2 1 1
V(X) = IE(X ) − [IE(X)] = 2 − = 2
– – –
98 / 127
The Exponential Distribution
Proposition
If X has an exponential distribution with parameter –, then the cdf of X
is given by:
1 − e−–x
ȷ
x ≥0
F (x; –) =
0 x <0
The exponential cdf is obtained by integrating the pdf: For any number
Rx
x , F (x; –) = −∞
f (y ; –)dy .
• If x < 0, F (x; –) = 0 (because the density vanishes on the negative
x axis).
• If x ≥ 0, then
Z x ˛y =x
F (x; –) = –e−–y dy = −e−–y ˛ = 1 − e−–x
˛
0 y =0
99 / 127
The Exponential Distribution
100 / 127
The Exponential Distribution
101 / 127
The Exponential Distribution
102 / 127
The Exponential Distribution
IP[(X ≥ t + t0 ) ∩ (X ≥ t0 )]
IP(X ≥ t + t0 |X ≥ t0 ) =
IP(X ≥ t0 )
But (X ≥ t + t0 ) ∩ (X ≥ t0 ) = (X ≥ t + t0 ). Therefore,
IP(X ≥ t + t0 )
IP(X ≥ t + t0 |X ≥ t0 ) =
IP(X ≥ t0 )
1 − F (t + t0 ; –) e−–(t+t0 )
= = = e−–t
1 − F (t0 ; –) e−–t0
103 / 127
The Exponential Distribution
Proposition
Suppose that the number of events occurring in any time interval of
length t has a Poisson distribution with parameter ¸t (where ¸, the rate
of the event process, is the expected number of events occurring in 1 unit
of time) and that numbers of occurrences in nonoverlapping intervals are
independent of one another. Then the distribution of elapsed time
between the occurrence of two successive events is exponential with
parameter – = ¸.
104 / 127
The Exponential Distribution
105 / 127
The Exponential Distribution
106 / 127
The Exponential Distribution
Example 19 (continued).
Figure: In the call center, the number of calls is distributed according to a Poisson
distribution, while the elapsed time (in minutes) between the occurrence of two
¨
107 / 127
Outline
108 / 127
The Gamma Distributions
Denition
For ¸ > 0, the gamma function Γ(¸) is dened by
Z ∞
Γ(¸) = x ¸−1 e−x dx
0
The most important properties of the gamma function are the following:
109 / 127
The Gamma Distributions
110 / 127
The Gamma Distributions
Example 20 (continued).
R∞ R∞
1.
0
x 5 e−x dx = 0
x 6−1 e−x dx = Γ(6) = 5! = 120.
2. We make the change of variable y = x=5. Thus,
Z ∞ Z ∞
x 3 e−x=5 dx = (5y )3 · e−y · 5 dy
0 0
Z ∞
= 54 y 3 e−y dy
0
= (625) · Γ(4) = (625) · (3!)
= (625) · (6) = 3750
111 / 127
The Gamma Distributions
Denition
A continuous random variable X is said to have a gamma distribution if
the pdf of X is
1
x ¸−1 e−x=˛
ȷ
˛ ¸ Γ(¸)
x ≥0
f (x; ¸; ˛) =
0 otherwise
Remark
The exponential distribution results from taking ¸=1 and ˛ = 1=–.
112 / 127
The exponential distribution results from taking a 5 1 and b 5 1/l.
The GammaFigure 4.27(a) illustrates the graphs of the gamma pdf f(x; a, b) (4.8) for sev-
Distributions
eral (a, b) pairs, whereas Figure 4.27(b) presents graphs of the standard gamma pdf.
For the standard pdf, when a # 1, f(x; a) is strictly decreasing as x increases from 0;
The gure
whenat a.left
1, illustrates the graphs
f(x; a) rises from 0 at x 5 of
0 tothe gamma and
a maximum f (x;
pdfthen ¸; ˛) for
decreases. The
several parameter b in (4.8)
(¸; ˛) pairs, is a scale
whereas theparameter,
plot at and is referred
thearight to as agraphs
presents shape parameter
of the
standardbecause
gamma changing
pdf. its value alters the basic shape of the density curve.
= 1, = 1
= .6
0.5 0.5
= 2, = 2 =2 =5
= 2, = 1
0 x 0 x
1 2 3 4 5 6 7 1 2 3 4 5
(a) (b)
Proposition
The mean and variance of a random variable X having the gamma
distribution f (x; ¸; ˛) are
IE(X) = — = ¸˛ V(X) = ff 2 = ¸˛ 2
114 / 127
The Gamma Distributions
Proposition
Let X have a gamma distribution with parameters ¸ and ˛. Then for any
x > 0, the cdf of X is given by
„ «
x
IP(X ≤ x) = F (x; ¸; ˛) = F ;¸
˛
115 / 127
Outline
116 / 127
The Chi-Squared Distribution
Denition
Let be a positive integer. Then a random variable X is said to have a
chi-squared distribution with parameter if the pdf of X is the gamma
density with ¸ = =2 and ˛ = 2. The pdf of a chi-squared rv is thus
1
x (=2)−1 e−x=2
ȷ
2=2 Γ(=2)
x ≥0
f (x; ) =
0 x <0
117 / 127
The Chi-Squared Distribution
Taking ¸ = =2 and ˛=2 in the formuals of the mean and variance of a
rv having a gamma distribution gives those of a ffl2 distributed rv:
Proposition
If X ∼ ffl2 (), then
118 / 127
The Chi-Squared Distribution
In the following gure, we picture graphs of the density f (x; ) for three
dierent values of
f(x;ν)
0.30 –
ν=1
0.25 –
0.20 – ν=5
0.15 – ν = 10
0.10 –
0.05 –
0.00 –
0 2 4 6 8 10 12 14 16 18 20
As increases, the curve is shifted to the right and becomes more and
more spread out about .
119 / 127
Outline
120 / 127
Mixed random variables
The cdf of a mixed rv takes its values in [0; 1], is right continuous and
non-decreasing, goes to 0 as x → −∞ and increases to 1 as x → ∞. To
compute probabilities involving a mixed rv, the same formulas as for
discrete rv are used:
121 / 127
Mixed random variables
ȷ
2x 0≤x ≤1
f (x) =
0 otherwise
1
ȷ
X 0≤X≤ 2
Y = 1
2
X > 12
122 / 127
Mixed random variables
Example 21 (continued).
123 / 127
Mixed random variables
Example 21 (continued).
1 --------,�------
1
I
I
I
I
I
I
I
I
I
I
I
1
-
1
- 1 y
124 / 127
Mixed random variables
Example 21 (continued).
−
• IP(Y = 12 ) = F ( 12 ) − F ( 21 ) = 1 − 14 = 43 . This is the amount of the
jump at y = 12 .
“ ”
−
• IP 14 ≤ Y ≤ 38 = F 38 − F 41 = F 38 − F 14 =
` ´ ` ´ ` ´ ` ´
` 3 ´2 ` 1 ´2 5
8
− 4 = 64 = :0781
−
• IP(Y ≥ 14 ) = 1− IP(Y < 41 ) = 1−F ( 14 ) = 1−F ( 41 ) = 1− 16
1
= :9375
−
• IP(Y ≥ 21 ) = 1 − IP(Y < 12 ) = 1 − F ( 21 ) = 1 − 1
4
= :75
125 / 127
Mixed random variables
Notice that we could have computed IE(Y ) using the cdf FY by mixing its
derivative (where it exists) with its jumps.
In fact, on (0; 12 ), Y (y ) = FY′ (y ) = 2y (this is
has a density given by fY
1
the continuous part of Y ; on (−∞; 0) and on ( ; ∞), the derivative
2
1
vanishes because FY is constant. Moreover, FY has a jump at y = of
2
1 3
amplitude IP(Y = ) = , this is the discrete part of Y . Hence,
2 4
Z 1
2 1 1
IE(Y )= y (2y )dy +IP(Y = )
0 2 2
y 3 ˛˛y = 12 1 3
=2 ˛ + ·
3 y =0 2 4
1 3 11
= + =
12 8 24
126 / 127
Mixed random variables
Z 1
2 1
2y dy =
0 4
1 1
But if we add to the integral the jump at , IP(Y = ), we get
2 2
1 3
4
+ 4
=1. We retrieve the idea of a total probability of 1 but here, since
Y is a mixed rv, we have to add the integral of the decient pdf and the
decient pmf (i.e. the amplitudes of the jump(s)) to get a total of 1. ¨
127 / 127