-
Notifications
You must be signed in to change notification settings - Fork 7
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
add goodness of fit plot #192
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #192 +/- ##
===========================================
+ Coverage 77.91% 78.04% +0.12%
===========================================
Files 32 32
Lines 2884 2910 +26
Branches 686 688 +2
===========================================
+ Hits 2247 2271 +24
Misses 461 461
- Partials 176 178 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a useful verification of a good fit. Not sure on specific measures in case it is not a good fit.
slope, intercept, r_value, p_value, std_err = stats.linregress( | ||
petab_problem.measurement_df['measurement'], | ||
simulations_df['simulation']) # x, y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you calculate here the linear regression between measurement and simulation. What would it tell me if this is not a diagonal plot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could see here if simulated values tend to be larger or smaller that measurement values. This plot probably won't be useful in every case. Also it gives some measure of how much off the simulation is.
It could be useful if one wants to compare different approaches to fit the model.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Could add an example to a notebook
No description provided.