17 Cumulative Distribution Functions and Quantile Functions
17.1 Cumulative distribution functions
Example 17.1 Maggie and Seamus are babies who have just turned one. At their one-year visits to their pediatrician:
- Maggie is 76cm tall and in the 75th percentile of height for girls.
- Seamus is 72cm tall and in the 10th percentile of height for boys.
Explain what these percentiles mean.
- Roughly, the value
is the th percentile of a distribution of a random variable if percent of values of the variable are less than or equal to : . - The cumulative distribution function (cdf) of a random variable fills in the blank for any given
: is the (blank) percentile. That is, for an input , the cdf outputs . - The cumulative distribution function (cdf) (of a random variable
defined on a probability space with probability measure ) is the function, , defined by . A cdf is defined for all real numbers regardless of whether is a possible value of .
Example 17.2
According to data on students who took the SAT in 2018-2019, 1400 was the 94th percentile of SAT scores, while 1000 was the 40th percentile. Let
Example 17.3 Let
- Find the cdf of
, and sketch a plot of it.
- Evaluate and interpret
, and draw a picture depicting it.
- Evaluate and interpret
, and draw a picture depicting it.
- Evaluate and interpret
, and draw a picture depicting it.
- Find
without integrating again.
- Suppose we had been given the cdf instead of the pdf. How could we find the pdf?
Example 17.4
Let
- Find the cdf of
and sketch a plot of it.
- Let
be the number of tails in 3 flips of a fair coin. Find the cdf of .
- A cdf is defined for all values of
, regardless if is a possible value of the RV. - A cdf is a non-decreasing function: if
then . - A cdf approaches 0 as the input approaches
: - A cdf approaches 1 as the input approaches
: - The cdf of a discrete random variable is a step function.
- The steps occur at the possible values of the random variable.
- The height of a particular step corresponds to the probability of that value, given by the pmf.
- The cdf of a continuous random variable is a continuous function.
- The cdf of a continuous random variable is obtained by integrating the pdf, so
- The pdf of a continuous random variable is obtained by differentiating the cdf
- For any random variable
with cdf
Whether the inequalities in the above event are strict (
17.2 Quantile functions
- The quantile function (essentially the inverse cdf) fills in the following blank for a given
: the th percentile is (blank). - For example, evaluating the quantile function at
outputs the 25th percentile.
Example 17.5 In the meeting problem, suppose arrival times (minutes) follow a Normal(30, 10) distribution. Let
In addition to finding the values below, identify how they are represented in the standard Normal spinner.
- Find
.
- Find
.
- Find
.
- Find
.
- Find
.
- For a continuous random variable with cdf
, the quantile function is the inverse of the cdf, .
Example 17.6
Let
- Find the 25th percentile.
- Find the quantile function
.
- Remember that if
has a Uniform(0, 1) distribution then has an Exponential(1) distribution. How does the transformation of relate to the quantile function? What insight does this give you into constructing spinners?
- The quantile function can be used to create a spinner for a distribution. Basically, the values on the outside boundary of the spinner are scaled based on the quantile function (which is determined by the cdf). Intervals corresponding to regions of higher density (“more likely”) values are stretched out on the spinner boundary; intervals corresponding regions of lower density (“less likely” values) are shrunk.
- The foundation of all spinners is the Uniform(0, 1) spinner.
Example 17.7 Recall Example 16.3 where Regina’s arrival time
- Find the cdf of
.
- Find the quantile function of
.
- Construct a spinner for simulating values of
(hours) according to its distribution.
- If we measure
in minutes, how would the spinner change?
- Universality of the Uniform (or “one spinner to rule them all”). Let
be a cdf and its corresponding quantile function. Let have a Uniform(0, 1) distribution and define the random variable . Then the cdf of is . - Universality of the uniform might look complicated but all it basically says is that you can construct a spinner by putting the 25th percentile 25% of the way around, the 75th percentile 75% of the way around, etc.
- Actually, universality of the uniform says we don’t have to create a new spinner. We can just spin the Uniform(0, 1) spinner and transform each resulting value by plugging it into the quantile function.