]>
Suppose again that our random experiment is to perform a sequence of Bernoulli trials with parameter . In this section we will study the random variable that gives the trial number of the first success:
Show that
Use the result of Exercise 1 and independence to show that the probability density function of is given by
.The distribution defined by the probability density in Exercise 2 is known as the geometric distribution on , with parameter . The random variable is the number of failures before the first success.
Show that the probability density function of is given by
.The distribution of this random variable is known as the geometric distribution on , with parameter . Clearly and give essentially the same information.
In the negative binomial experiment, set to get the geometric distribution on . Vary with the scroll bar and note the shape and location of the density function. For selected values of , run the simulation 1000 times with an update frequency of 10. Watch the apparent convergence of the relative frequency function to the density function.
Show directly that the function in Exercise 2 is a valid probability density function.
The following exercises give the mean, variance, and probability generating function of a random variable with the geometric distribution on .
Show that . There are several ways to do this:
Show that .
Show that .
In the negative binomial experiment, set to get the geometric distribution. Vary with the scroll bar and note the location and size of the mean/standard deviation bar. For selected values of , run the simulation 1000 times with an update frequency of 10. Watch the apparent convergence of the sample mean and standard deviation to the distribution mean and standard deviation.
Suppose now that has the geometric distribution on . Show that
Recall that , the number of successes in the first trials, has the binomial distribution with parameters and .
Show that the conditional distribution of given is uniform on . Note that the distribution does not depend on . Interpret the result probabilistically.
The following problems explore a very important characterization of the geometric distribution.
Suppose that is a random variable taking values in . Show that has the geometric distribution with parameter if and only if
If has a geometric distribution on , show that satisfies the memoryless property:
Conversely, show that if is a random variable taking values in that satisfies the memoryless property, then has a geometric distribution.
Show that has the memoryless property if and only if the conditional distribution of given is the same as the distribution of .
A standard, fair die is thrown until an ace occurs. Let denote the number of throws.
A type of missile has failure probability 0.02. Let denote the number of launches before the first failure.
A student takes a multiple choice test with 10 questions, each with 5 choices (only one correct). The student blindly guesses and gets one question correct. Find the probability that the correct question was one of the first 4.
Recall that an American roulette wheel has 38 slots: 18 are red, 18 are black, and 2 are green. Suppose that you observe red or green on 10 consecutive spins. Give the conditional distribution of the number of additional spins needed for black to occur.
The game of roulette is studied in more detail in the chapter on Games of Chance.
In the negative binomial experiment, set to get the geometric distribution and set . Run the experiment 1000 times, with an update frequency of 100. Compute the appropriate relative frequencies and empirically investigate the memoryless property
We will now explore a gambling situation, known as the Petersburg problem, which leads to some famous and surprising results. Suppose that we are betting on a sequence of Bernoulli trials with success parameter . We can bet any amount of money on a trial at even stakes: if the trial results in success, we receive that amount, and if the trial results in failure, we must pay that amount. We will use the following strategy, known as a martingale strategy:
Let denote our net winnings when we stop. Show that .
Thus, is not random and is independent of ! Since is an arbitrary constant, it would appear that we have an ideal strategy. However, let us study the amount of money needed to play the strategy.
Show that . where as usual, is the trial number of the first success.
Use the result in the previous exercise to show that
Thus, the strategy is fatally flawed when the trials are unfavorable and even when they are fair.
In the negative binomial experiment, set . For each of the following values of , run the experiment 100 times, updating after each run. For each run compute (with ). Find the average value of over the 100 runs:
For more information about gambling strategies, see the chapter on Red and Black.
A coin has probability of heads . There are players who take turns tossing the coin in round-robin style: player 1 first, then player 2, ..., then player , then player 1 again, and so forth. The first player to toss heads wins the game.
Let denote the number of the first toss that results in heads. Of course, has the geometric distribution on with parameter . Additionally, let denote the winner of the game; takes values in the set . We will compute the probability density function of in two different ways
Show that for , if and only if for some . That is, using modular arithmetic,
.Use the result of the previous exercise and the geometric distribution to show that
Argue that . Use this result to re-derive the probability density function in the previous exercise.
Note from Exercise 27 that itself has a truncated geometric distribution.
Show that the distribution of is the same as the conditional distribution of given :
The following problems explore some limiting distributions related to the alternating coin-tossing game.
Show that for fixed , the distribution of converges to the geometric distribution with parameter as .
Show that for fixed , the distribution of converges to the uniform distribution on as .
What happens in the game when ? Compare with the limit in the previous exercise.