Download Random Variables and Probability Distributions
Transcript
07-W4959 10/7/08 3:06 PM Page 444 444 Chapter 7 ■ Random Variables and Probability Distributions n = 20; π = .05 (a) n = 20; π = .10 (b) n = 20; π = .25 (c) n = 20; π = .50 (d) Binomial distributions: (a) n 20, p .05; (b) n 20, p .10; (c) n 20, p .25; (d) n 20, p .50. Figure 7.52 Since np 10 our rule of thumb would regard the binomial distribution too skewed for the normal curve approximation to give accurate results. Let’s see what happens: P(3 x 6) binomcdf(50,.1,6) binomcdf(50,.1,2) 0.7702268435 0.1117287563 0.6584980872 To evaluate this probability using the normal curve approximation we will use the machine accuracy of the calculator with m 50(.1) 5 and s 2501.12 1.92 2.121320344 normalcdf(lower bound, upper bound [ , m, s]) normalcdf(2.5, 6.5 , 5, 2.121320344) 0.6409535402 The difference between the binomial and the normal approximation in this case is 0.017544547. It is interesting to note that using a rule of thumb with 5 instead of 10 would call this difference “acceptable.” We do not argue with this rule of thumb in principle, but once again point out that the individual judgment by the investigator on site must be used in evaluating the goodness of the approximation. Finally, we will superimpose the appropriate normal distribution over the binomial distribution to get a visual sense of the approximation. It is entirely possible that a given approximation will do a better job for different choices of values of the end points of the interval, and the graphs may give us an overall sense of when a normal approximation might be acceptable. Graphing a binomial distribution and a normal distribution at the same time involves skills we have seen in previous Explorations. (You may want to refer back to the calculator explorations about the binomial and normal distributions to refresh your memory.) We will graph the binomial and normal distributions for four distributions, each with sample size 20, but with probabilities of success of .05, .1, .25, and .5 We will change the windows to make the graphs fill the windows, but this should not affect any interpretations of the goodness of fit to the binomial by the normal distribution. As a reminder, our binomial preparations for the first graph are 1. seq(x, x, 0, 20) S List1 2. binompdf(20, .05) S List2 3. Specify that we want a histogram with the values in List1, and the corresponding binomial probabilities in List2. For the normal curve plot, define the graphing function by supplying the mean and standard deviation of the binomial as parameters for the normalpdf function: Y1 normalpdf(x, 1, 0.97468) The four plots appear in Figure 7.52. As can be seen from a comparison of the plots, the normal approximation gets “closer and closer” to the binomial as gets closer and closer to 0.5. For p .25 the rule of thumb is satisfied for n 20, and for p .5, the rule of thumb is satisfied using n 10. It is a bit difficult to judge whether or not the normal approximation to the binomial is “adequate” for a particular situation by just looking at the plots. Modern technology makes it possible to do binomial calculations quickly, so the normal approximation to the binomial is not as widely used as it once was. However, there are other distributions in statistics that are “approximately” normal as long as certain conditions are satisfied. We hope that working with the approximation to the binomial has given you an appreciation for the uses of the normal distribution to approximate these other distributions.