Hypothesis Testing

Learn how statistics turns a sample into evidence about a claim. Set up null and alternative hypotheses, compute test statistics and p-values for a one-proportion z test and a one-sample t test of a mean, and decide with a significance level. Weigh the risks of Type I and Type II errors, connect tests with confidence intervals, and tell a statistically significant result from one that matters in practice.

BeginnerLesson 9 of 12 in Introduction to Statistics Course

What you will learn

  1. Explain the reasoning behind a significance test: state competing hypotheses about a population, measure how surprising the sample would be if the null hypothesis were true, make a decision, and recognize the two ways that decision can be wrong.
    • Turn a research question into null and alternative hypotheses
      Name the population parameter a question is about and write a null and an alternative hypothesis that are clear, testable and fixed before looking at the data.
    • Measure evidence with a test statistic and a p-value
      Use the sampling distribution under the null hypothesis to turn a sample result into a test statistic and a p-value, and read the p-value as a measure of how surprising the data would be if the null hypothesis were true.
    • Decide with a significance level and state the conclusion in context
      Compare the p-value with a significance level chosen in advance, decide whether to reject the null hypothesis, and write a conclusion about the population in the words of the problem.
    • Recognize Type I and Type II errors and their consequences
      Describe the two ways a test decision can be wrong, explain what each would mean in a real situation, and explain how the significance level and the sample size affect the chance of each.
  2. Carry out a one-proportion z test: check that the normal model fits, compute the z statistic from the null value, find the p-value, and conclude in context.
    • Check the conditions and compute the z statistic for a proportion
      Decide whether the normal model can be used for a sample proportion, and compute the standard error and the z statistic from the null value.
    • Find the p-value and conclude a one-proportion z test
      Use the standard normal distribution to find the p-value for a one-sided or two-sided alternative, make the decision and state what it means for the population.
  3. Carry out a one-sample t test: check its conditions, compute the t statistic and its p-value, conclude in context, and choose correctly between the tests for a mean and for a proportion.
    • Know when to use the t distribution and check its conditions
      Explain why a test for a mean with an unknown population standard deviation uses a t distribution, and check whether the sample makes the test trustworthy.
    • Carry out a one-sample t test from start to finish
      Compute the standard error, t statistic, degrees of freedom and p-value for a one-sided or two-sided test of a mean, and state the decision and conclusion in context.
    • Choose the right one-sample test and read software output
      Match a question to the test for a proportion or the test for a mean, recognize when neither fits, and read the results that calculators and statistics software report.
  4. Use confidence intervals alongside tests, judge whether a significant result matters in practice, and describe p-values and conclusions without the usual misreadings.
    • Connect hypothesis tests with confidence intervals
      Use a confidence interval to predict the decision of a test, explain when the two agree exactly, and use the interval to describe the size of a difference.
    • Tell statistical significance from practical importance
      Explain why a statistically significant result can be too small to matter and why a non-significant result can hide a large effect, and judge importance from the estimated difference.
    • Read p-values correctly and report results clearly
      State what a p-value does and does not mean, correct the common misreadings, and report a test so that a reader can judge its evidence.

Hypothesis Testing study guide

4 chapters

1

Understand how a hypothesis test weighs evidence

A hypothesis test starts with a population claim and asks whether sample variation can reasonably explain the observed departure. The research question fixes the direction of evidence before the sample arrives. A test statistic and p-value turn that question into a calculation; a significance level turns the calculation into a decision. Understanding what could go wrong helps you describe that decision without claiming certainty about the population.

1.1 Turn a research question into null and alternative hypotheses

A sample can differ from a claim even when the claim is right. A hypothesis test asks whether that difference is large enough to count as evidence about the population. Start by naming exactly what the claim describes.

Name the population and parameter

A parameter is a number describing a population or a long-run process. Use μ for a population mean, such as the average fill of every bottle from a production line. Use p for a population proportion, such as the share of residents who use transit weekly. The sample mean xˉ and sample proportion p^ estimate these numbers.

Hypotheses concern the unknown parameter. Writing H0:xˉ=500 misses the question: once the sample has been measured, its mean is already known. Define the population as well as the symbol, so a statement about one city's residents does not quietly become a statement about all residents nationwide.

Write the two hypotheses

The null hypothesis, H0, gives a fixed reference value. It represents no change, no effect, or agreement with a claimed value. The alternative hypothesis, Ha, states the departure the study seeks evidence for. You may also see it written as H1.

Research questionNull hypothesisAlternative
Has the mean increased above 500?μ=500μ>500
Has the mean fallen below 500?μ=500μ<500
Does the mean differ from 500?μ=500μ≠500

The alternatives are right-tailed, left-tailed, and two-sided, respectively. Use the same signs for a proportion. Equality belongs in the null; the alternative excludes the null value.

Work from the question

A juice label gives a mean fill of 500 mL. A consumer group suspects underfilling. Let μ be the mean fill of all bottles from that line. Write H0:μ=500 mL and Ha:μ<500 mL. A manager concerned about either overfilling or underfilling instead chooses Ha:μ≠500 mL.

For transit use, let p be the proportion of all city residents who use transit weekly. To investigate an increase from 30%, write H0:p=0.30 and Ha:p>0.30. The null value comes from the earlier claim, not from the new survey. Enter 0.30 in formulas, not 30.

Choose before seeing the result

Fix the alternative and the significance level before examining the data. A sample above the target cannot justify changing a planned two-sided test into a right-tailed test. That change makes the evidence appear stronger by selecting the favorable tail after the result is known.

A claim such as "batteries last at least 20 hours on average" is challenged by Ha:μ<20, with H0:μ=20 at the boundary. Some textbooks write the null as μ≥20. The calculation still uses 20, the boundary value. A result that fails to support underperformance leaves the company's claim unchallenged by this test; it does not establish the claimed lifetime.

Key Takeaways

  • Hypotheses describe a population mean or proportion, not the observed sample statistic.
  • The null value comes from the claim or benchmark; equality belongs in the null.
  • The research question determines the alternative: greater, less, or different.
  • Choose the hypotheses and significance level before examining the data.

1.2 Measure evidence with a test statistic and a p-value

Testing begins by temporarily treating the null hypothesis as true. That gives a model for the sample-to-sample variation we would expect. Evidence against the null comes from a result that is unusual within that model.

Put the difference on a common scale

The test statistic measures the difference from the null value in standard errors:

test statistic=sample statistic−null valuestandard error.

A statistic of 2 means the estimate is two standard errors above the null value. A statistic of −2 means it is two standard errors below. The sign describes direction; the distance from zero describes the standardized departure. The standard error measures how much the estimate varies across samples, not how much individual observations vary.

The null distribution describes the test statistic when the null is true. The statistic in a one-proportion z test approximately follows the standard normal distribution. A one-sample t test uses a t distribution with the appropriate degrees of freedom. Each model needs its conditions checked.

Read the tail area

The p-value is the probability, assuming the null and the test's conditions, of a statistic at least as extreme as the observed one in the direction of the alternative.

AlternativeArea counted
Greater thanRight of the observed statistic
Less thanLeft of the observed statistic
Not equal toBoth tails beyond its distance from zero

For a symmetric normal or t distribution, the two-sided area is twice the smaller tail beyond the observed statistic. "At least as extreme" includes results farther from the null, not just the observed value.

A coin example

Test H0:p=0.5 against Ha:p≠0.5. In 100 tosses, 60 are heads, giving p^=0.60. Under the null,

SE=0.5(0.5)100=0.05,z=0.60−0.500.05=2.

The normal area to the right of 2 is about 0.0228. Counting both tails gives a p-value of about 0.0455. Under the fair-coin normal model, a statistic at least this far from zero occurs in about 4.6% of samples of this size.

The same proportion from only 25 tosses gives SE=0.10 and z=1. Its two-sided p-value is about 0.317. The observed share is unchanged, but the smaller sample leaves more sampling variation, so it provides weaker evidence.

Simulate the null model

A computer can repeatedly simulate 100 tosses of a fair coin, calculate each statistic, and count the share at least as far from zero as the observed one. That share estimates the p-value. Simulating the null is essential: using a coin set to the observed 60% would answer a different question.

A p-value of 0.0455 is a probability about possible data under a fair-coin model. It is not a 4.55% probability that the coin is fair. Nor does subtracting it from 1 give the probability that the coin is unfair. The model was assumed to calculate the probability; its truth was not assigned a probability by the test.

Key Takeaways

  • The test statistic counts the estimate’s distance from the null in standard errors.
  • The null distribution describes the statistic when the null hypothesis is true.
  • A p-value counts results at least as extreme as observed in the alternative’s direction.
  • Smaller p-values give stronger evidence against the null model.
  • The p-value is a probability about data under the null, not the probability of a hypothesis.

1.3 Decide with a significance level and state the conclusion in context

A p-value describes evidence on a continuous scale. A significance level turns that evidence into a decision rule. State the rule before collecting or examining the data so the cutoff is independent of the result.

Compare the p-value with the cutoff

The significance level, α, is the largest p-value that leads to rejection. Common choices are 0.10, 0.05, and 0.01; 0.05 is the usual default when a level is not specified. A smaller level demands stronger evidence.

ComparisonDecisionDescription
p-value ≤αReject H0Statistically significant at this level
p-value >αFail to reject H0Not statistically significant at this level

Use the unrounded p-value when it is close to the cutoff. A displayed value of 0.050 may conceal a value on either side. Report enough precision to make the comparison clear.

For the coin with a two-sided p-value of about 0.0455, reject at 0.05 or 0.10. At 0.01, fail to reject. The data and p-value stay the same; only the previously chosen standard for rejection changes.

Say what the decision means

A useful conclusion gives the comparison, the decision, and the population claim. For the coin: "Because 0.0455 is below 0.05, reject the fair-coin null hypothesis. There is convincing evidence that the long-run probability of heads differs from one half."

For a p-value of 0.317, write: "Because 0.317 is above 0.05, fail to reject the null hypothesis. There is not convincing evidence that the long-run probability of heads differs from one half."

Fail to reject leaves the null among the values consistent with the evidence. It does not establish it as the correct value. A small sample can miss a real departure. A legal verdict of "not guilty" offers a useful analogy: evidence fell short of the required standard, which is different from demonstrating innocence.

Conclusions concern the population parameter. Saying "the sample proportion differs from 0.5" only repeats an observed fact. The statistical question is whether the sample supports a departure in the population or long-run process.

Use a rejection region

A critical value marks the boundary of a rejection region in the test statistic's distribution. For a two-sided z test at 0.05, the boundaries are −1.96 and 1.96. The coin's z=2 falls beyond the upper boundary, giving the same decision as its p-value.

For a right-tailed z test at 0.05, reject at or above 1.645; for a left-tailed test, at or below −1.645. For a two-sided z test at 0.01, the boundaries are approximately ±2.576. A t test needs critical values for its degrees of freedom.

Keep the whole test visible

A complete analysis states the parameter, hypotheses, and level; checks conditions; calculates the test statistic; finds the matching p-value; makes the decision; and gives the conclusion in context. A small p-value cannot repair a poor sample design, so the condition checks belong before the calculation.

Key Takeaways

  • Reject when the p-value is at or below the level chosen in advance.
  • Failing to reject means the evidence fell short, not that the null is established.
  • A critical-value comparison and the corresponding p-value comparison give the same decision.
  • Conclusions name the population and describe evidence for the alternative.
  • Check conditions before relying on a test’s calculation.

1.4 Recognize Type I and Type II errors and their consequences

A test makes a decision from incomplete information, so it can be wrong. To identify the error, keep two questions separate: what is really true about the population, and what decision did the test make?

Match truth with decision
RealityReject the nullFail to reject the null
The null is trueType I errorCorrect decision
The null is falseCorrect decisionType II error

A Type I error is a false alarm: rejecting a true null. A Type II error is a missed effect: failing to reject a false null. The labels refer to the whole decision, not an arithmetic error in the calculation.

For juice bottles, use H0:μ=500 mL and Ha:μ<500 mL. A Type I error concludes that the line underfills when its true mean is 500 mL. The company might stop production or recalibrate a machine unnecessarily. A Type II error misses actual underfilling, leaving customers with less juice than promised.

Understand the probabilities

The level α controls false alarms under the null model. For a random sample from a normal population, the one-sample t test's Type I error probability equals its level. The same holds for a mean z test under its exact model. The one-proportion z test is approximate, so its false-alarm probability is approximately α. An exact binomial test has a rate at most α; whole-number counts can prevent it from attaining the level exactly.

At level 0.05, think of repeatedly testing situations where the null is true: about 5% of valid tests reject under an exact continuous model. This is not a statement that 5% of all rejections are wrong. That second probability also depends on how often the null is true among the situations tested.

The probability of a Type II error is β. It depends on the particular true value under the alternative. A mean just below 500 mL is harder to distinguish from 500 than a mean far below it. Power is 1−β: the probability of detecting the departure when that particular alternative value is true.

Choose a sensible tradeoff

For a fixed sample size and true departure, lowering α reduces false alarms but raises the chance of missing the departure. The rejection region becomes harder to reach. Increasing the sample size at the same level reduces β and increases power, because the estimate becomes more precise.

Error costs depend on the setting. An unnecessary machine adjustment and undetected underfilling have different costs. A costly false alarm may justify a smaller level. The choice should reflect those consequences before the results arrive.

Identify what could have gone wrong

After rejecting, the decision is either correct or a Type I error. After failing to reject, it is either correct or a Type II error. The sample alone does not reveal which case occurred, because the true parameter is unknown. Do not call a non-significant result a Type II error without knowing that the null is false. Nor is the observed p-value the probability of a Type I error: the level was fixed before the sample, while the p-value came from that sample.

Key Takeaways

  • A Type I error rejects a true null; a Type II error fails to reject a false null.
  • The significance level controls false alarms under the null model.
  • Type II error probability depends on the particular alternative value.
  • Power is one minus the Type II error probability.
  • At fixed sample size, a lower level trades fewer false alarms for more missed departures.
  • A larger sample increases power at the same significance level.
2

Test a claim about a population proportion

A proportion describes the share of a population with a particular outcome, such as weekly transit use or a white flower. A one-proportion test compares the observed share with a fixed benchmark. Its probability model comes from the benchmark, so both the condition checks and the standard error use the null proportion.

2.1 Check the conditions and compute the z statistic for a proportion

A yes-or-no variable leads to a proportion. Count a clearly defined outcome as a "success," even if the outcome is undesirable, such as a defective part. The name is only a counting convention.

Establish the normal model

For x successes in n observations, p^=x/n. To test H0:p=p0 with a one-proportion z test, check three conditions.

  1. Random: use a random sample or a suitable randomized experiment.
  2. Independent: observations must be independent. When sampling without replacement, the sample should be no more than 10% of the population.
  3. Large counts: both np0≥10 and n(1−p0)≥10. These are expected counts under the null, not the observed counts.

The large-counts condition makes the sampling distribution close enough to normal for the approximation. Some texts use a threshold of 5; the threshold of 10 gives a safer approximation. A huge voluntary-response poll still fails the random condition: more responses do not remove bias in who chooses to participate.

Use the null in the standard error

The test asks what would happen if p=p0, so calculate

SE0=p0(1−p0)n,z=p^−p0SE0.

The subscript on SE0 reminds you that this is a null-model standard error. The numerator compares the observed proportion with the claim. The denominator measures expected sampling variation under that claim. A positive z puts the observation above the null; a negative z puts it below.

Calculate with transit data

A city claims 30% of residents use transit weekly. A random sample of 400 residents from a population of 250,000 contains 138 weekly riders. The sample share is 138/400=0.345. The sample is well under 10% of the city, and the expected counts are 400(0.30)=120 and 400(0.70)=280. Both pass.

SE0=0.30(0.70)400=0.000525≈0.0229. z=0.345−0.3000.000525≈1.96.

Retain extra digits in the standard error until the final statistic. Substituting the observed 0.345 into the denominator gives about 0.0238 and a different statistic, about 1.89. That sample-based standard error belongs to the usual proportion confidence interval, not this null test. Likewise, the numerator needs the proportion 0.345, not the count 138.

When counts are small

For n=30 and p0=0.10, the null expects only 3 successes. Use an exact binomial probability instead of the normal approximation. If 7 successes occur and the planned alternative is p>0.10, calculate P(X≥7) for a binomial variable with 30 trials and success probability 0.10. The exact p-value is about 0.026; the z approximation gives about 0.007. The difference can change a decision at a strict level. An exact calculation addresses small counts, but still needs an appropriate sampling model.

Key Takeaways

  • Compute the sample proportion as the success count divided by the sample size.
  • Check random sampling, independence, and both expected counts under the null.
  • The test standard error uses the null proportion, not the observed proportion.
  • Use exact binomial probabilities when the expected counts are too small.

2.2 Find the p-value and conclude a one-proportion z test

Once the z statistic is available, the alternative determines which normal area to find. The same z can give very different p-values for a left-tailed, right-tailed, or two-sided question.

Select the right area

Let Z have the standard normal distribution. With observed statistic z, use:

Alternativep-value
p>p0P(Z≥z)
p<p0P(Z≤z)
p≠p02P(Z≥∣z∣)

A cumulative normal table often gives the area to the left. For a right-tailed test, subtract that area from 1. For a two-sided test, find the small tail beyond the absolute statistic and double it. Keep the unrounded statistic in technology, especially near the cutoff.

Finish the transit test

The transit sample gives z≈1.96 for H0:p=0.30. The planned question asks about an increase, so Ha:p>0.30. The right-tail area is about 0.025. At α=0.05, reject the null: "There is convincing evidence that more than 30% of the city's residents use transit weekly."

The population statement is about all city residents, not just the 400 respondents. The observational survey supports a population comparison with the benchmark. It does not establish that a new bus line caused the increase; fuel prices or other changes might also matter. A causal conclusion needs a randomized comparison.

Work a two-sided example

A genetic model predicts 25% white-flowered offspring. A random sample of 400 offspring has 80 white flowers. Suppose independence is reasonable. Test H0:p=0.25 against Ha:p≠0.25. The expected counts are 100 and 300, so the normal approximation is suitable.

p^=0.20,SE0=0.25(0.75)/400≈0.0217, z=0.20−0.250.25(0.75)/400≈−2.31.

Both tails together give a p-value of about 0.021. Reject at 0.05 but fail to reject at 0.01. There is convincing evidence at the 5% level that the population share differs from 25%. The sample points toward a lower share.

Handle insufficient evidence

A region's survey finds 21 cyclists among 250 randomly sampled workers. Against p0=0.12, p^=0.084 and z≈−1.75. For a two-sided alternative, the p-value is about 0.080, so fail to reject at 0.05. The evidence is insufficient to conclude that the region's share differs from 12%.

A left-tailed alternative chosen before the study would give about 0.040. Switching after seeing the lower sample share would select a more favorable analysis and inflate false alarms. Conversely, for a preselected right-tailed alternative, a negative statistic gives a p-value greater than 0.5. A large departure in the wrong direction supplies no evidence for the specified increase.

Key Takeaways

  • Use the alternative to select the normal tail or tails.
  • Compare the resulting p-value with the level before stating the population conclusion.
  • A significant observational result does not establish a cause.
  • A large statistic in the direction opposite to a one-sided alternative gives a large p-value.
  • Keep the planned alternative even when the sample points another way.
3

Test a claim about a population mean

Testing a mean connects measurements from a sample to a claim about a population average. Estimating the population spread from the sample calls for the t distribution, whose shape depends on degrees of freedom. Data collection and the shape of the observations determine whether its probabilities are trustworthy. A complete analysis combines those checks with a worked calculation, a matching tail area, and a careful reading of software output.

3.1 Know when to use the t distribution and check its conditions

Measurements such as time, mass, and scores lead to a test about a mean. Usually the population standard deviation is unknown. Estimating it from the sample adds uncertainty, which the t distribution accounts for.

Build the t statistic

Use the sample standard deviation s to estimate the standard error of the mean:

SE=sn,t=xˉ−μ0s/n.

When the null is true and the observations are a random sample from a normal population, this statistic has a t distribution with df=n−1 degrees of freedom. The degrees of freedom identify which t curve to use. Using n instead of n−1 selects the wrong curve.

Like the standard normal distribution, a t distribution is symmetric and centered at zero. Its heavier tails allow for sample-to-sample variation in s. As the degrees of freedom increase, the t curve approaches the normal curve. Two-sided 5% critical values illustrate this: 2.776 at 4 df, 2.131 at 15 df, 2.045 at 29 df, and 1.984 at 99 df, compared with 1.960 for z.

Check collection and shape

The sample must be random and its observations independent. When sampling without replacement, it should be no more than 10% of the population. Then check whether the population is approximately normal or the sample is large enough for the sample mean to have an approximately normal sampling distribution.

A useful guide for the shape check is:

  • Fewer than 15 observations: data should look close to normal, without outliers.
  • About 15 to 40: avoid strong skewness and outliers.
  • About 40 or more: the method works for clearly skewed data, but strong outliers still need attention.

The common rule n≥30 is a shortcut, not a reason to ignore a graph. The central limit theorem describes the sampling distribution of the mean. It does not turn the individual observations into normally distributed data.

Inspect unusual values

A dotplot, histogram, boxplot, or normal probability plot helps reveal skewness and outliers. Sixteen coffee fills between 236 and 256 mL, with no unusual values, support a t analysis. A cup at 210 mL would be a reason to investigate. It might be a measuring mistake or a real feature of the process. Deleting it simply because it disrupts the test would distort the evidence. Both the mean and standard deviation are sensitive to extreme values.

Recognize the known-standard-deviation case

If the population standard deviation σ really is known, use

z=xˉ−μ0σ/n

and the standard normal distribution, under the same suitable sampling and shape conditions. For σ=15, n=36, and xˉ=104.5 against μ0=100, the standard error is 2.5 and z is 1.80. The two-sided p-value is about 0.072. Knowing a sample standard deviation is not the same as knowing σ; a large sample alone does not change an unknown-standard-deviation mean test into a z test.

Key Takeaways

  • Use the sample standard deviation in the standard error when the population standard deviation is unknown.
  • The one-sample t statistic uses n − 1 degrees of freedom.
  • The t distribution has heavier tails to account for estimating the population spread.
  • Check sampling, independence, skewness, and outliers.
  • The central limit theorem concerns sample means, not the shape of individual data.
  • Use a mean z test only when the population standard deviation is known.

3.2 Carry out a one-sample t test from start to finish

A full t test connects a population question to the calculation and back to a conclusion. Keep the units attached to the mean and standard error; the t statistic itself has no units.

Set up the coffee test

A coffee machine targets 250 mL per cup. A random sample of 16 cups has mean 246.2 mL and standard deviation 6.4 mL. Overfilling and underfilling both matter, so let μ be the mean fill of all cups from this machine and state H0:μ=250 against Ha:μ≠250. Choose α=0.05.

The sample is random and is a small fraction of all cups from the machine. A dotplot shows no strong skewness or outliers. With these conditions checked, the t model is appropriate.

Calculate in order

First estimate the sampling variation of the mean:

SE=6.416=1.6 mL.

Then standardize the observed difference:

t=246.2−2501.6=−3.81.6=−2.375.

There are 16−1=15 degrees of freedom. For the two-sided alternative, count both tails beyond a distance of 2.375 from zero. Technology gives 2P(T≤−2.375)≈0.031 for the t distribution with 15 df.

Since 0.031 is below 0.05, reject the null. "There is convincing evidence that the machine's population mean fill differs from 250 mL; the sample suggests underfilling." At a preselected level of 0.01, the same result would fall short of rejection.

Check with a table

For 15 df, a two-sided 5% critical value is 2.131. The observed absolute statistic, 2.375, is larger, so it lies in the rejection region. A printed t table may only bound a p-value: 2.375 lies between 2.131, associated with two-sided area 0.05, and 2.602, associated with 0.02. Thus the p-value lies between 0.02 and 0.05. Software provides a more precise numerical value.

Work a one-sided question

Researchers predict that students at a college average less than 7 hours of sleep. A random sample of 25 students has mean 6.6 hours and standard deviation 1.1 hours, without strong skewness or outliers. With independence checked, test H0:μ=7 against Ha:μ<7 at 0.05.

SE=1.1/25=0.22,t=(6.6−7)/0.22≈−1.82.

Use 24 df and the lower tail. The p-value is about 0.041, so reject: the evidence supports a population mean below 7 hours. A two-sided test of these data gives about 0.082. The difference comes from which departures the question counts, not from a new sample.

Enter the analysis carefully

A calculator can use raw data or the four summary values: null mean, sample mean, sample standard deviation, and sample size. Select the intended alternative. Dividing the sample difference by s alone ignores sample size; dividing by n in place of n shrinks the standard error too much. Record the condition checks and the contextual conclusion alongside the output, because neither follows automatically from the calculator's result.

Key Takeaways

  • State the parameter, hypotheses, level, and conditions before calculating.
  • Compute the standard error, then t, then n − 1 degrees of freedom.
  • Find a t tail area that matches the preplanned alternative.
  • A printed t table may give p-value bounds; technology gives a numerical value.
  • Explain the decision as evidence about the population mean.

3.3 Choose the right one-sample test and read software output

Start with what each observation measures and whether the comparison is with a fixed benchmark or another sample.

Choose by the quantity being tested
QuestionParameterSuitable one-sample method
What share of voters supports a park?Population proportionProportion z test if expected counts pass
What is the average commute time?Population meant test when population spread is unknown
What share of commutes exceeds 25 minutes?Population proportionProportion z test if expected counts pass
What is the mean score with known population spread?Population meanMean z test with a suitable normal model

A commute measured in minutes is quantitative. Classifying that same commute as longer than 25 minutes or not creates a binary variable. The parameter changes from a mean to a proportion because the question changes.

The methods compare one sample with a fixed claim or standard. Comparing two groups measured in the same study needs a method that accounts for uncertainty in both estimates. Treating the second sample's mean as a fixed benchmark understates that uncertainty.

Check the method's conditions

Small null expected counts call for an exact binomial proportion test. A small quantitative sample with strong skewness or outliers does not support an ordinary t analysis. Software will often compute a result anyway.

Read each output field

The coffee analysis can be reported as:

One Sample t-test
t = -2.375, df = 15, p-value = 0.03132
alternative: true mean is not equal to 250
95% confidence interval: 242.7897 to 249.6103
sample mean: 246.2

The sample mean estimates the population mean; the confidence interval describes its uncertainty. The t value measures the standardized departure, and df selects the reference distribution. The p-value is two-sided because the printed alternative says "not equal." Never assume that the software used the alternative you intended: many programs default to two-sided.

Convert a two-sided p-value carefully

For a symmetric t or z distribution, halve a two-sided p-value only when the estimate points in the planned alternative's direction. For the coffee result, a preplanned μ<250 alternative gives about 0.03132/2=0.01566. A preplanned μ>250 alternative gives about 1−0.01566=0.98434. The sample is below the target, so evidence for an increase is weak.

For proportions, some software applies a continuity correction by default and may report a chi-square statistic. Without correction that statistic equals z2. Matching the hand z calculation requires disabling the correction. Finally, read scientific notation correctly: 3.2e-05 means 0.000032. Report such a small value as "p < 0.001." A display rounded to zero is not a literal probability of zero for these finite t or z statistics.

Key Takeaways

  • Choose the method from the parameter: a mean or a proportion.
  • Comparing two estimated group results requires a method for two groups.
  • Check the alternative printed in software output.
  • Halve a two-sided p-value only when the estimate points in the planned direction.
  • Software corrections and rounding can change the displayed result.
  • Report very small p-values with an inequality instead of a rounded zero.
4

Interpret and report test results responsibly

A test decision is one part of a statistical report. Confidence intervals describe which parameter values remain plausible, and estimated differences show the size of a departure in useful units. These help distinguish strong evidence from practical importance. Careful wording and transparent reporting also reveal what a p-value means, how much uncertainty remains, and whether choices made after seeing the data have made the result look stronger.

4.1 Connect hypothesis tests with confidence intervals

A test checks a particular parameter value. A confidence interval shows a range of plausible values and how precisely the sample estimates the parameter. Reading both helps explain what a decision leaves uncertain.

Match a mean test with its interval

For the same data and t procedure, a two-sided test at level α corresponds to a two-sided confidence interval at confidence level 1−α. A null value outside the interval is rejected; a value strictly inside is not rejected. Thus a 5% two-sided test matches a 95% t interval, and a 1% test matches a 99% interval. At an exact endpoint, use the test's stated equality rule for the decision.

For the coffee data, the 95% interval is

246.2±2.131(1.6),

or about 242.79 to 249.61 mL. The target 250 mL lies outside, matching the p-value of about 0.031 and rejection at 0.05. The interval also shows the size of the departure: plausible means are about 0.4 to 7.2 mL below target.

At 99% confidence, the multiplier is 2.947. The interval is about 241.49 to 250.91 mL and includes 250, matching failure to reject at 0.01. Including 250 does not select it as the true mean; the interval includes many other plausible values too.

Match the direction of a one-sided test

A one-sided t test at level α uses the appropriate endpoint of the two-sided interval with confidence level 1−2α. At 0.05, use the relevant endpoint of a 90% interval.

  • For Ha:μ<μ0, reject when the upper endpoint is below the null value.
  • For Ha:μ>μ0, reject when the lower endpoint is above the null value.

For the sleep data, the 90% interval is 6.6±1.711(0.22), about 6.22 to 6.98 hours. Its upper endpoint is below 7, agreeing with the lower-tailed test. If the entire interval were above 7, that would support an increase, not the specified decrease. Simply finding the null outside an interval is insufficient for a one-sided question; direction matters.

Understand the proportion mismatch

The one-proportion z test uses p0 in its standard error. The usual sample-centered proportion interval, often called a Wald interval, uses p^. They can disagree near a cutoff because they use different uncertainty calculations.

For the transit data, the two-sided test gives a p-value about 0.0495, just below 0.05. The usual 95% interval is about 0.298 to 0.392 and includes 0.30. The cycling example reverses the mismatch: its test p-value is about 0.080, but its usual interval, about 0.050 to 0.118, excludes 0.12.

Report both results and describe the borderline evidence clearly. Follow the stated test's own p-value for its decision. A Wilson interval is formed by inverting the proportion z test, so it agrees with that test at matching levels and with consistent endpoint rules.

Key Takeaways

  • A two-sided mean t test at level α matches the t interval at confidence level 1 − α.
  • An interval adds the plausible size and direction of a difference.
  • A one-sided t test uses the matching directional endpoint of the 1 − 2α interval.
  • The usual proportion interval and null-based z test may disagree near a cutoff.

4.2 Tell statistical significance from practical importance

A small p-value tells you that the data are hard to reconcile with the null model. It does not tell you whether the difference is large enough to matter. Practical importance needs the estimated difference, its uncertainty, and knowledge of the situation.

Compare two kinds of significance
QuestionWhat answers it?
Is there evidence against the null value?A suitable test and its p-value
How large might the population difference be?An estimate and confidence interval
Is that difference useful or costly?A meaningful threshold in context

For a mean, express the difference as xˉ−μ0 in the original units. For a proportion, use p^−p0; a change from 30% to 34.5% is 4.5 percentage points. The p-value has no measurement units and cannot supply that size information.

A tiny difference with strong evidence

A test-prep company asks whether its students score above a national benchmark of 500. A random sample of 10,000 course students has mean 502 and standard deviation 100. With suitable conditions, SE=100/10,000=1 and t=(502−500)/1=2. The one-sided p-value is about 0.023, significant at 0.05.

The mean difference is only 2 points. A 95% interval of about 500.04 to 503.96 places the difference at about 0.04 to 3.96 points above the benchmark. On a scale with variation around 100 points, that is too small to matter for most purposes. The large sample makes the estimate precise enough to detect a small departure.

A large estimate with weak evidence

A random sample of only 9 course students has mean 530 and standard deviation 60. With a suitable near-normal population and no outliers, SE=60/9=20, t=1.50, and df is 8. The one-sided p-value is about 0.086, falling short at 0.05.

The estimated difference is 30 points, but the 95% interval, about 483.9 to 576.1, permits differences from about −16.1 to 76.1 points. These data leave room for no difference and for a large positive difference. More information would help distinguish them. A non-significant result is not evidence that the difference must be small.

Keep the comparison and the cause separate

Neither sample establishes that the course raised scores. Course students might already differ in motivation or prior scores. Random sampling supports estimation of the course students' mean. A randomized comparison of students with and without the course is needed to estimate the course's effect.

A meaningful difference should be judged using a threshold relevant to costs, benefits, or performance. That threshold comes from the setting, not from whether a p-value crosses 0.05. Report "statistically significant" when discussing evidence, then give the difference in points, minutes, milliliters, or percentage points so readers can judge its value.

Key Takeaways

  • Statistical significance measures evidence against a null value; practical importance concerns the size that matters.
  • A large sample can detect a difference too small to be useful.
  • A small sample can leave an important difference uncertain.
  • Report differences and intervals in the original units.
  • A comparison with a benchmark does not isolate the effect of an intervention.

4.3 Read p-values correctly and report results clearly

A clear report lets readers see what was tested, whether the model fits, and how uncertain the estimate remains. A p-value on its own leaves out much of that information.

Keep the assumption in the interpretation

For the sleep test, a p-value around 0.041 means: "If the population mean were 7 hours and the test's conditions held, about 4.1% of random samples of 25 students would give a t statistic of −1.82 or lower."

The probability concerns data under an assumed model. "There is a 4.1% chance the mean is 7 hours" reverses that logic. Likewise, "there is a 4.1% chance the result is due to chance" assigns a probability to an explanation that the calculation assumed. Subtracting the p-value from 1 does not give the probability that the alternative is true.

Separate evidence from effect size

A large p-value means the data are compatible with the null model, but other parameter values may also fit. A small sample can leave a wide range of plausible values. A tiny p-value can accompany a tiny difference in a large sample. Give the estimated difference and its interval to communicate size and precision.

The threshold 0.05 is a convention, not a boundary between true and false. Results with p-values 0.049 and 0.051 provide very similar evidence even though a 5% decision rule gives different decisions. Report the actual p-value, along with the preselected level, so readers can see proximity to the cutoff.

Report the analysis as well as the result

A useful report includes:

  • the population parameter, null and alternative, and significance level;
  • the sampling design and relevant condition checks;
  • the test name, statistic, and degrees of freedom where applicable;
  • the p-value, estimate, and confidence interval;
  • a conclusion in context and the size of the difference in its units.

For the coffee analysis: "A random sample of 16 cups had no strong skewness or outliers, and independence was reasonable. A two-sided one-sample t test of a 250 mL mean at level 0.05 gave t = −2.375, 15 df, and p = 0.031. The estimated mean was 246.2 mL, with a 95% interval of 242.8 to 249.6 mL. There is convincing evidence that the machine's mean fill differs from its target; the estimate is 3.8 mL below it."

Make selection visible

Choosing outcomes, subgroups, or alternatives after seeing the data makes small p-values easier to find. Running many tests and reporting only the significant ones hides the search that produced the result. Say which analyses were planned, what else was tested, and which choices followed inspection of the data.

The American Statistical Association's 2016 principles connect these points: p-values describe incompatibility with a specified model; they are not probabilities of hypotheses or of "chance alone"; a threshold should not carry the whole decision; sound inference requires transparent reporting; p-values do not measure effect size or importance; and a p-value alone is an incomplete account of evidence. Interpret it alongside the design, the model, the estimate, and the uncertainty.

Key Takeaways

  • Interpret the p-value as a probability about extreme data under the null and the test’s conditions.
  • Report the estimate, interval, test details, and conclusion alongside the p-value.
  • Values just above and below 0.05 provide similar evidence.
  • Disclose planned analyses and choices made after examining the data.

Hypothesis Testing examples

4 Walkthroughs

1

From a claim to a decision

17 steps
Follow a population claim through hypotheses, evidence, a cutoff, and the possible errors.
  1. 1
    IntroductionAsk about a population

    A battery supplier claims a mean lifetime of 12 hours. A sample will rarely average exactly 12, even if the claim is right. The question is whether its departure is large compared with ordinary sampling variation.

    A hypothesis test builds that comparison under the claimed population mean. You will choose a question, measure evidence, and decide what the sample supports. A p-value and significance level guide that decision, which can still be a Type I or Type II error.

  2. 2
    ExplanationName the quantity being tested

    Let μ be the mean lifetime of all batteries from the supplier’s production process. The null claim is H0:μ=12 hours.

    The symbol describes the population. A sample mean is an observed estimate used as evidence about that population; it does not belong in the hypothesis. The value 12 comes from the supplier’s claim, not from the new measurements.

  3. 3
    ExampleChoose the departure that matters

    A buyer wants to detect batteries that last less than claimed, so the planned alternative is Ha:μ<12. This is a left-tailed test.

    If the question were whether the claim is inaccurate in either direction, use Ha:μ≠12 instead. Choose this direction before looking at the sample. Selecting whichever one-sided question favors the observed result would overstate the evidence.

  4. 4
    ChallengeWrite an alternative

    A manufacturer instead asks whether its population mean battery lifetime exceeds 15 hours. Name the parameter and write the alternative.

    ---reveal---

    Let μ be the mean lifetime of all batteries from that process. The alternative is Ha:μ>15, a right-tailed claim. The null uses equality to 15; an observed sample mean is evidence, not the unknown quantity named by the hypothesis.

  5. 5
    ExplanationStandardize the departure

    Suppose a suitable battery sample has mean 11.4 hours and estimated standard error 0.3 hour. Its standardized departure is

    11.4−120.3=−2.

    The estimate lies two standard errors below the claim. Its sign matches the planned decrease. The reference distribution tells us how unusual a statistic this low would be if the population mean really were 12.

  6. 6
    ExplanationCount extreme results under the null

    The p-value counts a statistic at least as extreme as observed, assuming the null and the test’s conditions. For the battery decrease, it is the area to the left of the observed statistic.

    A two-sided question would count both tails beyond the observed distance from zero. The tail comes from the planned alternative, not from a rule that always chooses whichever area is smaller.

  7. 7
    Key InsightKeep the probability pointed the right way

    If a p-value is 0.03, the null model assigns 3% probability to results at least as extreme as observed in the chosen direction. The calculation began by assuming the null.

    It does not assign a 3% probability to the null itself, and 97% is not the probability that the alternative is true. These are different probability questions from the one the test calculated.

  8. 8
    ChallengeEstimate evidence by simulation

    In a null simulation, 42 of 2000 statistics fall at least as far into the planned left tail as the observed statistic. What p-value does the simulation estimate?

    ---reveal---

    The estimated p-value is 42/2000=0.021. It is the share of extreme results under the null model. Do not double it: the count already matches the planned left-tailed question, which detects a decrease only.

  9. 9
    ExplanationApply a level chosen in advance

    The significance level is the preselected cutoff for rejection. At level 0.05, reject when the p-value is at or below 0.05; otherwise fail to reject.

    A stricter level such as 0.01 requires stronger evidence. The p-value itself does not change when the level changes. The level controls the decision rule, while the sample and reference model determine the p-value.

  10. 10
    ExampleState the population conclusion

    For a planned battery underperformance test with a p-value of 0.03 at level 0.05, reject the null. Write: "There is convincing evidence that the supplier’s population mean battery lifetime is below 12 hours."

    If the p-value were 0.20, the evidence would fall short. "Fail to reject" would leave 12 plausible; it would not establish that the supplier’s mean is exactly 12.

  11. 11
    ChallengeCompare evidence with the planned cutoff

    A planned test of a population mean gives a p-value of 0.024 at level 0.01. State the decision and explain what it says about the null.

    ---reveal---

    Fail to reject because 0.024>0.01. The sample does not provide enough evidence against the null at that level. The null remains compatible with this analysis, but other parameter values may also be compatible. A 0.05 cutoff would be a different decision rule.

  12. 12
    ExplanationRecognize a false alarm

    A Type I error rejects a null that is true. If the battery process really averages 12 hours but the test concludes that it underperforms, the buyer receives a false alarm.

    The significance level controls this risk under the null model. For an exact t model it equals the level; for the proportion z approximation it is approximately the level. It is not the probability that this particular rejection is wrong.

  13. 13
    ExplanationRecognize a missed departure

    A Type II error fails to reject a null that is false. If batteries truly average less than 12 hours but the test misses the underperformance, a real shortfall goes undetected.

    Its probability, beta, depends on the true mean: a tiny shortfall is harder to detect than a large one. Power is one minus beta, the probability of detecting a particular true departure with this test.

  14. 14
    ConnectionImprove detection without changing the level

    For a fixed true shortfall, a larger random sample reduces sampling variation and improves power at the same significance level.

    Lowering the level while keeping the sample size fixed has a different effect: it reduces false alarms but makes a real shortfall harder to detect. Error costs help choose the level; sample size affects how much information the test has for that choice.

  15. 15
    ChallengeIdentify the possible error

    A shipment test fails to reject the lifetime claim. What kind of error is possible, and what additional fact would make it an actual error?

    ---reveal---

    A Type II error is possible. It is an actual error only if the null claim is false. The non-rejection alone cannot establish this, because the true population mean is unknown. A Type I error requires rejection, which did not occur here.

  16. 16
    ChallengeConnect a stricter rule with its cost

    A buyer uses the same sample size but lowers the level from 0.05 to 0.01. For a fixed true shortfall, explain the decision tradeoff.

    ---reveal---

    Stronger evidence is required to reject. False alarms become less likely when the claim is true, but missing that real shortfall becomes more likely. A non-rejection at the stricter level therefore gives no guarantee that the batteries meet the claimed mean lifetime.

  17. 17
    RecapKeep evidence, decision, and truth distinct

    Begin with a parameter and a direction chosen before the data. Measure the observed departure in standard errors, find its tail probability under the null, and compare that p-value with the planned level.

    A decision describes what the evidence supports about the population. Rejection can be a false alarm; non-rejection can miss a real departure. The sample does not reveal the true parameter with certainty.

2

Test a share from counts to conclusion

12 steps
Check a binary-outcome model and complete a one-sided proportion test, then compare a two-sided question.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionTurn a count into evidence about a share
  2. 2
    ExampleWrite the model before calculating
  3. 3
    ExplanationCheck random selection and independence
  4. 4
    ExampleCheck counts under the claim
  5. 5
    ExampleCalculate the null standard error
  6. 6
    ChallengeChoose a model when counts fail
  7. 7
    ExplanationRead the right tail
  8. 8
    ExampleMake the population statement
  9. 9
    ConnectionChange the question before a future study
  10. 10
    ChallengeUse the direction in the question
  11. 11
    ChallengeAssemble the full analysis
  12. 12
    RecapUse the null for variation and the alternative for direction
3

Test a measured average with t

16 steps
Work a mean test with an estimated standard error and read its result without switching reference distributions.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionAllow for an estimated population spread
  2. 2
    ExplanationWhy the reference curve has heavier tails
  3. 3
    ExampleCheck the data before the formula
  4. 4
    ChallengeDecide whether t is justified
  5. 5
    ExampleFix the hypotheses and level
  6. 6
    ExampleEstimate variation in the mean
  7. 7
    ExampleFind the standardized difference
  8. 8
    ExplanationFind both t tails
  9. 9
    ConnectionUse a critical value to check
  10. 10
    ChallengeRecalculate after a new sample
  11. 11
    ExplanationChoose a test from the recorded outcome
  12. 12
    TipRead what the software actually tested
  13. 13
    ChallengeDo not halve the wrong tail
  14. 14
    Key InsightRecognize when one sample is not enough
  15. 15
    ChallengeConnect the data, curve, and decision
  16. 16
    RecapKeep the calculation tied to its model
4

Explain the size and uncertainty of a result

14 steps
Connect a test to an interval, judge practical importance, and improve the wording of a report.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionRead beyond a rejection decision
  2. 2
    ExplanationMatch a two-sided t test and interval
  3. 3
    ExplanationCheck direction in a one-sided match
  4. 4
    ChallengeUse an interval without declaring equality
  5. 5
    ConnectionKnow why proportions can disagree
  6. 6
    ExplanationDefine a difference that matters
  7. 7
    ExampleUse precision to judge practical importance
  8. 8
    ChallengeSeparate sample size from effect size
  9. 9
    ExplanationKeep the null assumption visible
  10. 10
    TipShow the choices behind the number
  11. 11
    ChallengeCorrect a report’s probability claim
  12. 12
    Key InsightPut threshold decisions in perspective
  13. 13
    ChallengeImprove the whole conclusion
  14. 14
    RecapReport evidence, magnitude, and uncertainty together

Hypothesis Testing practice questions

40 Practice Questions in 4 sets

Set 1: Choose models and interpret evidence10 Practice Questions

Question 1 of 10

A clinic claims a population median waiting time of 12 minutes. An analyst proposes H₀: μ = 12 and Hₐ: μ > 12 to check that claim. What needs correcting?
  1. The direction: a median always needs a two-sided test.
  2. The null: it should use the observed sample median.
  3. The parameter: μ describes a mean, not a median.
  4. The equality: it belongs only in the alternative.
Show answerHide answer
Answer: C
The symbol μ describes a population mean, while the claim concerns a population median. A mean test therefore does not test the claim as worded. Changing the direction of the alternative leaves that mismatch in place; the parameter and procedure must fit the quantity the clinic actually claims.

Question 2 of 10

A left-tailed test gives a p-value of 0.027. How should that probability be described?
  1. Under the null model, a statistic this low or lower occurs with probability 0.027.
  2. The null hypothesis is true with probability 0.027 after observing the sample.
  3. The alternative hypothesis is true with probability 0.973 after the sample.
  4. The observed difference came from chance alone with probability 0.027.
Show answerHide answer
Answer: A
The p-value is calculated assuming the null model, so it describes possible data under that model. "This low or lower" captures the left-tailed meaning of at least as extreme. Reading 0.027 as the probability that the null is true reverses the conditional reasoning used to obtain the p-value.

Question 3 of 10

For the same sample size and a fixed true departure from the null, a team lowers its significance level from 0.05 to 0.01. How do the error risks change?
  1. Type I risk increases; Type II risk decreases.
  2. Type I risk decreases; Type II risk decreases.
  3. Type I risk stays fixed; Type II risk increases.
  4. Type I risk decreases; Type II risk increases.
Show answerHide answer
Answer: D
A lower significance level makes rejection harder, reducing false alarms when the null is true. With sample size and the true departure fixed, more samples under the alternative now fail to reach rejection, so missed effects become more likely. Reducing both error risks would need a different change, such as increasing sample size.

Question 4 of 10

A random sample of 50 items is tested against a defect probability of 0.08. The observations can be treated as independent. What method is appropriate for the small success count?
  1. A z test using the observed defect share.
  2. An exact binomial test under p = 0.08.
  3. A one-sample t test on the defect count.
  4. A large-sample z test with n over 30.
Show answerHide answer
Answer: B
The expected defect count is 50 times 0.08, or 4, below the threshold of 10. An exact binomial calculation respects the small count under the null. Having more than 30 observations is not the large-counts condition for a proportion test: the null probability also determines whether its normal approximation is suitable.

Question 5 of 10

A planned two-sided proportion test gives z = −2.10. The normal area below −2.10 is 0.0179. At significance level 0.05, what are the p-value and decision?
  1. 0.0179; reject the null.
  2. 0.9642; fail to reject.
  3. 0.0358; reject the null.
  4. 0.9821; fail to reject.
Show answerHide answer
Answer: C
The two-sided alternative counts both tails beyond a distance of 2.10 from zero. Doubling 0.0179 gives 0.0358, below 0.05, so reject the null. Using 0.0179 alone counts only a decrease and would overstate the evidence for a question that was planned to detect departures in either direction.

Question 6 of 10

A random sample of 10 repair costs has one very large outlier. Population spread is unknown. An analyst wants to use a one-sample t test. What should happen first?
  1. Delete the largest cost and run the t test.
  2. Switch to a mean z test using the sample spread.
  3. Use the t test because the sample was random.
  4. Investigate the outlier and reassess the t model.
Show answerHide answer
Answer: D
A sample of 10 needs a close-to-normal shape without outliers for a trustworthy t analysis. Investigating the extreme cost can reveal an error or a real feature that affects the method. Deleting it solely to make the data fit changes the evidence, while random sampling alone does not satisfy the shape condition.

Question 7 of 10

A random sample of 25 independent measurements has mean 17.2, sample standard deviation 2, and no strong skewness or outliers. A preplanned test asks whether μ < 18 at level 0.05. The lower-tail t area at t = −2 with 24 df is 0.0285. What result follows?
  1. t = −2; reject in favor of a population mean below 18.
  2. t = −0.4; fail to reject a population mean of 18.
  3. t = −2; fail to reject because the p-value is 0.057.
  4. t = −2; reject in favor of a population mean above 18.
Show answerHide answer
Answer: A
The standard error is 2 divided by 5, or 0.4, giving t = −0.8/0.4 = −2 with 24 df. The planned lower-tailed p-value is 0.0285, below 0.05. Doubling it to 0.057 would answer a two-sided question, changing the analysis that was selected before the data.

Question 8 of 10

A 99% t interval for a population mean is 72.4 to 78.6. What decision does the matching two-sided 1% t test make about a null mean of 74?
  1. Reject; 74 differs from the interval midpoint.
  2. Fail to reject; 74 is inside the matching interval.
  3. Accept equality; 74 is inside the interval.
  4. Reject; the interval does not begin at 74.
Show answerHide answer
Answer: B
The two-sided 1% t test matches the 99% t interval from the same data. Because 74 is inside that interval, it is not rejected at this level. Being inside does not establish that the population mean equals 74; the interval contains many other values consistent with the evidence.

Question 9 of 10

A 90% t interval for a mean is 12.1 to 14.5. A preplanned one-sided 5% test uses H₀: μ = 12 and Hₐ: μ < 12. What decision follows?
  1. Reject; 12 is outside the corresponding 90% interval.
  2. Reject; its upper endpoint is greater than the null mean.
  3. Fail to reject; one-sided tests need a 95% interval.
  4. Fail to reject; the interval points opposite to the alternative.
Show answerHide answer
Answer: D
A lower-tailed 5% t test rejects when the upper endpoint of the 90% interval lies below the null value. Here both endpoints are above 12, so the sample points toward an increase, opposite to the alternative. Using only the fact that 12 is outside the interval loses the direction required by a one-sided test.

Question 10 of 10

A software display rounds a test’s very small positive p-value to 0.000. How should the result usually be reported?
  1. p = 0 exactly
  2. p > 0.001
  3. p < 0.001
  4. p = 0.001 exactly
Show answerHide answer
Answer: C
Reporting p < 0.001 communicates that the positive p-value is smaller than the displayed precision. The rounded output does not mean the tail area is literally zero. Writing p = 0.001 instead also changes the result: it assigns an exact value that the rounded display does not support.
Set 2: Build and apply a test10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A sensor test rejects a claimed population mean of 80 units. The true mean actually is 80. What kind of decision occurred?
  1. A Type II error.
  2. A correct rejection.
  3. A Type I error.
  4. A correct non-rejection.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A repair shop asks whether its population mean service time has changed from 45 minutes. What alternative hypothesis matches that question?
  1. Ha:μ>45
  2. Ha:μ≠45
  3. Ha:μ<45
  4. Ha:xˉ≠45
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A sample estimate lies 0.06 above its null value, with null standard error 0.03. What is its test statistic?
  1. 0.5
  2. −2
  3. 0.0018
  4. 2
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A planned test uses a significance level of 0.01 and produces a p-value of 0.018. What decision follows?
  1. Fail to reject the null at 0.01.
  2. Reject the null at the planned level.
  3. Accept the null as the true value.
  4. Raise the level to 0.05 and reject.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A random sample of 200 accounts contains 56 overdue accounts. A test checks a null overdue share of 0.25. What expected success and failure counts should be checked?
  1. 56 successes and 144 failures.
  2. 50 successes and 150 failures.
  3. 25 successes and 175 failures.
  4. 14 successes and 42 failures.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A planned test of whether a population share is greater than its benchmark gives z = 1.50. The standard normal area to the left of 1.50 is 0.9332. What is the p-value?
  1. 0.0668
  2. 0.9332
  3. 0.1336
  4. 0.4666
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A one-sample t analysis uses 22 independent observations. How many degrees of freedom does it have?
  1. 22
  2. 20
  3. 11
  4. 21
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A random sample of 36 packets has mean mass 103 g and sample standard deviation 9 g. Conditions for a t test hold. What is t for a null mean of 100 g?
  1. 0.33
  2. 12.00
  3. 2.00
  4. −2.00
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A researcher records whether each delivery arrives within 48 hours and asks whether more than 90% of deliveries meet that limit. Randomness, independence, and large counts hold. What test fits?
  1. A one-proportion z test.
  2. A one-sample mean t test.
  3. A z test for mean time.
  4. A two-proportion z test.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A factory estimates a mean speed increase of 0.2 units per hour, with a 95% interval of 0.1 to 0.3. The result is statistically significant, but a useful increase must reach 2 units per hour. What does the evidence support?
  1. A useful increase because the test rejected.
  2. A detectable increase below the useful size.
  3. No increase because the useful size was missed.
  4. An uncertain increase as large as 2 units.
Show answerHide answer

Save this lesson to see this answer.

Set 3: Work through decisions and uncertainty10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A random sample of 100 independent components contains 30 failures. Test H₀: p = 0.20. What pair gives the null standard error and z statistic?
  1. SE ≈ 0.046; z ≈ 2.18.
  2. SE = 0.040; z = −2.50.
  3. SE = 0.040; z = 2.50.
  4. SE = 0.400; z = 0.25.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A preplanned right-tailed test for a population proportion produces z = −1.40. The normal area to the left of −1.40 is 0.0808. What p-value should be used?
  1. 0.9192
  2. 0.0808
  3. 0.1616
  4. 0.8384
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A two-sided z test at the planned 0.01 level gives z = 2.45. The 1% critical boundaries are approximately ±2.576. What decision follows?
  1. Reject with cutoff 1.96.
  2. Accept the null as true.
  3. Reject because z > 0.
  4. Fail to reject at 0.01.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Two valid tests use the same level and sample size for H₀: μ = 60 versus μ > 60. Study A’s true mean is 60.5; Study B’s is 65. Their population spreads and designs are otherwise identical. How does Type II error risk compare?
  1. It is higher in B because its true departure is larger.
  2. It is lower in B because its true departure is larger.
  3. It is equal because the significance levels match.
  4. It is lower in A because its mean is closer to 60.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A team tests a population mean from 64 observations. Only the sample standard deviation is available. Sampling and shape conditions hold. What reference distribution should it use?
  1. The standard normal because n exceeds 30.
  2. A t distribution with 64 df.
  3. The standard normal because s is known.
  4. A t distribution with 63 df.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

For a two-sided test of a population mean, n = 16, x̄ = 49, s = 4, and μ₀ = 51. Conditions hold. At 15 df, the two-sided 5% critical value is 2.131. What are the statistic and decision?
  1. t = −0.50; fail to reject at 0.05.
  2. t = −2.00; fail to reject at 0.05.
  3. t = −2.00; reject at 0.05.
  4. t = −8.00; reject at 0.05.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Software reports t = −2.6 and a two-sided p-value of 0.020. The study preplanned Hₐ: μ > μ₀. What is the corresponding one-sided p-value?
  1. 0.990
  2. 0.010
  3. 0.020
  4. 0.980
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A proportion z test gives p = 0.048, but the usual sample-centered 95% proportion interval includes the null value. What explains the disagreement and determines the stated test’s decision?
  1. Different standard errors; override the test with the interval.
  2. An arithmetic error must exist; repeat until both reject.
  3. Different standard errors; reject using the test’s p-value.
  4. A one-sided interval was used; halve the p-value to decide.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A small study gives an estimated 8-minute reduction and a 95% interval from a 3-minute increase to a 19-minute reduction. Its two-sided p-value exceeds 0.05. What interpretation fits?
  1. The reduction must be zero because the test was not significant.
  2. The reduction is uncertain; a useful reduction remains plausible.
  3. The reduction is established because the estimate is 8 minutes.
  4. The reduction is practically unimportant because p exceeds 0.05.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A researcher tests 18 outcomes, selects the one with p = 0.032, and reports it as the only analysis. What reporting problem affects the apparent evidence?
  1. The hidden search makes the selected p-value look more convincing.
  2. The selected p-value establishes that all outcomes changed.
  3. The selected p-value can be interpreted without the other tests.
  4. The search makes the null hypothesis have probability 0.032.
Show answerHide answer

Save this lesson to see this answer.

Set 4: Evaluate a complete analysis10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A school claims that 70% of its graduates find work within six months. A researcher suspects a smaller share. What alternative hypothesis should be planned?
  1. Ha:p<0.70
  2. Ha:p≠0.70
  3. Ha:p^<0.70
  4. Ha:p>0.70
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A simulation generates 5000 samples under a null model. In a preplanned two-sided test at level 0.025, 145 simulated statistics are at least as far from the null center as observed. What estimated p-value and decision follow?
  1. 0.058; fail to reject the null.
  2. 0.0145; reject the null.
  3. 0.029; fail to reject the null.
  4. 0.029; reject the null.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

The unrounded p-value is exactly 0.05000, and the preselected level is 0.05. Under the rule "reject when p ≤ α," what decision follows?
  1. Fail to reject at 0.05.
  2. Reject the null at 0.05.
  3. Accept the null hypothesis.
  4. Change α to break the tie.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A simple random sample without replacement selects 180 of 1200 club members. A proportion test has null expected counts of 72 and 108. A reviewer proposes exact binomial probabilities to repair any condition problem. Does that repair the model, and why?
  1. Yes; exact binomial probabilities remove dependence from finite sampling.
  2. Yes; both expected counts pass, so no other condition needs attention.
  3. No; a valid binomial model must use observed counts as its expectations.
  4. No; the 15% sample fraction still exceeds the independence guideline.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A laboratory checks a mean against 24 using a random, independent, near-normal sample of 9 measurements, with mean 26 and s = 3. Its preplanned alternative is μ > 24 at level 0.05. For 8 df, the one-sided 5% critical value is 1.860. What follows?
  1. t = 0.67; fail to reject a mean of 24.
  2. t = 2.00; fail to reject using a two-sided cutoff.
  3. t = 2.00; reject in favor of a mean above 24.
  4. t = 6.00; reject in favor of a mean above 24.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A hospital compares mean stay lengths in two wards using samples collected in the same month. An analyst treats one ward’s sample mean as a fixed benchmark in a one-sample test of the other ward. What is the central problem?
  1. The analysis omits sampling uncertainty in the benchmark ward.
  2. The analysis must use proportions because wards are categories.
  3. The analysis must use z because two sample means are available.
  4. The analysis needs no test if the sample means are unequal.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A large random sample of customers at a training company scores 1 point above a benchmark, with a narrow interval and p = 0.001. Customers chose the company themselves. What conclusion about the training is justified?
  1. The training caused a 1-point increase because the customer sample was random.
  2. The customers’ mean differs from the benchmark; training’s causal effect is unresolved.
  3. The training’s effect is large because the evidence against equality is strong.
  4. The customers’ mean equals the benchmark because 1 point seems unimportant.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A two-sided t analysis reports n = 20, mean = 61, 95% interval 59 to 63, p = 0.31 against a null mean of 60, and no condition checks. The report concludes, "The true mean is 60." What should be corrected?
  1. State the true mean is 61 because the sample estimate is centered there.
  2. State the true mean differs from 60 because the interval includes 61.
  3. State a 31% probability of equality and leave the condition checks implicit.
  4. State insufficient evidence of a difference and report the condition checks.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

In a random sample of 225 independent transactions, 108 are contactless. Test a population share of 0.40 against a preplanned increase. The normal upper-tail area beyond 2.45 is 0.0071. What decision follows at level 0.01?
  1. z ≈ 2.45; reject in favor of a share above 0.40.
  2. z ≈ 2.40; fail to reject after doubling the tail area.
  3. z ≈ 2.45; fail to reject because 0.0071 exceeds 0.001.
  4. z ≈ −2.45; reject in favor of a share below 0.40.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Two otherwise comparable studies report two-sided p-values of 0.049 and 0.051 using a preselected 0.05 level. How should their evidence be described?
  1. The first establishes an effect and the second establishes no effect.
  2. The first has a larger population effect because its p-value is smaller.
  3. The evidence is very similar despite different cutoff decisions.
  4. The second has stronger evidence because its p-value is closer to 0.05.
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

51 Key Terms, each with its definition

A

Alternative hypothesis
The alternative hypothesis states the population departure for which a test seeks evidence: above, below, or different from the null value.
A question about underfilling uses an alternative that the population mean is below the labeled amount.
Analysis report
An analysis report connects the population question, design, condition checks, test result, estimate, uncertainty, and conclusion in context.
Giving a coffee sample’s mean fill and its interval alongside t, df, and p describes both size and strength of evidence.

B

Beta
Beta, written as the Greek letter β, is the Type II error probability for a specified true parameter value under the alternative.
A mean only slightly below the target is harder to detect, so its beta can exceed that for substantial underfilling.

C

Causal effect
A causal effect is a change attributable to an intervention, requiring a suitable randomized comparison to separate it from other explanations.
Randomly sampling course students estimates their mean score; it does not isolate how much the course changed it.
Central limit theorem
The central limit theorem explains why sample means can have an approximately normal sampling distribution when samples are sufficiently large.
A large sample of skewed repair costs can have a nearly normal mean distribution while its individual costs remain skewed.
Confidence bound
A confidence bound is a one-sided limit for a parameter, corresponding to the directional endpoint used by a matching one-sided test.
An upper bound below 7 hours supports rejecting a mean of 7 in favor of a smaller mean at the matching level.
Confidence interval
A confidence interval is a sample-based range of plausible parameter values from a method calibrated for a stated long-run coverage level.
A 95% interval for mean coffee fill that excludes 250 mL agrees with the matching two-sided 5% t test’s rejection of 250 mL.
Contextual conclusion
A contextual conclusion states what the test decision says about the population parameter in the problem’s own terms and units.
A test of mean sleep against 7 hours concludes that there is evidence of a population mean below 7 hours, not just a low sample mean.
Continuity correction
A continuity correction adjusts a continuous approximation for whole-number counts and can change a software proportion test’s p-value.
Disabling a default continuity correction helps reproduce the uncorrected one-proportion z calculation.
Critical value
A critical value is a boundary on a test-statistic scale that separates a rejection region from values that do not lead to rejection.
In a two-sided 5% z test, the approximate critical values are −1.96 and 1.96, one for each tail.

D

Degrees of freedom
Degrees of freedom identify the reference t curve; a one-sample mean test uses one fewer degree of freedom than the sample size.
A t test of 25 independent sleep measurements uses 24 degrees of freedom for its tail probability.

E

Estimated difference
An estimated difference is the sample estimate minus its reference value, describing the observed departure in the original units.
A mean score of 502 against a benchmark of 500 gives an estimated difference of 2 score points.
Exact binomial test
An exact binomial test obtains tail probabilities directly from a binomial null model, avoiding the normal approximation for small counts.
With only 3 expected successes in 30 trials, an exact binomial calculation is suitable for the tail probability.
Expected count
An expected count is the number of outcomes predicted on average by a probability model; a proportion test computes it under the null.
With 400 observations and a null success probability of 0.30, the expected success count is 120.

F

False alarm rate
A false alarm rate is the probability of rejecting a true null under a repeated testing model, controlled by the significance level.
A valid exact continuous test at level 0.01 rejects about 1% of the time when its null model is true.

L

Large-counts condition
The large-counts condition requires enough expected successes and failures under the null for a proportion’s normal approximation to work.
For a z test, check that both null expected counts reach 10, even when the observed counts look large.
Left-tailed test
A left-tailed test seeks evidence that a parameter is below its null value and uses probability to the left of the observed statistic.
A preplanned test for a lower cycling share counts the normal area below the observed negative z statistic.

M

Mean z test
A mean z test compares a sample mean with a fixed null mean using a known population standard deviation and a standard normal model.
A sample standard deviation of 15 is not enough to justify a mean z test; population spread must be known.

N

Null distribution
A null distribution is the sampling distribution of a test statistic when the null hypothesis and the test’s conditions hold.
The null distribution in a valid one-proportion z test is approximately the standard normal distribution.
Null hypothesis
The null hypothesis is the population claim used to calculate expected sampling variation, usually equality to a fixed benchmark.
A machine targeting 250 mL is checked against a null hypothesis that its population mean fill is 250 mL.
Null mean
A null mean is the fixed population average being checked in a mean test, used as the reference in the test statistic’s numerator.
A coffee machine’s 250 mL target is the null mean, while a sample of its cups gives a measured mean of 246.2 mL.
Null simulation
A null simulation repeatedly generates samples under the null model to estimate the frequency of statistics at least as extreme as observed.
Simulated sets of fair-coin tosses can estimate how often a heads count departs as far from one half.
Null value
The null value is the specific parameter value in the claim being tested, obtained from a benchmark or claim before examining the sample.
For a claimed transit share of 30%, the null value is 0.30 even if the sample share turns out higher.

O

One-proportion z test
A one-proportion z test compares an observed share with a fixed null proportion using a normal approximation and null-based standard error.
A random survey with sufficiently large expected counts can test whether a city’s transit share exceeds 30%.
One-sample t test
A one-sample t test compares a sample mean with a fixed population claim when population spread is unknown, using a t reference curve.
Coffee fill measurements can be tested against 250 mL using their sample mean, spread, and sample size.
Outlier
An outlier is an observation unusually far from the rest of the data, potentially pulling both the sample mean and standard deviation.
A very low cup fill should be investigated before using a small-sample t test; it should not simply be deleted.

P

P-value
A p-value is the null-model probability of a test statistic at least as extreme as observed in the planned alternative’s direction.
A two-sided p-value counts departures at least as far above or below the null as the sample result.
Percentage point
A percentage point is a unit for the arithmetic difference between percentages, keeping an absolute share change distinct from relative change.
A transit share of 34.5% is 4.5 percentage points above 30%, not a relative increase of 4.5%.
Planned analysis
A planned analysis fixes its hypotheses and main choices before inspecting the outcomes, helping keep the test’s interpretation trustworthy.
A report distinguishes a planned two-sided comparison from a subgroup analysis chosen after seeing the results.
Point estimate
A point estimate is a single sample-based value used to estimate a population parameter, such as a sample mean or sample proportion.
A coffee sample with a mean fill of 246.2 mL has that value as its point estimate; a confidence interval also shows the uncertainty around it.
Population parameter
A population parameter is a number describing a population or long-run process, such as its mean or the share with an outcome.
The target of a fill test is the mean for all bottles from the line, not just the measured bottles.
Power
The power of a test is its probability of rejecting the null for a particular true alternative value, equal to one minus beta.
Increasing sample size at the same level improves power to detect a fixed departure from the claimed mean.
Practical importance
Practical importance describes whether a difference is large enough to matter for the situation’s costs, benefits, or performance needs.
A statistically detectable 2-point score difference may be too small to justify paying for a training program.

R

Rejection region
A rejection region is the set of test-statistic values that trigger rejection under the chosen level, alternative, and reference model.
For a right-tailed 5% z test, statistics above approximately 1.645 fall in the rejection region.
Right-tailed test
A right-tailed test seeks evidence that a parameter exceeds its null value and uses probability to the right of the observed statistic.
A study asking whether transit use increased counts the upper normal tail beyond its observed z statistic.

S

Sample proportion
A sample proportion is the observed number of successes divided by the total sample size, estimating the corresponding population share.
The 138 transit users in a sample of 400 residents give a sample proportion of 0.345, or 34.5%.
Scientific notation
Scientific notation expresses a number as a coefficient multiplied by a power of ten; software often writes the power with an e.
The output "3.2e-05" represents 0.000032 and is usually summarized in a report as "p < 0.001."
Selective reporting
Selective reporting presents favorable analyses while hiding other tests or choices, making the published evidence look stronger than the search warrants.
Testing many outcomes and publishing only the one with a small p-value conceals opportunities for false alarms.
Significance level
The significance level is a cutoff chosen in advance that specifies when a p-value is small enough to reject the null hypothesis.
A p-value of 0.031 meets a 0.05 significance level but falls short of the stronger evidence needed at 0.01.
Standard error
A standard error describes the sample-to-sample variation of an estimate, such as a sample mean, under a sampling model.
For a sample of coffee cup fills, a 1.6 mL standard error describes uncertainty in the sample mean, not variation among cups.
Statistical significance
Statistical significance means a valid test’s p-value is at or below its preselected significance level, leading to rejection of the null.
A coffee fill test result that is statistically significant at 0.05 still needs a separate judgment of its practical importance.

T

T distribution
A t distribution is a symmetric reference curve centered at zero with heavier tails than the normal, accounting for estimated population spread.
A 15-df t curve gives a larger two-sided 5% critical value than the standard normal curve does.
T statistic
A t statistic is the departure of a sample mean from a null mean divided by the estimated standard error, using the sample standard deviation.
A coffee sample mean that is 3.8 mL below target, divided by a 1.6 mL standard error, gives a t statistic of −2.375.
T table
A t table lists critical values for selected degrees of freedom and tail probabilities, often giving bounds on an observed p-value.
If a statistic falls between two columns for the correct df, its tail probability falls between their listed areas.
Test statistic
A test statistic measures the difference between a sample estimate and a null value in standard errors under the chosen test model.
A z statistic of 2 places the observed proportion two null-model standard errors above the benchmark.
Transparency
Transparency in statistical reporting means showing the design, methods, relevant choices, and results needed to assess the claimed evidence.
Reporting all tested outcomes lets readers judge how the highlighted small p-value was selected.
Two-sided alternative
A two-sided alternative treats a departure above or below the null value as evidence against equality, because either direction matters.
A machine that must avoid both overfilling and underfilling calls for a two-sided alternative about its mean.
Two-sided p-value
A two-sided p-value counts both directions of departure; for a symmetric normal or t model, it doubles the tail beyond the absolute statistic.
When a flower sample is tested against a genetic model, both unusually low and unusually high white-flower shares would challenge that model.
Type I error
A Type I error occurs when a test rejects a null hypothesis that is actually true, creating a false alarm about a population departure.
Concluding that a correctly calibrated line underfills would be a Type I error in the lower-tailed fill test.
Type II error
A Type II error occurs when a test fails to reject a null hypothesis that is false, missing a real population departure.
Failing to detect that a line really underfills is a Type II error for a planned underfilling test.

W

Wald interval
A Wald interval for a proportion is the usual sample-centered normal interval whose estimated standard error uses the observed proportion.
A near-cutoff proportion z test can reject even though its Wald interval still contains the null value.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started