Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: example(s) of simple cases of linear regression #171

Open
crosser opened this issue Aug 16, 2020 · 0 comments
Open

Documentation: example(s) of simple cases of linear regression #171

crosser opened this issue Aug 16, 2020 · 0 comments

Comments

@crosser
Copy link

crosser commented Aug 16, 2020

As a non-statistician, I need to run linear regression on a set of data points, such as:

measurements = [(1.0, 2.0), (2.0, 2.5), (3.0, 3.0)} :: [(Double, Double)]  -- (X, Y) coordinates of points

and get a = 1.5 and b = 0.5 from the fromula

y = a + bx

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.

@crosser crosser changed the title Documentation: exmaple(s) of simple cases of linear regression Documentation: example(s) of simple cases of linear regression Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant