Lecture 4
Expected Values, Variance, and Discrete Distributions
Robin Sandquist
September 2026
Reminder
For a discrete random variable , the probability mass function is
For a continuous random variable with density , we have
The expected value is given by
For a function , we have
If , then
Properties of expected values and variance
Theorem
Let be a random variable, and let be constants. Then:
Proof of rule 2 in the discrete case.
Let . By rule 1,
Using the definition of variance, we get
The Binomial Distribution
Example (Seeds that germinate)
Suppose that we plant ten seeds. Each seed has probability of germinating, independently of the other seeds.
Let be the number of seeds that germinate. Then counts the number of successes in ten independent trials, each with the same probability of success.
For exactly eight seeds to germinate, we need eight successes and two failures. A particular arrangement has probability
There are ways to choose which eight seeds germinate, so
Definition (Binomial distribution)
Suppose that we perform independent tries, where each try succeeds with probability .
If is the number of successful tries, then has a binomial distribution with parameters and . We write
Its probability mass function is
The Hypergeometric Distribution
Example (Inspecting batteries)
A box contains twenty batteries, five of which are defective. We randomly choose four batteries without replacement, with every group of four equally likely to be chosen.
Let be the number of defective batteries in the sample.
To get exactly one defective battery, we choose one of the five defective batteries and three of the fifteen working batteries. This can be done in
ways.
There are possible samples, so
Definition (Hypergeometric distribution)
Suppose that a population contains objects, of which have a certain property.
We choose objects at random without replacement, with every sample of size equally likely. Let be the number of selected objects that have the property.
Then has a hypergeometric distribution. Using the notation
its probability mass function is
for integers satisfying
Remark
In the binomial model, the tries are independent and the success probability stays the same.
When choosing without replacement, the probability of succes on the next draw depends on what has already been selected. This is the situation described by the hypergeometric distribution.
The Discrete Uniform Distribution
Definition (Discrete uniform distribution)
We say that is discrete uniform on if
Every value in the set has the same probability.
The Poisson Distribution
Definition (Poisson distribution)
We say that has a Poisson distribution with parameter if
We write
Checking the probability mass function
Recall that a probability mass function is valid if all its values are non-negative and their sum is one.
Here,
for every . Also,
This confirms that the Poisson formula gives a valid probability mass function.
When is the Poisson distribution useful?
Suppose that an event occurs randomly at an average rate of times per unit of time.
Under the usual Poisson model, the rate is constant, counts in separate time intervals are independent, and multiple events in a very short interval are unlikely.
If is the number of events in the interval , then
Example (Cars crossing a bridge)
Cars cross a bridge at an average rate of two cars per minute. Assume that the crossings follow a Poisson model.
What is the probability that less than three cars cross the bridge in two minutes?
Let be the number of cars in this interval. Then
less than three cars means zero, one, or two cars:
This calculates to about a chance.
The geometric distribution and the first success
Suppose that we study repeated independent tries of the same type. Each try succeeds with probability , where .
Let
and
Their possible values are
For , the first tries must fail, and try must succeed.
By independence,
Since , we have
Definition (First success distribution)
We say that has a first-success distribution with parameter if
In this course (in Swedish) we write
Definition (Geometric distribution)
We say that has a geometric distribution with parameter if
We write