Confidence Interval Critical Values


Confidence Interval Critical Values

Michael
Let’s work through the new exam topics: t critical values and confidence intervals, hypothesis setup, p-values, and critical-value tests. The first big question is whether we use a z procedure or a t procedure. That depends on what we know about the population standard deviation.

Simon
Right. If the population standard deviation, sigma, is unknown and we’re using the sample standard deviation, s, we use t. We also need the degrees of freedom, which for these one-sample t procedures are the sample size minus one.

Michael
For a 98% confidence interval with a sample size of 29, the degrees of freedom are 29 minus 1, or 28. Find the 98% confidence level and 28 degrees of freedom in the t table, and the critical value is about 2.467.

Simon
And notice what information we needed: the confidence level and the degrees of freedom. For a confidence interval, we use the confidence level directly; we don’t start by choosing an alpha the way we do in a hypothesis test.

Michael
Now let’s build the confidence interval where the sample standard deviation is known, but the population standard deviation is not. Here, the confidence level is 90%, the sample size is 15, and the degrees of freedom are 14. The t table gives a critical value of 1.761.

Simon
The interval is the sample mean plus or minus the margin of error. With a t procedure, the margin of error is the critical t value multiplied by s divided by the square root of n.

Michael
In this example, the sample mean is 13.9, s is 0.76, and n is 15. So the margin of error is 1.761 times 0.76 divided by the square root of 15, which is about 0.346.

Simon
Subtract and add that margin to 13.9. The endpoints are about 13.554 and 14.246, which round to 13.6 and 14.2 to one decimal place. The resulting 90% confidence interval is 13.6 to 14.2.

Michael
Next, hypothesis tests. The alternative hypothesis tells us which kind of test we have: left-tailed, right-tailed, or two-tailed. If the alternative says the mean is less than 8.2, we’re looking for evidence in the left tail.

Simon
If the alternative says the mean is greater than 8.2, it’s a right-tailed test. And if it says the mean is not equal to 8.2, either unusually low or unusually high results count, so it’s a two-tailed test.

Michael
You can also translate a claim into hypotheses. Suppose a pharmaceutical company claims the mean cost of a 30-day supply of a heart medication is more than $93, and we want to test that claim. The claim becomes the alternative: the mean is greater than $93.

Simon
Then the null is the opposite, including equality: the mean is less than or equal to $93. The equality belongs in the null hypothesis. That also tells us this is a right-tailed test.

Michael
A quick way to make a decision using a p-value is to compare it with alpha, the significance level. If the p-value is less than or equal to alpha, reject the null hypothesis. If it’s greater than alpha, fail to reject the null.

Simon
For a p-value of 0.0767, compare it against three different significance levels. At alpha 0.01, the p-value is larger, so we fail to reject. At alpha 0.05, it’s still larger, so we fail to reject again.

Michael
But at alpha 0.10, 0.0767 is smaller than alpha, so we reject the null hypothesis. The decision changes because the significance level changes. And the decision is always about the null: reject it, or fail to reject it.

Simon
You can also make a decision using a critical value. For a left-tailed z test with alpha 0.02, the rejection region has area 0.02 in the left tail. In a standard normal table, look for the probability closest to 0.02.

Michael
The closest table probability gives a critical z value of about negative 2.05. The rejection region is to the left of that value, with the area alpha in that tail. That’s the picture to keep in mind for a left-tailed critical-value test.

Simon
Now let’s use a z test in context. A nutritionist claims that average annual tuna consumption is 3.3 pounds. A sample of 50 people has a mean of 3.2 pounds, and the population standard deviation is given as 1.13 pounds.

Michael
Because sigma is given, use z. The claim has an equality, so it goes in the null hypothesis: the mean is 3.3 pounds. The alternative is that the mean is not 3.3 pounds, which makes this a two-tailed test.

Simon
The test statistic for a sample mean is the sample mean minus the hypothesized mean, divided by sigma over the square root of n. Here that’s 3.2 minus 3.3, divided by 1.13 over the square root of 50, giving a z score of about negative 0.63.

Michael
For a two-tailed test, use both tails. The area beyond a z score of 0.63 on one side is about 0.2643, so double it. The p-value is approximately 0.5286.

Simon
At alpha 0.10, that p-value is larger than alpha, so we fail to reject the null hypothesis. In context, there isn’t sufficient evidence to reject the claim that mean annual tuna consumption is 3.3 pounds. That doesn’t prove the claim is true; it means this test didn’t provide enough evidence against it.

Michael
The final example switches back to t: an employment information service claims the mean annual salary for senior product engineers is $99,000. A random sample of 16 engineers is given, and the test uses alpha 0.10. Since the population standard deviation isn’t provided and the sample standard deviation must be used, this is a t test.

Simon
Because the claim is that the mean equals $99,000, it belongs in the null hypothesis. The alternative is that the mean is not $99,000, so the test is two-tailed. With 16 observations, the degrees of freedom are 15.

Michael
To finish that test, calculate the sample mean and sample standard deviation from the data, then use them to find the t statistic. Compare it with the two-tailed critical values for alpha 0.10, or find its p-value and compare that with 0.10. The worked example doesn’t reach a reliable final calculation or decision, so the key takeaways are the hypotheses, the choice of t, and the degrees of freedom.

Ask anything
We've read this whole study set, so questions about it get the best answers.