Courses / Mathematics I
Data Analysis and Probability

Hypothesis Testing

Mathematics I 267 words Free to read

Hypothesis Testing Foundations

Hypothesis testing is a formal procedure for deciding whether data support a claim. It frames the question as a contest between two opposing hypotheses:

HypothesisRole & Description
Null hypothesis (H0H_0)The default, no-effect claim (e.g., the coin is fair)
Alternative hypothesis (H1H_1)The claim you are gathering evidence for (e.g., the coin is biased)

The logic mirrors a courtroom: H0H_0 is presumed true until evidence forces a rejection. You compute a test statistic from data, then find the p-value: the probability of observing data at least as extreme as yours if H0H_0 were true.

The threshold is the significance level α\alpha (commonly 0.05). If p<αp < \alpha, you reject H0H_0 in favor of H1H_1; if large, you fail to reject it.

A real coin's null distribution, with the p-value as its own tail

Errors and Interpretive Pitfalls

Because decisions rely on chance data, two types of errors are possible:

Error TypeDefinitionProbability
Type I errorRejecting a true H0H_0 (false positive)α\alpha
Type II errorFailing to reject a false H0H_0 (false negative)Noted as β\beta

There is a direct trade-off: lowering α\alpha reduces false positives but raises false negatives.

Common Pitfalls:

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

13practice questions
2interactive scenes

Data Analysis and Probability