<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JAMP</journal-id><journal-title-group><journal-title>Journal of Applied Mathematics and Physics</journal-title></journal-title-group><issn pub-type="epub">2327-4352</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jamp.2019.75071</article-id><article-id pub-id-type="publisher-id">JAMP-92566</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Analogy between the Formulation of Ising-Glauber Model and Si Epidemiological Model
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Cristina</surname><given-names>Gabriela Aguilar Lara</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Eduardo</surname><given-names>Massad</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Luis</surname><given-names>Fernandez Lopez</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Marcos</surname><given-names>Amaku</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Faculty of Medicine, University of S&amp;amp;#227;o Paulo, S&amp;amp;#227;o Paulo, Brazil</addr-line></aff><pub-date pub-type="epub"><day>06</day><month>05</month><year>2019</year></pub-date><volume>07</volume><issue>05</issue><fpage>1052</fpage><lpage>1066</lpage><history><date date-type="received"><day>16,</day>	<month>September</month>	<year>2018</year></date><date date-type="rev-recd"><day>20,</day>	<month>May</month>	<year>2019</year>	</date><date date-type="accepted"><day>23,</day>	<month>May</month>	<year>2019</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  
    From the mathematical point of view, the modeling of epidemics
   —in other words, the spread of infectious diseases transmitted from individual to individual—is very similar to the modeling of the magnetic systems studied by statistical physics. In this work, we use this analogy between mathematical epidemiology and statistical physics to study the classical mathematical model of epidemiology SI (Susceptible-Infected) approached through the Ising-Glauber model, in which individuals would be represented by atoms with spins -1 (susceptible) and 1 (infected). A Monte Carlo computational simulation was also performed for the Ising-Glauber model in a square network, where each network point represents an individual and the down and up spins represent susceptible and infected individuals. 
  
 
</p></abstract><kwd-group><kwd>Ising-Glauber Model</kwd><kwd> Epidemiology</kwd><kwd> Computer Simulation</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Mathematical models and computational simulations of infectious diseases are widely used tools in epidemiology. They make possible the understanding of the basic mechanisms whereby epidemic outbreaks can settle in a given population. In this way, it is possible to develop interventions that control or prevent the epidemic [<xref ref-type="bibr" rid="scirp.92566-ref1">1</xref>] . The most used mathematical models in epidemiology to describe the spread of infectious diseases divide the population into compartments related to the state in which individuals are found in the development of the disease [<xref ref-type="bibr" rid="scirp.92566-ref2">2</xref>] .</p><p>One of the best-known models is the SI (Susceptible-Infected) model, which divides the population into two compartments: susceptible and infected [<xref ref-type="bibr" rid="scirp.92566-ref3">3</xref>] . However, this compartmental model can be studied in a deterministic and stochastic way [<xref ref-type="bibr" rid="scirp.92566-ref4">4</xref>] . The deterministic models present a better outcome for large populations and are usually translated into systems of ordinary nonlinear differential equations whose resolution requires complex analytical and numerical methods [<xref ref-type="bibr" rid="scirp.92566-ref5">5</xref>] . On the other hand, because of their conceptual simplicity, they are more useful for identifying the most important variables and parameters in each process.</p><p>Stochastic models have a general application and emphasize the randomic aspect of the occurrence of a phenomenon. They involve more details about the properties of the system and can be elaborated based on the characteristics of the individuals and their structure of contacts [<xref ref-type="bibr" rid="scirp.92566-ref5">5</xref>] . However, the classic stochastic models of epidemiology are very complex and difficult to address mathematically.</p><p>In the field of Material Physics, one of the models used to study the transition properties of the ferro-paramagnetic phase of ferromagnetic materials is the Ising model. This model can also be used in the area of epidemiology to study the properties that are responsible for the spread of a disease since its mathematical structure resembles those used in epidemiological models. In this way, the present article aims to make an analogy between the SI model and the Ising model according to Glauber’s dynamics that has been studied extensively by physicists for more than sixty years and makes it easier to analyze similar epidemiological models.</p><p>The methodology for conducting the comparative study of the SI epidemiological model and the Ising-Glauber physical model took the following path: 1) initially, a deterministic and stochastic study of the SI model was performed. 2) A study of the Ising model was made in order to show that the phase transition occurs only in one dimension. 3) A study of the model proposed by Glauber for the Ising model was carried out. 4) An analytical comparison of the Ising-Glauber model was made for a single spin and also in the absence of a magnetic field, with the SI model (approached in a deterministic and stochastic way). 5) Finally, an analytical comparison and a computational simulation, via Monte Carlo, with N spin and in the absence of the magnetic field were carried out, with the SI model (approached deterministically and stochastically).</p></sec><sec id="s2"><title>2. Epidemiological Model SI</title><p>One of the simplest models in epidemiology separates individuals into two states: susceptible (S) and infected (I). The SI model consists in analyzing a population of N susceptible people (S) in which an infected individual (I) is inserted within this population, so when the susceptible individual is infected, it remains in that state (infected) forever [<xref ref-type="bibr" rid="scirp.92566-ref5">5</xref>] .</p><sec id="s2_1"><title>2.1. Deterministic SI Model</title><p>The SI model is described by two non-linear ordinary differential equations.</p><p>d S d t = − β S ( t ) I ( t ) (1)</p><p>d I d t = β S ( t ) I ( t ) (2)</p><p>In these equations, β is the rate of infective contacts that is a proportionality constant in density-dependent or frequency-dependent transmission [<xref ref-type="bibr" rid="scirp.92566-ref6">6</xref>] . Solving the differential equations above, by the method of separation of variables and considering the initial conditions, S 0 = N e I 0 = 1 is obtained.</p><p>S ( t ) = N ( 1 + N ) N + e β ( N + 1 ) t (3)</p><p>I ( t ) = ( N + 1 ) e β ( N + 1 ) t N + e β ( N + 1 ) t (4)</p><p>It can be noted that S ( t ) is a continuous and decrescent function in which when time tends to infinity ( t → ∞ ) the number of susceptible tends to zero (Equation (3)). The speed of the decrease depends solely on the value of β. On the other hand, I ( t ) is a continuous and crescent function in which when time tends to infinity ( t → ∞ ) all individuals have ended up infected ( I ( t ) → N + 1 ).</p></sec><sec id="s2_2"><title>2.2. Stochastic SI Model</title><p>The deterministic SI model is, from the mathematical point of view, relatively simple, because it only has the rate of producing infected. However, if stochastically analyzed, it becomes somewhat more complex. In a stochastic SI model with infection force λ = constant, the possible states and the transition probabilities between them are represented in the following <xref ref-type="table" rid="table1">Table 1</xref>.</p><p>Thus, the probability of having x susceptible individuals and y infected individuals—as a function of the number of susceptible and infected individuals at time t and the transition probabilities—at time t + Δt is:</p><p>P x ; y ( t + Δ t ) = P x ; y ( t ) T P ( x ; y → x ; y ) + P x + 1 ; y − 1 ( t ) T P ( x + 1 ; y − 1 → x ; y ) (5)</p><p>Substituting the transition probabilities T P ( x ; y → x ; y ) and T P ( x + 1 ; y − 1 → x ; y ) , for those indicated in the table below, we have:</p><p>P x ; y ( t + Δ t ) − P x ; y ( t ) Δ t = − λ x P x ; y ( t ) + λ ( x + 1 ) P x + 1 ; y − 1 ( t ) (6)</p><p>And, taking the limit Δ t → 0 , we obtain the master equation for the SI model with constant λ.</p><p>d P x ; y d t = − λ x P x ; y + λ ( x + 1 ) P x + 1 ; y − 1 (7)</p><p>In some cases, the master equation can be solved analytically in a relatively simple way by the method of the Generating Function. A generating function is a</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> x is the number of susceptible, y is the number of infected and Δt is a time interval sufficiently small in which it is not possible to occur more than one event</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >t</th><th align="center" valign="middle" >t + ∆t</th><th align="center" valign="middle" >Transition probabilities (TP)</th></tr></thead><tr><td align="center" valign="middle" >x, y</td><td align="center" valign="middle" >x, y</td><td align="center" valign="middle" >1 − λ x Δ t</td></tr><tr><td align="center" valign="middle" >x + 1, y−1</td><td align="center" valign="middle" >x, y</td><td align="center" valign="middle" >λ ( x + 1 ) Δ t</td></tr></tbody></table></table-wrap><p>function that “generates” a probability distribution and can always be written as a summation [<xref ref-type="bibr" rid="scirp.92566-ref7">7</xref>] .</p><p>G ( u , v , t ) = ∑ x , y u x v y P x ( t ) P y ( t ) (8)</p><p>Thus, the expected mean value of the susceptible 〈 x 〉 is obtained from the generative function.</p><p>〈 x 〉 = ∑ x x ⋅ P x (9)</p><p>so that</p><p>〈 x 〉 = N e − λ t (10)</p><p>It can be noted that the function found above has the same behavior as the exponential distribution in the radioactive decay or process of a population age</p><p>evolution. Thus, λ is the decay rate (infection) and, naturally, 1 λ is the mean</p><p>decay time or mean time to infection, as expected.</p></sec></sec><sec id="s3"><title>3. Ising Model</title><p>Ising’s model was introduced by Wilhelm Lenz in 1920 to his doctoral student Ernest Ising. The main objective of this model is to study the ferromagnetism in a one-dimensional structure, and it is defined by the following Hamiltonian:</p><p>H = − J ∑ ( i j ) N σ i σ j − H ∑ i N σ i (11)</p><p>The Hamiltonian ( H ) of the Ising Model relates the exchange interaction J to the sum over the nearest neighbor pairs ( s i s i + 1 ). In this way, the spin variable s i that takes +1 or −1 values corresponding to the states up or down for each site i = 1 , 2 , ⋯ , N of a d-dimensional structure. Everything in nature or systems of nature have a tendency to achieve the lowest energy state, so this model produces an ordered ferromagnetic state when the term J is positive, in which the parallel alignment of spins corresponds to an energy −J and the antiparallel alignment of spins (spins in opposite directions) corresponds to an energy +J. On the other hand, the term H is related to the external magnetic field in the system that is associated to each of the spins ( s i ).</p><p>In 1925 [<xref ref-type="bibr" rid="scirp.92566-ref8">8</xref>] , this model was solved exactly in one dimension by Ising and has reached the following the expression of magnetization.</p><p>m ( T , H ) = senh ( H k B T ) [ senh 2 ( H k B T + exp ( − 4 J k B T ) ) ] 1 / 2 (12)</p><p>where k B is the Boltzmann constant and T is the temperature. Notice that the magnetization is zero when H = 0. When T &gt; 0, the magnetization also tends to zero in which there is no spontaneous magnetization in one dimension, so the model does not explain ferromagnetism. These results led Ernest Ising to erroneously conclude that the same would happen in two and three dimensions.</p><p>Later in 1944, Lars Onsager obtained the exact expression of the partition function and of the free energy of Helmholtz in two dimensions for a square network at zero external field [<xref ref-type="bibr" rid="scirp.92566-ref9">9</xref>] . The result shows phase transition between the ferromagnetic and paramagnetic phases at a nonzero temperature. Since then, many derivations have been obtained for the Onsager solution in other arrangements and through numerical techniques, such as the Metropolis algorithm for Monte Carlo simulation.</p></sec><sec id="s4"><title>4. Glauber Model</title><p>The Glauber model is a dynamic for the Ising model because it describes an Ising system in contact with a heat reservoir at a given temperature. The variables of spins ( σ i = &#177; 1 ) associated to each site i are random time variables also known as variables stochastic [<xref ref-type="bibr" rid="scirp.92566-ref10">10</xref>] . This model is governed by a master equation that in equilibrium reduces to the Ising model by the transition rate (transition probabilities per unit of time), which obeys the condition of detailed balance. This system consists of N sites, so the total number of configurations or states of the system is calculated by 2<sup>N</sup>. A possible system configuration will be a vector σ = ( σ 1 , σ 2 , σ 3 , ⋯ , σ N − 1 , σ N ) whose i-th component is the variable associated with site i [<xref ref-type="bibr" rid="scirp.92566-ref7">7</xref>] .</p><p>The time evolution of the average of the system is governed by the master equation.</p><p>d d t P ( σ , t ) = ∑ σ ′ ( ≠ σ ) { W ( σ , σ ′ ) P ( σ ′ , t ) − W ( σ ′ , σ ) P ( σ , t ) } (13)</p><p>where P ( σ , t ) is the probability of occurrence of configuration σ at time t and W ( σ , σ ′ ) is the transition rate from σ ′ to σ . The transitions occur between configurations that differ only by the state of one site, so the transition rate is given by:</p><p>W ( σ , σ ′ ) = ∑ i δ ( σ ′ 1 , σ 1 ) δ ( σ ′ 2 , σ 2 ) ⋯ δ ( σ ′ i , σ i ) ⋯ δ ( σ ′ N , σ N ) w i ( σ ) (14)</p><p>where</p><p>δ ( σ ′ j , σ j ) = { 0       s e     σ ′ j ≠ σ j 1         s e     σ ′ j = σ j (15)</p><p>And w i ( σ ) is the rate of inversion of the state of the i-th site, from σ i to − σ i . In this way, the master equation is given by:</p><p>d d t P ( σ , t ) = ∑ i = 1 N { w i ( σ i ) P ( σ i , t ) − w i ( σ ) P ( σ , t ) } (16)</p><p>where the configuration σ = ( σ 1 , σ 2 , ⋯ , σ i , ⋯ , σ N ) is different from the configuration σ i = ( σ 1 , σ 2 , ⋯ , − σ i , ⋯ , σ N ) only by the exchange of σ i to − σ i . Thus, the temporal evolution of the average of the variable 〈 σ i 〉 is</p><p>d d t 〈 σ i 〉 = − 2 〈 σ i w i ( σ ) 〉 (17)</p><p>The correspondence of the Glauber model with the Ising model is given through the choosing of transition rate, in a way that it depends on the values of the first neighboring spin. The rate chosen by Glauber [<xref ref-type="bibr" rid="scirp.92566-ref11">11</xref>] is given by</p><p>w i ( σ i ) = 1 2 α [ 1 − 1 2 γ σ i ( σ i − 1 + σ i + 1 ) ] (18)</p><p>It is noticed that if γ is positive it has a tendency to a parallel configuration (that is the case of the ferromagnetic state) and if γ is negative it has a tendency to antiparallel configurations (that is the case of the paramagnetic state). On the other hand, the parameter α describes the time scale on which all transitions take place. In addition, the transition rate at equilibrium ( t → ∞ ) has the same properties of the Ising model.</p><p>The partition function is given by:</p><p>Z = ∑ { σ } exp [ − H k B T ] (19)</p><p>where {σ} denotes that the sum must go through all possible system configurations. The stationary probability is given by:</p><p>P ( σ ) = 1 Z exp { K ∑ ( i j ) N σ i σ j } (20)</p><p>where the sum extends over the pairs of sites that are nearest neighbors and</p><p>K = J k B T .</p><p>The transition rate satisfies the detailed balancing,</p><p>P ( − σ i ) P ( σ i ) = w i ( σ i ) w i ( − σ i ) (21)</p><p>Substituting in the equation above the Glauber’s transition rate and stationary probability is. We found,</p><p>γ = tanh ( 2 K ) (22)</p><p>Rewriting the transition rate for the d-dimensional case, we have:</p><p>w i ( σ i ) = 1 2 α [ 1 − σ i tanh ( K ∑ δ σ i + δ ) ] (23)</p><p>where the sum in δ extends over the first neighbors of σ i . Glauber’s model has only one exact solution in one dimension, so</p><p>tanh [ K ( σ i − 1 + σ i + 1 ) ] = ( σ i − 1 + σ i + 1 ) 2 tanh ( 2 K ) is only true in the one-dimensional case [<xref ref-type="bibr" rid="scirp.92566-ref12">12</xref>] .</p></sec><sec id="s5"><title>5. Results</title><p>The Ising-Glauber model can also be seen as a model for an epidemic spread, so the following is a comparison between the dynamic Ising model and epidemiological models in literature.</p><sec id="s5_1"><title>5.1. Analogy between the Glauber Model for a Single Spin in the Absence of External Magnetic Field and the SI Model</title><p>If we consider an “energy of infection” by analyzing the structure of compartments of the SI epidemiological model with the Hamiltonian elements of the Ising model (in Equation (11)), it is possible to draw an initial comparison. In this way, we can see that the Ising ferromagnetic model with external field equal to zero (H = 0) can be used to model a constant population where each individual would be represented by a spin that assumes the values of down (−1) and up (+1). The susceptible individual would be represented by a spin down and the infected individual would be represented by a spin up. The term interaction between the magnetic dipoles J would be related to the force of infection of the epidemiological model SI.</p><p>The physical magnitude present in Ising’s model that would be interesting to study and calculate is magnetization, since it calculates the sum of all spins configurations. That is, it measures how much the spins are aligned, which would be equivalent to calculating in the epidemiological model SI the number of susceptible or infected individuals. If the magnetization is negative, it would represent that the majority of the population is susceptible. If the magnetization is positive, it would represent that the majority of the population is infected and if the magnetization is zero, it would represent that half of the population is infected and the other half is susceptible.</p><p>In order to make the analogy between the physical model and the epidemiological model, the Ising model with the Glauber dynamics and the SI stochastic epidemiological model were specifically used. Firstly, the Ising-Glauber model was compared in the absence of magnetic field for a single spin &#189; (spin that can assume the value of +1 or −1) with the stochastic model SI.</p><p>Initially, Glauber [<xref ref-type="bibr" rid="scirp.92566-ref11">11</xref>] considers in his work a system constituted solely by a single particle in the absence of an external magnetic field. This system is in contact with a heat reservoir, causing its spin to flip between the values +1 and −1 randomly. The transition rate per unit of time at which the particle makes transitions from either state to the opposite one is given by α/2 and let P ( σ , t ) be the probability of finding the spin in the state of σ = &#177; 1 at time t, then we can write the master equation.</p><p>( d / d t ) P ( σ , t ) = − 1 2 α P ( σ , t ) + 1 2 α P ( − σ , t ) (24)</p><p>In equilibrium when time tends to infinity the probabilities for the two states are equal. Taking into account the normalization condition, we have:</p><p>P ( 1 , t ) + P ( − 1 , t ) = 1 (25)</p><p>Thus, we could write the expected value of the spin as a function of time,</p><p>m ( t ) = P ( 1 , t ) − P ( − 1 , t ) = ∑ σ = &#177; 1 σ P ( σ , t ) (26)</p><p>Therefore, the differential equation is obtained,</p><p>d d t m ( t ) = − α m ( t ) (27)</p><p>Whose solution is,</p><p>m ( t ) = m ( 0 ) e − α t (28)</p><p>One can also write the individual probability,</p><p>P ( σ , t ) = 1 2 [ 1 + σ m ( t ) ] (29)</p><p>It can be seen that the average spin decays exponentially with a relaxation time 1/α towards the equilibrium value (null) [<xref ref-type="bibr" rid="scirp.92566-ref7">7</xref>] [<xref ref-type="bibr" rid="scirp.92566-ref13">13</xref>] .</p><p>The result of the average magnetization of equation 29 is similar to the result of the mean of susceptible of equation 10 of the stochastic model SI. The two equations decay exponentially with time and the mathematics of the two equations has the same behavior, which lead us to think in a similarity between the parameters α and λ , since both act as decay constants. The higher the α and λ , the faster the magnetization decreases and the susceptible ones respectively.</p><p>It is important to emphasize that the deterministic SI model considers interactions between individuals through the contact rate β that is linked to the force of infection λ , whereas the Glauber model for a single spin that disregards interactions. However, these models are equivalent because even Glauber’s model for a single spin, not considering interactions, is in contact with a heat reservoir, causing the spin to change randomly between the values of +1 and −1 which would correspond to the susceptible and infected states.</p></sec><sec id="s5_2"><title>5.2. Analogy between the Glauber Model for N Spin in the Absence of External Magnetic Field and the SI Model</title><p>A closed population can be represented by a one-dimensional chain of N individuals or atoms (<xref ref-type="fig" rid="fig1">Figure 1</xref>), with the boundary conditions ( m k ( t ) = m k + N ( t ) ), taking into account that each atom has its spin and that each individual or spin can assume values of +1 and −1.</p><p>This one-dimensional model proposed by Glauber [<xref ref-type="bibr" rid="scirp.92566-ref11">11</xref>] can be solved in an exact way, that is, all correlations can be obtained in closed form. Substituting</p><p>the transition rate given by Equation (19) in the time evolution of the average given by Equation (17), we have</p><p>d d t m k ( t ) = − α m k ( t ) + α 2 tanh ( 2 β J ) [ m k − 1 ( t ) + m k + 1 ( t ) ] (30)</p><p>onde β = 1/K<sub>B</sub>T.</p><p>Using the Fourier transform (FT) to solve the above equation, we write:</p><p>m ^ k ( t ) = 1 N ∑ q m ^ q ( t ) exp ( i q k ) (31)</p><p>where q belongs to the first zone of Brillouin</p><p>q = 0 , &#177; 2 π N , 2 2 π N , ⋯ , π (32)</p><p>for N pair. Since magnetizations are real, you should have:</p><p>m ^ q ( t ) = m ^ q ∗ ( t ) (33)</p><p>Thus, returning Equation (31)</p><p>d d t m ^ q ( t ) = − α m ^ q ( t ) + ( α γ cos q ) m ^ q ( t ) (34)</p><p>where γ = tanh ( 2 β J ) .</p><p>Therefore</p><p>m ^ q ( t ) = − A q exp { − α [ 1 − γ cos q ] t } (35)</p><p>where A q is a constant and A q = A − q ∗ .</p><p>Inserting this in Equation (32), we obtain the result</p><p>m k ( t ) = 1 N ∑ q A q exp { − α [ 1 − γ cos q ] t + i q k } (36)</p><p>In particular</p><p>m 0 ( t ) = exp { − α [ 1 − γ cos q ] t } (37)</p><p>Decreasing to the equilibrium null with the time constant τ − 1 = α ( 1 − γ ) . The magnetization per site will be given by:</p><p>m ( t ) = 1 N ∑ k = 1 N m k ( t ) = 1 N exp { − α ( 1 − γ ) t } (38)</p><p>It is noticed that the magnetization vanishes when time tends to infinity, as long as γ ≠ 1 (T ≠ 0), and that the relaxation time ( τ = α ( 1 − γ ) − 1 ) diverges when γ→1 (T→0). This is, when the temperature is zero, the magnetization is nonzero, which corresponds to the result obtained by Ising for its one-dimensional model that only presents phase transition (disordered phase to ordered phase) at zero temperature [<xref ref-type="bibr" rid="scirp.92566-ref12">12</xref>] . It is also noticed that the constant γ is linked to the exchange interaction term J and the temperature as shown in Equation (23), so when there is interaction between spins, the constant γ can be analogous to the force of infection λ of the epidemiological model SI.</p><p>These results indicate that when time tends to infinity, magnetization tends to decrease to zero, so 50% of the population will be infected. The temperature concept of the Ising model, according to Crisostomo et al. [<xref ref-type="bibr" rid="scirp.92566-ref14">14</xref>] , may be related in epidemiology to the level of aggression of a virus or associated to external parameters such as the ambient temperature and humidity. In addition, it can be associated to the effects of cultural and socio-economic risk factors.</p></sec><sec id="s5_3"><title>5.3. Monte Carlo Simulation of the 2D Glauber-Ising Model</title><p>In this simulation, R codes for the Glauber-Ising model were developed from existing codes of the 2D static Ising model [<xref ref-type="bibr" rid="scirp.92566-ref15">15</xref>] . Then, the Monte Carlo method of the Glauber-Ising model will be presented in a square network with N = L &#215; L sites. For each site of the network, a variable σ<sub>i</sub> is associated, which assumes the values of +1 and −1. Periodic boundary conditions are also used to eliminate edge effects, so all spins will have the same number of neighbors.</p><p>Settings are generated according to the probability below.</p><p>p = 1 2 [ 1 − σ i tanh ( J k B T ∑ δ σ i + δ ) ] (39)</p><p>As the external magnetic field is zero, the transition rate has an inversion symmetry, w i ( − σ i ) = w i ( σ i ) [<xref ref-type="bibr" rid="scirp.92566-ref7">7</xref>] . To configure an algorithm for numerical simulation of the Glauber-Ising model, the following steps are followed. Initially, an arbitrary initial ( σ i = σ 1 , ⋯ , σ i , ⋯ , σ N ) configuration is generated. After an i-th site of this network is chosen randomly, then the probability of inversion given by Equation (40) is calculated and a random number ξ is generated in the interval of {0,1}. If ξ ≤ p , then the variable σ i is inverted ( σ i → − σ i ) , so a new system is generated ( σ i = σ 1 , ⋯ , − σ i , ⋯ , σ N ) . But, if ξ &gt; p , then the variable σ i is not inverted and the system continues in the same state ( σ i = σ 1 , ⋯ , σ i , ⋯ , σ N ) [<xref ref-type="bibr" rid="scirp.92566-ref16">16</xref>] .</p><p>A Monte Carlo step is completed when this process, described above, is done N (number of network sites) times. In this simulation, the computationally intensive part of this process comes from having to repeat these steps enough times that equilibrium should have been achieved. In this way, after several repetitions, the statistical sampling is obtained. A small network N = 12 &#215; 12 has been chosen so that the equilibrium requires about 10<sup>6</sup> steps Monte Carlo [<xref ref-type="bibr" rid="scirp.92566-ref15">15</xref>] .</p><p>The average magnetization (<xref ref-type="fig" rid="fig2">Figure 2</xref>) is calculated directly by the sum of all the spins over the entire network.</p><p>M = 1 N ( ∑ i = 1 N σ i ) (40)</p><p>Note that the magnetization is finite for any value of temperature (T) and decreases sharply near the critical temperature. That is, in the limit where → ∞ , the magnetization ( m → 0 ) is zero for T ≥ T c . The mean of spins up and down were also calculated (<xref ref-type="fig" rid="fig3">Figure 3</xref> and <xref ref-type="fig" rid="fig4">Figure 4</xref>).</p><p>Observing the average behavior of the spins, it is noticed that above the critical temperature the average of the spins down decreases and the average of the spins up increases to a certain value. Analyzed these results from an epidemiological point of view, in which the spins down represents the susceptible and the spins up represents the infected, it is perceived that the disease was able to propagate when it reached the critical temperature.</p></sec></sec><sec id="s6"><title>6. Conclusions</title><p>The deterministic SI and SIS mathematical models seek, in a simplified way, to generate good predictions, aiding the understanding of the epidemics and the study of control mechanisms. Nonetheless, these models have limitations, since they assume either that all individuals in a population are intermingling freely with one another. In other words, it assumes that individuals are distributed approximately evenly across the population, so that all susceptibles are subject to roughly the same probability of a contact being with an infectious individual. In reality, however, transmission typically occurs locally, between nearby individuals [<xref ref-type="bibr" rid="scirp.92566-ref17">17</xref>] . The Ising model, however, relates the interaction factor or the contact factor only among the first neighbors.</p><p>As previously seen, the Ising model was described by Glauber’s dynamics for a single spin and, in the absence of a magnetic field, it has the same behavior as the stochastic SI model. When analyzed in one dimension, this model has the behavior of Equation (39), where the temperature is an important parameter and the system only undergoes a phase transition when the temperature is zero. On the other hand, when analyzed in two or more dimensions, the model presents a phase transition when it reaches the critical temperature, in which the number of infected individuals corresponds to half of the population.</p><p>The formalism of the Ising model is completely different from that of the epidemic models found in the literature. To make an analogy between the variables and the relations established between them is not trivial, even in the simplest case of magnetization (m). Although the Ising model considers only interactions between close individuals that make it more like reality, where individuals are considered static, which does not occur in populations of animals or people. Nevertheless, the study of epidemic systems through the Ising model shows another point of view that perhaps brings to light properties not described in the epidemiological models.</p><p>For example, Anderson [<xref ref-type="bibr" rid="scirp.92566-ref18">18</xref>] discusses a discrepancy between the contact rate and the basic number of reproduction of the infection. The author shows a case in which an individual interviewed contracted a particular sexually transmitted disease and reported having had 1.46 partners for a given time interval. It has been observed that this value is very low, since in the endemic equilibrium (R<sub>0</sub> = 1)<sup>1</sup> the theory suggests that, on average, each infected person must have two effective contacts during the course of an infection, i.e., each individual must be infected by another infected individual and infect another susceptible individual.</p><p>This example described by Andreson [<xref ref-type="bibr" rid="scirp.92566-ref18">18</xref>] can be linked to the fact that the one-dimensional Ising model does not undergo phase transition and its magnetization is characterized only by the random formation of agglomerates. This shows that some infections will not evolve in the population if each individual has no more than two partners to transmit it, even though the basic number of infection in this population, R<sub>0</sub>, is greater than 1. This hypothesis may be very interesting for the study of some sexually transmitted diseases. Another point is that the Ising model in two or more dimensions presents a phase transition for a given set of values of its parameters. It is known that epidemiological models also undergo a kind of phase transition when R<sub>0</sub> = 1.</p><p>Finally, this work sought to investigate and model epidemic systems, SI, using the stochastic formalism of statistical mechanics, based on the study of the Ising-Glauber model. However, there are many other research possibilities between the epidemic compartmental models and the Ising model. For example, a comparison of the SIS (Suspected-Infected-Susceptible) model with Ising’s model described by Glauber’s dynamics with external magnetic field can be studied. We can also study a comparison of the SIR model with the Ising model in the absence of magnetic field and with spin variables (−1.0 and +1)—where the spins down configuration would represent the susceptible individuals, the configuration of spins up would represent the infected individuals and the configuration of spins zero would represent the individuals recovered. Another possibility is to represent the SIRS model using the Ising model with spin variables (−1, 0 and +1) in a magnetic field oriented to the down configuration. In this sense, it is evident that the Ising model allows many possibilities of rearrangements of its terms, in a way that allows us to create analogs to the epidemiological models found in the literature.</p></sec><sec id="s7"><title>Funding</title><p>This work was supported by the foundation CAPES, entity of the Brazilian Government focused on the training of human resources.</p></sec><sec id="s8"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s9"><title>Cite this paper</title><p>Lara, C.G.A., Massad, E., Lopez, L.F. and Amaku, M. (2019) Analogy between the Formulation of Ising-Glauber Model and Si Epidemiological Model. Journal of Applied Mathematics and Physics, 7, 1052-1066. https://doi.org/10.4236/jamp.2019.75071</p></sec><sec id="s10"><title>NOTES</title></sec></body><back><ref-list><title>References</title><ref id="scirp.92566-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Rothman, K., Greenland, S. and Lash, T. (2011) Epidemiologia moderna. 3rd Edition, Art Med, S&amp;#227;o Paulo.</mixed-citation></ref><ref id="scirp.92566-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">May, R.M. and Anderson, R.M. (1991) Infectious Diseases of Humans. Oxford University Press, Oxford.</mixed-citation></ref><ref id="scirp.92566-ref3"><label>3</label><mixed-citation publication-type="book" xlink:type="simple">Hethcote, H.W. (1989) Three Basic Epidemiological Models. In: Gross, L., Hallam, T.G. and Levin, S.A., Eds., Applied Mathematical Ecology, Springer-Verlag, Berlin, Heidelberg, 119-144. https://doi.org/10.1007/978-3-642-61317-3_5</mixed-citation></ref><ref id="scirp.92566-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Nepomuceno, E. (2005) Dinamica, modelagem e controle de epidemias. 2005. 167 f. Teses (Doutorado em Engenheira Elétrica)—Instituto de Engenheira Elétrica, Universidade Federal de Minas Gerais, Belo Horizonte.</mixed-citation></ref><ref id="scirp.92566-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Fajardo, J. (2010) Modelos determinísticos y estocásticos S-I y S-I-R para difusión de enfermedades contagiosas. 2010. 125 f. Tese (Mestrado em Matemática)—Instituto de Matemática, Faculdade de Ciências da Universidade Nacional de Colombia, Bogotá.</mixed-citation></ref><ref id="scirp.92566-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">McCallum, H., Barlow, N. and Hone, J. (2001) How Should Pathogen Transmission Be Modeled? Trends in Ecology &amp; Evolution, 16, 295-300.https://doi.org/10.1016/S0169-5347(01)02144-9</mixed-citation></ref><ref id="scirp.92566-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Tomé, T. and Oliveira, M. J. (2015) Stochastic Dynamics and Irreversibility, Springer, Cham. https://doi.org/10.1007/978-3-319-11770-6</mixed-citation></ref><ref id="scirp.92566-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Ising, E. (1925) Beitrag zur Theorie des Ferromagnetismus. Zeitschrift für Physik, 31, 253-258. https://doi.org/10.1007/BF02980577</mixed-citation></ref><ref id="scirp.92566-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Onsager, L. (1944) Crystal Statistics. I. A Two-Dimensional Model with an Order-Disorder Transition. Physical Review Journals, 65, 117. https://doi.org/10.1103/PhysRev.65.117</mixed-citation></ref><ref id="scirp.92566-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Santos, M. (1998) Transic&amp;#227;o de fase em Sistemas Magnéticos Dirigidos por Campo Externo. 1998. 106 f. Teses (Doutorado em Ciências)—Instituto de Física. Universidade de S&amp;#227;o Paulo, S&amp;#227;o Paulo.</mixed-citation></ref><ref id="scirp.92566-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Glauber, R.J. (1963) Time-Dependent Statistics of the Ising Model. Journal of Mathematical Physics, 4, 294. https://doi.org/10.1063/1.1703954</mixed-citation></ref><ref id="scirp.92566-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Casa Grande, H.L. (2009) Modelo de Glauber-Ising.</mixed-citation></ref><ref id="scirp.92566-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Salinas, S.R.A. (2013) Introduc&amp;#227;o à Física Estatística, EdUSP.</mixed-citation></ref><ref id="scirp.92566-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Crisostomo, C.P. and Pinol, C.M. (2012) An Ising-Based Model for the Spread of Infection. International Journal of Mathematical, Computational, Physical, Electrical and Computer Engineering, 6, No. 7.</mixed-citation></ref><ref id="scirp.92566-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Bloomfield, V.A. (2014) Using R for Numerical Analysis in Science and Engineering. Chapman &amp; Hall/CRC, Minneapolis, MN.</mixed-citation></ref><ref id="scirp.92566-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Tomé, T. (2016) Simulacoes: Modelo de Glauber-Ising. Curso de Dinamica Estocastica. Data completa. Instituto de Física da Universidade de S&amp;#227;o Paulo.</mixed-citation></ref><ref id="scirp.92566-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Begon, M., Townsend, C.R. and Harper, J.L. (2006) Ecology: From Individuals to Ecosystems. Blackwell Publishing, Oxford.</mixed-citation></ref><ref id="scirp.92566-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Anderson, R.M. (1982) The Population Dynamics of Infectious Diseases: Theory and Applications. Chapman &amp; Hall, London. https://doi.org/10.1007/978-1-4899-2901-3</mixed-citation></ref></ref-list></back></article>