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

181 alternative to q q plot to evaluate regression results #187

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from

Conversation

patrickleonardy
Copy link
Contributor

Story Title

Alternative to Q-Q plot to evaluate regression results

Changes made

Added two functions to create plots to the RegressionEvaluator:

  • plot_residuals():
    • plots the residual vs the actual values.
    • plots also the 0 line to see if we are above or ben
  • plot_residuals_by_bin():
    • plots the residual vs the actual values binned.
    • binning strategy can be: uniform or quantile
    • number of bins can be chosen

How does the solution address the problem

Those two plots should be easier to interpret as the normal QQ-plot and thus can bring more value to discussions with business stakeholders.

Linked issues

Resolves #181

Plots

plot_residuals_by_bin(nbins = 5, binning_strat='uniform')

image

plot_residuals_by_bin(binning_strat='quantile', nbins=10)

image

evaluator.plot_residuals()

image

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

Successfully merging this pull request may close these issues.

Alternative to Q-Q plot to evaluate regression results
2 participants