Search⌘ K
AI Features

Simulation-Based Inference

Explore how to perform simulation-based hypothesis testing for a regression slope using R's infer package. Understand null hypothesis assumptions, generate permuted samples to create null distributions, and interpret p-values to assess relationships between variables in regression analysis.

We'll cover the following...

Hypothesis test for a slope

Let’s now conduct a hypothesis test of H0 : β1=0H_0\space:\space\beta_1=0 vs. HA : β10H_A\space:\space\beta_1\neq0. We’ll use the infer package, which follows the hypothesis testing paradigm in the diagram below.

Allen Downey’s hypothesis testing framework
Allen Downey’s hypothesis testing framework

Let’s first think about what it means for β1\beta_1 ...