Steply

Calculate 99% confidence interval: 588 of 1200 say yes

Step by step, with the reason for every step · Confidence interval for a proportion · University Statistics

Step by step

The question

Question: in a sample of 1200, 588 say yes: find the 99% confidence interval for the true proportion.

99% interval for p: 588 of 1200 say yes

1 Name the numbers

p prime is the part of the sample that says yes: x divided by n.

p′ = the part of the sample: x ÷ n

588 divided by 1200 is 0.49.

p′ = 5881200 = 0.49

q prime is the rest: 1 minus 0.49 is 0.51.

q′ = 1 − 0.49 = 0.51

Careful!

p prime is the fraction 0.49, not the count 588.

Careful: p′ is a part of 1: 588 ÷ 1200, not 588

Both counts, 588 and 612, are at least 5.

So the normal bell works here.

n × p′ = 588, n × q′ = 612: both at least 5

2 Find z*

99 percent of the bell is in the middle.

That leaves 1 percent: 0.5 percent in each end.

99% in the middle: 1% left over, 0.5% in each end

z* marks the cut between the middle and the ends.

Left of z* are the middle and one end: 0.99 plus 0.005 is 0.9950.

left of z* = 0.99 + 0.005 = 0.9950

Now we look for 0.9950 inside the table.

0.9950 is halfway between 0.9949 and 0.9951.

So z is halfway between 2.57 and 2.58: 2.575.

With more digits it is 2.576.

That is the number books use.

with more digits: z* = 2.576
z* = 2.576

3 Error bound

The error bound for a proportion: z* times the square root of p prime times q prime over n.

EBP = z* × √p′ q′n

0.49 times 0.51 is 0.2499.

Divided by 1200: 0.00020825.

p′ q′n = 0.49 × 0.511200 = 0.24991200 = 0.00020825

The square root of that is about 0.0144.

√p′ q′n = √0.00020825 ≈ 0.0144

Times 2.576: about 0.0372.

EBP = 2.576 × 0.0144 ≈ 0.0372

4 The interval

Take the error bound away from the middle: 0.49 minus 0.0372 is 0.4528.

= p′ − EBP = 0.49 − 0.0372 = 0.4528

And add it: 0.49 plus 0.0372 is 0.5272.

= p′ + EBP = 0.49 + 0.0372 = 0.5272

The 99 percent confidence interval is (0.4528, 0.5272).

= (0.4528, 0.5272)

5 Say it in words

In words: we are 99 percent confident that the true proportion is between 45.28% and 52.72%.

99% confident: between 45.28% and 52.72%

6 Check

Let's check: the middle of the interval should be 0.49.

0.4528 plus 0.5272, divided by 2, is 0.49.

middle: (0.4528 + 0.5272) ÷ 2 = 0.49

Half the width should be the error bound: 0.5272 minus 0.4528, divided by 2, is 0.0372.

So it is right!

half the width: (0.5272 − 0.4528) ÷ 2 = 0.0372

Let's look back.

First: name the numbers.

Then: find z*.

Then: error bound.

Then: the interval.

Then: say it in words.

Last: check.

Answer
= (0.4528, 0.5272)

Your turn

Try this one yourself, then check:

99% interval for p: 325 of 500 say yes
Show the answer
(0.5951, 0.7049)

More from Confidence interval for a proportion

The whole lesson: Confidence interval for a proportion →