Markov Chain Monte Carlo Method

Size: px
Start display at page:

Download "Markov Chain Monte Carlo Method"

Transcription

1 Markov Chain Monte Carlo Method Macoto Kikuchi Cybermedia Center, Osaka University 6th July 2017

2 Thermal Simulations 1 Why temperature 2 Statistical mechanics in a nutshell 3 Temperature in computers 4 Introduction to Markov Chain Monte Carlo method 5 Remarks 6 New methodology

3 Why temperature is important Thermal motion (fluctuation) is important for Liquid state Ordeing phanomena (crystal growth) Soft matters Macromolecules, polymer, gel Biomolecules (in vivo, in vitro) DNA, Proteins, Membrane

4 Thermal fluctuation of Kinesin

5 cont. Phase transitions liquid-solid, liquid-gas, paramagnet-ferromagnet Superconductivity, Superfluidity melting of metalic materials Electric conduction Resistance by lattice vibration

6 Ferromagnetic transition m 0.4 chi T/Tc T/Tc magnetization and magnetic susceptibility

7 computer simulations To treat thermal effect in molecular-level simulations Molecular dynamics (MD) Markov Chain Monte Carlo method (MCMC or Metropolis method) Both method is for simulating thermal equilibrium (and nonequilibrium, with special care)

8 Statistical mechanics in a nutshell Consider a many-particle system N in real systems As many particles as we can treat in computer simulations We would like to know properties of matters in the thermal equilibrium state

9 thermal equilibrium Macroscopic state of matter reached after a long time under a certain external condition Stable as long as the external condition is kept unchanged Distinguished by only a few thermodynamic (macroscopic) quantities: temperature, pressure, volume, total energy etc.

10 Two levels of state of matter Microscopic (molecular level) states particle configurations distinguishable microscopically Macroscopic states distinguishable only by macroscopic (thermodynamic) quantities such as total energy Thermal equilibrium is macroscopically still. But from the microscopic point of view, the matter changes its microscopic state rapidly.

11 Basic formula Boltzman s formula for entropy S(E) = k B log W (E) W (E): number of microscopic states having energy E k B : Bolzman s constant Thermodynamic definition of temperature 1 T = S(E) E

12 Simple model system Collection of N elements each of which can take one of two states two levels of energy Energy of i-th element e i = 0, ϵ Energy of the total system E = i e i

13 Microscopic states One assignment of enegy for all the elements defines one microscopic state 2 N distinguishable microscopic states in total Macroscopic states Distinguishable by total energy E = nϵ (We assume N n) Number of the corresponding microscopic states is ( ) N W (E) = W (nϵ) = n

14 Consider a closed system No interaction with external environment Total energy E is kept unchanged (conservation law of energy) Principle of equal weight The microscopic states having the same total energy realize in the same probability All the microscopic states of the same energy are equally probable to appear While the total energy is kept constant, the system constantly itenerates from a microstate to another to another... This is the basic assumption for thermal equilibrium

15 (math.) Stirling s formula log n! n log n n Boltzman s entropy ( ) N S(nϵ) = k B log n N log N n log n (N n) log(n n)

16 Temperature 1 T = S E = k B ϵ n log W = k B ϵ log N n n k B ϵ log N n

17 Consider a part of the system (called subsystem ) consisting of m elements (N m, and estimate the probability that the subsystem has the energy lϵ. Number of microscopic states of the total system in which the subsystem has the energy lϵ: ( )( ) m N m ω(lϵ) = l n l Probability that such microscopic states realize: P(lϵ) = ω(lϵ) W (nϵ)

18 From the Stirling s formula (via a tedious calculation) ) log ( N m n l ( N n) =(N m) log(n m) + (N n) log(n n) + n log n (n l) log(n l) (N m n + l) log(n m n + l) N log N l log n N = ϵ k B T

19 Finally, we have an important result ( ) ( m P(lϵ) = exp lϵ ) l k B T Probability is (Number of microscopic states of the subsystem having the energy lϵ) (exp( energy/k B T ))

20 General result for the thermal equilibrium state of any system contacting with a very large system (heat bath) of the temperature T Boltzman distribution Appearance probability of a microscopic state having the energy ε is ( P(ε) exp ε ) k B T

21 Thermal averages e.g. Average energy for the thermal equilibrium state of the temperature T can be calculated as E = 1 ( ε i exp ε ) i Z k B T with Z = ( exp ε ) i k B T i i is the index for microscopic states. i

22 Markov Chain Monte Carlo Sample microscopic states of a fixed temperature using the computer simulations of a Markov chain specially designed to realize thermal equilibrium state The same method can also be used for Baysian inference Similar to the Boltzman machine in the field of AI Also used in the simulated annealing for optimization Basis of Metropolis light transport in the field

23 Construct a Markov process of that the average quantities (e.g. energy) in the steady state coincide with the thermal averages at the temperature T goal lim N 1 N N A i = A i=1 l.h.s.: avarage in the steady state of the Markov process r.h.s.: thermal average

24 Markov process is defined by a set of the transition probability w ij from jth microscopic state to ith states requirement w ij 1 w ij = 1 i

25 Consider the probability distribution of microscopic state i at t-th step P i (t), then P i (t) = 1 i One step of evolution of the state according to the transition probability is P i (t + 1) = j w ij P j (t)

26 In the vector and matrix notation W: Markov matrix The large step limit P(t + 1) = W P(t) P( ) = lim n W n P(t0 ) Simce the largest eigenvalue of the Markov matrix is 1, P is a steady state that satisfies W P( ) = P( )

27 requirement for W Ergodicity System at an arbitrary state can reach all the states in finite steps State space should be singly connected, otherwise the steady state is not uniquely determined. Since the number of states is finite, the steady state is reached in a finite steps.

28 We require that the steady state coincides with the thermal equilibrium state requirement ( P i ( ) exp ε ) i k B T The following is the sufficient condition Detailed balance ( w ij exp ε ) j k B T ( = w ji exp ε ) i k B T

29 or Detailed balance 2 ( ) w ij εij = exp w ji k B T where ε ij ε i ε j The most widely used transition probability is Metropolis transition probability [ ( w ij = min 1, exp ε )] ij k B T

30 Problem The state space is usually astronomically huge In case of the two-state system with 1000 elements (very small considering today s computing power), the number of the microscopic states is Thus the Markov matrix is Solution Instead of having the distribution vector P, we carry a single microscopic state and follow its trajectory in the state spece by simulating the stochastic process.

31 Problem We cannot obtain the absolute probability P i, becarse we do not know the number of microstates ω(ε). Instead, we sample microstates in the relative probability that is proportional to P i Solution Compute only the thermal averages. Forget about computing P i itself.

32 Procedure 1 Prepare any initial state i 2 Make a candidate state j for the next step 3 Generate a random number R in [0, 1] and compare to the transition probability w ji 4 If R w ji, change the state to j. Otherwise, keep the state i. 5 Repeat many times After sufficiently long steps, the system reaches the thermal equilibrium state. After that, the states obtained by the simulation are samples from the thermal equilibrium.

33 A simple example Ising model A model for ferromagnet, binary alloy, neural network etc. Defined on a lattice with N lattice points Two-state elements S(called spin ) are located on the lattice points. each element can take one of the two states S = ±1 (called up and down ) Total number of the microscopic states is 2 N

34 Ising model (cont d) If the two spins located in a neibouring lattice points have the same value, they have the energy J, otherwise have the energy J The energy of the two spins are defined as ε ij = JS i S j (i, j indicates the lattice points) The total energy of the system is ε = J ij S i S j (The sum is taken over all the neighboring lattice points)

35 Procedure (Metropolis method) Preparation: Assign +1 or 1 to all the spins Flip: Choose a spin to flip Calculate the energy difference ε due to a flip. Note that the energy difference can be calculated locally If ε < 0 then flip the spin. Otherwise ( ) make a random number R. If R < exp ε k B then flip T the spin Repeat many times

36 Remarks Initial relaxation Microscopic states obtained in the earlier stages of the simulation is not the sample from the equilibrium state, because the effect of the initial (arbitrary) state remains. Therefore, samples from earlier steps should be discarded (thermalization process

37 Sampling interval Microscopic states obtained from nearby steps are close to each other. So they are not the statistically independent samples. Samples should be collected with a sufficient interval.

38 Statistical analysis Since we have only a small fraction of microstates among all the possible states, thermal averages are suffered from statistical error. So, the standard error analyses as those used in experimental science should be employed. In that sense, MCMC is a kind of computer experiment. Many sophisticated statistical analysis methods have been proposed.

39 Random number Random numbers are pseudorandom Random numbers generated (RNG) by any algorithm are not truely random. Therefore, quality of the random number generator is important. ex. Mersenne-Twister (MT) is one of the candidate of the good RNG Physical RNG using noises in electric circuit is a good candidate, because it s truely random. But such RNGs are not always available. And also they lack the repeatability.

40 Caution There are very bad RNGs, sometimes even in standard libraries. Thus selecting a good RNG is really important in MCMC. There is no RNG that is good for any purpose. So, the RNGs should be tested for each application. For example, MT is good for most MCMC simulations, but is not appropriate for using in encryption.

41 New methods and rare event sampling

42 Histogram reweighting If we get the histogram of the energy H(ε, T ) by MCMC at temperature T ( H(ε, T ) ω(ε) exp ε ) k B T where ω(ε) is the number of microstates with ε. Then the energy distribution for a different temperature T can be estimated as P(ε, T ) H(ε, T ) exp {( 1 k B T 1 k B T ) } ε

43 3000 P(E;β) E Original histogram

44 P(E;β P(E;β Why temperature statistical mechanics Markov Chain Monte Carlo New methods E E P(E;β ) P(E;β ) E E Reweighted histogram Reweighted histograms become jaggy at the shifted side. But it is a basis of the extended 0ensemble methods P(E;β ) E

45 Extended ensemble methods Accelarate the relaxation especially in low temperature or crossing the energy barrier Calculate thermal quantities for wide range of temperatures by a single simulation Count the number of microstates and compute entropy Rare event sampling

46 Exchange method Simulate many identical systems with different temperature simultaneously, and exchange their temperature from time to time according to the transition rate that satisfies the following condition: W (1, 2 2, 1) W (2, 1 1, 2) = exp { ( 1 k B T 1 1 k B T 2 Then simultaneous equilibrium at all the temperatures is reaches. ) (ε 2 ε 1 ) }

47

48 Multicanonical method Equilibrium distribution is made inversely proportional to ω(ε) P(ε) 1 ω(ε) Very broad histogram is obtained Transition rate is determinde through Learning process (machine learning) Most frequently used method is Wang-Landau method Thermal equilibrium can be obtained by the histogram reweighting method

49 Conceptual difference between the conventional MCMC and the multicanonical MC

50 Multicanonical method to unphysical direction In order to bipass some physical constraint, we can use multicanonical method that relaxes the constraint example: Multi-self-overlap ensemble for lattice polymer

51 Relaxing the self-avoidance condition, the polymer can readily transit among these three configurations.

52 Rare event sampling using multicanonical method We can generate very rare configuration using multicanonical MC and estimate its appearance probability This method can be applied even to non-physical systems by defining appropriate energy function

53 example Count the number of magic squares Number of magic square was estimated to be 6.56(29)

54 Report: Make a MCMC program for Ising model.

Copyright 2001 University of Cambridge. Not to be quoted or copied without permission.

Copyright 2001 University of Cambridge. Not to be quoted or copied without permission. Course MP3 Lecture 4 13/11/2006 Monte Carlo method I An introduction to the use of the Monte Carlo method in materials modelling Dr James Elliott 4.1 Why Monte Carlo? The name derives from the association

More information

Monte Carlo. Lecture 15 4/9/18. Harvard SEAS AP 275 Atomistic Modeling of Materials Boris Kozinsky

Monte Carlo. Lecture 15 4/9/18. Harvard SEAS AP 275 Atomistic Modeling of Materials Boris Kozinsky Monte Carlo Lecture 15 4/9/18 1 Sampling with dynamics In Molecular Dynamics we simulate evolution of a system over time according to Newton s equations, conserving energy Averages (thermodynamic properties)

More information

Introduction to the Renormalization Group

Introduction to the Renormalization Group Introduction to the Renormalization Group Gregory Petropoulos University of Colorado Boulder March 4, 2015 1 / 17 Summary Flavor of Statistical Physics Universality / Critical Exponents Ising Model Renormalization

More information

Numerical Analysis of 2-D Ising Model. Ishita Agarwal Masters in Physics (University of Bonn) 17 th March 2011

Numerical Analysis of 2-D Ising Model. Ishita Agarwal Masters in Physics (University of Bonn) 17 th March 2011 Numerical Analysis of 2-D Ising Model By Ishita Agarwal Masters in Physics (University of Bonn) 17 th March 2011 Contents Abstract Acknowledgment Introduction Computational techniques Numerical Analysis

More information

Statistical Thermodynamics and Monte-Carlo Evgenii B. Rudnyi and Jan G. Korvink IMTEK Albert Ludwig University Freiburg, Germany

Statistical Thermodynamics and Monte-Carlo Evgenii B. Rudnyi and Jan G. Korvink IMTEK Albert Ludwig University Freiburg, Germany Statistical Thermodynamics and Monte-Carlo Evgenii B. Rudnyi and Jan G. Korvink IMTEK Albert Ludwig University Freiburg, Germany Preliminaries Learning Goals From Micro to Macro Statistical Mechanics (Statistical

More information

3.320 Lecture 18 (4/12/05)

3.320 Lecture 18 (4/12/05) 3.320 Lecture 18 (4/12/05) Monte Carlo Simulation II and free energies Figure by MIT OCW. General Statistical Mechanics References D. Chandler, Introduction to Modern Statistical Mechanics D.A. McQuarrie,

More information

Random Walks A&T and F&S 3.1.2

Random Walks A&T and F&S 3.1.2 Random Walks A&T 110-123 and F&S 3.1.2 As we explained last time, it is very difficult to sample directly a general probability distribution. - If we sample from another distribution, the overlap will

More information

General Construction of Irreversible Kernel in Markov Chain Monte Carlo

General Construction of Irreversible Kernel in Markov Chain Monte Carlo General Construction of Irreversible Kernel in Markov Chain Monte Carlo Metropolis heat bath Suwa Todo Department of Applied Physics, The University of Tokyo Department of Physics, Boston University (from

More information

Physics 115/242 Monte Carlo simulations in Statistical Physics

Physics 115/242 Monte Carlo simulations in Statistical Physics Physics 115/242 Monte Carlo simulations in Statistical Physics Peter Young (Dated: May 12, 2007) For additional information on the statistical Physics part of this handout, the first two sections, I strongly

More information

AGuideto Monte Carlo Simulations in Statistical Physics

AGuideto Monte Carlo Simulations in Statistical Physics AGuideto Monte Carlo Simulations in Statistical Physics Second Edition David P. Landau Center for Simulational Physics, The University of Georgia Kurt Binder Institut für Physik, Johannes-Gutenberg-Universität

More information

Contents. 1 Introduction and guide for this text 1. 2 Equilibrium and entropy 6. 3 Energy and how the microscopic world works 21

Contents. 1 Introduction and guide for this text 1. 2 Equilibrium and entropy 6. 3 Energy and how the microscopic world works 21 Preface Reference tables Table A Counting and combinatorics formulae Table B Useful integrals, expansions, and approximations Table C Extensive thermodynamic potentials Table D Intensive per-particle thermodynamic

More information

Computational Physics (6810): Session 13

Computational Physics (6810): Session 13 Computational Physics (6810): Session 13 Dick Furnstahl Nuclear Theory Group OSU Physics Department April 14, 2017 6810 Endgame Various recaps and followups Random stuff (like RNGs :) Session 13 stuff

More information

Lecture V: Multicanonical Simulations.

Lecture V: Multicanonical Simulations. Lecture V: Multicanonical Simulations. 1. Multicanonical Ensemble 2. How to get the Weights? 3. Example Runs (2d Ising and Potts models) 4. Re-Weighting to the Canonical Ensemble 5. Energy and Specific

More information

Markov Processes. Stochastic process. Markov process

Markov Processes. Stochastic process. Markov process Markov Processes Stochastic process movement through a series of well-defined states in a way that involves some element of randomness for our purposes, states are microstates in the governing ensemble

More information

Monte Caro simulations

Monte Caro simulations Monte Caro simulations Monte Carlo methods - based on random numbers Stanislav Ulam s terminology - his uncle frequented the Casino in Monte Carlo Random (pseudo random) number generator on the computer

More information

André Schleife Department of Materials Science and Engineering

André Schleife Department of Materials Science and Engineering André Schleife Department of Materials Science and Engineering Length Scales (c) ICAMS: http://www.icams.de/cms/upload/01_home/01_research_at_icams/length_scales_1024x780.png Goals for today: Background

More information

Advanced sampling. fluids of strongly orientation-dependent interactions (e.g., dipoles, hydrogen bonds)

Advanced sampling. fluids of strongly orientation-dependent interactions (e.g., dipoles, hydrogen bonds) Advanced sampling ChE210D Today's lecture: methods for facilitating equilibration and sampling in complex, frustrated, or slow-evolving systems Difficult-to-simulate systems Practically speaking, one is

More information

Intro. Each particle has energy that we assume to be an integer E i. Any single-particle energy is equally probable for exchange, except zero, assume

Intro. Each particle has energy that we assume to be an integer E i. Any single-particle energy is equally probable for exchange, except zero, assume Intro Take N particles 5 5 5 5 5 5 Each particle has energy that we assume to be an integer E i (above, all have 5) Particle pairs can exchange energy E i! E i +1andE j! E j 1 5 4 5 6 5 5 Total number

More information

Collective Effects. Equilibrium and Nonequilibrium Physics

Collective Effects. Equilibrium and Nonequilibrium Physics 1 Collective Effects in Equilibrium and Nonequilibrium Physics: Lecture 2, 24 March 2006 1 Collective Effects in Equilibrium and Nonequilibrium Physics Website: http://cncs.bnu.edu.cn/mccross/course/ Caltech

More information

Statistical Physics. How to connect the microscopic properties -- lots of changes to the macroscopic properties -- not changing much.

Statistical Physics. How to connect the microscopic properties -- lots of changes to the macroscopic properties -- not changing much. Statistical Physics How to connect the microscopic properties -- lots of changes to the macroscopic properties -- not changing much. We will care about: N = # atoms T = temperature V = volume U = total

More information

arxiv: v3 [cond-mat.stat-mech] 20 Nov 2014

arxiv: v3 [cond-mat.stat-mech] 20 Nov 2014 Effective ergodicity in single-spin-flip dynamics Mehmet Süzen Applied Mathematical Physiology Lab Bonn University, Sigmund-Freud-Str.25, 53127 Bonn, Germany (Dated: March 9, 2018) arxiv:1405.4497v3 [cond-mat.stat-mech]

More information

Kinetic Monte Carlo (KMC) Kinetic Monte Carlo (KMC)

Kinetic Monte Carlo (KMC) Kinetic Monte Carlo (KMC) Kinetic Monte Carlo (KMC) Molecular Dynamics (MD): high-frequency motion dictate the time-step (e.g., vibrations). Time step is short: pico-seconds. Direct Monte Carlo (MC): stochastic (non-deterministic)

More information

J ij S i S j B i S i (1)

J ij S i S j B i S i (1) LECTURE 18 The Ising Model (References: Kerson Huang, Statistical Mechanics, Wiley and Sons (1963) and Colin Thompson, Mathematical Statistical Mechanics, Princeton Univ. Press (1972)). One of the simplest

More information

Chapter 2 Ensemble Theory in Statistical Physics: Free Energy Potential

Chapter 2 Ensemble Theory in Statistical Physics: Free Energy Potential Chapter Ensemble Theory in Statistical Physics: Free Energy Potential Abstract In this chapter, we discuss the basic formalism of statistical physics Also, we consider in detail the concept of the free

More information

Monte Carlo Simulation of the Ising Model. Abstract

Monte Carlo Simulation of the Ising Model. Abstract Monte Carlo Simulation of the Ising Model Saryu Jindal 1 1 Department of Chemical Engineering and Material Sciences, University of California, Davis, CA 95616 (Dated: June 9, 2007) Abstract This paper

More information

Luigi Paolasini

Luigi Paolasini Luigi Paolasini paolasini@esrf.fr LECTURE 7: Magnetic excitations - Phase transitions and the Landau mean-field theory. - Heisenberg and Ising models. - Magnetic excitations. External parameter, as for

More information

ICCP Project 2 - Advanced Monte Carlo Methods Choose one of the three options below

ICCP Project 2 - Advanced Monte Carlo Methods Choose one of the three options below ICCP Project 2 - Advanced Monte Carlo Methods Choose one of the three options below Introduction In statistical physics Monte Carlo methods are considered to have started in the Manhattan project (1940

More information

Wang-Landau Monte Carlo simulation. Aleš Vítek IT4I, VP3

Wang-Landau Monte Carlo simulation. Aleš Vítek IT4I, VP3 Wang-Landau Monte Carlo simulation Aleš Vítek IT4I, VP3 PART 1 Classical Monte Carlo Methods Outline 1. Statistical thermodynamics, ensembles 2. Numerical evaluation of integrals, crude Monte Carlo (MC)

More information

Principles of Equilibrium Statistical Mechanics

Principles of Equilibrium Statistical Mechanics Debashish Chowdhury, Dietrich Stauffer Principles of Equilibrium Statistical Mechanics WILEY-VCH Weinheim New York Chichester Brisbane Singapore Toronto Table of Contents Part I: THERMOSTATICS 1 1 BASIC

More information

Phase transitions and finite-size scaling

Phase transitions and finite-size scaling Phase transitions and finite-size scaling Critical slowing down and cluster methods. Theory of phase transitions/ RNG Finite-size scaling Detailed treatment: Lectures on Phase Transitions and the Renormalization

More information

Parallel Tempering Algorithm in Monte Carlo Simulation

Parallel Tempering Algorithm in Monte Carlo Simulation Parallel Tempering Algorithm in Monte Carlo Simulation Tony Cheung (CUHK) Kevin Zhao (CUHK) Mentors: Ying Wai Li (ORNL) Markus Eisenbach (ORNL) Kwai Wong (UTK/ORNL) Metropolis Algorithm on Ising Model

More information

Markov Chain Monte Carlo The Metropolis-Hastings Algorithm

Markov Chain Monte Carlo The Metropolis-Hastings Algorithm Markov Chain Monte Carlo The Metropolis-Hastings Algorithm Anthony Trubiano April 11th, 2018 1 Introduction Markov Chain Monte Carlo (MCMC) methods are a class of algorithms for sampling from a probability

More information

Rare Event Sampling using Multicanonical Monte Carlo

Rare Event Sampling using Multicanonical Monte Carlo Rare Event Sampling using Multicanonical Monte Carlo Yukito IBA The Institute of Statistical Mathematics This is my 3rd oversea trip; two of the three is to Australia. Now I (almost) overcome airplane

More information

The Monte Carlo Method in Condensed Matter Physics

The Monte Carlo Method in Condensed Matter Physics The Monte Carlo Method in Condensed Matter Physics Edited by K. Binder With Contributions by A. Baumgärtner K. Binder A.N. Burkitt D.M. Ceperley H. De Raedt A.M. Ferrenberg D.W. Heermann H.J. Herrmann

More information

Equilibrium, out of equilibrium and consequences

Equilibrium, out of equilibrium and consequences Equilibrium, out of equilibrium and consequences Katarzyna Sznajd-Weron Institute of Physics Wroc law University of Technology, Poland SF-MTPT Katarzyna Sznajd-Weron (WUT) Equilibrium, out of equilibrium

More information

Computer simulations as concrete models for student reasoning

Computer simulations as concrete models for student reasoning Computer simulations as concrete models for student reasoning Jan Tobochnik Department of Physics Kalamazoo College Kalamazoo MI 49006 In many thermal physics courses, students become preoccupied with

More information

Monte Carlo Methods in Statistical Mechanics

Monte Carlo Methods in Statistical Mechanics Monte Carlo Methods in Statistical Mechanics Mario G. Del Pópolo Atomistic Simulation Centre School of Mathematics and Physics Queen s University Belfast Belfast Mario G. Del Pópolo Statistical Mechanics

More information

Lecture 8: Computer Simulations of Generalized Ensembles

Lecture 8: Computer Simulations of Generalized Ensembles Lecture 8: Computer Simulations of Generalized Ensembles Bernd A. Berg Florida State University November 6, 2008 Bernd A. Berg (FSU) Generalized Ensembles November 6, 2008 1 / 33 Overview 1. Reweighting

More information

Statistical Mechanics

Statistical Mechanics Franz Schwabl Statistical Mechanics Translated by William Brewer Second Edition With 202 Figures, 26 Tables, and 195 Problems 4u Springer Table of Contents 1. Basic Principles 1 1.1 Introduction 1 1.2

More information

Monte Carlo (MC) Simulation Methods. Elisa Fadda

Monte Carlo (MC) Simulation Methods. Elisa Fadda Monte Carlo (MC) Simulation Methods Elisa Fadda 1011-CH328, Molecular Modelling & Drug Design 2011 Experimental Observables A system observable is a property of the system state. The system state i is

More information

Introduction to Machine Learning CMU-10701

Introduction to Machine Learning CMU-10701 Introduction to Machine Learning CMU-10701 Markov Chain Monte Carlo Methods Barnabás Póczos & Aarti Singh Contents Markov Chain Monte Carlo Methods Goal & Motivation Sampling Rejection Importance Markov

More information

Advanced Monte Carlo Methods Problems

Advanced Monte Carlo Methods Problems Advanced Monte Carlo Methods Problems September-November, 2012 Contents 1 Integration with the Monte Carlo method 2 1.1 Non-uniform random numbers.......................... 2 1.2 Gaussian RNG..................................

More information

Classical Monte Carlo Simulations

Classical Monte Carlo Simulations Classical Monte Carlo Simulations Hyejin Ju April 17, 2012 1 Introduction Why do we need numerics? One of the main goals of condensed matter is to compute expectation values O = 1 Z Tr{O e βĥ} (1) and

More information

The Phase Transition of the 2D-Ising Model

The Phase Transition of the 2D-Ising Model The Phase Transition of the 2D-Ising Model Lilian Witthauer and Manuel Dieterle Summer Term 2007 Contents 1 2D-Ising Model 2 1.1 Calculation of the Physical Quantities............... 2 2 Location of the

More information

Spontaneous Symmetry Breaking

Spontaneous Symmetry Breaking Spontaneous Symmetry Breaking Second order phase transitions are generally associated with spontaneous symmetry breaking associated with an appropriate order parameter. Identifying symmetry of the order

More information

Generalized Ensembles: Multicanonical Simulations

Generalized Ensembles: Multicanonical Simulations Generalized Ensembles: Multicanonical Simulations 1. Multicanonical Ensemble 2. How to get the Weights? 3. Example Runs and Re-Weighting to the Canonical Ensemble 4. Energy and Specific Heat Calculation

More information

Monte-Carlo simulation of small 2D Ising lattice with Metropolis dynamics

Monte-Carlo simulation of small 2D Ising lattice with Metropolis dynamics Monte-Carlo simulation of small 2D Ising lattice with Metropolis dynamics Paul Secular Imperial College London (Dated: 6th February 2015) Results of a Monte-Carlo simulation of the nearest-neighbour Ising

More information

Markov Chains and MCMC

Markov Chains and MCMC Markov Chains and MCMC Markov chains Let S = {1, 2,..., N} be a finite set consisting of N states. A Markov chain Y 0, Y 1, Y 2,... is a sequence of random variables, with Y t S for all points in time

More information

Metropolis Monte Carlo simulation of the Ising Model

Metropolis Monte Carlo simulation of the Ising Model Metropolis Monte Carlo simulation of the Ising Model Krishna Shrinivas (CH10B026) Swaroop Ramaswamy (CH10B068) May 10, 2013 Modelling and Simulation of Particulate Processes (CH5012) Introduction The Ising

More information

Kinetic Monte Carlo (KMC)

Kinetic Monte Carlo (KMC) Kinetic Monte Carlo (KMC) Molecular Dynamics (MD): high-frequency motion dictate the time-step (e.g., vibrations). Time step is short: pico-seconds. Direct Monte Carlo (MC): stochastic (non-deterministic)

More information

Energy Landscapes of Deep Networks

Energy Landscapes of Deep Networks Energy Landscapes of Deep Networks Pratik Chaudhari February 29, 2016 References Auffinger, A., Arous, G. B., & Černý, J. (2013). Random matrices and complexity of spin glasses. arxiv:1003.1129.# Choromanska,

More information

Monte Carlo importance sampling and Markov chain

Monte Carlo importance sampling and Markov chain Monte Carlo importance sampling and Markov chain If a configuration in phase space is denoted by X, the probability for configuration according to Boltzman is ρ(x) e βe(x) β = 1 T (1) How to sample over

More information

CS 781 Lecture 9 March 10, 2011 Topics: Local Search and Optimization Metropolis Algorithm Greedy Optimization Hopfield Networks Max Cut Problem Nash

CS 781 Lecture 9 March 10, 2011 Topics: Local Search and Optimization Metropolis Algorithm Greedy Optimization Hopfield Networks Max Cut Problem Nash CS 781 Lecture 9 March 10, 2011 Topics: Local Search and Optimization Metropolis Algorithm Greedy Optimization Hopfield Networks Max Cut Problem Nash Equilibrium Price of Stability Coping With NP-Hardness

More information

In-class exercises. Day 1

In-class exercises. Day 1 Physics 4488/6562: Statistical Mechanics http://www.physics.cornell.edu/sethna/teaching/562/ Material for Week 8 Exercises due Mon March 19 Last correction at March 5, 2018, 8:48 am c 2017, James Sethna,

More information

3. General properties of phase transitions and the Landau theory

3. General properties of phase transitions and the Landau theory 3. General properties of phase transitions and the Landau theory In this Section we review the general properties and the terminology used to characterise phase transitions, which you will have already

More information

3.320: Lecture 19 (4/14/05) Free Energies and physical Coarse-graining. ,T) + < σ > dµ

3.320: Lecture 19 (4/14/05) Free Energies and physical Coarse-graining. ,T) + < σ > dµ 3.320: Lecture 19 (4/14/05) F(µ,T) = F(µ ref,t) + < σ > dµ µ µ ref Free Energies and physical Coarse-graining T S(T) = S(T ref ) + T T ref C V T dt Non-Boltzmann sampling and Umbrella sampling Simple

More information

Statistical Mechanics

Statistical Mechanics Statistical Mechanics Entropy, Order Parameters, and Complexity James P. Sethna Laboratory of Atomic and Solid State Physics Cornell University, Ithaca, NY OXFORD UNIVERSITY PRESS Contents List of figures

More information

Lab 70 in TFFM08. Curie & Ising

Lab 70 in TFFM08. Curie & Ising IFM The Department of Physics, Chemistry and Biology Lab 70 in TFFM08 Curie & Ising NAME PERS. -NUMBER DATE APPROVED Rev Aug 09 Agne 1 Introduction Magnetic materials are all around us, and understanding

More information

Optimized statistical ensembles for slowly equilibrating classical and quantum systems

Optimized statistical ensembles for slowly equilibrating classical and quantum systems Optimized statistical ensembles for slowly equilibrating classical and quantum systems IPAM, January 2009 Simon Trebst Microsoft Station Q University of California, Santa Barbara Collaborators: David Huse,

More information

Suggestions for Further Reading

Suggestions for Further Reading Contents Preface viii 1 From Microscopic to Macroscopic Behavior 1 1.1 Introduction........................................ 1 1.2 Some Qualitative Observations............................. 2 1.3 Doing

More information

Monte Carlo study of the Baxter-Wu model

Monte Carlo study of the Baxter-Wu model Monte Carlo study of the Baxter-Wu model Nir Schreiber and Dr. Joan Adler Monte Carlo study of the Baxter-Wu model p.1/40 Outline Theory of phase transitions, Monte Carlo simulations and finite size scaling

More information

Monte Carlo Methods for Computation and Optimization (048715)

Monte Carlo Methods for Computation and Optimization (048715) Technion Department of Electrical Engineering Monte Carlo Methods for Computation and Optimization (048715) Lecture Notes Prof. Nahum Shimkin Spring 2015 i PREFACE These lecture notes are intended for

More information

Session 3A: Markov chain Monte Carlo (MCMC)

Session 3A: Markov chain Monte Carlo (MCMC) Session 3A: Markov chain Monte Carlo (MCMC) John Geweke Bayesian Econometrics and its Applications August 15, 2012 ohn Geweke Bayesian Econometrics and its Session Applications 3A: Markov () chain Monte

More information

arxiv:cond-mat/ v4 [cond-mat.dis-nn] 23 May 2001

arxiv:cond-mat/ v4 [cond-mat.dis-nn] 23 May 2001 Phase Diagram of the three-dimensional Gaussian andom Field Ising Model: A Monte Carlo enormalization Group Study arxiv:cond-mat/488v4 [cond-mat.dis-nn] 3 May M. Itakura JS Domestic esearch Fellow, Center

More information

Markov Chain Monte Carlo Simulations and Their Statistical Analysis An Overview

Markov Chain Monte Carlo Simulations and Their Statistical Analysis An Overview Markov Chain Monte Carlo Simulations and Their Statistical Analysis An Overview Bernd Berg FSU, August 30, 2005 Content 1. Statistics as needed 2. Markov Chain Monte Carlo (MC) 3. Statistical Analysis

More information

Physics 562: Statistical Mechanics Spring 2002, James P. Sethna Prelim, due Wednesday, March 13 Latest revision: March 22, 2002, 10:9

Physics 562: Statistical Mechanics Spring 2002, James P. Sethna Prelim, due Wednesday, March 13 Latest revision: March 22, 2002, 10:9 Physics 562: Statistical Mechanics Spring 2002, James P. Sethna Prelim, due Wednesday, March 13 Latest revision: March 22, 2002, 10:9 Open Book Exam Work on your own for this exam. You may consult your

More information

Chapter 11. Stochastic Methods Rooted in Statistical Mechanics

Chapter 11. Stochastic Methods Rooted in Statistical Mechanics Chapter 11. Stochastic Methods Rooted in Statistical Mechanics Neural Networks and Learning Machines (Haykin) Lecture Notes on Self-learning Neural Algorithms Byoung-Tak Zhang School of Computer Science

More information

Understanding Molecular Simulation 2009 Monte Carlo and Molecular Dynamics in different ensembles. Srikanth Sastry

Understanding Molecular Simulation 2009 Monte Carlo and Molecular Dynamics in different ensembles. Srikanth Sastry JNCASR August 20, 21 2009 Understanding Molecular Simulation 2009 Monte Carlo and Molecular Dynamics in different ensembles Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research, Bangalore

More information

Time-Dependent Statistical Mechanics 1. Introduction

Time-Dependent Statistical Mechanics 1. Introduction Time-Dependent Statistical Mechanics 1. Introduction c Hans C. Andersen Announcements September 24, 2009 Lecture 1 9/22/09 1 Topics of concern in the course We shall be concerned with the time dependent

More information

Paramagnetic phases of Kagome lattice quantum Ising models p.1/16

Paramagnetic phases of Kagome lattice quantum Ising models p.1/16 Paramagnetic phases of Kagome lattice quantum Ising models Predrag Nikolić In collaboration with T. Senthil Massachusetts Institute of Technology Paramagnetic phases of Kagome lattice quantum Ising models

More information

Collective Effects. Equilibrium and Nonequilibrium Physics

Collective Effects. Equilibrium and Nonequilibrium Physics Collective Effects in Equilibrium and Nonequilibrium Physics: Lecture 1, 17 March 2006 1 Collective Effects in Equilibrium and Nonequilibrium Physics Website: http://cncs.bnu.edu.cn/mccross/course/ Collective

More information

Wang-Landau sampling for Quantum Monte Carlo. Stefan Wessel Institut für Theoretische Physik III Universität Stuttgart

Wang-Landau sampling for Quantum Monte Carlo. Stefan Wessel Institut für Theoretische Physik III Universität Stuttgart Wang-Landau sampling for Quantum Monte Carlo Stefan Wessel Institut für Theoretische Physik III Universität Stuttgart Overview Classical Monte Carlo First order phase transitions Classical Wang-Landau

More information

Basics of Statistical Mechanics

Basics of Statistical Mechanics Basics of Statistical Mechanics Review of ensembles Microcanonical, canonical, Maxwell-Boltzmann Constant pressure, temperature, volume, Thermodynamic limit Ergodicity (see online notes also) Reading assignment:

More information

Computer simulation methods (1) Dr. Vania Calandrini

Computer simulation methods (1) Dr. Vania Calandrini Computer simulation methods (1) Dr. Vania Calandrini Why computational methods To understand and predict the properties of complex systems (many degrees of freedom): liquids, solids, adsorption of molecules

More information

Temperature and Pressure Controls

Temperature and Pressure Controls Ensembles Temperature and Pressure Controls 1. (E, V, N) microcanonical (constant energy) 2. (T, V, N) canonical, constant volume 3. (T, P N) constant pressure 4. (T, V, µ) grand canonical #2, 3 or 4 are

More information

The XY-Model. David-Alexander Robinson Sch th January 2012

The XY-Model. David-Alexander Robinson Sch th January 2012 The XY-Model David-Alexander Robinson Sch. 08332461 17th January 2012 Contents 1 Introduction & Theory 2 1.1 The XY-Model............................... 2 1.2 Markov Chains...............................

More information

Introduction to Computer Simulations of Soft Matter Methodologies and Applications Boulder July, 19-20, 2012

Introduction to Computer Simulations of Soft Matter Methodologies and Applications Boulder July, 19-20, 2012 Introduction to Computer Simulations of Soft Matter Methodologies and Applications Boulder July, 19-20, 2012 K. Kremer Max Planck Institute for Polymer Research, Mainz Overview Simulations, general considerations

More information

Basic Concepts and Tools in Statistical Physics

Basic Concepts and Tools in Statistical Physics Chapter 1 Basic Concepts and Tools in Statistical Physics 1.1 Introduction Statistical mechanics provides general methods to study properties of systems composed of a large number of particles. It establishes

More information

Elements of Statistical Mechanics

Elements of Statistical Mechanics Elements of Statistical Mechanics Thermodynamics describes the properties of macroscopic bodies. Statistical mechanics allows us to obtain the laws of thermodynamics from the laws of mechanics, classical

More information

Statistics and Quantum Computing

Statistics and Quantum Computing Statistics and Quantum Computing Yazhen Wang Department of Statistics University of Wisconsin-Madison http://www.stat.wisc.edu/ yzwang Workshop on Quantum Computing and Its Application George Washington

More information

INTRODUCTION TO о JLXJLA Из А lv-/xvj_y JrJrl Y üv_>l3 Second Edition

INTRODUCTION TO о JLXJLA Из А lv-/xvj_y JrJrl Y üv_>l3 Second Edition INTRODUCTION TO о JLXJLA Из А lv-/xvj_y JrJrl Y üv_>l3 Second Edition Kerson Huang CRC Press Taylor & Francis Croup Boca Raton London New York CRC Press is an imprint of the Taylor & Francis Group an Informa

More information

4/18/2011. Titus Beu University Babes-Bolyai Department of Theoretical and Computational Physics Cluj-Napoca, Romania

4/18/2011. Titus Beu University Babes-Bolyai Department of Theoretical and Computational Physics Cluj-Napoca, Romania 1. Introduction Titus Beu University Babes-Bolyai Department of Theoretical and Computational Physics Cluj-Napoca, Romania Bibliography Computer experiments Ensemble averages and time averages Molecular

More information

STA 4273H: Statistical Machine Learning

STA 4273H: Statistical Machine Learning STA 4273H: Statistical Machine Learning Russ Salakhutdinov Department of Computer Science! Department of Statistical Sciences! rsalakhu@cs.toronto.edu! h0p://www.cs.utoronto.ca/~rsalakhu/ Lecture 7 Approximate

More information

Collective Effects. Equilibrium and Nonequilibrium Physics

Collective Effects. Equilibrium and Nonequilibrium Physics 1 Collective Effects in Equilibrium and Nonequilibrium Physics: Lecture 1, 17 March 2006 1 Collective Effects in Equilibrium and Nonequilibrium Physics Website: http://cncs.bnu.edu.cn/mccross/course/ Collective

More information

Monte Carlo Simulation of the 2D Ising model

Monte Carlo Simulation of the 2D Ising model Monte Carlo Simulation of the 2D Ising model Emanuel Schmidt, F44 April 6, 2 Introduction Monte Carlo methods are a powerful tool to solve problems numerically which are dicult to be handled analytically.

More information

Phase Equilibria and Molecular Solutions Jan G. Korvink and Evgenii Rudnyi IMTEK Albert Ludwig University Freiburg, Germany

Phase Equilibria and Molecular Solutions Jan G. Korvink and Evgenii Rudnyi IMTEK Albert Ludwig University Freiburg, Germany Phase Equilibria and Molecular Solutions Jan G. Korvink and Evgenii Rudnyi IMTEK Albert Ludwig University Freiburg, Germany Preliminaries Learning Goals Phase Equilibria Phase diagrams and classical thermodynamics

More information

Quantum Metropolis Sampling. K. Temme, K. Vollbrecht, T. Osborne, D. Poulin, F. Verstraete arxiv:

Quantum Metropolis Sampling. K. Temme, K. Vollbrecht, T. Osborne, D. Poulin, F. Verstraete arxiv: Quantum Metropolis Sampling K. Temme, K. Vollbrecht, T. Osborne, D. Poulin, F. Verstraete arxiv: 09110365 Quantum Simulation Principal use of quantum computers: quantum simulation Quantum Chemistry Determination

More information

Physics 7240: Advanced Statistical Mechanics Lecture 1: Introduction and Overview

Physics 7240: Advanced Statistical Mechanics Lecture 1: Introduction and Overview Physics 7240: Advanced Statistical Mechanics Lecture 1: Introduction and Overview Leo Radzihovsky Department of Physics, University of Colorado, Boulder, CO 80309 (Dated: 30 May, 2017) Electronic address:

More information

Two case studies of Monte Carlo simulation on GPU

Two case studies of Monte Carlo simulation on GPU Two case studies of Monte Carlo simulation on GPU National Institute for Computational Sciences University of Tennessee Seminar series on HPC, Feb. 27, 2014 Outline 1 Introduction 2 Discrete energy lattice

More information

213 Midterm coming up

213 Midterm coming up 213 Midterm coming up Monday April 8 @ 7 pm (conflict exam @ 5:15pm) Covers: Lectures 1-12 (not including thermal radiation) HW 1-4 Discussion 1-4 Labs 1-2 Review Session Sunday April 7, 3-5 PM, 141 Loomis

More information

Lecture 15: MCMC Sanjeev Arora Elad Hazan. COS 402 Machine Learning and Artificial Intelligence Fall 2016

Lecture 15: MCMC Sanjeev Arora Elad Hazan. COS 402 Machine Learning and Artificial Intelligence Fall 2016 Lecture 15: MCMC Sanjeev Arora Elad Hazan COS 402 Machine Learning and Artificial Intelligence Fall 2016 Course progress Learning from examples Definition + fundamental theorem of statistical learning,

More information

Numerical methods for lattice field theory

Numerical methods for lattice field theory Numerical methods for lattice field theory Mike Peardon Trinity College Dublin August 9, 2007 Mike Peardon (Trinity College Dublin) Numerical methods for lattice field theory August 9, 2007 1 / 24 Numerical

More information

Their Statistical Analvsis. With Web-Based Fortran Code. Berg

Their Statistical Analvsis. With Web-Based Fortran Code. Berg Markov Chain Monter rlo Simulations and Their Statistical Analvsis With Web-Based Fortran Code Bernd A. Berg Florida State Univeisitfi USA World Scientific NEW JERSEY + LONDON " SINGAPORE " BEIJING " SHANGHAI

More information

Introduction to molecular dynamics

Introduction to molecular dynamics 1 Introduction to molecular dynamics Yves Lansac Université François Rabelais, Tours, France Visiting MSE, GIST for the summer Molecular Simulation 2 Molecular simulation is a computational experiment.

More information

Evaluation of Wang-Landau Monte Carlo Simulations

Evaluation of Wang-Landau Monte Carlo Simulations 2012 4th International Conference on Computer Modeling and Simulation (ICCMS 2012) IPCSIT vol.22 (2012) (2012) IACSIT Press, Singapore Evaluation of Wang-Landau Monte Carlo Simulations Seung-Yeon Kim School

More information

First Problem Set for Physics 847 (Statistical Physics II)

First Problem Set for Physics 847 (Statistical Physics II) First Problem Set for Physics 847 (Statistical Physics II) Important dates: Feb 0 0:30am-:8pm midterm exam, Mar 6 9:30am-:8am final exam Due date: Tuesday, Jan 3. Review 0 points Let us start by reviewing

More information

WORLD SCIENTIFIC (2014)

WORLD SCIENTIFIC (2014) WORLD SCIENTIFIC (2014) LIST OF PROBLEMS Chapter 1: Magnetism of Free Electrons and Atoms 1. Orbital and spin moments of an electron: Using the theory of angular momentum, calculate the orbital

More information

Stochastic Networks Variations of the Hopfield model

Stochastic Networks Variations of the Hopfield model 4 Stochastic Networks 4. Variations of the Hopfield model In the previous chapter we showed that Hopfield networks can be used to provide solutions to combinatorial problems that can be expressed as the

More information

Any live cell with less than 2 live neighbours dies. Any live cell with 2 or 3 live neighbours lives on to the next step.

Any live cell with less than 2 live neighbours dies. Any live cell with 2 or 3 live neighbours lives on to the next step. 2. Cellular automata, and the SIRS model In this Section we consider an important set of models used in computer simulations, which are called cellular automata (these are very similar to the so-called

More information