lm1_data: Simple Linear Regression and Data Generation
Description
Creates data suitable for a simple linear regression. In the first step, data is computed using pearson_data(),
satisfying the conditions \(\sum_{i=1}^{nmax} x_i^2 = n\) and \(\sum_{i=1}^{nmax} x_i = 0\) (similar conditions apply to \(y\).
The data are then rescaled with \(x' = center[1]+scale[1]*x\) and
\(y' = center[2]+scale[2]*y\).
Finally, a simple linear regression is performed on the transformed data.