Skip to main content
Sandbox Physics
Free energy and rare events

L4 · Chapter 8

Use the MBAR paper to examine your own calculation

Reproducing an estimator involves three questions: are the equations implemented correctly, are the input trajectories adequate, and does the evidence support the physical conclusion? Read the experimental figure in the 2008 MBAR paper, then apply its equations to a two-coordinate model with an independent integral.

Identify what produced the plotted points

The frozen reading is Shirts and Chodera, arXiv:0801.1426v3\text{arXiv:0801.1426v3}, corresponding to J. Chem. Phys. 129, 124105. Section V, Figure 1 compares a single constant-force record with a multitrajectory DNA-hairpin potential of mean force. The extension includes the hairpin, both double-stranded DNA handles and their attachments. Horizontal position is this connected system’s extension; the vertical zero is arbitrary. Error bars reflect the specified statistical treatment.

The experiment used sixteen five-second traces at 296.15 K296.15\,\mathrm K, sampled every 0.1 ms0.1\,\mathrm{ms}. Applied forces ranged from 12.3512.35 to 14.41 pN14.41\,\mathrm{pN}, with a target of 14.19 pN14.19\,\mathrm{pN}. Fifty unequal extension bins require the width correction in Eq. (14). The paper reports approximately ten-percent relative force measurement error.

Locate the sparsely sampled extension region and ask which other force records supply it. Smaller multistate error bars show improved equilibrium estimation for those data. Force calibration contributes a separate systematic uncertainty; a reaction rate requires a dynamical analysis.

Source: Michael R. Shirts and John D. Chodera

Define the reproduced part

We recalculate the self-consistency equations in Eq. (11), target weights and the density conversion in Eq. (14). Inputs are seeded trajectories from our two-coordinate potential. We have not downloaded or reanalyzed the DNA-hairpin records, and the synthetic curves are not labelled as Figure 1 data.

The arXiv copy carries its non-exclusive distribution license. That does not establish permission to redistribute the original experimental records. We copy neither its figure nor its traces. Our diagrams and teaching data are generated here, with parameters, seeds, versions and generation scripts retained.

This limited calculation still permits a strong implementation check: integrate the model independently and submit identical samples to another solver. An experimental reproduction would additionally need complete records, calibration details and data-use permission.

Source: Michael R. Shirts and John D. Chodera

First compare independent solvers

The fixed comparison uses seven windows with two replicas each and one thousand frames per replica, totaling fourteen thousand configurations. The browser default instead saves five hundred per replica, totaling seven thousand; this comparison uses separately retained benchmark records. The browser-model implementation and PyMBAR 4.0.3 receive the same input. Subtract each solver’s first-window free energy before comparing, so both share a zero. PyMBAR documents an independent-sample requirement. Here we compare equation solutions on identical records; blocks and independent seeds address correlated-data uncertainty separately.

The maximum difference between the seven reduced free energies is about 1.26×10−71.26\times10^{-7}. This checks that both solve the same estimating equations for these data. It adds no missing configurations and does not make the estimate exact.

Refining an independent two-dimensional Simpson integral changes projected-bin probabilities by about 2.09×10−122.09\times10^{-12}. The refined 480-cell midpoint grid differs from that reference by at most about 4.78×10−64.78\times10^{-6} per bin. The quoted errors describe this grid and parameter set; each changed setting needs its own refinement check.

Fixed-model numerical checks generated by this project; values and methods are retained in docs/frontier/fr15/data/.
ComparisonDifferenceWhat it tests
Two MBAR solvers, identical samples1.26×10−71.26\times10^{-7}Equation solution
Simpson grid refinement2.09×10−122.09\times10^{-12}Reference stability
Refined midpoint grid versus reference4.78×10−64.78\times10^{-6}Projection-grid error

Source: PyMBAR 4.0.3

Then challenge the sampling with independent seeds

Symmetry gives right-half-plane probability 0.50.5. Eight independent short runs give mean 0.4810.481 and between-seed standard deviation 0.1290.129. Another batch at half the step gives mean 0.4360.436 and standard deviation 0.2000.200. Sampling scatter is far larger than solver disagreement.

A smaller step does not automatically make a short-run average closer to truth. These runs have substantial random variation, and eight seeds cannot reliably separate a small discretization bias from that variation. More independent exchange and repeats are needed.

In the one-thousand-frame-per-replica benchmark, a deliberately trapped hidden coordinate retains connected projected windows yet gives an absolute right-population error about 0.4570.457. A no-overlap preset instead refuses a global reconstruction. One exposes incomplete conditional sampling; the other retains genuinely missing relative normalization.

Turn the checks into a research question

The published method supplies equations and assumptions. Our numerical evidence tests their implementation on an explicit low-dimensional model. Automated coordinate choice, adequate high-dimensional molecular sampling and reliable kinetics from accelerated paths require further validation.

Challenge a learned coordinate first on this benchmark. Does a fixed projected position have a narrow committor distribution? Do different hidden-valley starts converge to one free energy? Does an improvement survive seeds excluded from training? Low-dimensional failures are easier to inspect and explain.

Fix the model, observable and failure criteria before comparing methods. Keep every seed, including failures, and compare error distributions at equal computational effort. The full repeated-error distribution is the comparison to report.

Try the reasoning in an experiment

Turn a screenshot into a reproducible comparison

  1. Freeze model and windows. Export seed, bias, sampling settings, sample weights and original trajectories before comparing reconstructions.
  2. Repeat with another seed. Separate solver differences on identical input from sampling differences across inputs.
  3. Run the gapped and hidden-trapped cases. Explain why one stops global reconstruction and the other can produce a stable but wrong answer.

Exercises and explanations

  1. Two MBAR programs agree to seven decimal places but both disagree with quadrature. What should be checked first?

    Read the explanation

    Challenge their common input: hidden-coordinate exchange, coverage and correlated sampling. Programs can also share theoretical assumptions, so retain analytic limits and independent integration. Solver agreement primarily checks implementation.

  2. What else is needed before calling Figure 1 experimentally reproduced?

    Read the explanation

    Original traces and force conditions, calibration and error details, data-use permission, and the paper’s correlation and unequal-bin analysis. Numerical values and uncertainties must then be compared. Those materials would extend the present synthetic equation calculation to the experimental system.

Sources and reproduced scope

Worked examples and schematic figures are original teaching material. The numerical research slice compares specified estimator equations on our seeded two-coordinate records with independent quadrature and PyMBAR. The final chapter reads Figure 1 of the MBAR paper and states which experimental data remain outside that calculation.

Model definitions, scripts and numerical records

  1. PyMBAR 4.0.3, MBAR module documentation

    MBAR constructor inputs, reduced-energy matrix, free-energy differences and the independent-sample requirement. Our comparison checks equation solutions on identical records and does not use PyMBAR covariance estimates for correlated frames.

  2. Michael R. Shirts and John D. Chodera, Statistically optimal analysis of samples from multiple equilibrium states, J. Chem. Phys. 129, 124105 (2008)

    Frozen arXiv v3: Sections II–IV, Eqs. (9), (11)–(14), Section V and Figure 1, Appendices A–C. We implement the equilibrium estimating equations on our synthetic model. Figure 1 is read as an experimental example; its DNA-hairpin traces and plotted values are not reproduced.

FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy