-
Notifications
You must be signed in to change notification settings - Fork 4
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
refine bail policy vs crime rate results #21
Comments
I am wondering that there are other methods to account for both x and y errors. We can also get that from scikit-learn library. We can easily use different regression models from there and also account for error. Do let me know what we should do about it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the results of the simpler ticket work out, AND we want more robust results, we can do the following:
To make the analysis more robust, we probably want to take into account both the x and y errors. To do that, you need "total least squares" or "orthogonal least squares" regression. There's an implementation in scipy here, but the API is pretty low-level, which means it's harder to work with.
https://docs.scipy.org/doc/scipy/reference/odr.html
The text was updated successfully, but these errors were encountered: