-
Notifications
You must be signed in to change notification settings - Fork 51
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
Correct TI error estimation #58
Conversation
Codecov Report
@@ Coverage Diff @@
## master #58 +/- ##
==========================================
+ Coverage 98.11% 98.13% +0.01%
==========================================
Files 9 9
Lines 478 482 +4
Branches 94 94
==========================================
+ Hits 469 473 +4
Misses 4 4
Partials 5 5
Continue to review full report at Codecov.
|
Sampling at independent lambdas should be uncorrelated, since they are expected to come from independent simulations. Nonzero covariance is likely to be noise. If it comes from some sort of replica exchange or expanded ensemble simulation, that's a bit different, but probably needs to be thought about a bit more. |
But we can rewrite the contribution of the trapezoids into a sum of independent calculations I.e. although it's derived as the area of a set of trapezoids, it is writeable (give it a try!) as: \sum w_i <dh/dl>_i where w_i is a weight determined by the choice of lambdas and <dh/dl>_i is the ensemble average of dh/dl at state i. No correlations are necessary; at best, they should cancel out. Note that I realized that I actually haven't looked at THIS code in alchemlyb. The error analysis code I wrote is at: https://github.com/MobleyLab/alchemical-analysis. If the error analysis calculation in alchemlyb does not reflect the code in alchemical-analysis, then the alchemlyb should be checked and updated. But it is possible (and far preferable) to do WITHOUT any correlation matrix. Any autocorrelation matrix approach assume simple error propagation, which may not quite hold, and thus even if the overall effect is correct in the limit that simple error propagation is correct, they will introduce some error for most calculations. |
If I'm not mistaken, the error estimates differ. With this pull request I actually try to reproduce the results from alchemical-analysis. |
Sorry these commits should have never appeared here. This PR can be closed. |
The error estimation for the free energy differences doesn't consider covariances. So I suggest to also take them into account.