Menu
Advertisement
Advertisement
Advertisement

Lesson 1: The Logic of Hypothesis Testing

The Logic of Hypothesis Testing

Hypothesis testing is like a criminal trial. We start with an assumption of innocence (Null Hypothesis) and only reject it if we have overwhelming evidence to the contrary.

1. Setting the Stage

Null Hypothesis (H0H_0)

The status quo. “Nothing is happening.” “There is no difference.”

Example

The new drug has no effect on recovery time.

μnew=μold\mu_{new} = \mu_{old}

Alternative Hypothesis (H1H_1)

The claim we want to test. “Something is happening.”

Example

The new drug reduces recovery time.

μnew<μold\mu_{new} < \mu_{old}

2. The P-Value

The p-value is the probability of observing data at least as extreme as what we saw, assuming the Null Hypothesis is true.

Rule of Thumb:

  • Low p-value (< 0.05): The data is unlikely under H0H_0. We Reject H0H_0. (Statistically Significant)
  • High p-value (> 0.05): The data is consistent with H0H_0. We Fail to Reject H0H_0.

3. Errors

We can make mistakes:

  • Type I Error (α\alpha): Rejecting a true Null Hypothesis (False Positive).
  • Type II Error (β\beta): Failing to reject a false Null Hypothesis (False Negative).
Advertisement

All Chapters in this Book

Sponsored Content

finding (solutions) x

A public notebook and learning hub.