26 Binomial and Negative Binomial Distributions
26.1 Binomial distributions
Example 26.1
Consider an extremely simplified model for the daily closing price of a certain stock. Every day the price either goes up or goes down, and the movements are independent from day-to-day. Assume that the probability that the stock price goes up on any single day is 0.25. Let
- Compute and interpret
.
- Compute the probability that the price goes up on the next three days and then down on the following two days.
- Compute and interpret
. Why is different from the probability in the previous part?
- Suggest a general formula for the probability mass function of
.
- Use the pmf of
to construct a table, plot, and spinner of the distribution of .
- Suggest a “shortcut” formula for
. Then use the table from the previous part to compute . Did the shortcut formula work? Interpret .
- Is the random variable
in this problem the same random variable as the random variable in Example 15.6?
- Does the random variable
in this problem have the same distribution the random variable in Example 15.6?
- A discrete random variable
has a Binomial distribution with parameters , a nonnegative integer, and if its probability mass function is If has a Binomial( , ) distribution - Imagine a box containing tickets with
representing the proportion of tickets in the box labeled 1 (“success”); the rest are labeled 0 (“failure”). Randomly select tickets from the box with replacement and let be the number of tickets in the sample that are labeled 1. Then has a Binomial( , ) distribution. Since the tickets are labeled 1 and 0, the random variable which counts the number of successes is equal to the sum of the 1/0 values on the tickets. If the selections are made with replacement, the draws are independent, so it is enough to just specify the population proportion without knowing the population size . - The situation in the previous paragraph and example involves a sequence of Bernoulli trials.
- There are only two possible outcomes, “success” (1) and “failure” (0), on each trial.
- The unconditional/marginal probability of success is the same on every trial, and equal to
- The trials are independent.
- If
counts the number of successes in a fixed number, , of Bernoulli( ) trials then has a Binomial( ) distribution.
Example 26.2
Continuing Example Example 26.2.
- What does the random variable
represent? What is its distribution?
- Suppose that the price is currently $100 and each it either moves up $2 or down $2. Let
be the stock price after 5 days. How does relate to ? Does have a Binomial distribution?
- Recall that
is the number of days on which the price goes up in the next five days. Suppose that is the number of days on which the price goes up in the ten days after that (days 6-15). What is the distribution of ? (Continue to assume independence between days, with probability 0.25 of an up movement on any day.)
Example 26.3
In each of the following situations determine whether or not
- Roll a die 20 times;
is the number of times the die lands on an even number.
- Roll a die 20 times;
is the number of times the die lands on 6.
- Roll a die until it lands on 6;
is the total number of rolls.
- Roll a die until it lands on 6 three times;
is the total number of rolls.
- Roll a die 20 times;
is the sum of the numbers rolled.
- Shuffle a standard deck of 52 cards (13 hearts, 39 other cards) and deal 5 without replacement;
is the number of hearts dealt. (Hint: be careful about why.)
- Roll a fair six-sided die 10 times and a fair four-sided die 10 times;
is the number of 3s rolled (out of 20).
26.2 Geometric distributions
Example 26.4
Maya is a basketball player who makes 40% of her three point field goal attempts. Suppose that she attempts three pointers until she makes one and then stops. Let
- Does
have a Binomial distribution? Why or why not?
- What are the possible values that
can take? Is discrete or continuous?
- Compute
.
- Find the probability mass function of
.
- Construct a table, plot, and spinner representing the distribution of
.
- Compute
without summing.
- Find the cdf of
without summing.
- What seems like a reasonable general formula for
? Make a guess, and then compute and interpret for this example.
- Would
be bigger or smaller if ? If ?
- A discrete random variable
has a Geometric distribution with parameter if its probability mass function is If has a Geometric( ) distribution - Suppose you perform Bernoulli(
) trials until a single success occurs and then stop. Let be the total number of trials performed, including the success. Then has a Geometric( ) distribution. In this situation, exactly trials are performed if and only if- the first
trials are failures, and - the
th (last) trial results in success.
- the first
Example 26.5
Recall Example Example 11.5. You and your friend are playing the “lookaway challenge”. The game consists of possibly multiple rounds. In the first round, you point in one of four directions: up, down, left or right. At the exact same time, your friend also looks in one of those four directions. If your friend looks in the same direction you’re pointing, you win! Otherwise, you switch roles and the game continues to the next round — now your friend points in a direction and you try to look away. (So the player who starts as the pointer is the pointer in the odd-numbered rounds, and the player who starts as the looker is the pointer in the even-numbered rounds, until the game ends.) As long as no one wins, you keep switching off who points and who looks. The game ends, and the current “pointer” wins, whenever the “looker” looks in the same direction as the pointer. Let
- Explain why
has a Geometric distribution, and specify the value of .
- Use the Geometric pmf (use software) to compute the probability that the player who starts as the pointer wins the game.
26.3 Negative Binomial Distributions
Example 26.6
Maya is a basketball player who makes 86% of her free throw attempts. Suppose that she attempts free throws until she makes 5 and then stops. Let
- Does
have a Binomial distribution? Why or why not?
- What are the possible values of
? Is discrete or continuous?
- Compute
- Compute
- Compute
- Compute
- Find the probability mass function of
.
- What seems like a reasonable general formula for
? Interpret for this example.
\1. Would the variance be larger or smaller if attempted free throws until she made 10 instead of 5?
- A discrete random variable
has a Negative Binomial distribution with parameters , a positive integer, and if its probability mass function is If has a NegativeBinomial( , ) distribution - Suppose you perform a sequence of Bernoulli(
) trials until successes occur and then stop. Let be the total number of trials performed, including the trials on which the successes occur. Then has a NegativeBinomial( , ) distribution. In this situation, exactly trials are performed if and only if- there are exactly
successes among the first trials, and - the
th (last) trial results in success.
- there are exactly
- There are
possible sequences that satisfy the above, and each of these sequences — with successes and failures — has probability .
Example 26.7
What is another name for a NegativeBinomial(1,
Example 26.8
Suppose