cov lr maxsum
The lr function returns the intercept and slope using linear regression on the statistics matrix, as follows: