C HAPTER 8 Section 8.2 – The Geometric Distribution.

13
CHAPTER 8 Section 8.2 – The Geometric Distribution

Transcript of C HAPTER 8 Section 8.2 – The Geometric Distribution.

Page 1: C HAPTER 8 Section 8.2 – The Geometric Distribution.

CHAPTER 8Section 8.2 – The Geometric Distribution

Page 2: C HAPTER 8 Section 8.2 – The Geometric Distribution.

THE GEOMETRIC DISTRIBUTION Recall, that in the case of a binomial random variable, the number of trials is

fixed beforehand, and the binomial variable X counts the number of successes in a fixed number of trials.

For example, the probability of getting 5 heads in 6 tosses would be represented as binomPdf(6, .5, 5)

By way of comparison, there are situations in which the goal is to obtain a fixed number of successes.

In particular, if the goal is to obtain one success, a random variable X can be defined that counts the number of trials needed to obtain that first success.

A random variable that satisfies this description is called geometric. The distribution produced by this random variable is called a geometric distribution.

The possible values of a geometric random variable are an infinite set because it is theoretically possible to proceed indefinitely without ever having a success.

Note that a geometric distribution starts at P(X=1), not at P(X=0) like a binomial distribution. This is because starting at 0 would be implying that there could be 0 tries in obtaining the first success.

Page 3: C HAPTER 8 Section 8.2 – The Geometric Distribution.

EXAMPLES OF GEOMETRIC SITUATIONS

Flip a coin until you get heads.

Roll a die until you get a 3.

In basketball, attempt a three-point shot until you make a basket.

Page 4: C HAPTER 8 Section 8.2 – The Geometric Distribution.

THE GEOMETRIC SETTING

Definition:A geometric setting arises when we perform independent trials of the same chance process and record the number of trials until a particular outcome occurs. The four conditions for a geometric setting are

• Binary? The possible outcomes of each trial can be classified as “success” or “failure.”

• Independent? Trials must be independent; that is, knowing the result of one trial must not have any effect on the result of any other trial.

• Trials? The goal is to count the number of trials until the first success occurs.

• Success? On each trial, the probability p of success must be the same.

B

I

T

S

Page 5: C HAPTER 8 Section 8.2 – The Geometric Distribution.

EXAMPLE 8.15 – ROLL A DIE

Suppose you roll a die repeatedly until you get a 3. Is this a geometric setting?

The event of interest is rolling a 3 so this would be binary (success/failure)

Each toss is independent of the others The random variable is defined as X = the number of

trials until a 3 occurs The probability of success is the same for each toss

This is a geometric setting since all the conditions were met

See example 8.15 on p.465 for further explanation

Page 6: C HAPTER 8 Section 8.2 – The Geometric Distribution.

EXAMPLE 8.16 – DRAW AN ACE

Suppose you repeatedly draw cards without replacement from a deck of 52 cards until you draw an ace. Is this a geometric setting? The event of interest is drawing an ace so this is

binary (success/failure) The draws would not be independent because

you do not replace the previous draw

This is not a geometric setting since the draws are not independent.

See example 8.16 on p.465 for further explanation.

Page 7: C HAPTER 8 Section 8.2 – The Geometric Distribution.

RULES FOR CALCULATING GEOMETRIC PROBABILITIES

Using example 8.16, P(X = 1) = P(success on 1st roll) = 1/6 P(X = 2) = P(success on 2nd roll) = (5/6)(1/6) P(X = 3) = P(success on 3rd roll) = (5/6)(5/6)(1/6) In general, this can be modeled as:

If X has the geometric distribution with probability p of success and (1 – p) of failure on each trial, the possible values of X are 1, 2, 3, … . If n is any one of these values,

ppnXP n 1)1()(

Geometric Probability

)6/1()6/11()3( 13XP )6/1()6/5()3( 2XP

Page 8: C HAPTER 8 Section 8.2 – The Geometric Distribution.

GEOMETRIC DISTRIBUTION GRAPH

The following is a graph of the geometric distribution that represents the probability of a success after X of rolls.

Geometric distributions will always be skewed to the right since each time a trial goes by without a success you are multiplying by a number less than 1 (the probability of a failure)

Page 9: C HAPTER 8 Section 8.2 – The Geometric Distribution.

THE EXPECTED VALUE AND OTHER PROPERTIES OF THE GEOMETRIC RANDOM VARIABLE

If you flip a fair coin, how many times would you expect to have to flip it to observe the first head? 2 times

If you are rolling a die, how many times would you expect to have to roll it to observe your first 3? 6 times

If X is a geometric random variable with probability p of success on each trial, then its mean (expected value) is E(X) = µX = 1/p.

The variance of X is (1 – p)/p2

The Mean and Standard Deviation of Geometric Random Variable

Page 10: C HAPTER 8 Section 8.2 – The Geometric Distribution.

EXAMPLE 8.18 Glenn likes the game at the state fair where you toss a coin

into a saucer. Glenn has played this game many times and has determined that on average he wins 1 out of every 12 times he plays. He believes his chances for winning are the same each time and has no reason to believe that the tosses are not independent. Let X be the number of tosses until a win. Determine the mean and standard deviation.

22

1X

p

p

1 11

2 12 122 11

14412

1132X

132 11.5X

Page 11: C HAPTER 8 Section 8.2 – The Geometric Distribution.

“MORE” THAN A CERTAIN NUMBER OF TRIALS

Suppose you are interested in knowing the probability that it takes more than a certain number of trials to achieve success. For example, the probability that it takes more

than 5 tosses to land on a head.

The probability that it takes more than n trials to see the first success is:

Refer to p.470 if interested in how the formula is derived

Page 12: C HAPTER 8 Section 8.2 – The Geometric Distribution.

EXAMPLE 8.19 – APPLYING THE FORMULA

What is the probability that it takes more than 6 rolls to observe a 3?

What is the probability that it takes more than 12 tosses to land the coin in the saucer?

Refer to p.471-472 for calculator commands (steps 1 & 4) regarding geometric distributions

Page 13: C HAPTER 8 Section 8.2 – The Geometric Distribution.

Homework: P.468-476 #’s 37, 38, 42, 44 & 49