Statistics Question of a Confidence Interval of a Proportion

Hi;

In my example (see attached notebook), the values calculated by the NormalCI[] function does not equal the values calculated by the table and it my understanding that the two calculation methods should give the same answer since I am using a normal distribution. Using the attached notebook, I tried different confidence intervals in the NormalCI[] function, but none of the results matched the table calculated values. Mostly likely it is something that I am doing incorrectly.

Thanks,

Mitch Sandlin

Proportionsquestion.nb (12.3 KB)

That’s because your table values for i are the confidence levels and the table should be constructed in the following manner:

Table[{i, 
  13/147 - InverseCDF[NormalDistribution[0, 1], 1 - (1 - i)/2]*Sqrt[(13/147 (1 - 13/147))/147], 
  13/147 + InverseCDF[NormalDistribution[0, 1], 1 - (1 - i)/2]*Sqrt[(13/147 (1 - 13/147))/147]},
    {i, {.80, .85, .90, .95, .98, .99}}] // TableForm