1 / 47

Section 5.2

Section 5.2. Binomial Distribution. With some useful additional content by D.R.S., University of Cordele. Recognize Binomial Situations. Only two possible outcomes in each trial. Probability for one of the outcomes. Probability for the other outcome. Some definite number of trials, .

leane
Télécharger la présentation

Section 5.2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Section 5.2 Binomial Distribution With some useful additional content by D.R.S., University of Cordele.

  2. Recognize Binomial Situations Only two possible outcomes in each trial. • Probability for one of the outcomes. • Probability for the other outcome. Some definite number of trials, . • They’re independent trials. don’t change. We’re interested in , probability of a certain count of how many times event happens in those trials.

  3. A special kind of probability distribution It’s the familiar probability distribution But only two rows for the two outcomes. Note that • Because probabilities must always sum to 1.00000 • And this leads to .

  4. Probability for a Binomial Distribution Probability for a Binomial Distribution For a binomial random variable X, the probability of obtaining x successes in n independent trials is given by where x is the number of successes, n is the number of trials, and p is the probability of getting a success on any trial.

  5. Practice with the Formula Experiment: Roll two dice Event of interest: “I rolled a 7 or an 11” Binomial! Either-Or. Two outcomes. Win or Lose. Probability of success: (from Probability of failure: Number of trials

  6. Practice with the Formula Find P(2) successes in the seven/eleven game How about 3 successes?

  7. Compute them all

  8. Summary of the 7-11 experiment

  9. Sometimes you add probabilities Probability of at least three wins in five trials • P(X≥3) = P(X=3) + P(X=4) + P(X=5) add them up! Probability of more than three wins • P(X>3) = P(X=4) + P(X=5) Probability of at most three wins • P(X≤3) = P(X=0) + P(X=1) + P(X=2) + P(X=3) Probability of fewer than three wins • P(X<3) = P(X=0) + P(X=1) + P(X=2)

  10. Use the Complement to save time Example: “Probability of at least 3 wins” P(X≥3) = P(X=3) + P(X=4) + … + P(X=49) + P(X=50) This means 48 calculations and sum results. EASIER: The complement is “fewer than 3” Take 1 – [ P(X=0) + P(X=1) + P(X=2) ]

  11. TI-84 Computations binompdf(n, p, X) = probability of X successes in n trials Recompute the table and make sure we get the same results as the by-hand calculations. The “pdf” in “binompdf” stands for “probability distribution function” Excel: =BINOM.DIST(X, n, p, FALSE) Note different order from TI-84 binompdf(n, p, X)

  12. Excel =BINOM.DIST(X, n, p, FALSE) Note different order from TI-84 binompdf(n, p, X)

  13. Mean, Variance, and Standard Deviation We had formulas and methods for probability distributions in general. The special case of the Binomial Probability Distribution has special shortcut formulas • Mean = • Variance = • Standard deviation =

  14. Mean, Variance, and Standard Deviation Compute these for the seven-eleven experiment with n = 5 trials • Mean = • Variance = • Standard deviation =

  15. Mean, Variance, and Standard Deviation Compute these for the seven-eleven experiment with n = 50 trials • Mean = • Variance = • Standard deviation =

  16. Mean, Variance, and Standard Deviation Compute these for the seven-eleven experiment with n = 100 trials • Mean = and Standard deviation = “Expected value” – in 100 tosses of two dice, how many seven-elevens are expected? • Remember, the mean of a probability distribution is also called the “expected value”

  17. Standard Deviation What happens to the standard deviation in the seven-eleven experiment as the number of trials, n, increases?

  18. TI-84 Computations binompdf(n, p, x) = P(X=x) successes in n trials Observe the difference between binompdf() and binomcdf() binomcdf(n, p, x) = P(X=0)+P(X=1)+ … + P(X=x) successes in n trials binomcdf(n, p, x) does lots of little binompdf() for you for x = 0, x = 1, etc. up to the x you told it, and it adds up the results The “pdf” stands for “probability distribution function” The “cdf” stands for “cumulative distribution function”

  19. Advanced TI-84 Exercise Y1=binompdf(20,8/36,X) seq(X,X,0,20) STO> L1 seq(Y1(X),X,0,20) STO> L2 STAT PLOT for these two lists, histogram WINDOW Xmin=0, Xmax=20, Ymin=-0.1,Ymax=0.6 ZOOM 9:ZoomStat

  20. Try and verify binomcdf(n,p,x)

  21. Excel: =BINOM.DIST(X,n,p,TRUE) for cumulative Add 0.28463+0.40661+0.23235 and verify it = 0.92359

  22. binomcdf() and complements Sevens or elevens, n = 50 trials again P(no more than 10 successes) • binomcdf(50, 8/36, 10) P(fewer than 10 successes) • binomcdf(50, 8/36, 9) P(more than 10 successes) – use complement! • 1 minus binomcdf(50, 8/36, 10) P(at least 10 successes) – use complement! • 1 minus binomcdf(50, 8/36, 9)

  23. Example 5.5: Calculating a Binomial Probability Using the Formula What is the probability of getting exactly six heads in ten coin tosses? Solution We showed earlier that coin tosses meet the criteria of the binomial distribution. For this problem, let X = the number of heads obtained out of ten coin tosses. There are ten coin tosses, so n = 10. We will say that a success is getting a head. We want the probability of exactly six successes, so x = 6. The probability of flipping a head in one coin toss is 0.5, which means that p = 0.5.

  24. Example 5.5: Calculating a Binomial Probability Using the Formula (cont.) Substituting these values into the binomial probability formula gives us the following.

  25. Example 5.5: Calculating a Binomial Probability Using the Formula (cont.) Thus, the probability of getting exactly six heads in ten coin tosses is approximately 0.2051.

  26. Example 5.6: Calculating a Binomial Probability Using the Formula or a TI-83/84 Plus Calculator A quality control expert at a large factory estimates that 10% of all batteries produced are defective. If he takes a random sample of fifteen batteries, what is the probability that exactly two are defective? Solution First, let’s verify that this process meets the criteria of a binomial distribution. Since the batteries are randomly sampled and, presumably, more batteries continue to be produced by the factory while the sampling takes place, we can consider the selection of the batteries to be identical, independent trials.

  27. Example 5.6: Calculating a Binomial Probability Using the Formula or a TI-83/84 Plus Calculator (cont.) Since we are testing fifteen batteries, the number of trials is n = 15. For each trial, there are two possible outcomes: either the battery is defective or it is not. We will consider a defective battery to be a success and 10% of all batteries produced are defective, so the probability of getting an individual success is p = 0.1. Let X = the number of defective batteries found in a sample of 15 batteries. We are looking for the probability that exactly two are defective, so we want the binomial probability, P(X = 2).

  28. Example 5.6: Calculating a Binomial Probability Using the Formula or a TI-83/84 Plus Calculator (cont.) Using the binomial probability formula for our solution would require us to calculate the following expression. However, the TI-83/84 Plus calculator can calculate P(X = x) directly using the following procedure.

  29. Example 5.6: Calculating a Binomial Probability Using the Formula or a TI-83/84 Plus Calculator (cont.) • Press and then to access the DISTR menu. • Choose option A:binompdf(. • Enter n, p, and x in the parentheses as: binompdf (n, p, x). Thus, using a TI-83/84 Plus, we would calculate the probability as shown below and in the screenshot in the margin.

  30. Example 5.6: Calculating a Binomial Probability Using the Formula or a TI-83/84 Plus Calculator (cont.) Therefore, the probability that exactly two out of the fifteen batteries are defective is approximately 0.2669.

  31. Example 5.7: Calculating Binomial Probabilities Using the Formula or a TI-83/84 Plus Calculator A quality control expert at a large factory estimates that 10% of all the batteries produced at the factory are defective. If he takes a random sample of fifteen batteries, what is the probability that no more than two are defective? Solution This scenario is the same as in the previous example; therefore, we know that we have a binomial distribution with n = 15 and p = 0.1. This time we want the probability that no more than two are defective, which is

  32. Example 5.7: Calculating Binomial Probabilities Using the Formula or a TI-83/84 Plus Calculator (cont.) Thus we are looking for the probability that X = 0, or X = 1, or X = 2. We can find by adding these three individual probabilities. Using the binomial probability formula for our solution would require us to calculate the following expression.

  33. Example 5.7: Calculating Binomial Probabilities Using the Formula or a TI-83/84 Plus Calculator (cont.) A TI-83/84 Plus calculator can calculate P(X = x) directly as seen in the previous example. Thus, using a TI-83/84 Plus, we would calculate the probability as shown below and in the screenshot in the margin.

  34. Example 5.7: Calculating Binomial Probabilities Using the Formula or a TI-83/84 Plus Calculator (cont.) However, the TI-83/84 Plus calculator allows us to use an even more efficient method for this particular problem, as it will also directly calculate a cumulative probability,

  35. Example 5.7: Calculating Binomial Probabilities Using the Formula or a TI-83/84 Plus Calculator (cont.) • Press and then to access the DISTR menu. • Choose option B:binomcdf(. • Enter n, p, and x in the parentheses as: binomcdf(n, p, x). So, using this more efficient method, we would calculate the probability as shown below and in the screenshot in the margin.

  36. Example 5.7: Calculating Binomial Probabilities Using the Formula or a TI-83/84 Plus Calculator (cont.) Therefore, the probability that no more than two out of the fifteen batteries are defective is approximately 0.8159.

  37. Example 5.8: Calculating a Cumulative Binomial Probability Using a TI-83/84 Plus Calculator What is the probability that a family with six children has more than two girls? Assume that the gender of one child is independent of the gender of any of the other children. Solution First, let’s verify that this scenario meets the criteria of a binomial distribution. We are told that the gender of each child is independent, so we can consider the births of the children to be identical, independent trials.

  38. Example 5.8: Calculating a Cumulative Binomial Probability Using a TI-83/84 Plus Calculator (cont.) The family has six children, so the number of trials is n = 6. For each trial, there are two possible outcomes: the child is either a girl or a boy. Let’s define a success as having a girl. We can assume that both genders are equally likely; thus the probability of obtaining a success is p = 0.5. Let X = the number of girls out of the six children. We are considering the event of having more than two girls, X > 2. This is the complement to the event of having no more than two girls, X ≤ 2. Thus we can calculate the binomial probability by using the Complement Rule, as follows.

  39. Example 5.8: Calculating a Cumulative Binomial Probability Using a TI-83/84 Plus Calculator (cont.) Using the binomial formula for this problem would be cumbersome, so let’s use a TI-83/84 Plus calculator. We would enter the probability expression as shown below and in the screenshot in the margin.

  40. Example 5.8: Calculating a Cumulative Binomial Probability Using a TI-83/84 Plus Calculator (cont.) Therefore, the probability that a family with six children has more than two girls is approximately 0.6563.

  41. Example 5.9: Calculating a Cumulative Binomial Probability Using a TI-83/84 Plus Calculator Suppose that 20% of the programs sold at the home games of a professional sports team during the course of one season contain a special discount coupon. If all eight friends in your group bought programs at one game, what is the probability that at least half of your friends received the discount coupon?

  42. Example 5.9: Calculating a Cumulative Binomial Probability Using a TI-83/84 Plus Calculator (cont.) Solution Since there are a significant number of programs sold at the home games of a professional sports team throughout one season, and the number of trials we are considering is relatively small in comparison, we can model this situation as if the trials are independent. The reasoning is that the precise probabilities would not actually change enough to affect the value of the answer. We are considering eight programs; thus n = 8.

  43. Example 5.9: Calculating a Cumulative Binomial Probability Using a TI-83/84 Plus Calculator (cont.) If we define a success to be receiving a discount coupon, then the probability of obtaining a success is p = 0.2. Let X = the number of discount coupons received in the eight programs bought by your friends. We are interested in the probability that at least half of the eight friends get a discount coupon, so at least four out of the eight, or As in the previous example, in order to use the cumulative binomial probability function on a TI-83/84 Plus calculator to solve this problem, we will need to use the Complement Rule.

  44. Example 5.9: Calculating a Cumulative Binomial Probability Using a TI-83/84 Plus Calculator (cont.) This is still not exactly what we need because the TI-83/84 Plus calculator can only calculate cumulative probabilities of the form Fortunately, this situation is not too difficult to deal with due to one of the characteristics of the binomial distribution. The value for x must be a whole number; therefore,

  45. Example 5.9: Calculating a Cumulative Binomial Probability Using a TI-83/84 Plus Calculator (cont.) Using all of this information and a TI-83/84 Plus calculator, we calculate the probability as shown below and in the screenshot.

  46. Example 5.9: Calculating a Cumulative Binomial Probability Using a TI-83/84 Plus Calculator (cont.) Therefore, the probability that at least half of the eight friends find discount coupons in their programs is approximately 0.0563, which indicates that it is not very likely.

  47. Excel =BINOM.DIST.RANGE(n, p, xLow, xHigh)

More Related