document.write( "Question 1177451: At the Fredericton High School it is estimated that at most 25% of the students ride bikes to school. Does this seem to be a valid estimate if, in a random sample of 90 high school students, 20 are found to ride bikes to school? Use = 0.01. Find the p-value for this test. \n" ); document.write( "
Algebra.Com's Answer #850456 by CPhill(1987)\"\" \"About 
You can put this solution on YOUR website!
We're going to conduct a hypothesis test for a proportion.\r
\n" ); document.write( "\n" ); document.write( "Let $p$ be the true proportion of students who ride bikes to school.\r
\n" ); document.write( "\n" ); document.write( "1. **Hypotheses:**
\n" ); document.write( " * Null hypothesis: $p \le 0.25$ (The estimate is valid.)
\n" ); document.write( " * Alternative hypothesis: $p > 0.25$ (The estimate is not valid; the true proportion is higher.)\r
\n" ); document.write( "\n" ); document.write( "2. **Test statistic:**
\n" ); document.write( " We use the z-statistic for proportions:
\n" ); document.write( " ```
\n" ); document.write( " z = \frac{\hat{p} - p_0}{\sqrt{p_0 (1 - p_0) / n}}
\n" ); document.write( " ```
\n" ); document.write( " where $\hat{p} = \frac{20}{90} = \frac{2}{9}$ is the sample proportion, $p_0 = 0.25$ is the hypothesized proportion, and $n = 90$ is the sample size. This gives us
\n" ); document.write( " ```
\n" ); document.write( " z = \frac{\frac{2}{9} - 0.25}{\sqrt{0.25 (1 - 0.25) / 90}} \approx -0.23.
\n" ); document.write( " ```\r
\n" ); document.write( "\n" ); document.write( "3. **P-value:**
\n" ); document.write( " The p-value is the probability of observing a sample proportion as extreme as $\hat{p} = \frac{2}{9}$, assuming the null hypothesis is true. Since this is a right-tailed test, the p-value is
\n" ); document.write( " ```
\n" ); document.write( " P(Z > -0.23) = 1 - P(Z \le -0.23) \approx 1 - 0.4090 = 0.5910.
\n" ); document.write( " ```\r
\n" ); document.write( "\n" ); document.write( "4. **Conclusion:**
\n" ); document.write( " Since the p-value (0.5910) is greater than $\alpha = 0.01$, we fail to reject the null hypothesis. There is not enough evidence to conclude that the estimate of at most 25% of students riding bikes to school is not valid.
\n" ); document.write( "
\n" );