TeX source:
s^2 = \frac{\mathbf{r}\cdot\mathbf{r}}{N-p-1}