Confidence Interval Critical Values
Confidence Intervals and Hypothesis Testing
Choosing a Critical Value for a Confidence Interval
A confidence-interval critical value depends on the confidence level and, when using the t distribution, the degrees of freedom.
Degrees of freedom
For a one-sample t procedure, calculate degrees of freedom as
where n is the sample size.
Example: 98% confidence level
For a sample of 29, the degrees of freedom are
Looking up a 98% confidence level with 28 degrees of freedom gives the critical value
Choosing between a z and a t critical value
Use a t critical value when the population standard deviation σ is unknown and the sample standard deviation s is used.
Use a z critical value when the population standard deviation σ is known.
Constructing a t Confidence Interval for a Mean
When the population standard deviation is unknown, a confidence interval for the population mean is calculated using the sample mean, the sample standard deviation, and a t critical value.
Here, xˉ is the sample mean, s is the sample standard deviation, n is the sample size, and t∗ is determined by the confidence level and degrees of freedom.
Example: 90% confidence interval
Suppose a sample has:
Sample mean xˉ=13.9
Sample standard deviation s=0.76
Sample size n=15
Confidence level of 90%
The degrees of freedom are
The corresponding critical value is t∗=1.761. The margin of error is
The interval is
Its endpoints are approximately 13.554 and 14.246. Rounded to one decimal place, the 90% confidence interval is
This interval gives a range of plausible values for the population mean. It does not mean that 90% of individual observations fall within the interval.
Determining the Tail of a Hypothesis Test
The alternative hypothesis determines whether a test is left-tailed, right-tailed, or two-tailed. The direction of the alternative identifies the kind of evidence being investigated.
A left-tailed test uses an alternative of the form μ<c.
A right-tailed test uses an alternative of the form μ>c.
A two-tailed test uses an alternative of the form μ=c.
For example, if the alternative says that a mean is less than 8.2, the rejection region is in the left tail. If the alternative says that the mean is greater than 8.2, the rejection region is in the right tail. If the alternative says that the mean differs from 8.2, the test is two-tailed, with rejection regions in both tails.
The null hypothesis includes equality; the alternative hypothesis expresses the direction or difference the test is seeking evidence for.
Writing Null and Alternative Hypotheses
A claim about a population mean is translated into hypotheses by identifying whether the claim includes equality and whether it specifies a direction.
Example: Claim that a cost is more than 93
Suppose a pharmaceutical company claims that the mean cost of a 30-day supply of a medication is more than 93.
The claim is directional and does not include equality, so it belongs in the alternative hypothesis:
The null hypothesis is the opposing statement and includes equality:
For calculating many test statistics, the null hypothesis is evaluated at its boundary value, μ=93. The claim is not automatically the null hypothesis: a claim containing equality generally goes in H0, while a directional claim such as “greater than” goes in Ha.
Using a p-Value to Make a Decision
The p-value measures how unusual the observed result would be if the null hypothesis were true. Compare it with the significance level α:
If p≤α, reject the null hypothesis.
If p>α, fail to reject the null hypothesis.
The decision is always stated about the null hypothesis. “Fail to reject” does not prove that the null hypothesis is true; it means the evidence is not strong enough to reject it at the chosen significance level.
Example: Comparing p=0.0767 with different significance levels
At α=0.01, 0.0767>0.01, so fail to reject H0.
At α=0.05, 0.0767>0.05, so fail to reject H0.
At α=0.10, 0.0767<0.10, so reject H0.
The same p-value can therefore lead to different decisions at different significance levels.
Finding a Critical z Value for a Left-Tailed Test
A critical-value test compares the test statistic with a cutoff that defines the rejection region. For a left-tailed test, the rejection region lies to the left of the critical value, and its area is α.
For a left-tailed z test with α=0.02, the critical value is the z-score with approximately 0.02 of the standard normal distribution’s area to its left:
The negative sign is appropriate because the cutoff lies in the left tail. The rejection region is
A test statistic below this cutoff leads to rejection of H0; a test statistic above it does not fall in the rejection region.
One-Sample z Test for a Population Mean
A one-sample z test for a mean is used when the population standard deviation σ is known. Its standardized test statistic is
where xˉ is the sample mean, μ0 is the mean specified by the null hypothesis, σ is the population standard deviation, and n is the sample size.
Example: Tuna consumption
A nutritionist’s claim is that average annual tuna consumption is 3.3 pounds per person. A sample of 50 people has a mean of 3.2 pounds, and the population standard deviation is given as 1.13 pounds. The significance level is 0.10.
Because the claim includes equality, it is the null hypothesis:
The alternative is that the mean differs from the claimed amount:
This is a two-tailed test. The test statistic is
For a two-tailed test, the p-value includes the corresponding tail area on both sides of the distribution. The area beyond z=−0.63 on the left is approximately 0.2643. Doubling that area gives
Since 0.5286>0.10, the decision is to fail to reject H0. There is not sufficient evidence at the 0.10 significance level to reject the claim that mean annual tuna consumption is 3.3 pounds per person. This conclusion does not prove that the mean is exactly 3.3 pounds.
Hypothesis Testing for a Mean When the Population Standard Deviation Is Unknown
When σ is unknown and a sample standard deviation s is used, the test uses the t distribution rather than the z distribution. The test statistic is
The degrees of freedom are n−1. For a claim that the mean equals a specified value, the hypotheses are typically
and
This alternative makes the test two-tailed. The critical values are then located in both tails, with α/2 in each tail.
Salary example: Setting up the test
An employment information service claims that the mean annual salary for senior-level product engineers is 99,000. The equality claim belongs in the null hypothesis:
The alternative is
The source describes the sample size inconsistently as both 15 and 16, so the exact degrees of freedom cannot be determined from the information given. If n=15, then df=14; if n=16, then df=15. With α=0.10 and a two-tailed alternative, each tail contains 0.05 of the distribution’s area.
The source also reports summary values of 205.5 and 233.8644, but their roles and units are unclear. Because those figures cannot be reliably matched to the sample mean and sample standard deviation, the test statistic and final decision cannot be determined from the available information. A complete calculation requires a verified sample size, sample mean, and sample standard deviation, all expressed in units consistent with the claimed salary.

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