Calculus Applied to Probability and Statistics
by
Stefan Waner and Steven R. Costenoble

This Section: 2. Probability Density Functions: Uniform, Exponential, Normal, and Beta

1. Continuous Random Variables and Histograms Section 2 Exercises 3. Mean, Median, Variance and Standard Deviation Calculus and Probability Main Page "Real World" Page

2. Probability Density Functions: Uniform, Exponential, Normal, and Beta

We have seen that a histogram is a convenient way to picture the probability distribution associated with a continuous random variable X and that if we use subdivisions of 1 unit, the probability P(c X d) is given by the area under the histogram between X = c and X = d. But we have also seen that it is difficult to calculate probabilities for ranges of X that are not a whole number of subdivisions. The following example--based on an example in the previous section--introduces the solution to this problem.


Example 1 Car Rentals


This example motivates the following.

Probability Density Function

A probability density function (or probability distribution function) is a function f defined on an interval (a, b) and having the following properties.

    (a) f(x) 0 for every x
    (b) abf(x) dx = 1

We allow a, b, or both to be infinite, as in the above example. This would make the integral in (b) an improper one.

Probability Associated with a Continuous Random Variable

A continuous random variable X is specified by a probability density function f. The probability P(c X d) is specified by

    P(c X d) = cdf(x) dx.

In particular,

showing once again that there is a zero probability that X will assume any specified value.


Example 2


Uniform Density Function

A uniform density function f is a density function that is constant, making it the simplest kind of density function. Since we require f(x) = k for some constant k, requirement (b) in the definition of a probability density function tells us that

Thus we must have

In other words, a uniform density function must have the following form.

Uniform Density Function

The uniform density function on the interval [a, b] is the constant function defined by

    f(x) = 1/(ba).

Its graph is a horizontal line:

Note

If f(x) is a uniform density function as above, then f(x) is independent of x, and so the probability P(c X d) depends only on the width dc. In fact,

for a c d b (why?)


Example 3 Spinning a Dial


Exponential Density Function

You are an investment analyst, and recent surveys show that troubled saving and loan (S&L) institutions are failing continuously at 5% per year. What is the probability that a troubled S&L will fail sometime within the next x years?

To answer the question, suppose that you started with 100 troubled S&Ls. Since they are failing continuously at a rate of 5% per year, the number left after x years is given by the decay equation

so

Thus, the percentage that will have failed by that time--and hence the probability that we are asking for--is given by

Now let X be the number of years a randomly chosen troubled S&L will take to fail. We have just calculated the probability that X is between 0 and x. In other words,

But we also know that

for a suitable probability density function. Thus,

The Fundamental Theorem of Calculus tells us that the derivative of the left side is f(x). Thus,

which is the probability density function we were seeking.

Question

Does this function satisfy the mathematical conditions necessary for it to be a probability density function?

Answer

First, the domain of f is [0, +), since x refers to the number of years from now. Checking requirements (a) and (b) for a probability density function,

There is nothing special about the number 0.05. Any function of the form

with a a positive constant is a probability density function. A density function of this form is referred to as an exponential density function.

Exponential Density Function

An exponential density function is a function of the form

    f(x) = aeax (a a positive constant)

with domain [0 +). Its graph is shown in the figure.


Example 4 Failing S&Ls


Example 5 Radioactive Decay


Normal Density Function

Perhaps the most interesting class of probability density functions are the normal density functions, defined as follows.

Normal Density Function

A normal density function is a function of the form

    f(x) = ,

with domain (, +). The quantity µ is called the mean and can be any real number, while is called the standard deviation and can be any positive real number. The graph of a normal density function is shown in the following figure.

You can check the following properties using calculus and a little algebra.

Properties of a Normal Density Curve

(1) It is "bell-shaped" with the peak occurring at x = µ.

(2) It is symmetric about the vertical line x = µ.

(3) It is concave down in the range µ x µ + .

(4) It is concave up outside that range, with inflection points at x = µ and x = µ+.

The normal density function applies in many situations that involve measurement and testing. For instance, repeated imprecise measurements of the length of a single object, a measurement made on many items from an assembly line, and collections of SAT scores tend to be distributed normally. It is for this reason that the normal density curve is so important in quality control and in assessing the results of standardized tests.

In order to use the normal density function to compute probabilities, we need to calculate integrals of the form ab f(x) dx. However, the antiderivative of the normal density function cannot be expressed in terms of any commonly used functions. Traditionally, statisticians and others have used tables coupled with transformation techniques to evaluate such integrals. This approach is rapidly becoming obsolete as the technology of hand-held computers and programmable calculators puts the ability to do numerical integration quickly and accurately in everybody's hands (literally). In keeping with this trend, we shall show how to use a graphing calculator to do the necessary calculation in the next example.


Example 6 Quality Control


Question

Why can we assume that the reading of a pressure gauge is given by a normal distribution? Why is the normal distribution so common in this kind of situation?

Answer

The reason for this is rather deep. There is a theorem in probability theory called the Central Limit Theorem that says that a large class of probability density functions may be approximated by normal density functions. Repeated measurement of the same quantity gives rise to such a function.

Beta Density Function

There are many random variables whose values are percentages or fractions. These variables have density functions defined on [0,1]. A large class of random variables, such as the percentage of new businesses that turn a profit in their first year, the percentage of banks that default in a given year, and the percentage of time a plant's machinery is inactive, can be modeled by a beta density function.

Beta Density Function

A beta density function is a function of the form

    f(x) = (+1)(+2)x(1 x),

with domain [0, 1]. The number can be any constant ³ 0. The figure shows the graph of f(x) for several values of .


Example 7 Downsizing in the Utilities Industry


1. Continuous Random Variables and Histograms Section 2 Exercises 3. Mean, Median, Variance and Standard Deviation Calculus and Probability Main Page "Real World" Page

We would welcome comments and suggestions for improving this resource.

Mail us at:
Stefan Waner (matszw@hofstra.edu) Steven R. Costenoble (matsrc@hofstra.edu)

Last Updated: September, 1996
Copyright © 1996 StefanWaner and Steven R. Costenoble