6.2 Continuous Probability Density Functions

California suffers from poor air quality, especially in the San Joaquin Valley, for nonattainment of the federal ozone standard of 70 parts per billion. In California and many other states, part of the plan to address issues like these involves imposing zero-emission vehicle registration. Cars must get as close as possible to zero emissions and California is moving to accelerate to 100% new zero-emission vehicle sales by the year 2035. Emission measurements taken from automobiles are not discrete values, as measurements are not taken from a discretely spaced set of numbers. Auto emissions measure such things as carbon monoxide, hydrocarbon, carbon dioxide, and oxygen levels. Consider the random variable X = level of carbon dioxide produced in grams per gallon of gasoline. A measurement like this can be measured to any degree of accuracy and takes on values along a continuous interval. This is one example of a continuous random variable. Unlike discrete random variables, we cannot make a table and list all the possible values that the random variable can take on. We cannot add up discrete probabilities to describe the probability the random variable takes on a specific value or range of values. Continuous random variables require a different treatment.

Probability Density Function

A continuous random variable is one in which probabilities are represented by areas under a curve. The curve is called the probability density function, PDF, or the probability distribution. We use the probability density function f(x) to draw the graph of the probability distribution. Because the probability density function is a curve, the areas between the curve and the horizontal axis represent probabilities, so the total area must be one, and must be found using integral calculus, geometry, or approximation techniques. See Figure 1 (a).

The area under the probability density curve between two points corresponds to the probability that the variable falls between those two values. In other words, the area under the density curve between points a and b is equal to [latex]P(a Figure 1:[/caption]

Probability Density Function of a Continuous Random Variable

Probability Density Function, PDF, of a continuous random variable X  is a function [latex]f(x)[/latex] on a domain S that satisfies the following properties:

  1. [latex]f(x)>0[/latex] for all [latex]x \in S[/latex]
  2. [latex]\int_S f(x) dx = 1[/latex]

So for any subset [latex]A \subset S[/latex], [latex]P(X \in A) = \int_A f(x) dx[/latex].

Properties of Continuous Probability Distributions

  • The entire area under the probability density function curve and above the x-axis is equal to one. [latex]\int_{-\infty}^{\infty} f(x)dx = 1[/latex].
  • Probability is found for intervals of x values rather than for individual x values. [latex]P(c < x < d)[/latex] is the probability that the random variable X  takes on values in the interval between the values c and d, so [latex]P(c < x < d) = \int_{\ c}^{\ d} f(x)dx[/latex].
  • The probability that x takes on any single individual value is zero. [latex]P(x = c) = 0[/latex], so [latex]P(c < x < c) = \int_{\ c}^{\ c} f(x)dx = 0[/latex].
  • There is no area added when you include the endpoints of the interval. [latex]P(c < x < d)[/latex] is the same as [latex]P(c\leq x \leq d)[/latex].

We will find the areas that represents probability by using geometry or integral calculus. There are many continuous probability distributions. When using a continuous probability distribution to model probability, the particular distribution function used is selected to model and fit the particular situation in the best way. In this chapter, we will study several continuous probability distributions.

Example 1 - Probabilities for a Continuous Random Variable

Graph of the probability density function
Graph of PDF.

Family-car tires can last 70,000 miles or more according to Consumer Reports from April 2022. Many all-season light trucks and SUV tires can last longer, however, it was found that ultra-high-performance tires generally do not last as long. Many summer tires do not even carry warranties! Suppose engineers have developed a new tire with lifetimes (in thousands of miles) given by the following probability density function, f(x). [latex]f(x)=0.02e^{-0.02x}[/latex], for x > 0. The continuous random variable X = the lifetime in thousands of miles for a tire.

(a) Verify this is a PDF.

(b) Find the probability a tire lasts up to 100,000 miles.

(c) Find the probability a tire lasts between 100,000 miles and 150,000 miles.

Solutions:

(a) Integrate the PDF on its domain and show the area is equal to one.
[latex]\int_{0}^{\infty} 0.02e^{-0.02x}dx[/latex] is an improper integral and integration requires a u-substitution.
[latex]\int_{0}^{\infty} 0.02e^{-0.02x}dx =\lim_{t \rightarrow \infty}\int_{0}^{t} 0.02e^{-0.02x}dx =\lim_{t \rightarrow \infty}[-e^{-0.02t}+e^0]=1.[/latex]

Graph of the function with the area between the curve and the x-axis shaded to demonstrate the area is equal to 1.

(b) To find the probability a tire lasts up to 100,000 miles, find [latex]P(0< x < 100) = \int_{0}^{100} 0.02e^{-0.02x}dx=[-e^{-2}+e^0]\approx 0.86.[/latex] Approximately 86% of tires will last up to 100,000 miles.

Graph of the function with the area between 0 and 100 shaded.

(c) To find the probability a tire lasts between 100,000 miles and 150,000 miles, find [latex]P(100< x < 150) = \int_{100}^{150} 0.02e^{-0.02x}dx=[ -e^{-3}+e^{-2}]\approx 0.086.[/latex] Approximately 9% of tires will last between 100,000 miles and 150,000 miles.   Graph of the function with the area between 100 and 150 shaded.

 

Mean and Variance of a Continuous Random Variable

There are parallels between how we find the mean and variance of a continuous random variable compared to a discrete random variable. Recall when finding the mean of a discrete random variable, each value the random variable can take on is weighted (multiplied) by its probability before adding. With continuous random variables, probabilities are described using the probability density function and we use integration. The mean is defined to be the center of mass of its probability density function and the variance is the moment of inertia around the vertical axis through the population mean. Both of these ideas are defined as integrals.

The mean is often called the expected value of X and is also often denoted as E(X), [latex]\mu_{X}[/latex], or most often simply by [latex]\mu[/latex]. The variance is often denoted as V(X), [latex]\sigma^2_{X}[/latex], or most often simply by [latex]\sigma^2.[/latex] Also note that the standard deviation is the square root of the variance.

Definitions: Mean and Variance of Continuous Random Variables

If X is a continuous random variable with probability density function, [latex]f(x)[/latex], then

The mean of X is given by [latex]\mu_{X}=\int_{\infty}^{\infty} xf(x)dx.[/latex]

The variance of X is given by [latex]\sigma^2_{X}=\int_{\infty}^{\infty} (x - \mu)^2f(x)dx.[/latex]

An equivalent, and often more convenient formula for the variance is given by [latex]\sigma^2_{X}=\int_{\infty}^{\infty} x^2f(x)dx - \mu^2.[/latex]

Example 2 - Mean, Variance, and Standard Deviation Calculation

Projectiles are fired at a circular target which has a 3 meter radius. The distance in meters from the point of impact to the center of the target is a continuous random variable, X. The PDF is given by [latex]f(x)=-\frac{x^2}{18}+\frac{1}{2}[/latex], [latex]0\leq x \leq3.[/latex]

(a) Find the mean of the random variable.

(b) Find the variance and standard deviation of the random variable.

(c) Find the probability the impact is less than one standard deviation from the mean.

Solutions:

(a) [latex]\mu_{X}=\int_{0}^{3} x(-\frac{x^2}{18}+\frac{1}{2})dx = \int_{0}^{3} -\frac{x^3}{18}+\frac{x}{2}dx =[-\frac{x^4}{72}+\frac{x^2}{4}]_{0}^{3}= 1.125[/latex] meters.

Graph of the probability density function along with the location of the mean on the x-axis.

(b) [latex]\sigma^2_{X}=\int_{0}^{3} x^2(-\frac{x^2}{18}+\frac{1}{2})dx - \mu^2 = \int_{0}^{3}( -\frac{x^4}{18}+\frac{x^2}{2})dx - 1.125^2 = ( -\frac{x^5}{90}+\frac{x^3}{6}]_{0}^{3} - 1.125^2 = 1.8[/latex] square meters, so the standard deviation is [latex]\sigma=\sqrt{1.8} \approx[/latex] 1.34 meters. For the projectiles fired at the target, the mean distance from impact to center is 1.125 meters with a standard deviation of approximately 1.34 meters.

(c) [latex]P(0 \leq x \leq \sigma) =\int_{0}^{1.134} (-\frac{x^2}{18}+\frac{1}{2})dx =[-\frac{x^3}{54}+\frac{x}{2}]_{0}^{1.134} \approx 0.63.[/latex] Approximately 63% of the projectiles will hit the target within one standard deviation of the mean.

Graph of the probability density function and the area under the curve shaded from 0 to 1.34.

Cumulative Distribution Function

For a continuous random variable, X, the cumulative distribution function is created by adding probabilities up to a specified value. With a discrete probability distribution, we could add up individual probability values from a table, but for continuous random variables, adding up probabilities requires integral calculus. Often the cumulative distribution function can be found using integral calculus and then the function generated can be used for future needs. In other cases, when integration is impossible, probabilities are calculated by approximation. When we use formulas related to continuous probability distributions later, keep in mind the formulas were originally found by using the techniques of integral calculus.

Definition: Cumulative Distribution Function for a Continuous Random Variable

The Cumulative Distribution Function, CDF, of a continuous random variable X is [latex]F(x) = P(X \leq x)[/latex].

[latex]F(x) = \int_{-\infty}^{x} f(t)dt[/latex]

Where [latex]f(t)[/latex] is the probability density function

Example 2 - Finding the Cumulative Distribution Function

Use the new tire probability density function from Example 1, [latex]f(x)=0.02e^{-0.02x}[/latex], for x > 0, and find each of the following.

(a) Create the cumulative distribution function.

(b) Use the cumulative distribution function to find the probabilities a tire will last up to 10,000 miles; 40,000 miles; 80,000 miles; 120,000 miles; and 200,000 miles.

Solutions:

(a) [latex]F(x)=P(X \leq x) = \int_{0}^{x} 0.02e^{-0.02t}dt=[ -e^{-0.02t}]_0^x=-e^{-0.02x}+1.[/latex]

(b) Now that we have the cumulative distribution function we can input any value of the random variable and it will give the probability of a tire lasting up to that many miles. Remember that for this model, miles is in thousands.

[latex]F(10) = -e^{-0.02(10)}+1\approx 0.18[/latex], so approximately 18% of tires will last up to 10,000 miles.

[latex]F(40) = -e^{-0.02(40)}+1\approx 0.55[/latex], so approximately 55% of tires will last up to 40,000 miles.

[latex]F(80) = -e^{-0.02(80)}+1\approx 0.80[/latex], so approximately 80% of tires will last up to 80,000 miles.

[latex]F(120) = -e^{-0.02(120)}+1\approx 0.91[/latex], so approximately 91% of tires will last up to 120,000 miles.

[latex]F(200) = -e^{-0.02(200)}+1\approx 0.98[/latex], so approximately 98% of tires will last up to 200,000 miles.

Sources

California Air Resources Board. (2024, June 12). Zero-Emission Vehicle Program. CA.gov. https://ww2.arb.ca.gov/our-work/programs/zero-emission-vehicle-program

CR Consumer Reports. (2022, April 4) Gene Peterson. How long do Tires Last? Consumer Reports' Treadwear Testing Will Tell You. https://www.consumerreports.org/cars/tires/how-long-do-tires-last-consumer-reports-treadwear-testing-a5353952733/.

License

Icon for the Creative Commons Attribution 4.0 International License

Introduction to Statistics for Engineers Copyright © by Vikki Maurer & Jeff Crabill & Linn-Benton Community College is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.