# 8.1.1.2 - Minitab: Confidence Interval for a Proportion

8.1.1.2 - Minitab: Confidence Interval for a Proportion

Before we can construct a confidence interval for a proportion we must first determine if we should use the exact method or the normal approximation method. Recall that if $$np \geq 10$$ and $$n(1-p) \geq 10$$ then the sampling distribution can be approximated by a normal distribution. Since we don't have the population proportion ($$p$$), we using $$\widehat p$$ as an estimate. Note that $$n\widehat p$$ is the number of successes in the sample and $$n(1-\widehat p)$$ is the number of failures in the sample.

If this assumption has not been met, then the sampling distribution is constructed using a binomial distribution which Minitab refers to as the "exact method."

To check this assumption we can construct a frequency table. You first learned how to construct a frequency table in Lesson 2.1.1.2.1 of these online notes. Here is another example:

## Minitab® – Frequency Tables

To create a frequency table of dog ownership in Minitab:

1. Open the data set:
2. From the toolbar in Minitab, select Stat > Tables > Tally Individual Variables
3. Double click the variable Dog in the box on the left to insert the variable into the Variable box
4. Under Display, choose Counts
5. Click OK

This should result in the following frequency table:

Tally
Dog Count
No 252
Yes 272
N= 524
*= 1

From the frequency table above we can see that there were at least 10 "successes" and at least 10 "failures" in the sample. In this example a success is defined as answering "yes" to the question "do you own a dog?" A failure is defined as answering "no." Because both $$n \widehat p \geq 10$$ and $$n(1- \widehat p) \geq 10$$, the normal approximation method may be used. In Minitab, the exact method is the default method. If there are at least 10 successes and at least 10 failures, then you need to change the method to the normal approximation method.

## Minitab® – Confidence Interval for a Proportion (Normal Approximation)

To create a 95% confidence interval of dog ownership using the normal approximation method in Minitab:

1. Open the data set: fall2016stdata.mpx
2. In Minitab, select Stat > Basic Statistics > 1-Proportion
3. In this case we have our data in the Minitab worksheet so we will use the default One or more samples each in a column.
4. Double click the variable Dog in the box on the left to insert the variable into the box.
5. Select Options
6. The default Confidence level is 95
7. Change the Method to Normal approximation because the assumption of $$n \widehat p \geq 10$$ and $$n(1- \widehat p) \geq 10$$ has been met
8. Click OK

This should result in the following output:

#### Method

Event: Dog = Yes

p: proportion where Dog = Yes

Normal approximation is used for this analysis.

Descriptive Statistics
N Event Sample p 95% CI for p
524 272 0.519084 (0.476304, 0.561863)

## What if the assumption is not met?

If the number of successes or the number of failures in the sample is less than 10, then the exact method should be used instead of the normal approximation method. In Minitab, this means that in step 8 above the default setting of Exact method should not be changed.

What if we have summarized data and not data in a Minitab worksheet?

If you do not have a Minitab worksheet filled with data concerning individuals, but instead have summarized data (e.g., the number of successes and the number of failures), you would not load the data set, but in step 3 you would select Summarized data. For Number of events, enter the number of successes (i.e., $$n \widehat p$$) and for Number of trials enter the total sample size (i.e., $$n$$).

# 8.1.1.2.1 - Example with Summarized Data

8.1.1.2.1 - Example with Summarized Data

## Example: Lactose Intolerance

In a sample of 100 African American adults, 70 were identified as having some level of lactose intolerance. Compute a 95% confidence interval to estimate the proportion of all African American adults who have some level of lactose intolerance.

To create a 95% confidence interval of dog ownership using the normal approximation method in Minitab:

In Minitab, select Stat > Basic Statistics > 1-Proportion
1. In this case we have summarized data so select Summarized data in the dropdown.
2. For number of events, add 70 and for number of trials add 100.
3. Select Options
4. The default Confidence level is 95.
5. Change the Method to Normal approximation because the assumption of $$n \widehat p \geq 10$$ and $$n(1- \widehat p) \geq 10$$ has been met
6. Click OK and OK.

This should result in the following output:

#### Method

p: event proportion

Normal approximation is used for this analysis.

Descriptive Statistics
N Event Sample p 95% CI for p
100 70 0.700000 (0.610183, 0.789817)

# 8.1.1.2.2 - Example with Summarized Data

8.1.1.2.2 - Example with Summarized Data

## Example: Dieting

At the beginning of the Fall 2016 semester a representative sample of World Campus STAT 200 students was surveyed. The students were asked if they were currently dieting to lose weight. In the sample of 524 students, 184 said that they were dieting to lose weight. Construct a 95% confidence interval for the proportion of all World Campus STAT 200 students who are dieting to lose weight.

In Minitab, select Stat > Basic Statistics > 1-Proportion
1. In this case we have summarized data so select Summarized data in the dropdown.
2. For number of events, add 184 and for number of trials add 524.
3. Select Options
4. The default Confidence level is 95.
5. Change the Method to Normal approximation because the assumption of $$n \widehat p \geq 10$$ and $$n(1- \widehat p) \geq 10$$ has been met
6. Click OK and OK.

This should result in the following output:

#### Method

p: event proportion

Normal approximation is used for this analysis.

Descriptive Statistics
N Event Sample p 95% CI for p
524 184 0.351145 (0.310276, 0.392015)

  Link ↥ Has Tooltip/Popover Toggleable Visibility