document.write( "Question 1188020: A federal report indicated that 27% of children ages 2 to 5 years had a good diet—an increase
\n" ); document.write( "over previous years. How large a sample is needed to estimate the true proportion of children with good diets within 2% with 95% confidence?
\n" ); document.write( "

Algebra.Com's Answer #819085 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
p = .27
\n" ); document.write( "q = .73
\n" ); document.write( "s = sqrt(.27 * .73 / n)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "p is the mean proportion.
\n" ); document.write( "q is 1 minus the mean proportion.
\n" ); document.write( "i think that s is the standard error of the mean proportion.
\n" ); document.write( "that's because it is used as the standard error in the calculation, even though they call it the standard deviation.
\n" ); document.write( "very confusing, but it works.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "at 95% two tailed confidence interval, the critical alpha is .025 on each end.
\n" ); document.write( "the critical z-score becomes plus or minus 1.96.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the z-score formula is z = (x - m) / s\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "z is the z-score.
\n" ); document.write( "x - m is the sample mean proportion minus the population mean proportion.
\n" ); document.write( "s is the standard error.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "since we want the margin of error to be plus or minus 2% of the mean, then (x - m) must be equal to .02 * the mean proportion.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( ".02 * .27 = .0054.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the z-score formula becomes:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "1.96 = .0054 / sqrt(.27 * .73 / n)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "multiply both sides of this equation by sqrt(.27 * .73 / n) and divide both sides of this equation by 1.96 to get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "sqrt(.27 * .73 / n) = .0054 / 1.96\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "square both sides of this equation to get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( ".27 * .73 / n = (.0054 / 1.96) ^ 2\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "multiply both sides of this equation by n and divide both sides of this equation by .(.0054 / 1.96) ^ 2 to get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( ".27 * .73 / (.0054 / 1.96) ^ 2 = n\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "solve for n to get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "n = 25966.37037.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "that is the sample size required for the margin of error to be plus or minus 2% of the mean.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "with that sample size, the standard error becomes sqrt(.27 * .73 / that) = .002755102.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "with a mean of .27 and that standard error and a critical z-score of 1.96, the z-score formula becomes:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "1.96 = (x - .27) / .002755102.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "solve for x to get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x = 1.96 * .002755102 + .27 = .2754.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the difference between .2754 and .27 is .0054.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( ".0054 / .27 = .02, as predicted with that sample size.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "that's on the high side of the confidence interval.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "on the low side of the confidence interval, the z-score formula becomes:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-1.96 = (x - .27) / .002755102.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "solve for x to get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x = -1.96 * .002755102 + .27 = .2646.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the difference between .27 and .2646 is .0054 again, which, when divided by .0025 = .02.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "if you multiply the population mean proportion by the sample size and you multiply the standard error by the sample size, your formula of:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "p = .27
\n" ); document.write( "q = 1 - .27 = .73
\n" ); document.write( "s = sqrt(p * q / n) becomes:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "m = .27 * n
\n" ); document.write( "s = sqrt(p * q * n)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "n = 25966.37037, same as we calculated above.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "m = .27 * n = 7010.92
\n" ); document.write( "s = sqrt(.27 * .73 * 25966.37037) = 71.54.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "on the high side of the confidence interval, the critical z-score formula is:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "1.96 = (x - 7010.92) / 71.54\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "solve for x to get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x = 1.96 * 71.54 + 7010.92 = 7151.1384\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "7151.1384 minus 7010.92 = 140.2184 / 7010.92 = .02 which is off the mean by 2% of the mean.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "on the low side of the confidence interval, the critical z-score formula is:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-1.96 = (x - 7010.92) / 71.54.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "solve for x to get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x = -1.96 * 71.54 + 7010.92 = 6870.7016\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "7010.92 minus 6870.7016 = 140.2184 / 7010.92 = .02 which is off the mean by 2% of the mean.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the formulas works.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "your solution is that the sample size needs to be at least equal to 25966.37037 so that the margin of error will be at most 2% of the mean.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "a sample size larger than that will give you a margin of error less than 2% of the mean.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "for example, if the sample size is 30,000, then:\r
\n" ); document.write( "\n" ); document.write( "s = sqrt(.27 * .73 * 30000) = 76.896 rounded to 3 decimal places.
\n" ); document.write( "m = .27 * 30,000 = 8100.
\n" ); document.write( "the high side value of x will be 76.896 * 1.96 + 8100 = 8250.716 rounded to 3 decimal places.
\n" ); document.write( "8250.716 minus 8100 = 150.716 rounded to 3 decimal places
\n" ); document.write( "150.716 / 8100 = .0186 which rounds to .019 which is less than .02.
\n" ); document.write( "the margin of error is less than 2% of the mean in this case, because the sample size was larger than 25,966.37037.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "let me know if you have any questions.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "theo
\n" ); document.write( "
\n" );