
343
Chapter 17: More on Probability
binomial tells you the number of trials until a specified number of successes
in a binomial distribution. The gamma distribution tells you how many sam-
ples you go through to find a specified number of successes in a Poisson dis-
tribution. Each sample can be a set of objects (as in the FarKlempt Robotics
universal joint example), a physical area, or a time interval.
The probability density function for the gamma distribution is:
Again, this works when α is a whole number. If it’s not, you guessed it —
calculus. (By the way, when this function has only whole-number values of
α it’s called the Erlang distribution, just in case anybody ever asks you.) The
letter e, once again, is the constant 2.7818 I told you about earlier.
Don’t worry about the exotic-looking math. As long as you understand what
each symbol means, you’re in business. Excel does the heavy lifting for you.
So here’s what the symbols mean. For the FarKlempt Robotics example, α is
the number of successes and β corresponds to μ the Poisson distribution.
The variable x tracks the number of samples. So if x is 3, α is 2, and β is 1,
you’re talking about the probability density associated with finding the second
success in the third sample, if the average number of successes per sample
(of 1000) is 1. (Where does 1 come from, again? That’s 1000 universal joints
per sample multiplied by .001, the probability of producing a defective one.)
To determine probability, you have to work with area under the density func-
tion. This brings me to the Excel worksheet function designed for gamma.
GAMMADIST
GAMMADIST gives you a couple of options. You can use it to calculate the
probability density, and you can use it to calculate probability. Figure 17-6
shows how I used the first option to create a graph of the probability density
so you can see what the function looks like. Working within the context of the
example I just laid out, I set Alpha to 2, Beta to 1, and calculated the density
for the values of x in Column D.
The values in Column E shows the probability densities associated with find-
ing the second defective universal joint in the indicated number of samples
of 1000. For example, Cell E5 holds the probability density for finding the
second defective joint in the third sample.
24 454060-ch17.indd 34324 454060-ch17.indd 343 4/21/09 7:36:43 PM4/21/09 7:36:43 PM