
![]()
To use this I first need to calculate
.
.gif)
Finally I calculate the variance.

![]()
is said to have a binomial distribution with parameters n and p. We write this as
.
X then counts the number of successes that occur in these n trials.
![]()
or using more formal mathematical notation as
![]()
.gif)
- So there are 5! ways of obtaining 3 successes in 5 trials if the 3 successes are distinguishable from each other and the two failures are distinguishable. So for the successes that means we are treating the following six identical outcomes as if they were different.
Here I'm permuting the successes as if they were different from each other (using subscripts to distinguish them). Because there are three successes the fundamental law of counting says there are 3! = 6 ways of permuting them. So every time we have a truly distinguishable outcome, such as SSFFS, it ends up getting counted six times in our 5! count, once for each way of permuting the 3 successes. So 5! overcounts the number of outcomes of interest by 6 times.
Number of ways of obtaining 3 successes in 5 trials = 

The fourth expression (after the third equality) is referred to as a binomial coefficient. It should be read as "5 choose 3" and is the number of distinct ways of choosing 3 objects from 5 (when the order of the three objects doesn't matter).
.

Clearly for the formula to work we need 0! = 1. This in fact is how zero factorial is defined. So the factorial operator turns nothing, 0, into something, 1. I think this deserves an exclamation, such as "Wow!" (To be read as wow factorial.)

This is not as hard as it looks, but there is an easier way.
- Recall that a binomial random variable with parameters n and p can be thought of as a sum of n independent Bernoulli random variables,
, each with parameter p. Thus
![]()
![]()
This follows from the fact that an expectation is either a sum or an integral, and sums and integrals behave this way. (Things are a little bit more complicated than this, but we'll skip the details.) Therefore we have

![]()

The term in the second sum involves the covariance operator which is defined as follows.
![]()
The covariance measures how much two variables covary together. In general the covariance of two random variables is not zero, but for independent random variables it is. Since a binomial random variable with parameters n and p is the sum of n independent Bernoulli random variables, the covariance term drops out and we have the following.


where
is a function such that

In words this says that as the interval is shrunk down, the probability of observing two or more events shrinks much faster than the interval itself. In particular, it shrinks faster than the probability of observing exactly one event (which is proportional to the length of the interval).

| Jack Weiss Phone: (919) 962-5930 E-Mail: jack_weiss@unc.edu Address: Curriculum in Ecology, Box 3275, University of North Carolina, Chapel Hill, 27516 Copyright © 2006 Last Revised--Jan 13, 2006 URL: http://www.unc.edu/courses/2006spring/ecol/145/001/docs/lectures/lecture2.htm |