
385
Chapter 20: Ten Things (Twelve, Actually) That Didn’t Fit in Any Other Chapter
again until it finishes in the last group. The periodic sampling process, as you
can see, doesn’t recycle. I supplied an output range up to cell A11, but Excel
stopped after four numbers.
Figure 20-12:
The Sam-
pling data
analysis tool
dialog box,
sampled
groups, and
results.
The second output column, Column B, shows the results of random sampling.
I asked for 20 and that’s what I got. If you closely examine the numbers in
Column B, you’ll see that the random sampling process can select a number
more than once.
Beware of a little quirk: The Labels checkbox seems to have no effect. When I
specified an input range that includes C1, D1, and E1, and checked the Labels
checkbox, I received an error message: “Sampling - Input range contains non-
numeric data.” Not a showstopper, but a little annoying.
Testing Independence: The True
Use of CHITEST
In Chapter 18, I show you how to use CHITEST to test the goodness of fit of
a model to a set of data. At the time, I warned you about the pitfalls of using
this function in that context, and I mentioned that it’s really intended for
something else.
Here’s the something else. Imagine you’ve surveyed a total of 200 people.
Each person lives in either a rural area, an urban area, or a suburb. Your
survey asked them their favorite type of movie — drama, comedy, or anima-
tion. You want to know if their movie preference is independent of the envi-
ronment in which they live.
28 454060-ch20.indd 38528 454060-ch20.indd 385 4/21/09 7:38:54 PM4/21/09 7:38:54 PM