document.write( "Question 459100: The US Department of Agriculture claims that the mean consumption of coffee by a person in the US is 24.2 gallons. A random sample of 120 people shows that the mean consumption is 23.5 gallons per year with a standard deviation of 3.2 gallons. At significance level 0.05 can you reject the claim?\r
\n" ); document.write( "\n" ); document.write( "I set Ho: u=24.2, Ha: u=23.5, found the z-score to be -2.4. I used that to find the p-value, which I got .0164, but I'm not sure if that's right.
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #314870 by jim_thompson5910(35256)\"\" \"About 
You can put this solution on YOUR website!
Ha should be \"mu%3C%3E24.2\"\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Because we do NOT know the population standard deviation, we CANNOT use the z test statistic. We must use the t test statistic (note: the sample size of 120 is large enough to get away with using a normal distribution, since the T distribution approaches a normal distribution for large n, but it's better to stick with T if you don't know the population standard deviation)\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "That test statistic is \r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( " which rounds to \"t=-2.4\". So you have the correct value, just the wrong distribution.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now use a calculator, or a table, to find the area under the curve T distribution curve from negative infinity to \"t=-2.4\" (note: the degrees of freedom are equal to 120 - 1 = 119). This area is equal to 0.0089728\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Double this area (this is a two tailed test) to get 2* 0.0089728 = 0.0179456\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So the p-value is roughly 0.018 (rounded to three places)(so you're close)\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Since the p-value is less than alpha at 0.05, this means that we reject the null hypothesis.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Remember the claim was \"the mean consumption of coffee by a person in the US is 24.2 gallons.\", so the claim was Ho: \"mu=24.2\". Because we rejected Ho (the null hypothesis), this means that we reject the claim that \"the mean consumption of coffee by a person in the US is 24.2 gallons.\"
\n" ); document.write( "
\n" );