How MBAR joins windows into one equilibrium distribution
Sandbox Physics ·
Raw counts from different windows cannot simply be added: their preferences and sampling amounts differ. MBAR estimates their relative normalization and assigns a target weight to every saved configuration. It uses each configuration’s energy in every window without first binning the input energies.
Pool N saved configurations rn. Window k contributes Nk samples with reduced potential uk=β(U+wk) and dimensionless free energy fk=−lnZk. A saved configuration can be evaluated under every window’s potential.
The mixture density is proportional to ∑kNkefk−uk(r). Configurations common in many contributing windows need less target weight. The factors Nk correct for unequal sampling amounts.
If the constants fk were known, reweighted sums would estimate each partition function. Requiring those estimates to equal the partition functions already used gives the self-consistent equations. Iterate and subtract the first free energy after each update to fix an arbitrary common zero.
At a shared temperature with known biases, these equations can also be written in the binless WHAM form used by the PLUMED tutorial. Evaluate exponential sums in the logarithmic domain to avoid numerical underflow. Convergence means the equations for these samples were solved. Trapped trajectories can also produce a stable solution.
For the unbiased target u0=βU, first compute unnormalized weight vn for every saved configuration. Normalize by their sum. A target expectation is the resulting weighted average. The target itself need not have a directly sampled trajectory.
At a shared temperature, with windows differing only by known biases, the common e−βU cancels. Bias energies alone then suffice for reweighting. The hidden coordinates still have to be sampled; algebraic cancellation cannot explore them.
These are normalized weights for an unsampled target. A plotted free energy additionally requires a density estimate in the specified coordinate.
A complete example with sixteen configurations
The target has equal-energy left and right configurations. Window A penalizes the right by reduced energy ln3; B penalizes the left by the same amount. A contributes twelve observations, nine left and three right. B contributes four, one left and three right. Their equal partition functions allow f^1=f^2=0.
The mixture denominator is 12+4/3=40/3 on the left and 12/3+4=8 on the right. Unnormalized target weights are 3/40 and 1/8. Ten left observations sum to three quarters, as do six right observations. Normalization recovers one half on each side. Pooling raw counts instead gives left probability 10/16=0.625.
Counts were chosen equal to each window’s expected proportions so the calculation fits on paper. Random data will not generally recover one half exactly. Independent repeats and the next chapter assess that error.
Original two-configuration example; energies are in thermal units.
Configuration
A count
B count
Target weight per observation
Left
9
1
1/20
Right
3
3
1/12
A final histogram still has its own error
MBAR does not bin input energies. Drawing F(s) still requires a density estimate. A bin of width Δsj and total target weight Pj has density approximately Pj/Δsj. Wide bins smear barriers; narrow ones can have no observations. An arbitrary pseudocount cannot turn an unvisited region into a measurement.
Inspect overlap too. Floating-point calculations may retain tiny connections across practically disconnected regions. Those connections do not establish a well-measured relative height. The experiment retains unsupported regions and reports usable coverage.
F^j=−kBTln(Δsj∑n:sn∈BjWn)+C
Divide by bin width to estimate density. Unequal-width bins make this distinction essential.
Hold windows and seed fixed. Compare pooled counts, MBAR and the independent two-dimensional integral. Identify changes caused by bias.
Export trajectories and per-sample target weights. Sum weights in a chosen coordinate interval to reproduce its probability.
Change overlap and resample. Explain the distinct questions answered by solver convergence, effective sample size and reference error.
Exercises and explanations
Add seven to all estimated window free energies. Do normalized target weights change?
Read the explanation
Every mixture denominator gains the same exponential factor. All unnormalized weights scale together, and normalization cancels it. The arbitrary common free-energy zero has no effect.
In the example, sample B twelve times too, retaining its expected proportions. What do pooled counts and reweighting give?
Read the explanation
A contributes nine left and three right; B contributes three left and nine right. Both methods yield one half. Unequal sample amounts in the original example break this special symmetry and require the mixture weights.
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.
Exercises on static restraints, combining windows with binless WHAM, reweighting a different coordinate and uncertainty. Its alanine-dipeptide trajectories are not used here.
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.
Keep reading
What this page links to directly
You are hereHow MBAR joins windows into one equilibrium distribution