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

This Section: 1. Continuous Random Variables and Histograms

Section 1 Exercises 2. Probability Density Functions: Uniform, Exponential, Normal, and Beta Calculus and Probability Main Page "Real World" Page

1. Continuous Random Variables and Histograms

Suppose that you have purchased stock in Colossal Conglomerate, Inc., and each day you note the closing price of the stock. The result each day is a real number X (the closing price of the stock) in the unbounded interval [0, +). Or, suppose that you time several people running a 50-meter dash. The result for each runner is a real number X, the race time in seconds. In both cases, the value of X is somewhat random. Moreover, X can take on essentially any real value in some interval, rather than, say, just integer values. For this reason we refer to X as a continuous random variable. Here is the official definition.

Continuous Random Variable

A random variable is a function X that assigns to each possible outcome in an experiment a real number. If X may assume any value in some given interval I (the interval may be bounded or unbounded), it is called a continuous random variable. If it can assume only a number of separated values, it is called a discrete random variable.

For instance, if X is the result of rolling a die (and observing the uppermost face), then X is a discrete random variable with possible values 1, 2, 3, 4, 5 and 6. On the other hand, if X is a random choice of a real number in the interval [1,6], then it is a continuous random variable.

If X is a random variable, we are usually interested in the probability that X takes on a value in a certain range. For instance, if X is the daily closing price of Colossal Conglomerate stock and we find that 60% of the time the price is between $10 and $20, we would say

The probability that X is between $10 and $20 is 0.6.

We write this statement mathematicallly as follows.

P(10 X 20) = 0.6.

We can use a bar chart, called a probability distribution histogram, to display the probabilities that X lies in selected ranges. This is shown in the following example.


Example 1 College Population by Age


Example 2


Question

In the above example P(X = 4) was zero. Is it true that P(X = a) is zero for every number a in the interval associated with X?

Answer

As a general rule, yes. If X is a continuous random variable, then X can assume infinitely many values, and so it is reasonable that the probability of its assuming any specific value we choose beforehand is zero.

Caution

If you wish to use a histogram to calculate probability as area, make sure that the subdivisions for X have width 1; for instance, 1 X 2, 2 X 3, and so on.

The first histogram in Example 1 had bars corresponding to larger ranges for X. The first bar has a width of 5 units, so its area is 5 0.22, which is 5 times the probability that 15 X 20. If you wish to use a histogram to give probability as area, divide the area by the width of the intervals.

There is another way around the above problem that we shall not use, but which is used by working statisticians: Draw your histograms so that the heights are not necessarily the probabilities but are chosen so that the area of each bar gives the corresponding probability. This is necessary if, for example, the bars do not all have the same width.

Section 1 Exercises 2. Probability Density Functions: Uniform, Exponential, Normal, and Beta 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