Professional Documents
Culture Documents
CDF Dan PDF
CDF Dan PDF
Gives:
The proportion of population with value less than x
The probability of having a value less than x.
Example: A Spinner
Last class: A spinner that could take on any value
0x 360.
Density function: p(x) = 1/360 if 0x 360, and 0
everywhere else.
Example: A Spinner
Last class: A spinner that could take on any value
0x 360.
Density function: p(x) = 1/360 if 0x 360, and 0
everywhere else.
CDF:
Example: A Spinner
Cumulative
Density Function: Distribution Function:
Properties of CDFs
P(x) is the probability of values less than x
If P(x) is the cdf for the age in months of fish in
a lake, then P(10) is the probability a random
fish is 10 months or younger.
P(x) goes to 0 as x gets smaller:
P(x) is non-decreasing.
The derivative is a density function, which
cannot be negative.
Also, P(4) cant be less than P(3), for example.
Practice
Life expectancy (in days) of electronic component has density
function , for x 1, and p(x) =0 for x<1.
Zero!
Practice
Life expectancy (in days) of electronic component has density
function , for x 1, and p(x) =0 for x<1.
b) Probability it lasts between 0 and 10 days?
Practice
Life expectancy (in days) of electronic component has density
function , for x 1, and p(x) =0 for x<1.
c) More than 10 days?
Practice
Life expectancy (in days) of electronic component has density
function , for x 1, and p(x) =0 for x<1.
c) More than 10 days?
Practice
Life expectancy (in days) of electronic component has density
function , for x 1, and p(x) =0 for x<1.
d) Find the CDF for life expectancy.
If x < 1, then
If x 1, then
Practice
Life expectancy (in days) of electronic component has density
function , for x 1, and p(x) =0 for x<1.
d) Find the CDF for life expectancy.
Example
Someone claims this is the
CDF for grades on the 2015
final exam.
Probability a random student
scored.
25 or lower?
1, or 100%. Conclusion?
then P'(x)=p(x).
Relating the CDF and DF
According the FTC version 2, since
then P'(x)=p(x).
So the density function is the derivative, or rate of change,
of the cumulative distribution function.
Example
Sketch the density function for
the cdf shown.
Example
Sketch the density function for
the cdf shown.
Slope?
Example
Sketch the density function for
the cdf shown.
Slope?
0
Example
Sketch the density function for
the cdf shown.
Slope?
0
Slope 1/2
Example
Sketch the density function for Slope 0
the cdf shown.
Slope?
0
Slope 1/2
Example
Sketch the density function for Slope 0
the cdf shown.
Density
Function
DF vs. CDF
Find the height, x for which exactly half the trees are taller
than x feet, and half the trees are shorter than x.
In case - Quadratic Formula: !b b 2 ! 4ac
x=
2a
Another Example
Find the height, x for which exactly half the trees are taller
than x feet, and half the trees are shorter than x.
(b) P(5) = ?
(4)
In-class Assignment
The time to conduct a routine maintenance check on a machine has
a cumulative distribution function P(t), which gives the fraction of
maintenance checks completed in time less than or equal to t
minutes. Values of P(t) are given in the table.
t, minutes 0 5 10 15 20 25 30
P(t), fraction completed 0 .03 .08 .21 .38 .80 .98
M
#!"
p(x)dx = 0.5
Example
Suppose an insect life span of
months, and 0 elsewhere. Whats the median life span?
We need
months
Median From CDF
If we have a CDF P(x), the median M is the point where
P(M)=0.5
(This of course says 1/2 of the population has a value less
than M!)
Example
CDF: P(t) = t2, 0t 1.
Whats the median of this distribution?
Example
CDF: P(t) = t2, 0t 1.
Whats the median of this distribution?
The Mean
What most people think of as the average:
Add up n values and divide by n.
How should we represent this for something represented by a
density function p(x)?
The Mean
We define the mean of a distribution given by density
function p(x) to be
Example
Previous insect population example:
and p(x) =0 elsewhere.
# #
" 20
mean = x p(x)dx = x(0.1! 0.005x)dx =
!" 0
# 3 20
20
0.1x ! 0.005x dx = 0.05x ! 0.0016 x
2 2
0 0
= 6.64 ft
Geometry
Turns out: the mean is the point where the graph of the
distribution would balance if we cut it out.
Example
Find the mean and median for
and zero elsewhere.
Median: Solve for M
Example
Find the mean and median for
and zero elsewhere.
Mean: Evaluate
Example
Find the mean and median for
and zero elsewhere.
median
mean
The Normal Distribution
A special distribution:
The Normal Distribution
A special distribution:
The Normal Distribution
Heres an example with =0 and =1:
1 3
p(x) = x for 0 < x < 2!and!0!elsewhere
4