Page 1 of 1

simulated tempering (re)weighting

Posted: Tue May 03, 2022 9:58 am
by dkonstan
Hi OpenMM!

I am wondering what is the right way to reweight observables calculated from simulated tempering trajectories with the default weighting algorithm? Is reweighting even necessary? I am new to this technique so I apologize if the question is naive.

Thank you!
Dan

Re: simulated tempering (re)weighting

Posted: Tue May 03, 2022 10:09 am
by peastman
On every output, it reports the current temperature. Every conformation visited by the simulation reflects a Boltzmann distribution at the current temperature, so the probability is proportional to exp(-E/kT) where E is the total energy (potential+kinetic). The most common use of simulated tempering is that you want to collect a distribution at one temperature (say 300K) but use higher temperatures to let it cross barriers more easily. In that case you either could ignore all the samples from higher temperatures, or you could reweight them by the ratio of temperature factors, exp(-E/kT1)/exp(-E/kT2).

Re: simulated tempering (re)weighting

Posted: Tue May 03, 2022 12:18 pm
by dkonstan
So the E in the numerator and denominator is the same (it's the current total energy at whatever temperature?), just the temperatures are different?

Re: simulated tempering (re)weighting

Posted: Tue May 03, 2022 12:22 pm
by peastman
Exactly. Different samples are drawn from different temperature ensembles. At higher temperatures, most samples will have energies that would be very improbable at the lower temperature, so the weighting factor will be very small.

Re: simulated tempering (re)weighting

Posted: Tue May 03, 2022 12:25 pm
by dkonstan
Got it, thank you Peter!