1. Introduction
The main objective of this work is to show a new computational framework based on Monte Carlo Metropolis, for the study of dynamical systems that are described by a Lagrangian, being a first approach for the understanding of non-equilibrium statistical mechanics (NESM) by using constraints, as performed in statistical mechanics.
Here, we propose a technique capable of simulating deterministic, dynamical systems through a stochastic formulation. This technique is based on sampling a statistical ensemble of paths defined as having the maximum path entropy (also known as the caliber) available under imposed time-dependent constraints. In
Section 2, we introduce this approach, which is known as the maximum caliber principle (MaxCal) [
1], a generalization of Jaynes’ principle of maximum entropy [
2,
3,
4].
The principle of maximum entropy (MaxEnt) is a systematic method for constructing the simplest, most unbiased probability distribution function under given constraints, a conceptual generalization of Gibbs’ method of ensembles in statistical mechanics. The complete generality of the principle makes it widely used in several areas of science, such as astronomy, ecology, biology, quantitative finance, image processing, electronics, and physics, among others. According to Jaynes, choosing a candidate probability distribution by maximizing its entropy is a rule of inferential reasoning far beyond its original application in physics, which makes this rule a powerful tool for creating models in any context.
Monte Carlo Metropolis (MCM) is a rejection technique that can be used for sampling any probability distribution [
5,
6]. This probability distribution is usually constructed by using MaxEnt and optimized using the simulated annealing algorithm [
7]. MCM and simulated annealing are used for the understanding of different systems in physics [
8,
9] such as spin models, material simulations, and thermodynamics, among others. In
Section 3, an analogous methodology is presented, by assigning probabilities to paths instead of probabilities of states, allowing the minimization of functional quantities such as the classical action instead of the energy.
It is possible to directly use MaxEnt instead of MaxCal as an inference methodology for dynamical systems by constraining time-dependent functions, and this has been used to understand Newtonian dynamics [
10] and the Schrödinger equation [
11] in terms of traditional MaxEnt. A new approach has been explored recently for recovering frameworks for dynamical systems by using MaxCal and the path space [
12,
13,
14,
15]. In
Section 4 and
Section 5, we show a numerical implementation of this new approach, exposing the capability for solving complex problems in NESM. In summary, this constitutes a novel approach to the study of dynamical systems via Monte Carlo simulation.
2. Creating a Path Ensemble: The Maximum Caliber Principle
The maximum caliber principle allows the definition of a unique path ensemble given prior information and a number of dynamical constraints [
1,
14,
16].
MaxCal is similar to the maximum entropy principle (MaxEnt) [
13,
15,
17,
18,
19], but defined over the path space, allowing defining a probability functional
as follows. Consider an
N-dimensional path
x on the path space
. In order to construct a probability functional for each path
, given an initial probability (prior)
and an arbitrary constraint:
the caliber (or path entropy):
must be maximized under the constraint in Equation (
1) and the requirement that probability be normalized,
The operation
is a path integral, where
is a differential in the path space
. Then, the probability functional obtained is,
where
is the partition function and
is the Lagrange multiplier, given by the constraint equation:
In this formalism, analogous to Gibbs’ method,
is identified as the inverse of the temperature (
) similar to the canonical ensemble of statistical mechanics. Here, the expected value of an arbitrary functional
is given by:
but, perhaps more importantly, the expectation value of a function over time can be defined similarly as:
This last relation shows that MaxCal can be used to understand the macroscopic properties of time-dependent systems, which are the main elements in NESM.
3. Least Action Principle and Most Probable Path
From classical mechanics, it is well known that the path followed by a particle under a potential
under the boundary conditions
and
is the one given by the least action principle [
20,
21], which in practice leads to an equation of motion describing the evolution of the particle from zero to
T.
The classical action is a functional defined as
, where
is called the Lagrangian of the system, which for classical systems is:
For a MaxCal framework where the classical action is constrained, following an analogous treatment to the constraint in Equation (
1), the probability functional is of the form given in Equation (
3). The most probable path can be obtained by finding the extrema of the functional
, by solving the equation
. This is because the exponential function in Equation (
3) is convex and monotonically increasing, and so, maximum probability is equivalent to imposing that
x should be an extremum for the argument of the exponential,
If the Lagrange multiplier is positive (
), the requirement is that the action is actually a minimum. This equation is precisely the Euler–Lagrange equation of motion for the Lagrangian [
20,
22]. In summary, the most probable path and the least action path in a MaxCal framework are the same. According to this, sampling trajectories from the probability distribution in Equation (
3) using Monte Carlo methods and computing the averages of quantities should converge to a description of the dynamical properties of a classical system evolving in time.
Another important consequence of the use of MaxCal and the form of the probability is that the most probable path in general coincides with the average path according to the central limit theorem.
4. Computational Method
In order to define the elements on the path space
, for an
N-dimensional path
x, it is always possible to write it in an orthonormal basis
of the form:
Then, by changing the parameters
, it is possible to map the entire space of paths
x. In other words, there is a one-to-one correspondence between an arbitrary path
x and its parameter vector
, so the action becomes a function of
, namely
, and the problem of path sampling reduces to ordinary sampling [
23] of
N-dimensional states
,
The choice of the basis functions is, in principle, arbitrary. However, a convenient choice can be made related to the particular conditions of the problem to be solved. In this case, the target is the study of classical dynamical systems by using the MCM where most of the problems have well-defined boundary conditions; therefore, it is important to find a basis set in which one can easily generate paths in the desired path space holding the required, fixed boundary conditions. For this reason, we considered the Bézier curves as a basis set.
Bézier curves are defined by “control points” , where the first and the last control point determine the boundary conditions of the curve, allowing the mapping of the path space with well-defined boundary conditions.
For an
N-dimensional path
x with boundary conditions
and
, a Bézier curve is defined of the form:
where the basis functions
are the Bernstein polynomials,
Following these definitions, it is clear that all Bézier curves automatically follow the specified boundary conditions at and .
5. Implementation of the Monte Carlo Metropolis for the Sampling Path Space
The Monte Carlo Metropolis (MCM) implementation is usually employed for sampling a multidimensional space governed by a probability distribution [
5,
6]. The following MCM implementation is used for sampling the path space
governed by a probability functional obtained via MaxCal. This procedure makes it possible to find the minimum action path.
For a given action
and boundary conditions
and
, the MCM evolution for sampling the path space is implemented as shown in
Figure 1.
By performing this process in an iterative way, the path space is sampled, allowing the calculation of the properties for the system which is determined by the classical action used. As shown in
Section 3, the probability distribution obtained when the classical action is constrained allows the sampling of the path space where the most probable path and the least action path coincide. Finally,
can be understood as an analogue of the inverse of temperature in the usual MCM, due to the fact that, as
, the sampled paths will be randomly more spread over the space, while taking
constrains the sampled paths closer to the least action path. The value for
in an MCM is related to the change from
x to
, and empirically, this change must be adjusted to have approximately a
acceptance rate. We used the value
for all the MCM simulations performed in this work.
6. Results and Discussion
6.1. Free Particle Action
The equation of motion for a free particle is obtained by minimizing the classical action:
according to the least action principle. For a free particle with mass
and boundary conditions
and
, the analytical solution for the least action path is the straight line
.
By using MCM simulation as shown in
Figure 2, we sampled the path space and calculated the simple average position
at each time. We see that the simulation readily converges to the correct least action path.
For this simulation, five control points were used and were sufficient to obtain the exact result () in less than 10,000 Monte Carlo steps.
6.2. Harmonic Oscillator Action
In the case of the harmonic oscillator, the action is of the form:
Without loss of generality, for numerical simulations, and were used. The solution for this problem was divided into two parts. The first solution found was the least action path for a short time interval. More precisely, we simulated a particle with boundary conditions and , with less than the half period .
In this case, the least action path also converges to the analytical solution, correctly solving the equation of motion as shown in
Figure 3. For this simulation, five control points were used and were sufficient to obtain the exact result (
) in less than 10,000 Monte Carlo steps.
The second case corresponds to the harmonic oscillator with boundary conditions
and
, but where
is larger than the half period
. In other words, the end condition is past the first node of the harmonic oscillator. Under these boundary conditions, an unexpected result is obtained: the Monte Carlo sampling procedure diverges. This result can be understood as due to the fact that, for this case, the action extremum is not a global minimum [
24]. More precisely, the second functional derivative for the action of the harmonic oscillator action shows that the extremum is a saddle point in the case where the total time is longer than half a period, and a “true” minimum only for paths with total time less than half a period. We solved this convergence problem by considering an additional constraint to the action solved, suggested by the work of Gray and Taylor [
24] in classical mechanics. The constraint involves the so-called kinetic foci, defined by the condition:
where
is the initial velocity for the path
x. As it turns out, the action extremum is guaranteed to be a minimum if the paths used pass close enough to a kinetic focus
. This can be implemented in the Monte Carlo simulation by including a quadratic constraint in the probability functional, leading to:
where
are the set of kinetic foci (solutions of Equation (
13)) and
, in order to stop the system from drifting away from the action extremum.
As an example, we solved the harmonic oscillator for a total time close to one and a half periods
, sampling all the paths that cross the first two kinetic foci of the harmonic oscillator, namely the points
. Now, the Monte Carlo procedure does converge to the expected solution as shown in
Figure 4.
For this simulation, eight control points were used and were sufficient to reach the exact result () in less than 20,000 Monte Carlo steps. An important remark here is to note the number of Bézier basis elements, or control points, because this is closely related to the computing time. For this reason, the main goal in an efficient simulation is to find the minimum number of control points to use without sacrificing precision, needed to map any solution of the differential equation of interest.
7. Concluding Remarks
In summary, we described a technique for implementing Monte Carlo sampling of dynamical trajectories in classical Lagrangian systems under the maximum caliber formalism. We demonstrated its usefulness by applying this technique to the case of the classical free particle and harmonic oscillator, recovering in both cases a statistical distribution of paths centered on the classical solution of the Euler–Lagrange equation. For the case of the harmonic oscillator, we noted the need for fixing additional points known as the kinetic foci of the system in order for the simulation to converge properly. Our proof-of-concept implementation could be the starting point for a complete computational scheme of the simulation of classical systems under uncertainty. It remains to be seen how this method scales to multidimensional and many-particle interacting systems. This framework could be used for the study of dissipative systems with a known Lagrangian [
25], being a promising line of work for the study of non-equilibrium physical problems. Finally, one of the main proposed uses of this framework is to obtain the instantaneous probability density of positions at each time, which would allow obtaining the instantaneous macroscopic properties of classical systems under uncertainty [
26].
Author Contributions
Formal analysis, D.G.D. and S.D.; Investigation, D.G.D., S.D. and S.C.; Methodology, S.D. and D.G.D.; Project administration, D.G.D.; Validation, S.C.; Visualization, D.G.D.; Writing—original draft, D.G.D.; Writing—review & editing, D.G.D., S.D. and S.C. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by “Beca de postdoctorado Universidad Católica del Norte” N0 0004/2019 (D.G.) and FONDECYT Grant 1171127 (S.D.) and Anillo ACT-172101 (S.D) and FONDECYT Grant 1170834 (S.C.)
Acknowledgments
D.G. acknowledges Gonzalo Gutiérrez for the support as tutor during the PhD, where this ideas started.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Jaynes, E.T. The Minimum Entropy Production Principle. Ann. Rev. Phys. Chem. 1980, 31, 579–601. [Google Scholar] [CrossRef] [Green Version]
- Jaynes, E.T. Information Theory and Statistical Mechanics. Phys. Rev. 1957, 106, 620–630. [Google Scholar] [CrossRef]
- Cafaro, C.; Ali, S.A. Maximum caliber inference and the stochastic Ising model. Phys. Rev. E 2016, 94, 052145. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- General, I.J. Principle of maximum caliber and quantum physics. Phys. Rev. E 2018, 98, 012110. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Wood, W.; Erpenbeck, J. Molecular Dynamics and Monte Carlo Calculations in Statistical Mechanics. Ann. Rev. Phys. Chem. 1976, 27, 319–348. [Google Scholar] [CrossRef]
- Allen, M.; Tildesley, D. Computer Simulation of Liquids; Clarendon Press: Oxford, UK, 1987. [Google Scholar]
- Kirkpatrick, S.; Gelatt, C.; Vecchi, M. Optimization by Simulated Annealing. Science 1983, 220, 671. [Google Scholar] [CrossRef] [PubMed]
- Binder, K. Monte Carlo Methods in Statistical Physics; Springer: Berlin/Heidelberg, Germany, 1986. [Google Scholar]
- Graham, C.; Talay, D. Stochastic Simulation and Monte Carlo Methods: Mathematical Foundations of Stochastic Simulation; Springer: Berlin/Heidelberg, Germany, 2013. [Google Scholar]
- Caticha, A.; Cafaro, C. From Information Geometry to Newtonian Dynamics. AIP Conf. Proc. 2007, 954, 165. [Google Scholar] [CrossRef] [Green Version]
- Caticha, A. Entropic dynamics, time and quantum theory. J. Phys. Math. Theor. 2011, 44, 225303. [Google Scholar] [CrossRef] [Green Version]
- González, D.; Davis, S.; Gutiérrez, G. Newtonian mechanics from the principle of maximum caliber. Found. Phys. 2014, 44, 923. [Google Scholar] [CrossRef] [Green Version]
- Davis, S.; González, D. Hamiltonian Formalism and Path Entropy Maximization. J. Phys. A Math. Theor. 2015, 48, 425003. [Google Scholar] [CrossRef] [Green Version]
- González, D.; Davis, S. The Maximum Caliber principle applied to continuous systems. J. Phys. Conf. Ser. 2016, 720, 012006. [Google Scholar] [CrossRef]
- González, D.; Davis, S. Liouville’s theorem from the principle of maximum caliber in phase space. AIP Conf. Proc. 2016, 1757, 020003. [Google Scholar]
- Grandy, W.T. Entropy and the Time Evolution of Macroscopic Systems; Oxford University Press: Oxford, UK, 2008. [Google Scholar]
- Jaynes, E.T. On the Rationale of Maximum-Entropy Methods. Proc. IEEE 1982, 10, 939–952. [Google Scholar] [CrossRef]
- Stock, G.; Ghosh, K.; Dill, K.A. Maximum Caliber: A variational approach applied to two-state dynamics. J. Chem. Phys. 2008, 128, 194102. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Pressé, S.; Ghosh, K.; Lee, J.; Dill, K.A. Principles of maximum entropy and maximum caliber in statistical physics. Rev. Mod. Phys. 2013, 85, 1115–1141. [Google Scholar] [CrossRef] [Green Version]
- Lanczos, C. The Variational Principles of Mechanics; Dover Books: Mineola, NY, USA, 1970. [Google Scholar]
- Feynman, R.P.; Hibbs, A.R. Quantum Mechanics and Path Integrals (Emended edition); McGraw-Hill: New York, NY, USA, 2005. [Google Scholar]
- Gelfand, I.M.; Fomin, S.V. Calculus of Variations; Dover Publications: Mineola, NY, USA, 2000. [Google Scholar]
- Kleinert, H. Path Integrals in Quantum Mechanics, Statistics, Polymer Physics, and Financial Markets; World Scientific: Singapore, 2009. [Google Scholar]
- Gray, C.G.; Taylor, E.F. When action is not least. Am. J. Phys. 2007, 75, 434. [Google Scholar] [CrossRef] [Green Version]
- Kobe, D.H.; Reali, G.; Sieniutycz, S. Lagrangians for dissipative systems. Am. J. Phys. 1986, 54, 997. [Google Scholar] [CrossRef]
- González, D.; Díaz, D.; Davis, S. Continuity equation for probability as a requirement of inference over paths. Eur. Phys. J. B 2018, 89, 124. [Google Scholar] [CrossRef] [Green Version]
© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).