Lecture Note L6 (1) KL
Lecture Note L6 (1) KL
2. Normal distribution
3. c2 –distribution [“Chi-square”]
4. t-distribution
5. F-distribution
Fall 2023
A reminder Ch 05: 2
Definition:
Let X: S → R be a continuous random variable.
2.
−
f ( x) dx = 1 b
3. P(a X b) = f ( x) dx
a a b x
Fall 2023
Uniform distribution Ch 05: 3
Definition
Definition: f
Let X be a random variable. If the (x)
density function is given by 1
1 B− A
f ( x) = A x B
B− A A B x
then the distribution of X is the
(continuous) uniform distribution on
the interval [A,B].
Fall 2023
Uniform distribution Ch 05: 4
Theorem:
Let X be uniformly distributed on the interval [A,B].
Then we have:
A+ B
• mean of X: E( X ) =
2
( B − A) 2
• variance of X: Var ( X ) =
12
Fall 2023
Uniform distribution Ch 05: 5
Example
Suppose that a large conference room at a certain company can be reserved
for no more than 4 hours. In fact, it can be assumed that the length X of a
conference has a uniform distribution on the interval [0, 4].
(a) What is the probability density function?
(b) What is the probability that any given conference lasts at least 3
hours?
Solution
a) The appropriate density function for the uniformly distributed random variable
X in this situation is
Fall 2023
Normal distribution Ch 05: 6
Definition:
Let X be a continuous random variable.
If the density function is given by
My notation:
The book’s: X ~ N ( m , s 2 ) for density function
n( x; m , s )
Fall 2023
Normal distribution Ch 05: 7
Examples
The normal distribution is without doubt the most important
continuous distribution, since many phenomena are well
described by it.
IQ among AAU students Height among AAU students
0.04 0.08
0.03 0.06
0.02 0.04
0.01 0.02
0 0
90 100 110 120 130 140 150 160 170 180 190 200
Plotting in Matlab:
>> x=90:1:150; y=normpdf(x,120,10); plot(x,y)
m s
Fall 2023
Normal distribution Ch 05: 8
-4 -2 0 2 4
Fall 2023
Normal distribution Ch 05: 9
Fall 2023
Normal distribution Ch 05: 10
Density function: 1 − 12 z 2
f ( z) = e
2
0.4
0.3
0.2
0.1
0.0
-3 -2 -1 0 1 2 3
Fall 2023
Ch 05: 11
Distribution function:
z
1 − 12 z 2
F ( z ) = P( Z z ) =
− 2
e dx
2
1 − 12 z 2
P(−1 Z 2) = e dz
−1 2
Fall 2023
Normal distribution Ch 05: 12
0.3
0.1
0.0
-2 0 2 4
Fall 2023
Normal distribution Ch 05: 13
0.2 0.2
Equal areas = 0.1587
0.1 0.1
0.0 0.0
-2 0 2 4 -2 0 2 4
Fall 2023
Normal distribution Ch 05: 14
0.3
0.2
0.1
0.0
-2 0 2 4
Fall 2023
Normal distribution Ch 05: 15
Solution in Matlab:
Cumulative distribution function
>> 1 – normcdf(3,1,2)
normcdf(x,m,s)
ans =
0.1587
Fall 2023
Normal distribution Ch 05: 16
Example
Fall 2023
Ch 05: 17
Fall 2023
Normal distribution Ch 05: 18
Example
k=0.52
Fall 2023
Normal distribution Ch 05: 19
Example
Fall 2023
Normal distribution Ch 05: 20
Example
An electrical firm manufactures light bulbs that
have a life, before burn-out, that is normally
distributed with mean equal to 800 hours and a
standard deviation of 40 hours. Find the
probability that a bulb burns between 778 and
834 hours.
Fall 2023
Ch 05: 21
Example
A certain type of storage battery lasts, on average, 3.0 years
with a standard deviation of 0.5 year. Assuming that battery life
is normally distributed,
find the probability that a given battery will last less than 2.3
years.
Solution:
Fall 2023
Ch 05: 22
Example
A certain machine makes electrical resistors having a mean resistance
of 40 ohms and a standard deviation of 2 ohms. Assuming that the
resistance follows a normal distribution and can be measured to any
degree of accuracy, what percentage of resistors will have a
resistance exceeding 43 ohms?
Fall 2023
Using the Normal Curve in Reverse Ch 05: 23
Fall 2023
Normal distribution Ch 05: 24
Example
Given a normal distribution with μ = 40 and σ = 6, find the value of x that has
(a) 45% of the area to the left and
(b) 14% of the area to the right.
Fall 2023
Ch 05: 25
Fall 2023
Gamma Distribution Ch 05: 26
Fall 2023
Gamma Distribution Ch 05: 27
Example
Suppose that telephone calls arriving at a particular switchboard follow a
Gamma distribution with an average of 5 calls coming per minute. What
is the probability that up to a minute will elapse by the time 2 calls have
come in to the switchboard?
Solution:
The Poisson process applies, with time until 2 Poisson events following a
gamma distribution with 𝛽 = 1/5 and 𝛼 = 2. Denote by X the time in minutes
that transpires before 2 calls come. The required probability is given by
Fall 2023
Exponential Distribution: Ch 05: 28
Exponential distribution:
•Describes the time between events in a Poisson process.
•Often used to model lifetimes of components or time between
arrivals of events.
•Its special case of Gamma distribution where 𝛼=1
•Probability density function
Fall 2023
Exponential Distribution: Ch 05: 29
Example
Suppose that a system contains a certain type of component whose time, in
years, to failure is given by T. The random variable T is modeled nicely by the
exponential distribution with mean time to failure β = 5. If 5 of these
components are installed in different systems, what is the probability that at least
2 are still functioning at the end of 8 years?
Solution:
Fall 2023
Ch 05: 30
Fall 2023