1. Home
  2. Steve Brunton

Sep 11, 2025

Why statistical tests start by assuming nothing changed

18 min → 1:32

Overview

Steve Brunton explains how to conduct hypothesis testing by defining null and alternative hypotheses, calculating a Z-score, and interpreting the p-value to determine if a significant change has occurred.

3 things to know

Brunton: Hypothesis testing separates real results from random chance

Steve Brunton explains that hypothesis testing is a formal statistical procedure used to investigate ideas about the world and determine whether an observed outcome is statistically significant or simply due to random chance.

More

A formal procedure for investigating ideas about the world using statistics.

▶ Watch at 1:44

Brunton says tests aim to reject the no-difference assumption

Steve Brunton notes that the null hypothesis is the default assumption of no effect or difference between groups, and the goal of testing is to gather enough evidence to reject that assumption.

More

The goal of the test is to collect enough evidence to reject this hypothesis.

▶ Watch at 0:56

Researchers usually try to prove the alternative hypothesis, says Brunton

Steve Brunton states that the alternative hypothesis is the proposal that a change has actually occurred, which is what a researcher is typically trying to prove.

More

This is what the researcher is typically trying to prove.

Also in this episode

Brunton says a p-value under 0.05 suggests unlikely chance

Steve Brunton defines the p-value as the probability of seeing a result at least as extreme as the measured one assuming the null hypothesis is true, noting a small value like under 0.05 suggests chance alone is unlikely.

More

The probability of observing a result as extreme as, or more extreme than, the one measured, assuming the null hypothesis is true.

▶ Watch at 6:54

Brunton: Z-scores measure distance between observed and expected averages

Steve Brunton explains that a Z-score is a standardized test statistic calculated by taking the difference between the observed average and the expected average under the null hypothesis, then dividing by the standard error.

More

The formula given is `Z = (Observed Average - Expected Average) / Standard Error`.

Chosen p-value cutoffs set rejection region size, says Brunton

Steve Brunton explains that if a calculated Z-score falls into a pre-defined rejection region, whose size is set by the chosen p-value cutoff, it provides enough evidence to reject the null hypothesis.

More

A pre-defined range for the test statistic. If the calculated Z-score falls within this region, it provides sufficient evidence to reject the null hypothesis.

Brunton notes one-tailed tests check for one-way traffic gains

Steve Brunton distinguishes between one-tailed tests, which check for a change in a specific direction like an increase in website traffic, and two-tailed tests, which check for any increase or decrease.

More

A two-tailed test is used when testing for any change, whether it's an increase or a decrease.

Quotes

“Your null hypothesis would be that there is no change in the treatment group having the drug.”

▶ Watch at 0:56

“You assume the null hypothesis is true.”

▶ Watch at 1:44

“P is the probability that my null hypothesis is true.”

▶ Watch at 6:54

Full summary

Episode Overview

  • Provides a foundational understanding of hypothesis testing, a statistical method used to determine if a significant change has occurred.
  • Defines the core components: the null hypothesis (H₀), which assumes no change, and the alternative hypothesis (Hₐ), which proposes a change.
  • Walks through the standard procedure for conducting a hypothesis test, including calculating a test statistic (Z-score) and interpreting the resulting p-value.
  • Explains the concept of statistical significance, the role of the p-value, and how to use it to decide whether to reject the null hypothesis.
  • Introduces the difference between one-tailed and two-tailed tests, depending on whether the hypothesis specifies the direction of the change.

Key Concepts

  • Hypothesis Testing: A formal procedure for investigating ideas about the world using statistics. It's used to determine whether an observed outcome is statistically significant or simply due to random chance.
  • Null Hypothesis (H₀): The default assumption that there is no effect or no difference between groups. The goal of the test is to collect enough evidence to reject this hypothesis.
  • Alternative Hypothesis (Hₐ): The hypothesis that a change has occurred. This is what the researcher is typically trying to prove.
  • Test Statistic (Z-score): A standardized value that measures how far an observed sample statistic (like the sample mean) is from the expected value under the null hypothesis. The formula given is Z = (Observed Average - Expected Average) / Standard Error.
  • P-value (Observed Significance Level): The probability of observing a result as extreme as, or more extreme than, the one measured, assuming the null hypothesis is true. A small p-value (e.g., < 0.05) suggests the observed result is unlikely to be due to chance alone.
  • Rejection Region: A pre-defined range for the test statistic. If the calculated Z-score falls within this region, it provides sufficient evidence to reject the null hypothesis. The size of this region is determined by the chosen significance level (p-value cutoff).
  • One-Tailed vs. Two-Tailed Test: A one-tailed test is used when testing for a change in a specific direction (e.g., an increase in website traffic). A two-tailed test is used when testing for any change, whether it's an increase or a decrease.

Quotes

  • At 00:56 - "Your null hypothesis would be that there is no change in the treatment group having the drug." - Explaining the concept of the null hypothesis using a clear, practical example of a medical drug trial.
  • At 01:44 - "You assume the null hypothesis is true." - Stating the foundational first step of the entire hypothesis testing procedure.
  • At 06:54 - "P is the probability that my null hypothesis is true." - Providing a simple, intuitive definition of the p-value and its role in decision-making.

Takeaways

  • Always start a statistical test by framing your question with a null hypothesis (H₀: "nothing changed") and an alternative hypothesis (Hₐ: "something changed").
  • Calculate a test statistic, like the Z-score, to quantify how many standard units your observation is from the expected baseline. A larger Z-score indicates a more extreme result.
  • The p-value is the probability that your observed result happened purely by random chance. A small p-value (e.g., less than 0.05) means the result is statistically significant, allowing you to reject the null hypothesis.
  • To maintain statistical integrity, you must choose your significance level (e.g., p = 0.05) before you run the experiment and analyze the data.
  • Determine if your hypothesis requires a one-tailed test (if you expect change in one direction) or a two-tailed test (if a change in either direction is relevant). This choice affects how you define your rejection region.

Watch the full episode 18 min

Read along with the audio summary

How do you know if an observed outcome is a statistically significant change, or if it happened purely by random chance? That is the foundational question explored in this episode, which came out on September 11, 2025, and walks through the statistical method of hypothesis testing.

How to separate a real change from a fluke.

Whenever you investigate an idea about the world, you face the risk that your results are simply due to random chance. Hypothesis testing is a formal procedure using statistics to determine whether an observed outcome is truly statistically significant.

Why you must start by assuming nothing happened.

This default assumption of no effect or no difference between groups is called the null hypothesis, written as H zero. For example, in a medical drug trial, your null hypothesis would be that there is no change in the treatment group having the drug, and the goal of the test is to collect enough evidence to reject this starting assumption.

Setting up the claim you actually want to prove.

Once you have stated that nothing changed, you need its opposite on the table. That opposite is the alternative hypothesis, written as H a, which proposes that a change has occurred. This is what the researcher is typically trying to prove.

Measuring how far your result strayed from the expected baseline.

A test statistic, like the Z score, is a standardized value that measures how many standard units an observed sample statistic, such as a sample mean, is from the expected value under the null hypothesis. You calculate the Z score by taking the observed average minus the expected average, and dividing that by the standard error, where a larger Z score indicates a more extreme result.

The number that tells you if chance is to blame.

That Z score leads directly to the p value, also called the observed significance level. The p value is the probability of observing a result as extreme as, or more extreme than, the one measured, assuming the null hypothesis is true. A small p value, for example less than point zero five, suggests the observed result is unlikely to be due to chance alone, making it statistically significant and allowing you to reject the null hypothesis.

Drawing the line before you look at the data.

To decide if your test statistic is extreme enough, you compare it against a rejection region, which is a pre defined range for that statistic. If your calculated Z score falls within this region, it provides sufficient evidence to reject the null hypothesis, and the size of this region is determined by your chosen p value cutoff, such as point zero five.

Why the direction of the change matters.

How you define that rejection region depends on one final choice between a one tailed and a two tailed test. You use a one tailed test when testing for a change in a specific direction, such as an increase in website traffic, and a two tailed test when testing for any change, whether it is an increase or a decrease.

Hypothesis testing gives you a formal way to tell whether an observed outcome is statistically significant or just random chance, starting from the null hypothesis, moving through a Z score and a p value, and comparing the result against a pre defined cutoff. You assume the null hypothesis is true.

More from Steve Brunton

Related Episodes