Skip to content
Infinitesimal Dynamics home
Notebook: 0 XP

Statistics / Testing and modelling

Hypothesis Tests and p-values

Assume nothing interesting is happening, then ask how surprising your data would be.

3 min read · 1 sections · 1 checks

Contents 2 sections
  1. §1The logic of a test
  2. ?Check yourself

By the end you can

  • State null and alternative hypotheses
  • Compute a test statistic and p-value
  • Distinguish type I and type II errors

Helps to know: Confidence Intervals

§1The logic of a test

The null hypothesis H0H_0 says there is no effect. The p-value is the probability, if H0H_0 were true, of data at least as extreme as what was seen. A small p-value means the data and H0H_0 are hard to reconcile.

Example 1Is the coin fair?

100 flips give 62 heads.

  1. Under H0H_0: mean 50, standard deviation 100⋅0.25=5\sqrt{100 \cdot 0.25} = 5.

Check yourself

  1. Q1
    Rejecting a true null hypothesis is a…