While the function for the least squares algorithm exists (Statistics.Regression.ols, apparently), it is not clear for a non-statistician how to convert the data to the arguments of the ols function and how to interpret the results.
It would be helpful to have examples in the documentation for such common and simple use cases for ols (and maybe other common functions) to make it approachable for people without (much) background in statistics.
As a non-statistician, I need to run linear regression on a set of data points, such as:
and get
a = 1.5
andb = 0.5
from the fromulaWhile the function for the least squares algorithm exists (
Statistics.Regression.ols
, apparently), it is not clear for a non-statistician how to convert the data to the arguments of theols
function and how to interpret the results.It would be helpful to have examples in the documentation for such common and simple use cases for
ols
(and maybe other common functions) to make it approachable for people without (much) background in statistics.