6.1: Probability Density Functions
- Page ID
- 26068
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)We begin by defining a continuous probability density function. We use the function notation \(f(x)\). Intermediate algebra may have been your first formal introduction to functions. In the study of probability, the functions we study are special. We define the function \(f(x)\) so that the area between it and the x-axis is equal to a probability. Since the maximum probability is one, the maximum area is also one. For continuous probability distributions, PROBABILITY = AREA.
Example \(\PageIndex{1}\)
Consider the function \(f(x) = \frac{1}{20}\) for \(0 \leq x \leq 20\). \(x =\) a real number. The graph of \(f(x) = \frac{1}{20}\) is a horizontal line. However, since \(0 \leq x \leq 20\), \(f(x)\) is restricted to the portion between \(x = 0\) and \(x = 20\), inclusive.
\[f(x) = \frac{1}{20} \text{ for } 0 \leq x \leq 20.\]
The graph of \(f(x) = \frac{1}{20}\) is a horizontal line segment when \(0 \leq x \leq 20\).
The area between \(f(x) = \frac{1}{20}\) where \(0 \leq x \leq 20\) and the x-axis is the area of a rectangle with base = 20 and height = \(\frac{1}{20}\).
\[AREA = 20 \left(\frac{1}{20} \right) = 1\]
Suppose we want to find the area between \(f(x) = \frac{1}{20}\) and the x-axis where \(0 < x < 2\).
\[AREA = (2 - 0) \left(\dfrac{1}{20} \right) = 0.1\]
\((2 - 0) = 2 = \text{base of a rectangle}\)
REMINDER: area of a rectangle = (base)(height).
The area corresponds to a probability. The probability that x is between zero and two is 0.1, which can be written mathematically as \(P(0 < x < 2) = P(x < 2) = 0.1\).
Suppose we want to find the area between \(f(x) = \frac{1}{20}\) and the x-axis where \(4 < x < 15\).
\(\text{AREA} = (15 – 4)(\frac{1}{20}) = 0.55\)
\(\text{AREA} = (15 – 4)(\frac{1}{20}) = 0.55\)
\((15 – 4) = 11 = \text{the base of a rectangle}(15 – 4) = 11 = \text{the base of a rectangle}\)
The area corresponds to the probability \(P(4 < x < 15) = 0.55\).
Suppose we want to find \(P(x = 15)\). On an x-y graph, \(x = 15\) is a vertical line. A vertical line has no width (or zero width). Therefore, \(P(x = 15) = (\text{base})(\text{height}) = (0)\left(\frac{1}{20}\right) = 0\)
\(P(X \leq x)\) (can be written as \(P(X < x)\) for continuous distributions) is called the cumulative distribution function or CDF. Notice the "less than or equal to" symbol. We can use the CDF to calculate \(P(X > x)\). The CDF gives "area to the left" and \(P(X > x)\) gives "area to the right." We calculate \(P(X > x)\) for continuous distributions as follows: \(P(X > x) = 1 – P(X < x)\).
Label the graph with \(f(x)\) and \(x\). Scale the \(x\) and \(y\) axes with the maximum \(x\) and \(y\) values. \(f(x) = \frac{1}{20}\), \(0 \leq x \leq 20\).
To calculate the probability that \(x\) is between two values, look at the following graph. Shade the region between \(x = 2.3\) and \(x = 12.7\). Then calculate the shaded area of a rectangle.
\[P(2.3 < x < 12.7) = (\text{base})(\text{height}) = (12.7−2.3)\left(\dfrac{1}{20}\right) = 0.52\]
Summary
The probability density function (pdf) is used to describe probabilities for continuous random variables. The area under the 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 \(P(a < x < b)\). The cumulative distribution function (cdf) gives the probability as an area. If \(X\) is a continuous random variable, the probability density function (pdf), \(f(x)\), is used to draw the graph of the probability distribution. The total area under the graph of \(f(x)\) is one. The area under the graph of \(f(x)\) and between values a and b gives the probability \(P(a < x < b)\).
The cumulative distribution function (cdf) of \(X\) is defined by \(P(X \leq x)\). It is a function of \(x\) that gives the probability that the random variable is less than or equal to \(x\).
Formula Review
Probability density function (pdf) \(f(x)\):
- \(f(x) \geq 0\)
- The total area under the curve \(f(x)\) is one.
Cumulative distribution function (cdf): \(P(X \leq x)\)
WeBWorK Problems
Query \(\PageIndex{1}\)
Contributors and Attributions
Barbara Illowsky and Susan Dean (De Anza College) with many other contributing authors. Content produced by OpenStax College is licensed under a Creative Commons Attribution License 4.0 license. Download for free at http://cnx.org/contents/30189442-699...b91b9de@18.114.