Skip to main content
Sandbox Physics

Umbrella Sampling and MBAR

When do overlapping biased trajectories reveal the equilibrium free energy? Each window must sample its own equilibrium distribution and share configurations with its neighbors. MBAR then removes the known biases to estimate equilibrium probabilities. A hidden trapped coordinate can still spoil the result, even when the windows overlap.

Move an umbrella window across a two-dimensional landscape. Combine seeded trajectories, compare the recovered free energy with numerical integration, then leave a gap or trap the hidden coordinate.

Interactive modelUmbrella Sampling and MBAR
Recovered right-side population0.5630.563
Block-bootstrap standard error0.05850.0585
Correlation-adjusted sample estimate55.455.4
Weakest neighboring overlap0.3190.319

What survives after removing the bias?

Seeded simulations · independent integration reference

Connected windows compare the reconstruction with a separate reference.

Correlation, held-out region and fit diagnosticsN=7000,pRref=0.500N=7000,\quad p_{\rm R}^{\rm ref}=0.500

The central eight bins define a predeclared validation interval. Its independent integration reference is withheld from fitting; all acquisition samples enter MBAR. The record saves the recovered probability and absolute error there. The effective sample estimate divides the Kish weight count by the largest coordinate-based statistical inefficiency across replicas; it is a coordinate-based heuristic diagnostic, not a variance guarantee for every observable.

The export includes all coordinates, acquisition times, bias energies, seeds, burn-in, sample stride, normalized target weights, overlap matrix and bootstrap replicas. Every record here is simulated.

Continue the course on free energy and rare events

Umbrella Sampling and MBAR

BackgroundA cold trajectory can spend most of its time in one valley. A harmonic restraint keeps a trajectory near a chosen horizontal position, so several windows can visit the difficult crossing.

Why it mattersBiased visits do not have their original equilibrium frequencies. Recovering those frequencies requires knowing both the bias and how the windows connect.

One-sentence intuition
Overlapping equilibrated windows can share their relative statistical weights.

Core mathematical model

A known harmonic bias

Bi(x)=κ2(x−ci)2,ui=U+BikBTB_i(x)=\frac{\kappa}{2}(x-c_i)^2,\qquad u_i=\frac{U+B_i}{k_{\rm B}T}

The window center and stiffness set its bias energy. The reduced potential divides the total energy by the thermal energy.

MBAR combines the saved configurations

f^i=−ln⁡∑ne−ui(zn)∑jNjef^j−uj(zn)\widehat f_i=-\ln\sum_n\frac{e^{-u_i(z_n)}}{\sum_jN_j e^{\widehat f_j-u_j(z_n)}}

The sum uses every saved configuration. Each state has a sample count and an unknown normalization. Setting the first reduced free energy to zero fixes an arbitrary common constant.

Return to the unbiased distribution

wn∝e−U(zn)/(kBT)∑jNjef^j−uj(zn),F(x)=−kBTln⁡p(x)+Cw_n\propto\frac{e^{-U(z_n)/(k_{\rm B}T)}}{\sum_jN_j e^{\widehat f_j-u_j(z_n)}},\qquad F(x)=-k_{\rm B}T\ln p(x)+C

The weights form a histogram of the horizontal coordinate. The pale reference comes from separate two-dimensional integration; it never enters the MBAR fit.

Common difficulties

Many saved frames can repeat little information

Typical misconceptionEvery stored frame counts as a new independent observation.

Better mental modelNearby frames share the trajectory’s history. The diagnostic estimates autocorrelation in both coordinates; the bootstrap draws contiguous blocks within each independent replica.

Run the experiment

  1. 01

    Follow a shared crossing

    Watch A connected crossing. Select a window or drag its diamond, then compare the cyan reconstruction with the pale integration reference.

    What to observe: Neighboring colors visit some of the same configurations. The orange pooled histogram still shows the bias; MBAR changes the relative weights.
  2. 02

    Remove the bridge

    Choose A missing bridge. Look at the overlap matrix and the two separated clouds.

    What to observe: The empirical overlap graph splits. A single global reconstruction is withheld because the record does not reliably connect the relative normalization of the two groups.
  3. 03

    Test the hidden direction

    Choose The hidden trap. Compare the vertical coverage with the reconstructed population and its error bar.

    What to observe: The windows overlap horizontally but remain in the upper hidden valley. Resampling those same blocks can produce a small error bar around a biased answer.

Related experiments and articles

What this page links to directly

See every article series on the content map →

Continue exploring

Free energy from rare events

How can we measure free energies and rates when the important transitions are rare or hidden?

  1. You are hereUmbrella Sampling and MBARChoose A missing bridge and watch the free-energy curve drop out when windows stop overlapping.
  2. LabFree Energy Hides a DimensionMove the Projection angle and watch peaks merge or split while the terrain stays fixed.
  3. LabSame Free Energy, Different ClockChoose A slower clock and compare the two colours at the same displayed time.
  4. LabStochastic Unfolding Force SpectroscopyCompare Give it time with Pull quickly and watch the tension at which molecules unfold.
  5. LabJarzynski Equality: Dragging a Trapped BeadChoose Rare pulls decide and compare the mean work with the free-energy change.
  6. LabHidden Entropy: How Much Dissipation Can You See?Choose Slow camera misses the cycle and see how little dissipation a snapshot can prove.

Free energy and rare events · Reading path

From Boltzmann probabilities to reaction paths

Articles on this path that use this experiment, followed by the other experiments they suggest.

  1. ArticleCrossing a barrier with overlapping umbrella windows
  2. ArticleHow MBAR joins windows into one equilibrium distribution
  3. ArticleWhy error bars can miss the largest error
  4. ArticleUse the MBAR paper to examine your own calculation
Something 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