In this guide
← Maths AI guides

Statistics & probability · AI HL

Hypothesis tests, critical regions and errors

Unify mean, proportion, Poisson and correlation tests, distinguish p-values from error probabilities and calculate power for a specified alternative.

Course focus: AI HL · First-assessment-2021 course. The sections distinguish the mathematical idea, the calculation and its interpretation.

Before you start: Sampling distributions, probability tails and standard statistical tests.

Start with a small example

Build it from the beginning

HL content

A hypothesis test starts by temporarily treating a null model as true. The p-value measures how extreme the observed result is under that model in the chosen tail or tails. It is not the probability that the null hypothesis is true.

A first walkthrough

A test gives p=0.04 with significance level 0.05. Explain the decision.

  1. Compare 0.04 with the preselected 0.05 threshold.
  2. Since it is smaller, reject the null hypothesis.
  3. The data provide evidence against the null model at this level; they do not give certainty that it is false.
Try the practice ladder after learning the methods ↓

The foundations behind the method

Understand what the symbols mean

Hypothesis tests compare observed evidence with a reference model. Their common structure is more important than memorising unrelated calculator menus: parameter hypotheses determine a null distribution, the alternative determines extremeness, and a preselected rule turns that evidence into a decision.

How the ideas connect

Error and power calculations use the same decision rule under different possible populations. Alpha is evaluated with the null true; beta and power require a particular false-null alternative. A p-value instead varies with the observed sample. These probabilities answer different questions, even when they use the same distribution tool.

01

Start with the idea

Build your understanding

One framework

Means, proportions, counts and correlations use different null distributions but share the same evidence-and-decision structure.

Two possible errors

A stricter rejection rule usually trades reduced Type I risk for lower power at a fixed sample size.

Compare the approaches

Choose by the information in the question, rather than the formula you recognise first.

p-value method

When it helpsEvaluate extremeness of the observed statistic under the null.

Check before using itThe alternative and tail convention must be chosen consistently before interpreting the value.

Critical-region method

When it helpsUse a preselected rejection set and evaluate its probabilities.

Check before using itDo not move the boundary when calculating power under an alternative.

Your method plan

  1. Define the parameter hypotheses, assumptions and significance level.
  2. Calculate the correct null tail or rejection region.
  3. State the decision and distinguish evidence from error-rate or power claims.
02

Learn the methods

Learn step by step

1. Choose a null model and alternative

Write a statement about a population parameter or distribution under the null, then specify the departure being tested. An upper, lower or two-sided alternative chooses which outcomes count as extreme. Select the significance level before inspecting the result. The null is a reference calculation, not necessarily your personal belief. A p-value measures extremeness under that model and its assumptions; it is not the probability that the null is true.

2. Match the statistic to the model

A mean test may use a normal or t statistic according to the supplied spread information and assumptions. A population-proportion test can use a binomial count under independent fixed-probability trials. A Poisson-mean test uses an exposure-specific count model. For zero population correlation in paired approximately bivariate-normal data, a Pearson correlation test uses its own statistic and degrees of freedom. Do not substitute rank correlation or dependent observations into that procedure without justification.

A zero-correlation statistic

Why this formula works

The Pearson coefficient is standardized by its null sampling variability when population correlation is zero and the paired-data model is suitable. The result has a t reference with n minus two degrees of freedom. This tests a population linear correlation, not whether a sample coefficient is exactly zero or whether a relationship is causal.

The formula

\(t=r\sqrt{\frac{n-2}{1-r^2}}\), with \(\nu=n-2\) under the appropriate null model.

Quick example

For r=0.5 and n=10, \(t\approx1.632993\) with 8 degrees of freedom. Select the alternative before reading its tail.

3. Use tails and critical regions consistently

A critical region lists outcomes that lead to rejection; its null probability is the actual Type I error rate. Discrete distributions may not allow a region with exactly the nominal level, so choose an allowable region according to the task’s rule. For a right-tail count test, use a complement through one less than the observed count. A two-sided discrete p-value can have more than one convention; follow the task or calculator definition rather than blindly doubling a one-sided result.

Worked example: A one-sided proportion test

Use X~B(20,p), null p=0.2 and alternative p>0.2. An observed count is 8.

  1. The right-tail p-value is \(P_{0.2}(X\ge8)=1-P_{0.2}(X\le7)\).
  2. Its value is approximately 0.0321427, below 5%.
  3. Reject the null at 5% under the independent-trial assumptions.
  4. The actual null probability of the critical region X≥8 is the same tail; it is less than 0.05 because the count distribution is discrete.
Worked example: A Poisson mean test

An exposure has null mean 3 arrivals. Observe 7 and test for an increased mean.

  1. Under the null use \(X\sim\operatorname{Poisson}(3)\).
  2. The right-tail probability is \(P(X\ge7)=1-P(X\le6)\).
  3. It is approximately 0.0335085, so reject at 5%.
  4. The mean must belong to the same exposure as the observed count. A rate per hour cannot be used unchanged for a different observation interval.

4. Type I and Type II errors

A Type I error rejects a true null. A Type II error fails to reject a false null at a specified alternative. The significance level controls or bounds the first under the test model. The second depends on the alternative parameter, sample size and critical region; there is no single beta without that specification. Failing to reject is not equivalent to accepting the null as fact. More stringent Type I protection can reduce power when sample size is fixed.

5. Calculate power from the same rejection rule

Power is the probability of rejection when a specified alternative is true, equal to one minus beta. Keep the critical region fixed from the null calculation, then evaluate its probability under the alternative distribution. Changing the critical region after switching parameters would describe another test. This makes power a model-based repeated-sampling probability, not the probability that a significant finding is correct.

The same critical region under two distributions

04812162000.050.10.150.2Successes XProbability
  • Null p = 0.2
  • Alternative p = 0.4
Both curves of bars use the rejection rule X≥8. The null binomial distribution has p=0.2; the alternative has p=0.4, with n=20 for both. The area in the selected bars gives null rejection probability or alternative power depending on the distribution.

Error probabilities

Why this formula works

A rejection rule partitions possible samples into two decision regions. Evaluating the same region under the null gives Type I probability; evaluating its complement under a specified alternative gives Type II probability. The distributions differ, but the decision boundary must remain fixed for this comparison.

The formula

\(\alpha_{\rm actual}=P_{H_0}(\text{reject})\) \(\beta=P_{H_1}(\text{do not reject})\) \(\text{power}=1-\beta\).

Quick example

If a test rejects a binomial count when X≥8, calculate that tail under the null for alpha and under a specified alternative for power.

6. Evaluate a finding in context

Statistical significance does not establish causality, practical importance or flawless measurement. Repeated unplanned tests can increase the chance of at least one false positive, so distinguish a preplanned test from exploratory searches. State assumptions, sample population and the effect direction. For model comparisons, note what observations the model actually predicts. Report p and the level alongside the decision, allowing a reader to assess evidence rather than seeing only a binary label.

Quick formula reference

For revision once you understand the methods above. Check the conditions before using a formula.

A zero-correlation statistic

\(t=r\sqrt{\frac{n-2}{1-r^2}}\), with \(\nu=n-2\) under the appropriate null model.

Return to the explanation →

Error probabilities

\(\alpha_{\rm actual}=P_{H_0}(\text{reject})\), \(\beta=P_{H_1}(\text{do not reject})\), \(\text{power}=1-\beta\).

Return to the explanation →

Learn to diagnose an error

Spot the mistake

The statement below is incorrect. Identify the missing condition or reasoning before opening the explanation.

Incorrect reasoning

The p-value is the probability that the null hypothesis is true.

Explain and repair the mistake

It is a probability of results at least as extreme as the observed result, calculated assuming the null model and its assumptions. Reversing that condition would require a separate inferential framework; the test output alone does not supply it.

03

Connect and apply

Put the ideas together

A more demanding application of this guide’s methods. This is a learning stage; any additional HL content is labelled separately.

Worked application

The alternative changes power, not the rule

For the 20-trial example, retain critical region X≥8 but evaluate power when p=0.4.

  1. Under that alternative, \(X\sim B(20,0.4)\).
  2. Calculate \(P_{0.4}(X\ge8)\), keeping the threshold 8.
  3. This is approximately 0.5841; beta is approximately 0.4159.
  4. These are performance measures at p=0.4. They do not replace the observed-data p-value calculated under p=0.2.
Pause and explain

Would choosing a new 5% threshold under p=0.4 calculate the same power?

Check your reasoning

No. It would change the test’s decision rule. Power evaluates the original rejection region under the alternative, so its boundary must remain the one selected from the null.

Common mistakes and how to avoid them

  • It is a probability of results at least as extreme as the observed result, calculated assuming the null model and its assumptions. Reversing that condition would require a separate inferential framework; the test output alone does not supply it.
  • The alternative and tail convention must be chosen consistently before interpreting the value.
  • Do not move the boundary when calculating power under an alternative.
04

Practise independently

Build confidence, then apply it

Try each question before opening its hint or solution. If a method is new, return to the walkthrough, then try again. These learning stages describe the practice sequence; additional HL content is labelled separately.

  1. 1

    Build confidence

    HL extension

    The same p-value is assessed at the 1% level. What changes?

    Need a starting point?

    Use the new threshold, 0.01.

    Show the worked solution
    1. Now 0.04 is larger than 0.01.
    2. Do not reject the null hypothesis at 1%; the strength of evidence has not changed, but the decision threshold has.
  2. 2

    Apply and explain

    HL extension

    What is a Type I error?

    Need a starting point?

    Assume the null model really is true.

    Show the worked solution
    1. A Type I error is rejecting a true null hypothesis.
    2. It differs from a Type II error, which is failing to reject a false null hypothesis.
  3. 3

    Check your understanding

    Which error rejects a null that is actually true?

    Show the worked solution

    A Type I error. Its probability is evaluated under the null and controlled by the rejection rule. A Type II error is non-rejection under a specified false-null alternative.

  4. 4

    Use the method

    A test has beta=0.3 at a specified alternative. What is its power there?

    Show the worked solution

    Power is 0.7. It is the probability that the procedure rejects under that particular alternative, not a probability that every rejected claim is correct. Changing the alternative can change beta and power.

Finished? Use the linked question bank below to practise selecting the method without a guide telling you which rule to use.

Using these methods in exam questions

AI Paper 1

GDC required

Short-response questions still need mathematical setup and interpretation. Choose the correct tool, enter the model or data carefully, and check units and rounding.

AI Paper 2

GDC required

Extended-response questions connect several steps. Keep intermediate values at full precision and explain how each result answers the context.

For this topic: Define the variable or events, write the probability statement or hypotheses, then calculate. Name the distribution and its parameters; interpret the result using the original population or context.

HL only · GDC required

Paper 3: build a connected argument

Both AA HL and AI HL Paper 3 contain two extended problem-solving questions. A question develops a theme, so keep useful earlier results, test small cases and explain any proposed general rule. A calculator pattern can suggest a result; your mathematical reasoning must support it.

  1. Identify what the first part establishes and record the conditions under which it holds.
  2. When a later part introduces a new definition or model, connect it to methods you already know rather than assuming a new formula must have been memorised.
  3. Check the conclusion against an earlier numerical case and explain its meaning or limitation.

For the first-assessment-2021 courses. IB assessment reference ↗

Find a specific method or formula

Now practise the method

If you opened this guide from a question, return to that tab and try the method without looking at the example. Your answer stays in the question tab.

Practise this subtopic →

Want a broader practice session? Explore IB Maths AI HL practice questions →Try free IB Maths exam-style questions and worked solutions →

Original Arc Practice teaching notes for Maths AI. Core and HL sections are distinguished above. These notes follow the first-assessment-2021 course and are not an official IB publication or a complete syllabus checklist. IB course reference. Report a correction.