General considerations Monte Carlo methods (I). Averages X = (x 1, x 2, …, x N ) – vector of variables P – probability density function.

Slides:



Advertisements
Similar presentations
PRAGMA – 9 V.S.S.Sastry School of Physics University of Hyderabad 22 nd October, 2005.
Advertisements

Lecture 13: Conformational Sampling: MC and MD Dr. Ronald M. Levy Contributions from Mike Andrec and Daniel Weinstock Statistical Thermodynamics.
Monte Carlo Methods and Statistical Physics
Classical Statistical Mechanics in the Canonical Ensemble.
Graduate School of Information Sciences, Tohoku University
Lecture 14: Advanced Conformational Sampling
CS774. Markov Random Field : Theory and Application Lecture 16 Kyomin Jung KAIST Nov
1 CE 530 Molecular Simulation Lecture 8 Markov Processes David A. Kofke Department of Chemical Engineering SUNY Buffalo
Statistical Models of Solvation Eva Zurek Chemistry Final Presentation.
Monte Carlo Simulation Methods - ideal gas. Calculating properties by integration.
Computational statistics 2009 Random walk. Computational statistics 2009 Random walk with absorbing barrier.
1 Cluster Monte Carlo Algorithms & softening of first-order transition by disorder TIAN Liang.
The Monte Carlo Method: an Introduction Detlev Reiter Research Centre Jülich (FZJ) D Jülich
Monte Carlo Methods in Partial Differential Equations.
Monte Carlo Methods H. Rieger, Saarland University, Saarbrücken, Germany Summerschool on Computational Statistical Physics, NCCU Taipei, Taiwan.
Simulations Patrice Koehl Department of Biological Sciences National University of Singapore
6. Markov Chain. State Space The state space is the set of values a random variable X can take. E.g.: integer 1 to 6 in a dice experiment, or the locations.
1 CE 530 Molecular Simulation Lecture 7 David A. Kofke Department of Chemical Engineering SUNY Buffalo
Advanced methods of molecular dynamics Monte Carlo methods
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 11 Some materials adapted from Prof. Keith E. Gubbins:
Monte Carlo Methods: Basics
Introduction to (Statistical) Thermodynamics
Monte-Carlo simulations of the structure of complex liquids with various interaction potentials Alja ž Godec Advisers: prof. dr. Janko Jamnik and doc.
1 Physical Chemistry III Molecular Simulations Piti Treesukol Chemistry Department Faculty of Liberal Arts and Science Kasetsart University :
Free energies and phase transitions. Condition for phase coexistence in a one-component system:
TUTORIAL no. 2 Monte Carlo simulations: Lennard Jones gas G. Lattanzi Università degli studi di Bari “Aldo Moro” Trieste, July 10 th, 2012 CECAM school.
1 Lesson 3: Choosing from distributions Theory: LLN and Central Limit Theorem Theory: LLN and Central Limit Theorem Choosing from distributions Choosing.
1 CE 530 Molecular Simulation Lecture 17 Beyond Atoms: Simulating Molecules David A. Kofke Department of Chemical Engineering SUNY Buffalo
Machine Learning Lecture 23: Statistical Estimation with Sampling Iain Murray’s MLSS lecture on videolectures.net:
Basic Monte Carlo (chapter 3) Algorithm Detailed Balance Other points.
The Local Free Energy Landscape - a Tool to Understand Multiparticle Effects University of Leipzig, Institut of Theoretical Physics Group Molecular Dynamics.
1 CE 530 Molecular Simulation Lecture 6 David A. Kofke Department of Chemical Engineering SUNY Buffalo
P T A typical experiment in a real (not virtual) space 1.Some material is put in a container at fixed T & P. 2.The material is in a thermal fluctuation,
Monte Carlo Methods in Statistical Mechanics Aziz Abdellahi CEDER group Materials Basics Lecture : 08/18/
Monte Carlo Methods Versatile methods for analyzing the behavior of some activity, plan or process that involves uncertainty.
8. Selected Applications. Applications of Monte Carlo Method Structural and thermodynamic properties of matter [gas, liquid, solid, polymers, (bio)-macro-
Monte Carlo Methods So far we have discussed Monte Carlo methods based on a uniform distribution of random numbers on the interval [0,1] p(x) = 1 0  x.
1 CE 530 Molecular Simulation Lecture 22 Chain-Molecule Sampling Techniques David A. Kofke Department of Chemical Engineering SUNY Buffalo
Surface and Bulk Fluctuations of the Lennard-Jones Clusrers D. I. Zhukhovitskii.
1 M.Sc. Project of Hanif Bayat Movahed The Phase Transitions of Semiflexible Hard Sphere Chain Liquids Supervisor: Prof. Don Sullivan.
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 25 Some materials adapted from Prof. Keith E. Gubbins:
Understanding Molecular Simulations Introduction
Protein Folding and Modeling Carol K. Hall Chemical and Biomolecular Engineering North Carolina State University.
NCN nanoHUB.org Wagner The basics of quantum Monte Carlo Lucas K. Wagner Computational Nanosciences Group University of California, Berkeley In collaboration.
Molecular Modelling - Lecture 2 Techniques for Conformational Sampling Uses CHARMM force field Written in C++
Incremental Integration of Computational Physics into Traditional Undergraduate Courses Kelly R. Roos, Department of Physics, Bradley University Peoria,
Path Integral Quantum Monte Carlo Consider a harmonic oscillator potential a classical particle moves back and forth periodically in such a potential x(t)=
The generalization of Bayes for continuous densities is that we have some density f(y|  ) where y and  are vectors of data and parameters with  being.
7. Metropolis Algorithm. Markov Chain and Monte Carlo Markov chain theory describes a particularly simple type of stochastic processes. Given a transition.
Monte Carlo method: Basic ideas. deterministic vs. stochastic In deterministic models, the output of the model is fully determined by the parameter values.
An Introduction to Monte Carlo Methods in Statistical Physics Kristen A. Fichthorn The Pennsylvania State University University Park, PA
Review Session BS123A/MB223 UC-Irvine Ray Luo, MBB, BS.
Monte Carlo methods (II) Simulating different ensembles
Javier Junquera Importance sampling Monte Carlo. Cambridge University Press, Cambridge, 2002 ISBN Bibliography.
Gil McVean, Department of Statistics Thursday February 12 th 2009 Monte Carlo simulation.
G. Cowan Lectures on Statistical Data Analysis Lecture 5 page 1 Statistical Data Analysis: Lecture 5 1Probability, Bayes’ theorem 2Random variables and.
Basic Monte Carlo (chapter 3) Algorithm Detailed Balance Other points non-Boltzmann sampling.
Lecture 14: Advanced Conformational Sampling Dr. Ronald M. Levy Statistical Thermodynamics.
Random Sampling Algorithms with Applications Kyomin Jung KAIST Aug ERC Workshop.
Computational Physics (Lecture 10) PHY4370. Simulation Details To simulate Ising models First step is to choose a lattice. For example, we can us SC,
Systematic errors of MC simulations Equilibrium error averages taken before the system has reached equilibrium  Monitor the variables you are interested.
The Monte Carlo Method/ Markov Chains/ Metropolitan Algorithm from sec in “Adaptive Cooperative Systems” -summarized by Jinsan Yang.
Computational Physics (Lecture 10)
Basic simulation methodology
Monte Carlo: A Simple Simulator’s View
Polymer chain and rubber elasticity
7. Metropolis Algorithm.
Common Types of Simulations
CE 530 Molecular Simulation
Presentation transcript:

General considerations Monte Carlo methods (I)

Averages X = (x 1, x 2, …, x N ) – vector of variables P – probability density function

Random variables and their distributions A random variable: a number assigned to an event Distribuand: Probability density: Any function of a random variable is a random variable.

Moments of a distribution Continuous variables: If H(x)=(x-x c ) n then E{H(X)} is called the nth moment of x with respect to c; if c= then E is the nth central moment,  n ({x}).

Some useful central moments Variance Skewness Kurtosis

For a set of points:

Some examples of central moments

Boltzmann distribution k B (Boltzmann constant) = 1.38  J/K N A k B = R (universal gas constant) = J/(mol  K) q – positions; p – momenta;  (E) – density of states with energy E

Thermodynamic quantities

Ergodicity

Trajectories in the phase space. For ergodic sampling, sub-trajectories should be part of a trajectory that passes through all points.

Monte Carlo methods: use of random-number generators to follows the evolution of a system according to a given probability-distribution function. Beginnings: Antiquity (?); estimation of the results of dice game. First documented use: G. Comte de Buffon (1777): estimation of the number p by throwing a needle on a sheet of paper with parallel lines and counting the number of hits. First large-scale (wartime) application: J. von Neumann, S. Ulam, N. Metropolis, R.P. Feynman i in. (1940’s; the Manhattan project) calculations of neutron creation and scattering. For security, the calculations were disguised as,,Monte Carlo” calculations.

Kinds of Monte Carlo methods  The von Neumann (rejection) sampling  The Metropolis (in general: Markov chain) sampling. Also known as „importance sampling”

Simple Monte Carlo averaging x f(x)f(x) Sample a point on x from a uniform distribution Compute f(x i )

Rejection or hit-and-miss sampling x f(x)f(x) Sample a point on x from a uniform distrubution Sample a point on f accept reject

Algorithm Generate a random point X in the configurational space Generate a random point y in [0,1] P(X)>y Accept X A:=A+A(X) Reject X

Application of the rejection sampling to compute the number  1

Applications For one-dimensional integrals classical quadratures (Newton-Cotes, Gauss) are better than that. For multi-dimensional integrals sampling the integrations space is somewhat better; however most points have zero contributions. We cannot compute ensemble averages of molecular systems that way. The positions of atoms would have to generated at random, this usually leading to HUGE energies.

Illustration of the difference between the direct- and importance- sampling methods to measure the depth of the river of Nile Von Neumann: all points are visited Metropolis: The walker stays in the river

Perturb X o : X 1 = X o +  X Compute the new energy (E 1 ) Configuration X o, energy E o E 1 <E o ? Draw Y from U(0,1) Compute W=exp[-(E 1 -E o )/kT] W>Y? X o =X 1, E o =E 1 N Y Y N A:=A+A(X o )

E0E0 E1E1 Accept with probability exp[-(E 2 -E 1 )/k B T] E1E1 Accept

Space representation in MC simulations Lattice (discrete). The particles are on lattice nodes Continuous. The particles move in the 3D space.

On- and off-lattice representations

Application of Metropolis Monte Carlo Determination of mechanical and thermodynamic properties(density, average energy, heat capacity, conductivity, virial coefficients). Simulations of phase transitions. Simulations of polymer properties. Simulations of biopolymers. Simulations of ligand-receptor binding. Simulations of chemical reactions.

Computing averages with Metropolis Monte Carlo It should be noted that all MC steps are considered, including those which resulted in the rejection of a new configuration. Therefore, if a configuration has a very low energy, it will be counted multiple times.

Detailed balance (Einstein’s theorem) old new

In real life the detailed balance condition is rarely satisfied… These gates at a Seoul subway station do not satisfy the detailed-balance condition: you can go through but you cannot go back… A famous Russian proverb states: „A ruble to get in, ten rubles to get out”

I thought there was a way out…. I was sssoooo busy working for my Queen and Community…. Nature teaches us the hard way that detailed balance is not something to meet in the macro- world..

It is only too easy to violate the detailed-balance conditions Monte Carlo with minimization: energy is minimized after each move. Transition probability is proportional to basin size. Little chance to get from C to B AB C pertubation minimization pertubation Minimization brings back to C

Translational perturbations (straightforward) x[o] 

Orientational perturbations Euler angles. We rotate the system first about the z axis by  so that the new x axis is axis w, then about the w axis by  so that the new z axis is z’ and finally about the z’ axis by  so that the new x axis is x’ and the new y axis is y’. Uniform sampling the Euler angles would result in a serious bias.

Rotational perturbations: rigid linear molecules Orientational perturbation u u’ Genarate a random unit vector v Compute t:=u+  v Compute u’:= t/||t||

Rigid non-linear molecules Sample a unit vector on a 4D sphere (quaternion) (E. Veseley, J. Comp. Phys., 47: , 1982), then compute the Euler angles from the following formulas:

Rotation matrix

Choosing the initial configuration and step size Generally: avoid clashes. For rigid liquids molecules start from a configuration on a lattice. For flexible molecules: build the chain to avoid overlap with the atoms already present.

MC step size Too small: high acceptance rate but poor ergodicity (can’t get out of a local minimum). Too large: low acceptance rate. Avoid accepting „good” advices that the acceptance rate should be 10/20/50%, etc. Do pre-production simulations to select optimal step size This can help: –Configurational-bias Monte Carlo, –Parallel tempering.

Reference algorithms for MC/MD simulations (Fortran 77) M.P. Allen, D.J. Tildesley, „Computer Simulations of Liquids”, Oxford Science Publications, Clardenon Press, Oxford, F11: Monte Carlo simulations of Lennard-Jones fluid.