Consider the usual normal linear model $y=X\beta + \epsilon$ where $X$ is $N\times (p+1)$ and $\epsilon \sim N(0,\sigma^2I_N)$ I'm reading up on hypothesis testing in this model: $H_0:$ $\beta_j=0 $,$H_1:$ $\beta_j\neq0 $. A statistic of interest for this test is $\frac{\hat{\beta}_j}{\hat{\sigma}\sqrt{v_j}}$ where $v_j=(X^TX)^{-1}_{jj}$.
What I fail to understand is the link between this kind of hypothesis testing and the usual definition. The framework for hypothesis testing is usually the following: we have a sample $X_1,\ldots, X_n$ where the $X_i$ are i.i.d and follow the probability distribution $P_{\theta}$ where $\theta$ is unknown. We consider a partition of the parameter space and some $R\subset \mathbb R^n$ (the rejection region).
Here, what is the sample ? What are the probability distributions $P_{\theta}$ ? What is $R$ ?