Applied 40S April 20, 2009

20
352/365: Jumpin' for Mikey by flickr user Mr.Thomas Binomial Distributions or "Will this SUCCEED or FAIL?

description

Normal approximations to binomial distributions.

Transcript of Applied 40S April 20, 2009

Page 1: Applied 40S April 20, 2009

352/365: Jumpin' for Mikey by flickr user Mr.Thomas

Binomial Distributionsor "Will this SUCCEED or FAIL?

Page 2: Applied 40S April 20, 2009

There are five children in a family. Assume that boys and girls are equally likely.

3. What is the probability that there are more than two girls?

2. What is the probability that there are at most three girls(i.e., there may be 0, 1, 2, or 3 girls)?

1. What is the probability that three are girls?HOMEWORK

binompdf(5, 1/2, 3)

binomcdf(5, 1/2, 3)

1 – binomcdf(5, 1/2, 2)

Page 3: Applied 40S April 20, 2009

A shipment of 200 tires from a tire manufacturing company is known to include 40 defective tires. Five tires are selected at random, and each tire is replaced before the next tire is selected.

(b) What is the probability of getting at least 1 defective tire?

(a) What is the probability of getting at most 2 defective tires?

(c) What is the probability of getting 2 or 3 defective tires?

HOMEWORKbinomcdf(5, 40/200, 2)

binompdf(5, 40/200, 2) + binompdf(5, 40/200, 3)

1 - binomcdf(5, 40/200, 0)

Page 4: Applied 40S April 20, 2009

At a certain hospital, the probability that a newborn is a boy is 0.47. What is the probability that between 45 and 60 (inclusive) of the next 100 babies will be boys? HOMEWORK

binomcdf(100, 0.47, 60) — binomcdf(100, 0.47, 44)

Page 5: Applied 40S April 20, 2009

Let's take apart a typical problem about alarm clocks and see how the pieces fit together.

Puzzle Alarm Clock by evadedave

Working With Binomial Distributions

Page 6: Applied 40S April 20, 2009

A manufacturer produces 24 yard alarms per week. Six percent of all the alarms produced are defective. What is the probability of getting two defective alarms in one week?

'S' and 'F' (Success and Failure) are the possible outcomes of a trial in a binomial experiment, and 'p' and 'q' represent the probabilities for 'S' and 'F.'

• n = the number of trials• x = the number of successes in n trials• p = probability of success• q = probability of failure• P(x) = probability of getting exactly x successes in n trials

Note that 'Success' in this case, is the probability of selecting a defective alarm.

• P(S) = p • P(F) = q = 1 - p

Page 7: Applied 40S April 20, 2009

A manufacturer produces 24 yard alarms per week. Six percent of all the alarms produced are defective. What is the probability of getting two defective alarms in one week?

'S' and 'F' (Success and Failure) are the possible outcomes of a trial in a binomial experiment, and 'p' and 'q' represent the probabilities for 'S' and 'F.'

• n = the number of trials• x = the number of successes in n trials• p = probability of success• q = probability of failure• P(x) = probability of getting exactly x successes in n trials

Note that 'Success' in this case, is the probability of selecting a defective alarm.

• P(S) = p • P(F) = q = 1 - pSo how do we answer

this question?

Page 8: Applied 40S April 20, 2009

A manufacturer produces 24 yard alarms per week. Six percent of all the alarms produced are defective. What is the probability of getting two defective alarms in one week?

binompdf(trials, p, x [this is optional]) trials = number of trials p = P(success) x = specific outcome

Page 9: Applied 40S April 20, 2009

Now you try ...

Elaine is an insurance agent. The probability that she will sell a life insurance policy to a family she visits is 0.7 (she's a really GOOD sales lady).

(a) If she sees 8 families today, what is the probability that she will sell exactly 5 policies?

Page 10: Applied 40S April 20, 2009

Now you try ...

Elaine is an insurance agent. The probability that she will sell a life insurance policy to a family she visits is 0.7 (she's a really GOOD sales lady).

(b) If she sees 8 families today, what is the probability that she will sell at most 5 policies?

Page 11: Applied 40S April 20, 2009

http://www.math.uah.edu/stat/applets/BinomialCoinExperiment.xhtml

The Binomial Coin Experiment

Page 12: Applied 40S April 20, 2009

Normal Approximation to the Binomial Distribution

We have seen that binomial distributions and their histograms are similar to normal distributions. In certain cases, a binomial distribution is a reasonable approximation of a normal distribution. How can we tell when this is true?

Page 13: Applied 40S April 20, 2009

Recall:

In a normal distribution, we used values for μ and σ to solve problems, where:

• μ = the population mean, and • σ = the standard deviation

In a binomial distribution, we used values for 'n' and 'p' to solve problems, where:

• n = number of trials, and • p = probability of success

Normal Approximation to the Binomial Distribution

Page 14: Applied 40S April 20, 2009

We now want to use the normal approximation of a binomial distribution. The distribution will be approximately normal if:

Once we know that a binomial distribution can be approximated by a normal curve we can calculate the values of μ and σ like this:

np ≥ 5 and nq≥ 5

Normal Approximation to the Binomial Distribution

this is the LINK

between these two

types of distributions

Link by flickr user jontintinjordan

Page 15: Applied 40S April 20, 2009

An Example

Border patrol officers estimate that 10 percent of the vehicles crossing the US - Canada border carry undeclared goods. One day the officers searched 350 randomly selected vehicles. What is the probability that 40 or more vehicles carried undeclared goods?

Normal Approximation to the Binomial Distribution

What is n?

What is p?

What is q?

What is μ?

What is σ?

Is this binomial distribution approximately normal?

Is np ≥ 5?

Is nq ≥ 5?

Page 16: Applied 40S April 20, 2009

Are the following distributions normal approximations of binomial distributions? How do you know?

(d) 80 trials where the probability of success on each trial is 0.99

(c) 600 trials where the probability of success on each trial is 0.05

(b) 60 trials where the probability of success on each trial is 0.20

(a) 60 trials where the probability of success on each trial is 0.05

Page 17: Applied 40S April 20, 2009

Determine the mean and standard deviation for each binomial distribution. Assume that each distribution is a reasonable approximation to a normal distribution.

(c) The probability of the Espro I engine failing in less than 50 000 km is 0.08. In 1998, 16 000 engines were produced. Find the mean and standard deviation for the engines that did not fail.

(b) 44 trials where the probability of failure for each trial is 0.28

(a) 50 trials where the probability of success for each trial is 0.35HOMEWORK

Page 18: Applied 40S April 20, 2009

A laboratory supply company breeds rats for lab testing. Assume that male and female rats are equally likely to be born.

(d) Is it correct to say that, in the above situation, P(x ≥ 120) = P(x > 119), or do we need to account for the values between 119 and 120?

(c) What is the probability that of 240 animals born, 120 or more will be female?

(b) What is the probability that of 240 animals born, 110 or more will be female?

(a) What is the probability that of 240 animals born, exactly 110 will be female?

Solve the following problem using a binomial solution

HOMEWORK

Page 19: Applied 40S April 20, 2009

The probability that a student owns a CD player is 3/5. If eight students are selected at random, what is the probability that:

(c) none of them own a CD player?

(b) all of them own a CD player?

(a) exactly four of them own a CD player?

HOMEWORK

Page 20: Applied 40S April 20, 2009

The probability that a motorist will use a credit card for gas purchases at a large service station on the Trans Canada Highway is 7/8. If eight cars pull up to the gas pumps, what is the probability that:

(b) four of them will use a credit card?

(a) seven of them will use a credit card?

HOMEWORK