On the correctness of a discrete simulation

The distribution of p-values under the null hypothesis

Maximum likelihood estimates for linear regression