# What should I do when a confidence interval includes an impossible range of values?

Let's say I'm analyzing the mean number of students per class for a school district. The district has imposed a hard limit on the maximum ratio: there can never be more than 30 students in a class. The district strictly enforces this rule and it is known to hold true.

I'd like to construct a confidence interval using a Student's t-distribution. For the sake of argument, we'll assume that all assumptions and conditions for this are met. The data are independent, randomly-sampled and appear approximately normally-distributed on a histogram.

What happens if the sample yields a large-ish standard error and has a mean close to 30, resulting in a confidence interval like this?

We are 95% confident that the true mean students per class lies between 28 students and 31 students.

Obviously, a mean of 31 students per class is impossible, because none of the district's classes have more than 30 students. What should be done in cases like this? Should the confidence interval be left as-is, or should it be "capped" to the values that are actually possible (i.e. "between 28 students and 30 students")?

• (1) Likert scale-items are ordinal not interval. They don't have a mean. (2) What are the proportions in each category, and what sample size is this for? (3) What assumptions were the CI calculation done under? (4) Are those assumptions appropriate? Apr 10, 2013 at 0:12
• @Glen_b (1) I think a mean could still be useful in analyzing these data. In any case, the Likert scale is just an example. It could be something else that has a well-defined possible range of possible responses/values. (2) I'm not sure what you mean by "the proportions in each category." The sample size is small: around 100. (3) I'm assuming that the survey itself is unbiased and that responses are independent, and that it was distributed to random people within the population. We'll also say that the sampling distribution is nearly normal, though this is admittedly unlikely for Likert. Apr 10, 2013 at 16:06
• A likert scale item has ordered categories like "Strongly agree" and "Agree" etc. I was asking for the proportions of answers in each of those. [It's possible you actually meant Likert scale in its proper sense (a thing is truly only a Likert scale after you add the items up, either in a direct or weighted sum), in which case my question would not make sense.] Apr 10, 2013 at 22:46
• (ctd) It looks like you missed the point of the last question. What do the data look like? How does the actual appearance of the data compare with the assumptions involved in the CI calculation you did? Why, if they're very different, would the CI do sensible things? Apr 10, 2013 at 22:47
• Not exactly "impossible" since among other things, it depends on a specific definition of 'approximately normal' and on the sample size. But if it happens, it's a pretty clear suggestion that the accuracy of the normal approximation on which the CI was based isn't sufficient for your purposes. In some cases truncating the interval is reasonable, but my instinct is usually to abandon it and do something better suited to the situation. It's akin to CI's for the binomial $p$ when $p$ is small - normality doesn't really apply. Apr 11, 2013 at 12:47