Lecture 8
Lecture 8
Chapter 8
Continuous probability
distributions
8.1 Probability density function
8.2 Uniform distribution
8.3 Normal distribution
Introduction
• A continuous random variable is one that can
assume an uncountable number of values in an
interval [a,b].
1
Introduction
• Example 4.1, page 85: An electricity provider
wanted to acquire information about the monthly
electricity bills of new subscribers in the first month
after signing with the company. The company’s
marketing manager conducted a survey of 200 new
residential subscribers wherein the first month’s bills
were recorded.
• Denote X – the monthly bill of a new subscriber
randomly chosen from the population of all new
subscribers. Then we can consider X as a continuous
random variable that can take on indefinitely many
values from interval [50, 500]. X is also considered a
continuous random index.
2
• Example 4.1 (contd.): The relative frequency
histogram and the probability density histogram
when the class width is 50.
Relative Frequency Probabilty Density
0.35
0.007
0.3
0.006
0.25
0.005
0.2
0.004
0.15
0.003
0.1
0.002
0.05
0.001
0 0
100 150 200 250 300 350 400 450 500 100 150 200 250 300 350 400 450 500
0.05 0.001
0 0
100 150 200 250 300 350 400 450 500 100 150 200 250 300 350 400 450 500
3
8.1 Probability Density Function
A function f(x) is called a probability density
function, over the range c ≤ x ≤ d, if it meets the
following requirements:
f(x)
area=1
c d x
4
8.2 Uniform Distribution
A random variable X is said to be uniformly
distributed in the interval [a, b] if its density function
is constant and calculated by
1
f(x) a x b.
f(x) ba
a b x
area = width x height = (b – a) x =1
The expected value and the variance of the uniform
distribution is ab (b a)2
E(X) V(X)
2 12
Example
The time elapsing between the placement of an
order and the delivery time is uniformly distributed
between 100 and 180 minutes.
Define the graph and the density function.
What proportion of orders takes between 2 and
2.5 hours to be delivered? between 2.5 hours to
3 hours?
f(x) = 1/80 100 X 180
P(120 X 150) = (150-120)(1/80) = 0.375 = 37.5%
P(150 X 180) = (180-150)(1/80) = 0.375 = 37.5%
1/80
x
100 120 150 180 10
5
8.3 Normal Distribution
This is the most important
continuous distribution.
1. Many random variables can be
properly modeled as normally
distributed.
2. Many distributions can be
approximated by a normal
distribution.
3. Normal distribution is the
cornerstone distribution of
statistical inference.
4. The probability density
function of a normally m
distributed random variable
has a bell shape. 11
12
6
Solution
1. E(X) = np = 20(0.30) = 6
2. V(X) = np(1-p) = 20(0.30)(0.70) = 4.2
SD(X) = 𝟒. 𝟐 = 2.04
Binomial probability distribution with n = 20, p = 0.3
can be approximated by the normal distribution with E(X) = 6 and V(X) = 4.2
0.2
0.18
0.16
0.14
0.12
0.1
0.08
0.06
0.04
0.02
0
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
13
• If a random variable X is
normally distributed:
– Mean = E(X) = m
– Variance = V(X) = s2
then the probability m
density function can be
Normal distribution is bell-shaped,
calculated as follows:
and symmetrical around m
14
7
Normal Distribution
• A random variable X with mean m and variance s2
is normally distributed if its probability density
function is given by
1 2
f(x) e (1/2)[(x m )/s ] x
s 2
where m is the mean, s is the standard deviation,
3.14159... and e 2.71828...
m = 10 m = 11 m = 12
16
8
How Does the Standard Deviation
Affect the Location of f(x)?
s=2
s=3
s=4
9
Table 8.1: Standard Normal Distribution
• This table (page 310) is similar to the ones we
used for the binomial distribution. That is, this
table lists cumulative probabilities P(Z < z) for
values of z ranging from −3.09 to +3.09.
• Example: Suppose we want to determine the
following probability: P(Z < −1.52).
- We first find −1.5 in the left margin.
- We then move along this row until we find
the probability under the .02 column heading.
- Thus, P(Z < −1.52) = 0.0643.
19
0.0643
20
10
Table 8.1, page 310
• We can also determine the probability that the
standard normal random variable is greater than
some value of z.
• Applying the
complement 0.9641
rule we get
P(Z > 1.80) =
1 – P(Z<1.80)
= 1 – 0.9641
= 0.0359
1- 0.9641 = 0.0359
21
22
11
Table 8.1, page 310
0.9821
0.0968
0.8853=0.9821-0.0968
12
Example
8.25
Solution
The demand for petrol is normally distributed with
mean µ = 1,000 and standard deviation σ = 100. We
want to find the probability P(X < 1,100).
Graphically we want to calculate the shaded area.
The first step is to
standardize X. However,
X if we perform any
operations on X we must
perform the same
operations on 1,100.
Thus, P(X < 1,100) =
X m 1,100 1,000
P
s 100
= P(Z < 1.00) = 0.8413.
26
13
Example 8.4, page 314
• The rate of return X on a proposed investment is
approximately normally distributed with m = 30% and
s = 10%.
• We convert X to Z using formula Z = (X-m)/s.
𝑋−0.3 0.55−0.3
• P(X > 55%) = 𝑃 0.1
> 0.1
=𝑃 𝑍 > 2.5
= 1– P (Z < 2.5) = 1– 0.9938 = 0.0062.
𝑋−0.3 0.22−0.3
• P(X < 22%) = 𝑃 0.1
< 0.1
=𝑃 𝑍 < −0.8 = 0.2119.
(We can also use the excel function P(X < 22%) =
NORM.DIST(0.22, 0.3, 0.1,TRUE) = 0.211855)
𝑋−0.3 0.0−0.3
• P(X < 0%) = 𝑃 0.1
< 0.1
=𝑃 𝑍 < −3.0 = 0.0013
(The probability / chance of losing money)
27
8.27
Finding Values of Z
Often we’re asked to find some value of Z for a given
probability, i.e. given an area (A) of the right tail
under the curve, find the corresponding value of z (zA)
on the horizontal axis that gives P(Z > zA) = A
What value of z corresponds to
an area under the curve of
2.5%? That is, what is z.025 ?
(1 – A) = (1–.025) = .9750
If you do a ‘reverse look-up’
on Table 8.1 for .9750, you will
get the corresponding zA =
1.96. Since P(z > 1.96) =
.025, we say: z.025 = 1.96
(use the excel function
NORMSINV(0.975)) 28
14
Appendix 8.A. Normal Approximation
to the Binomial Distribution
Example, page 336: The binomially distributed random variable
X with n = 20, p = 0.5 can be approximated by a normally
distributed random variable Y with exactly the same mean,
variance and standard deviation:
𝜇 = 𝑛𝑝 = 10 ; 𝜎 2 = 𝑛𝑝 1 − 𝑝 = 5 𝑎𝑛𝑑 𝜎 = 2.236.
Example 7.12 revised (p = 0.5), pages 335 - 337
Records show 50% of customers in a shoe store make payments
using a credit card. This morning 20 customers purchased shoes.
X the number of customers using a credit card. Z = (Y-m)/s
1/ P(X=10) P(9.5<Y<10.5) = P(-0.22<Z<0.22)= 0.1742
2/ P(X 8) = P(Y 8.5) = P(Z <-0.67) = 0.2514
3/ P(X 14)= P(Y 13.5) =
P(Z1.56) = 1 –P(Z<1.56)= 1 – 0.9464 = 0.0594
4/ P(9X13)= P(8.5Y13.5)=P(-0.67Z1.56)=
= 0.9464-0.2514 = 0.6950 29
30
15