1 / 28

Introduction to Ising Model and Opinion Dynamics for non-physicists (hopefully)

Introduction to Ising Model and Opinion Dynamics for non-physicists (hopefully) . Sang Hoon Lee, Complex Systems and Statistical Physics Lab., Dept. of Physics, KAIST, June 23, 2007. What is the Ising model?.

berny
Télécharger la présentation

Introduction to Ising Model and Opinion Dynamics for non-physicists (hopefully)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Ising Model and Opinion Dynamics for non-physicists (hopefully) Sang Hoon Lee,Complex Systems and Statistical Physics Lab.,Dept. of Physics, KAIST,June 23, 2007.

  2. What is the Ising model? • Ising model: a crude attempt to simulate the structure of a physical ferromagnetic substance • Main virtue(?): a 2D Ising model yields to an exact treatment in statistical mechanics • The only nontrivial example of a phase transition that can be worked out with mathematical rigor Basic terminologies in statistical physics, but (possibly) not familiar to non-physicists~ cf) ferromagnetic substance (강자성체): Fe(철), Co(코발트), Ni(니켈), etc

  3. What’s the relationship with opinion dynamics? • The system is an array of N fixed points called lattice sites • Associated with each lattice site is a spin variablesi (i = 1, …, N) which is a number that is either +1(↑; spin-up) or -1(↓; spin-down) • A given set of numbers {si} specifies a configuration of the whole system spin configuration in a non-regular lattice (or even a complex network!) 3D spin configuration

  4. S S S N N N N N N N N S S S S S What is spin? • Spin is the angular momentum intrinsic to particles such as atoms, protons, or electrons. Such particles and the spin of quantum mechanical systems (“particle spin”) possesses several non-classical features and for such systems spin angular momentum cannot be associated with rotation but instead refers only to the presence of angular momentum … • For the purpose of qualitative understanding of Ising model, just consider the spin variable as the basic unit of magnetization~ “net” magnetization = +2 (x↑) or +1 -1

  5. “Thermodynamic” quantities … interaction with theexternal magnetic field neighbor-interaction(ferromagnetic coupling)+J if si& sj have different signs-J if si& sj have the same sign … External field H Entropy … … “Energy-minimized” configuration < … … # of possible configurationsfor a given energy value E

  6. T: temperature (“control parameter”)cf) if T = 0, only the energy term is considered! Minimize F = “competition” between the energyand entropy with the control parameter T(energy minimization vs entropy maximization) Main question in statistical mechanics:What’s the configuration that minimize F for giventemperature values like? What’s the average of {si},the variance of {si}, etc? magnetization m susceptibility χ

  7. Phase transition (相轉移) We can expect that the magnetization is reduced as thetemperature rises … from the TV series “CSI” … Mathematical singularity:not differentiable, etc.(“singularity” class ortype of phase transition) m disorder phase T TC (critical or Curie temperature) H = 0 “spontaneous” magnetization:magnetized without any external magnetic field

  8. If each spin variable represents the “individual opinion” … • Magnetization (average spin) → average opinion (majority vote) How to interpret T in the opinion dynamics? m disorder phase Things to consider:“real” phase transition occurs onlyin the thermodynamic limit (N → ∞)& many other things, such as “howto simplify people’s opinions tothe magnetic Ising model?” T ~ consensus

  9. T T Discontinuous (1st order) & continuous (2nd order) transition Continuous transition Discontinuous transition Solution of self-consistency equation

  10. Topology matters! Ising model energy Regular lattice in Euclidean space – dimension, coordination number Existence of shortcuts, randomness – Watts-Strogatz small-world network Heterogeneity of connections – scale-free network

  11. Ising model on complex networks Review paper about the critical phenomena in complex network: S. N. Dorogovtsev, A. V. Goltsev, and J. F. F. Mendes,“Critical phenomena in complex networks”, e-print arXiv:0705.0010 for physicists …

  12. scale-free network : probability distribution of degree follows the power law. in the log-log scale, of course … The hub (opinion) dominates !!! “always magnetized”: no phase-transition similar to mean-field theory: different technical details mean-field theory: same as all-to-all interaction

  13. The “voter model” resembles the Ising model,but focuses on different aspects of the system the Ising model the voter model the Ising-Glauberdynamics equilibrium state thermodynamic variables Monte Carlo simulation (Metropolis algorithm) pathway to equilibrium (consensus) state time to reach consensus “Humans may dislike to be simulated like Ising spins, and clearly the brain is more complicated than one binary variables.” – D. Stauffer

  14. The voter model is the simplest and mostcompleted solved examples of cooperative behavior The Rule of the Model Each site of a graph is endowed with two states – spin up ↑(s = +1) and down ↓(s = -1) like the Ising model For each evolution time step, i) pick a random siteii) the selected site adopts the state of a randomly-chosen neighbor These steps are repeated until a finite system necessarilyreaches consensus

  15. The voter model dynamics - illustration

  16. adjacency matrix:1 if i and j connected, 0 if not external field given byrandom variable discontinuous (1st order) transition continuous transition Random Field Ising Model on Scale-Free Networks S. H. Lee, H. Jeong, and J. D. Noh, Phys. Rev. E 74, 031118 (2006).

  17. Interpretation as opinion dynamics model? In the original manuscript of our paper …

  18. An anonymous referee said,

  19. Investigating the Ising model • Analytic approach • 1D Ising model: no phase transition (transfer matrix) • 2D Ising model: Onsager solution (advanced graduate level) • 3D Ising model: no exact solution (yet!), approximation based on series expansion, etc. • Mean-field theory: (relatively) easy calculation with the self-consistency equation – exact for all-to-all coupling & valid for D > 4 (upper-critical dimension) • Numerical simulation • Monte Carlo simulation • Boltzmann factor and Metropolis algorithm • Voter model dynamics ~ T=0 Ising model simulation

  20. Boltzmann factor (before introducing the basic algorithm for Monte Carlo simulation) ~ probability that an equilibrium system has the energy Ei in the canonical ensemble with the temperature T Basic idea: let the system configuration “evolve” byconsidering the Boltzmann factor and record theaverage magnetization, variance, etc.

  21. Basic Monte Carlo Simulation: Metropolis algorithm • Prepare the system & initialize • System configuration evolution “loop” • Randomly pick a site and calculate the energy change if the spin at the site is flipped • If the energy is lowered, the spin flip is accepted • If the energy gets larger, the spin flip is accepted with the probability • Record the average, variance (2nd moment), 4th moment, etc. (after the initial transient period; the equilibration time) • After the simulation, thermodynamic quantities are calculated with the recorded data for each T …

  22. Monte Carlo Simulation with what …? • Nothing is impossible! Anything that can calculate the exponential function (even this is not necessary for T = 0) & generate random numbers • Usually, programming languages such as C, C++, python, Fortran, Java, etc. Surprisingly, even with Microsoft Excel !!!

  23. 2D Ising model Monte Carlo simulation: C code by me “spin flipping” part Boltzmann factor

  24. spin configuration initialization record various quantities call the spin flipping function

  25. Result: time series of magnetization T ~ TC T < TC spontaneous magnetization “critical slowing down” T > TC disorder phase

  26. Result: thermodynamic quantities depending on the temperature

  27. Java Applets • Prof. Jae Dong Noh’s website • http://statphy1.uos.ac.kr/noh/java.html

  28. Summary • Ising model: “immortal” subject of statistical mechanics – application to opinion dynamics (with caution!) • Monte Carlo simulation based on Metropolis algorithm • Now, you’ll take a look at how we can do the simulation with Microsoft Excel~ :) Any question or comment?

More Related