document.write( "Question 1189881: The IRS claims that it takes 90 minutes to prepare a tax form. You believe it takes longer than 90 minutes. You ask 22 tax filers and find the following preparation times:
\n" ); document.write( "66, 69, 78, 79, 87, 87, 89, 96, 96, 97, 98, 98, 99, 100, 100, 105, 108, 115, 117, 118, 122, 125\r
\n" ); document.write( "\n" ); document.write( "Determine if the preparation time is significantly longer than 90 minutes. Use α = .025.
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #821408 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Hypotheses:
\n" ); document.write( "H0: mu = 90
\n" ); document.write( "H1: mu > 90
\n" ); document.write( "mu = population mean of the tax prep times (in minutes)
\n" ); document.write( "This is a right-tailed test due directly to the inequality sign in H1\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Given Data Set
\n" ); document.write( "{66, 69, 78, 79, 87, 87, 89, 96, 96, 97, 98, 98, 99, 100, 100, 105, 108, 115, 117, 118, 122, 125}
\n" ); document.write( "sample size = n = 22\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Since we don't know sigma, and n is not larger than 30, this means we'll use the T distribution (instead of the Z distribution).
\n" ); document.write( "The T distribution has degrees of freedom = df = n-1 = 22-1 = 21\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Add up the values in the data set and divide by n = 22 to compute the sample mean xbar.
\n" ); document.write( "You should find that the values add to 2149\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So, xbar = 2149/22 = 97.68182 approximately
\n" ); document.write( "Based on this xbar value alone, it appears the mean tax prep time is over 90 minutes.
\n" ); document.write( "However, this might be due to random chance and bad luck.
\n" ); document.write( "Perhaps we could do the experiment again to randomly select 22 other people and get some xbar 90 or smaller?
\n" ); document.write( "We'll have to take into account the standard deviation (and subsequently the standard error).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Use your calculator to compute the sample standard deviation of that original set. You should get roughly
\n" ); document.write( "s = 16.13746
\n" ); document.write( "Make sure you use the sample standard deviation and not the population standard deviation. There's a subtle difference.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "This leads to a standard error (SE) of...
\n" ); document.write( "SE = s/sqrt(n)
\n" ); document.write( "SE = 16.13746/sqrt(22)
\n" ); document.write( "SE = 3.44052
\n" ); document.write( "which is also approximate\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "--------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We found that
\n" ); document.write( "mu = 90
\n" ); document.write( "xbar = 97.68182
\n" ); document.write( "SE = 3.44052\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The test statistic is
\n" ); document.write( "t = (xbar - mu)/SE
\n" ); document.write( "t = (97.68182 - 90)/3.44052
\n" ); document.write( "t = 2.23274970062664
\n" ); document.write( "t = 2.23\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now to calculate the p-value.
\n" ); document.write( "You can use a T Table such as this one (or anything similar found in the back of your stats textbook)
\n" ); document.write( "http://www.ttable.org/
\n" ); document.write( "Look in the row df = 21
\n" ); document.write( "Try to see if 2.23 is in that row. Unfortunately it isn't. But it's between 2.080 and 2.518
\n" ); document.write( "Trace back up those respective columns and locate the \"one tail\" values in bold.
\n" ); document.write( "For the 2.080, that one tail value is 0.025
\n" ); document.write( "For the 2.518, that one tail value is 0.01\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "While we can't nail down the p-value exactly, we know that it's somewhere between 0.01 and 0.025
\n" ); document.write( "In other words,
\n" ); document.write( "0.01 < pvalue < 0.025\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The level of significance was alpha = 0.025
\n" ); document.write( "Whatever the p-value is, it's definitely smaller than alpha.
\n" ); document.write( "We reject the null based on this. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The rule is if pvalue < alpha, then you reject the null.
\n" ); document.write( "A good way to remember the rule is to think of the phrase \"if the p-value is low, then the null must go\".\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If you were to use a p-value calculator such as this
\n" ); document.write( "https://www.omnicalculator.com/statistics/p-value
\n" ); document.write( "then you'd find the p-value is roughly 0.018395 which helps confirm our decision.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Here's a screenshot of a piece of that page to show the inputs and output.
\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If you were to use a t-value calculator such as this
\n" ); document.write( "https://calculators.io/t-value-calculator/
\n" ); document.write( "Then you should find the T-value (right-tailed) is roughly 2.0796. Anything larger than this critical cut-off point will be in the rejection region.
\n" ); document.write( "Since t = 2.23 is larger than 2.0796, we'll reject the null.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So there are a few approaches we can take to see that we reject the null hypothesis.
\n" ); document.write( "We side with the alternative that mu > 90.
\n" ); document.write( "It appears that the mean tax prep time is longer than 90 minutes.
\n" ); document.write( "
\n" ); document.write( "
\n" );