Statistics Library / Chapter 4

Tests, estimates and comparisons

Use evidence to assess a question without turning a threshold into a conclusion.

Connect the ideas

Define the contrast and design first. A mean difference, a rank-based comparison and a categorical association can answer different questions.

Independent and paired comparisons have different uncertainty calculations. More than two groups introduces contrasts and multiplicity. An omnibus result does not identify every differing pair; a non-significant result does not establish equivalence.

Preserve the observational relationshipIndependent groups contain different units; paired comparisons retain a link between measurements of the same matched unit.Independent groupsPaired or matchedDifferent observational unitsMatching carries information
Preserve the observational relationship. Independent groups contain different units; paired comparisons retain a link between measurements of the same matched unit. Schematic illustration; not calculated from a dataset.
Before you continue

Read the estimate and available interval, the data used, the alternative and the assumptions. State whether comparisons were planned or discovered.

A mathematical connection: Two-sided p-value from a t statistic

p=2 P(Tν≥∣t∣)p = 2\,P(T_{\nu} \ge |t|)

T_nu is a Student's t random variable with nu degrees of freedom and t is the observed test statistic.

Read the formula in context: p-value

Do not choose a procedure because it yields a smaller p-value. Rank tests do not automatically test medians; a normality test alone cannot select the right analysis.

Further reading: UCLA OARC · Choosing an analysis · Penn State · Elementary statistics.

Before you begin

What you will learn

  • State the null question and distinguish evidence from a decision rule.
  • Read an effect estimate, uncertainty and p-value together.
  • Recognize how multiple comparisons and design affect an interpretation.

Ask what the result supports

A hypothesis test evaluates data in relation to a null model and a specified statistic. Its p-value describes how unusual the observed statistic, or a more extreme one, would be under that model and the chosen testing direction. It is not the probability that the null is true.

Before interpreting a test, identify the comparison, the population quantity, the study design and the assumptions. Independent groups and paired measurements require different handling. A test selected after inspecting results can have a different error behavior from a preplanned procedure.

An effect estimate addresses magnitude. Its uncertainty addresses precision. Practical importance needs subject-matter context. A small p-value cannot supply that context, and a large p-value does not establish equivalence or the absence of a meaningful effect.

Worked reasoning / Original illustration

A decision needs more than a threshold

Two analysts compare a new process with the current process and disagree because one focuses on the p-value and the other on the estimated improvement.

  1. Write down the effect estimate and interval, when available, with the tested question.
  2. Ask which changes would matter in practice and whether that criterion was chosen before inspecting results.
  3. Review the data design, model assumptions and other comparisons that were tried.

A statistical result informs a decision; it does not replace the scientific or operational question.

Read the ideas in sequence

Follow these readings, then return for the reasoning check below.

  1. 4.1
    Hypothesis test

    A hypothesis test is a procedure that uses sample data to decide whether the evidence is strong enough to reject a specific, pre-stated claim about a population.

  2. 4.2
    p-value

    The p-value is the probability of getting data at least as extreme as yours if the null hypothesis were true.

  3. 4.3
    Type I and Type II error

    A Type I error is rejecting a true null hypothesis (a false alarm); a Type II error is failing to reject a false null hypothesis (a miss).

  4. 4.4
    Proportion test (z-test)

    This z-test compares two independent proportions (with risk difference, risk ratio, and odds ratio) or a single proportion against a hypothesized value, using the normal approximation to the binomial and reporting Cohen's h as the effect size.

  5. 4.5
    Two-sample t-test

    The two-sample t-test asks whether two independent groups differ in their population means, given how much the observations vary within each group.

  6. 4.6
    Effect size

    An effect size is a number that measures how big a difference or relationship is. Unlike a p-value, it does not get more impressive just because the sample is bigger, although how precisely it is known does improve with more data.

  7. 4.7
    Multiple comparisons

    The multiple-comparisons problem is that running many hypothesis tests inflates the chance of at least one false positive far above the significance level used for any single test.

Pause and reason

Check your understanding

A comparison is not statistically significant. Is it correct to report that the processes have the same performance?

Show explanation

Not on that basis. The data may still be compatible with differences that matter. Examine the estimate and uncertainty. Demonstrating practical equivalence requires a suitable equivalence procedure and substantively justified margins chosen in advance.

Take it with you

State the tested question, effect, uncertainty and limitations. Report decisions separately from evidence.

Begin this chapter's readings →

Further university reading

The chapter bridges and reasoning checks are original KernelStats material. These sources offer further study; they have not reviewed or endorsed this book. Read about sources and review limits.