Lecture4 Continuous Random Variable 07102024 110157am
Lecture4 Continuous Random Variable 07102024 110157am
RANDOM VARIABLE
Discrete
Continuous
distribution is
variables can take
concentrated on a
any value of an
finite or countable
interval, (a, b), (a,
number of isolated
+∞), (−∞,+∞), etc.
values.
• Miles per gallon for a Toyota Prius Possible Values = all real
numbers on the interval [minimum MPG, maximum MPG]
Probability Distribution for Continuous Random
Variable
Weight of an Adult
Discrete Vs Continuous Probability Distribution
•Continuous probability is measured over intervals
•Discrete probability is calculated on exact points.
•For example, it would make no sense to find the probability it took exactly 32 minutes
to finish an exam. It might take you 32.012342472… minutes. Probability of points no
longer makes sense when we move from discrete to continuous random variables.
•Instead, you could find the probability of taking at least 32 minutes for the exam, or
the probability of taking between 31 and 33 minutes to complete the exam.
•Countable •Uncountable
•p(x)≥0 •f(x)≥0
That is, the total area below the density curve is equal to 1.
1. Find the probability that a student takes less than 15 minutes to drive to school.
2. Find the probability that a student takes no more than 15 minutes to drive to school.
3. Find the probability that a student takes more than 15 minutes to drive to school.
4. Find the probability that a student takes between 15 and 25 minutes to drive to
school.
Solution
P(X<15)=0.20(<15)=0.20
P(X≤15)=0.20(≤15)=0.20
P(X>15)=0.45+0.35=0.80(>15)=0.45+0.35=0.80
P(15≤X≤25)=0.45
Integration
Example
Example
Cumulative Probability Distribution
The cumulative distribution function (cdf) of a continuous
random variable X is defined in exactly the same way as the cdf
of a discrete random variable.
F(b) = P(X ≤ b)
In case of continuous random variable, cumulative distribution
function F(x) is an anti derivative of a density.
Example
Example
Derivatives
Mean and Variance of Continuous Probability Distribution
Probability Density Function
The probability density function of the age of the babies is , x years, being brought to
a clinic is given by
EXAMPLE
1. If 60 babies are brought to clinic on a particular day what is the probability, how
many are expected to be under 8 months old?
2. What is the probability that a baby is less that 6 months old?
3. Find the mean age of babies brought to the clinic
4. Find the variance for the given distribution.
Solution: Probability Density Function
E
MPL
EXA
Solution: Probability Density Function
EXAMPLE
Families of continuous distributions.
CONTINUOUS DISTRIBUTIONS
Uniform
Exponential
Gamma
Normal
Uniform Probability Distribution
Uniform distribution is used in any situation when a value is picked “at random” from
a given interval; that is, without any preference to lower, higher, or medium values.
For example,
• If you randomly approach a person and try to guess his/her birthday, the
probability of his/her birthday falling exactly on the date you have guessed
follows a uniform distribution. For instance, the probability that the 1st of
January is supposed to be his/her birthday is equal to 1/365, which is the
same as the probability that the 2nd of January is his/her birthday, which is
the same as the probability of each and every day of the year to be his/her
birthday.
To give equal preference to all values, the Uniform distribution has a constant
density. On the interval (a, b), its density equals
Total area under the density curve is 1.
Example:
This means that you should expect the elevator to take 20 seconds to arrive at your floor
with a standard error of 5.774 seconds.
The amount of time, in seconds, that an advertisement window pops is uniformly
distributed between zero and 15 seconds, inclusive. What is the probability that an
advertisement window pops in fewer than 12 seconds?
Solution
NORMAL DISTRIBUTION
• A Standard Normal variable, usually denoted by Z, can be obtained from a non-
standard Normal(μ, σ) random variable X by standardizing, Z = (X − μ )/σ
• Un-standardizing Z, initial variable X can be reconstructed, X = μ + σ Z.
• Using these transformations, any Normal random variable can be obtained from a
Standard Normal variable Z.
• Therefore, only a table of Standard Normal Distribution is needed
Standard Normal Distribution
Normal Distribution: Example
Normal Distribution: Example
Normal Distribution: Example
Normal Distribution: Example
Normal Distribution: Example
Normal Distribution: Example
Normal Distribution: Example
Normal Distribution: Example
Normal Distribution: Example
Normal Distribution: Example
Normal Distribution: Example
Then, you find the p value for your z score using a z table.
Normal Distribution: Example
Normal Distribution: Example
Normal Distribution: Example
Normal Distribution: Example
For a certain type of computers, the length of time between charges of the battery is
normally distributed with a mean of 50 hours and a standard deviation of 15 hours.
What is the probability that the length of time will be between 50 and 70 hours.
Solution:
Let x be the random variable that represents the length of time. It has a mean of 50
and a standard deviation of 15.
We have to find the probability that x is between 50 and 70 or P( 50< x < 70)
For x = 50 , z = (50 - 50) / 15 = 0
For x = 70 , z = (70 - 50) / 15 = 1.33
P( 50< x < 70) = P( 0< z < 1.33) = [area to the left of z = 1.33] - [area to the left of z = 0]
= 0.9082 - 0.5 = 0.4082
The probability that length of time between 50 and 70 hours is equal to 0.4082
Normal Distribution: Example
Solution:
Solution:
a) P(x < 7) = P(z < -2.5) = 0.0062
• The Central Limit Theorem states that the sampling distribution of the
sample means approaches a normal distribution as the sample size gets
larger — no matter what the shape of the population distribution. This fact
holds especially true for sample sizes over 30.