scieee AI-readable full text Open interactive document viewer

Characterizing ordering in liquids: An information theoretic approach

Pardo Soto, Luis Carlos,Henao Aristizábal, Andrés,Vispa, Alessandro

Abstract

The determination of special molecular arrangements in disordered phases such as liquids is inherently difficult due to its lack of periodicity, in contrast to the crystalline solids. We have already settled a general method to study molecular liquids capable to unveil the details of the molecular ordering from small molecules to systems as big as a protein. However it would be desirable to extract some general features of a liquid phase without going into such details. In this work we propose a method to achieve this challenge by analyzing the probability distributions describing position and orientational molecular ordering within the framework of information theory. (C) 2014 Elsevier B.V. All rights reserved.

Full text

(2015) –13 Journal Logo Characterizing ordering in liquids: an information theoretic approach Luis Carlos Pardo e mail: luis.carlos.par[email protected] Grup de Caracteritzaci´o de Materials, Departament de F´ısica i Enginyeria Nuclear, ETSEIB, Universitat Polit`ecnica de Catalunya, Diagonal 647, E-08028 Barcelona, Catalonia, Spain Andr´ es Henao Grup de Simulaci´o per Ordinador en Mat`eria Condensada, Departament de F´ısica i Enginyeria Nuclear, B4-B5 Campus Nord, Universitat Polit`ecnica de Catalunya, E-08034 Barcelona, Catalonia, Spain Alessandro Vispa Grup de Caracteritzaci´o de Materials, Departament de F´ısica i Enginyeria Nuclear, ETSEIB, Universitat Polit`ecnica de Catalunya, Diagonal 647, E-08028 Barcelona, Catalonia, Spain Abstract The determination of special molecular arrangements in disordered phases such as liquids is inherently difficult due to its lack of periodicity, in contrast to the crystalline solids. We have already settled a general method to study molecular liquids capable to unveil the details of the molecular ordering from small molecules to systems as big as a protein. However it would be desirable to extract some general features of a liquid phase without going into such details. In this work we propose a method to achieve this challenge by analyzing the probability distributions describing position and orientational molecular ordering within the framework of information theory. Keywords: 61.20.-p, 61.25.Em, 02.70.Ns, 02.60.-x Short range order, structure, liquid, information theory 1. Introduction Solid crystalline phases are composed by molecules whose centers of mass are forming a long range ordered lattice being their relative molecular orientations fixed. For this phase the details of molecular interactions are important and determine the solid structure. On the contrary, no precise knowledge about molecular interaction is necessary to describe the structure of gases: it is basically ruled by the shape of the molecule. Liquid structure is between these two well known phases. Moreover if a material in a liquid phase is cooled down fast enough it can undergo through a glass transition where at a human time scale molecules seem not to be moving. There is a lack of a universal theory that describes liquids and how they fall out of equilibrium forming a glass, but what seems to be sure is that liquid structure is suspected to play an important role [1]. In any case there is not a unique way to characterize the structure of a liquid and many different approaches have been used in the past [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]. Among molecular liquids, carbon tetrachloride occupies a special place: it was the first one to be studied by means of an incipient X-ray diffraction technique. A great amount of works have been published on the relative molecular ordering of CCl4at distances close to a central molecule [16, 17, 18, 19, 20, 21, 22]. All these works have in common that the obtained structure 1 L. C. Pardo et al. /(2015) –13 2 respects the tetrahedral symmetry of the molecule, being the closest neighbor located either in the corners of the tetrahedron defining the molecule [17, 19], in the edges [21] or in front of its faces [18, 20]. Although it is crucial to know the detailed molecular ordering in a liquid, in this work we would like to develop a frame to study molecular liquids without entering in its detail so that we can capture its general features. We will do that by using an information theoretic approach to study the six-dimensional probability distribution function (PDF) describing the relative position and orientation of a molecule at a distance rfrom a central one gr,Ωpos,Ωor, where Ωpos are the angles θCM and φCM describing the position of the center of mass of a neighbor molecule with respect to the central one at a distance rand Ωor are the three Euler angles θor,φor and ψor describing the relative molecular orientation. To do that, the first step would be to obtain the molecular configurations that are describing microscopically the system. Such configurations can be obtained from Molecular Dynamics simulations using parameters that produce macroscopic properties compatible with the experiment or using reverse methods such as Reverse Montecarlo (RMC) [23] or an Empirical Potential Structure Refinement [24]. We would like to point out that although we have chosen carbon tetrachloride as an example to perform our analysis this method is a general tool for describing the liquid structure. 2. The data: Molecular dynamics simulation In order to obtain the molecular configurations necessary to calculate gr,Ωpos,Ωorwe performed an MD simulation using the Gromacs 4.5 [25] package. The potential parameters used were for Carbon σ=3.7746Å, ǫ=0.2271kJ/mol, q =−0.696e and for Chloride: σ=3.4667Å, ǫ=1.0944kJ/mol and q=0.174e. The simulation was made on a 216 rigid molecules system using the NPT ensemble at the thermodynamics conditions of the liquid, namely T =298K and P =1atm. The chosen time step to perform the simulation was ∆t=5fs (during 1200ps), a test run with a smaller time step of ∆t=1fs has been done remaining the results of this work unchanged. We used a switched cut-off from 8Å to 14Å for Lennard-Jones interactions and 14Å for coulomb pairs. We used the Particle Mesh Ewald (PME) method beyond the electrostatic cut-offfor the reciprocal space sum. 3. Detailed determination of molecular ordering Contrary to what happens in a solid crystalline phase where it is necessary only to study the unit cell to reproduce the long range structure, in liquids it is necessary to study the whole system to get some information about the most probable arranging of molecules, and this must be done by using probability distributions. Although it is not the goal of this work, we will now shortly describe a general method to study the details of molecular arranging in a liquid for the sake of clarity of the later discussion. This general method is suitable to deal with small molecules such as Carbon Tetrachloride as well as with molecules as large as proteins [26] (more details can be found in our previous works [15, 27, 28]). For doing that it is necessary to attach an axis set to each molecule. In figure 1 we show the axis chosen in our case: Z axis is set in the bisecting angle of two C-Cl bonds, Y axis is set perpendicular to this axis and coplanar with a Cl-C-Cl plane, and X axis is determined as usually in an orthonormal axis set (X=Y×Z). We then analyze the position and orientation of a neighbour molecule setting each molecule as reference in all configurations (in our case 1000), i.e. we calculate gr,Ωpos,Ωor. However instead of choosing rto characterize the distance from the central molecule we choose the Molecular Coordination Number (MCN). In order to calculate the MCN we have ordered neighbour molecules by their distance to the central molecule and then we have numbered them to calculate it. This has two main advantages: first it eliminates trivial effects of density when comparing a liquid at different temperatures [28]. On the other hand, the structure of a liquid changes fast at short distances and slower for molecules far away from the central molecule. Choosing the MCN eliminates those effects expanding the short distance region and shrinking the long distance region. We therefore calculate gMCN,Ωpos,Ωorfor MCN =1,2,···,nso that we have a five-dimensional probability distribution describing the position and orientation as function of MCN. In panel (a1) of figure 1 we show the two-dimensional PDF g(cos(θCM), φCM) describing the molecular position. We show in the same figure in panel (a2) how high probability regions of g(cos(θCM), φCM)are related to the position of the center of mass of neighboring molecules. In order to study the molecular orientation we must choose the highest probability regions of g(cos(θCM), φCM), i.e. some specific molecular positions. In panels (b1) and (b2) of figure 1 we show 2 L. C. Pardo et al. /(2015) –13 3 Figure 1. (Color online) (a1) Probability distribution of the angles that determine molecular position cos(θCM) and φCM for the closest four molecules to a central one. In figure (a2) we show how this probability map yield to the 3D structure of the liquid at short distances. Figures (b1) and (b2) show the 3D orientational probability distributions of the angles determining molecular orientation θor,φor and ψor for different regions of the positional map shown in figure (a1). In panel (b3) we show the merging of all orientational probability distributions g(Ωor)used for the calculations of entropy and mutual information. the 3D probability distribution for the Euler angles describing the molecular orientation for molecules in the highest probability positions labeled as (b1) and (b2) in g(cos(θCM), φCM). Without entering into details (see [22]) the obtained spirals represent a series of probable orientations that correspond to a molecule rotating around its C-Cl axis with its face parallel to the central molecule face. In figure (b3) we show the complete 3D probability distribution, thus not selecting a certain molecular position. As it can readily be seen, it is impossible from this PDF to extract any detailed feature concerning molecular orientations, but as we will see, some general information can be obtained from such a 3D map about the liquid structure. 4. Information theory Information theory is considered to be born with the seminal paper of Claude E. Shannon in the early 50’s [29]. This theory was aimed to quantify the amount of information that a message carries and how can it be transmitted through a noisy channel without a significant loss of quality. However this theory quickly crossed its borders and it is now applied to a vast number of fields such as message encryption [30], analysis of seismic data to search oil [31], and to decide which is the best strategy to follow in gambling games [32]. In the context of the present work, information theory will be used to quantify both the amount of information carried by a n-dimensional probability distribution and the correlation between two or more variables that characterize the short range order of a liquid. In this section we will recall some basic notions of information theory following the excellent paper of Matsuda et al. [33]. 4.1. Entropy Let’s assume that we have a n-dimensional PDF described by variables Ai,i=1,...,nand that each variable Aican take the discrete values aibeing the number of these values for each variable aiequal to ˜ Ni. In this case the entropy associated to the normalized discrete probability distribution p(a1,...,an) will be: S(Ai)=−X {ai} p(ai)ln p(ai).(1) The entropy so defined has an upper and a lower bound depending on the way the PDF has been generated. To study them let’s assume that the number of total bins of the n-dimensional distribution is N (so that N=Pn i=1˜ Ni). If the probability distribution is completely flat, i.e. if all the values of probability are p(a1,...,an)=1/N, the PDF contains no information and in this case the associated entropy will be maximal and equal to lnN: S(A1...An)=− N X k=1 1 Nln 1 N=lnN.(2) On the other hand if we have a probability distribution with only one bin, thus with probability one, and 3 L. C. Pardo et al. /(2015) –13 4 all the rest with null probability, the entropy associated to the PDF will be zero. Therefore we can also regard the entropy as a measurement of how “peaky” the landscape of a PDF is: smooth probability distributions will have high entropies. This fact is used, for example, in maximum entropy methods to find the smoothest probability distribution able to describe a data set. An analogous definition can be used to calculate the entropy of any subset of variables A1,...,mwhere m<n, just marginalizing the probability distribution by summing the variables Am+1,...,nand defining thus the entropy of this reduced ensemble as: pa1,...,m=X {am+1,...,n} p(am+1,...,n).(3) In this case the limits for the entropy hold, being in this case N the number of bins of the m-dimensional probability distribution. 4.2. Mutual information Mutual information quantifies the correlation among several variables whose dependence is encoded in a certain PDF. For the sake of clarity we will begin describing the two-dimensional case, then we will extend the description to higher dimensions. For 2D probability distributions the mutual information is defined as: I2(A1,A2)=X a1,a2 p(a1,a2)ln p(a1,a2) p(a1)p(a2) =S(A1)+S(A2)−S(A1A2).(4) If variables A1and A2are independent, we can write their joint probability as p(a1,a2)=p(a1)·p(a2) and in this case the calculated mutual information is zero. On the other hand, the maximum value is reached when the variables are fully correlated, and such a value is the smallest between the individual entropies of variables A1and A2, i.e: 0≤I2(A1,A2)≤min{S(A1),S(A2)}(5) For the three-dimensional case, the mutual information for a probability distribution is calculated taking into account its relationships with the entropies of the three-dimensional PDF, and its projections in two and one dimensions [33]: I3(A1,A2,A3)=S(A1)+S(A2)+S(A3) −S(A1A2)−S(A1A3)−S(A2A3) +S(A1A2A3).(6) Again, the mutual information associated with a three-dimensional probability distribution measures how well correlated are the three variables. However, in this case, the limits for the mutual information are very different than those of the two-dimensional case since the lower bound can be negative [33]: −min{S(A1),S(A2),S(A3)} ≤I3(A1,A2,A3)≤ min{S(A1),S(A2),S(A3)}.(7) A negative value of mutual information in an N- dimensional probability distribution is associated with the frustration of the variables describing the PDF. If the probability distribution of the quantities describing the orientation and position of two molecules would have a negative value of mutual information, it would mean (following [33]) that the variables describing the geometry of the relative position and orientation of two molecules are frustrated. This must be understood as it is stated in the Appendix of this work, i.e. that knowing two variables the third remains undetermined. Mutual information also allows us to write the entropy of an n-dimensional PDF as the sum of the entropies of the one-dimensional projection of the PDF plus mutual information terms: Stot = n X i=1 Si(Ai)−X i<j I2(Ai,Aj) +X i<j<k I3(Ai,Aj,Ak)+··· (8) This relationship allows us to calculate the entropy of a high-dimensional PDF using lower dimensional PDFs (being sometimes high-dimensional as low as n≥4). This is interesting because the number of n-dimensional voxels increases as Nnwhich leads to two problems. First, since the memory of the computer and its speed is finite it will not be easy to handle n-dimensional matrices if we want to have a reasonable number of voxels N. On the other hand calculations of PDFs are usually done by counting events and then normalizing by their total amount. The number of events we must count to have a reasonable PDF increases with its dimensionality (in fact it increases as Nn). If the number of events is not high enough the PDF will consist in series of sparse switched on voxels making any calculation of entropy or mutual information meaningless. In order to make clear the physical meaning of the quantities entropy and mutual information we have included in this work an appendix where these quantities 4 L. C. Pardo et al. /(2015) –13 5 Figure 2. (Color online) In panel (a) we show both the rescaled entropy and the mutual information for the 2D probability distributions describing the molecular position such as that of panel (a1) of figure 1 as a function of the molecular coordination number (MCN). The inset shows the rescaled mutual information as a function of the rescaled entropy for all studied distances (see text for the rescaling definition in this case). In panel (b) we show the radial distribution function gCC(MCN) together with its flipped version ||gCC −1|| +1. The insets show the positional maps g(cos(θCM), φCM)for maxima and minima of the mutual information function. are calculated for some characteristic probability distributions in two and three dimensions. 5. Liquid ordering and mutual information So far, we have established a detailed method to determine how do molecules distribute around a central one in a liquid and a way to characterize probability distributions. We are now interested in extracting some general information from the 6D probability distribution gr,Ωpos,Ωor. In this section we will analyze some features of the liquid structure of CCl4. If we restrict ourselves only to the first three terms of equation 8 we can define the positional Spos, the orientational Sor and the mixed contribution Sposor to the total entropy as follows: Spos =S(cos(θCM))+S(φCM)−I(cos(θCM), φCM)(9) Sor =S(cos(θor)) +S(φor)+S(Ψor) −I(cos(θor), φor)−I(cos(θor), ψor)−I(φor, ψor) I(cos(θor), φor, ψor)(10) Sposor =Stot −Spos −Sor =−Ipos1,or1+Ipos1,or2+Ipos2,or2(11) where Ipos1,or1,Ipos1,or2and Ipos2,or1are mutual information terms having 1, 1 or 2 positional variables and 1, 2 or 1 orientational variables, respectively. All contributions to Sposor are thus coming exclusively from mutual information terms of order two and three. We would like to point out that the calculated entropy from gr,Ωpos,Ωoris related to the thermodynamic excess entropy (i.e. that deviating from the gas phase) if we restrict ourselves to two-body molecular interactions [14]. We will first start analyzing the positional contribution to the total entropy. To do that we show in the panel (a) of figure 2 the entropy scaled to its asymptotic value for long distances (Spos/S∞ pos), and the mutual information of the PDF related to the positional variables cos(θCM) and φCM. As expected, for long distances mutual information tends to zero and entropy to a fixed and maximal value. From the same figure we also see that both mutual information and entropy are correlated, so that when one increases the other decreases. In order to investigate this fact we show in the inset of this figure a different rescaling for both magnitudes so that they have a limited range variation from zero to one (ξresc =ξ−ξmin/ξmax −ξmin, being ξeither the entropy or the mutual information). From this figure we can see that they are completely correlated so that Sresc = −Iresc. This is due to the small differences between the values of entropies for short and long distances coming from the 1D projections of g(cos(θCM), φCM), i.e. S(cos(θCM)) and S(φCM). In this case equation 9 can be simply rewritten as Spos =ct −I(cos(θCM), φCM). We have plotted in panel (b) of the same figure the partial radial distribution of the carbon atoms of CCl4, i.e. the center of mass of the molecule. Comparing both panels (a) and (b) we can see that for long distances minima and maxima of gCC(r) are correlated with maxima (minima) of the mutual information (entropy) from 5 L. C. Pardo et al. /(2015) –13 6 0.96 0.98 1.00 -0.2 -0.1 0.0 0 20 40 60 80 100 0 20 40 60 80 7.0 15.7 14.6 13.2 11.5 9.4 S r pos , S r or , S r tot a d( Å) S r or S r pos S posor S posor S or 100·S i /S tot MCN S pos b Figure 3. (Color online) (a) Orientation (filled circles), positional (empty circles) and mixed term (empty squares) contributions to the total entropy (thick line). The inset shows a zoom of the high distance region. In panel (b) we show the percentage of the contribution to the total entropy of each term (see text). The upper axis concerning distance d(Å) is for the help of the reader theprobabilitydistribution describing the position of the molecular centers of mass. In order to help the comparison we plot in the same figure kgCC(r)−1k+1 to flip up the minima of gCC. This figures tells us two important things about this simple molecular liquid: •The liquid does not get monotonically more disordered as the distance from a central molecule increases. On the contrary in some distance intervals the liquid does order itself. •The regions where the liquid is more ordered (those with a maximum in mutual information or a minimum in entropy) are correlated with regions of high or low density described by maxima and minima of the radial distribution function of the center of mass. To make clear these two points we have included as insets in figure 2 the 2D-PDF describing the position of the centers of mass g(cos(θCM), φCM)as those in figure 1 in maxima and minima of mutual information (entropy). From these figures it is clear that minima (maxima) of mutual information (entropy) are related to regions where there is not a particular ordering of the centers of mass of neighboring molecules (we get more or less flat distributions). On the contrary around maxima (minima) of mutual information (entropy) it is clear that the liquid is more ordered. We will now investigate how do the positional Spos orientational Sor and the mixed term Sposor contribute to the total entropy of the system. To do that we show in panel (a) of figure 3 the three contributions and the total entropy rescaled to their asymptotic values for long distances. As it can be seen in the figure the orientational contribution to the entropy fades out much faster than the positional one, being structured only for distances smaller than circa 6Å. If we zoom the region for distances far away from the central molecule we also see no structure for the orientational contribution. Maybe, the most astonishing thing from this figure is that the crossed contribution to the entropy Sposor is negative. Therefore the contributions of mutual information from the three-dimensional projections of the probability distribution gMCNfixed,Ωpos,Ωorimust be either negative or smaller than their two-dimensional counterparts. We will come again to this point later in this section. In order to quantify the contribution of each term we have calculated the percentage to the total entropy of each term. However, since the contribution of the crossed term Sposor is negative, we do not normalize the contributions to the total entropy, but to the quantity Spos +Sor +  Sposor  . The contributions to the total entropy are, ordered by its importance, coming from the orientational, the positional and the crossed term. This can be rationalized by the simple fact that the dimensionality of the orientational PDF is higher than that of the positional contribution. In summary: although positional contribution to the total entropy is less important than the orientational one, it is more structured and it is better correlated with the partial radial distribution function gCC(r). As we have seen, the contribution of the crossed term Sposor is negative, and as previously pointed out this can be related to a negative contribution of higher order mutual information terms. We have plotted in figure 4 all the three variable mutual information terms and all of them are negative for all distances. Following the discussion presented in last section this means that the 3D projections of the original 5D probability distribution gMCNfixed,Ωpos,Ωorare so complex that their projections in a 2D space do not allow to directly reconstruct the liquid structure. This can readily be seen in panel (b3) of figure 1 where we plotted g(cos(θor), φor, ψor): it is even impossible to recognize any pattern from this figure since the 3D projections of the complete probability distribution merges the orien- 6 L. C. Pardo et al. /(2015) –13 7 0 10 20 -0.02 -0.01 0.00 9.4 8.5 7.0 21 I pos or 2 I or I 3 MCN I pos or 1 5.9 d( Å) Figure 4. Three variable mutual information calculated from 3D projections of the five-dimensional probability distribution gΩpos,Ωor. We have distinguished among 3D probability distributions fully orientational (Ior) and those with two or three orientational variables (Ior2pos1and Ior1pos2respectively). tation of molecules located in different positions, or in other words, located in different regions of the 5D PDF. We can therefore state that the structure of a liquid is geometrically frustrated. The idea that somehow the liquid is a frustrated system is not new, and can be found, for example in [34] associating frustration to the lack of ability of the liquid to tessellate space or in [35] for liquids in a curved space, but in our case we quantify the frustration by means of the value of mutual information of three variables probability distributions. In figure 4 we see that the terms containing two or three orientational variables (θor,φor or ψor) have a more important contribution to the total entropy than those containing only one orientation variable. Therefore the higher contribution to the frustration of the liquid structure is the one coming from the orientation in the current case. 6. Conclusions In this work we propose a new methodology to study the ordering of liquids up to rather long distances: the use of information theory to study the position and orientation of molecular liquids encoded in the sixdimensional probability distribution gr,Ωpos,Ωor. We have analyzed under this new procedure the structure of the first studied molecular liquid, carbon tetrachloride, arriving to two main conclusions: •The positional structure of the studied liquid is not simply more disordered as we go far away from a central molecule, but it has regions where its center of mass are more ordered, and they are correlated with minima and maxima of the radial distribution function of their centers of mass. •Liquids are geometrically frustrated in the sense that mutual information contributions calculated from the three-dimensional projections of gr,Ωpos,Ωorare negative. Moreover frustration is mainly coming from orientational degrees of freedom. 7. Appendix 7.1. Some examples of calculations of entropy and mutual information in selected probability distributions We add in this appendix some examples of calculations of mutual information and entropies in some 2D and 3D distribution functions to make clear their physical meaning. 7.2. The two-dimensional case In figures 5 and 6 we show two cartoons of twodimensional probability distributions ordered by increasing values of entropy S(A1A2) and mutual information I(A1,A2). It should be pointed out that the values of entropy and mutual information do not determine univocally the shape of a PDF. Thus, the figures are only intended to show how the shape of certain simple PDFs affects both their associated entropy and mutual information. To keep things as simple as possible, we add another restriction: the probability distributions will be generated by allowing their pixels to be only switched on or off, in other words we do not allow pixels in “grey”. That means that the calculations of the entropies are straightforward for both one and two-dimensional normalized PDF’s: S(A1)=S(A2)=S(A1A2)=Non where Non are the number of pixels switched on. If we work only with a 2-dimensional PDF with the same number of pixels per side N, the maximum number of switched on pixels for p(a1,a2) will be N2and thus Smax(A1A2)=2ln Nand Smax(A1)=Smax(A2)=ln N. Therefore the maximum mutual information possible for such a PDF is simply Imax 2(A1,A2)=lnN. We begin first with the simplest case where the variables of the probability distribution are not correlated, i.e., I(A1,A2)=0 (see figure 5). First panel (a) shows the only PDF with S(A1A2)=I(A1,A2)=0: a probability distribution with a unique pixel switched on. For this case all entropies are zero, and so it is the mutual 7 L. C. Pardo et al. /(2015) –13 8 S(A 1 A 2 )=2ln N S(A 1 A 2 )=2ln N 2 S(A 1 A 2 )=2ln N 1 S(A 2 )=ln N S(A 2 )=ln N 2 S(A 1 )=ln N S(A 1 )=ln N 2 S(A 1 A 2 )=0 I 2 (A 1 ,A 2 )=0 S(A 1 )=0 S(A 1 )=ln N 1 S(A 2 )=ln N 1 S(A 2 )=0 d) c) b) I 2 (A 1 ,A 2 )=0 I 2 (A 1 ,A 2 )=0 I 2 (A 1 ,A 2 )=0 a) Figure 5. Two variable mutual information and entropy of some selected two-dimensional probability distributions together with their one dimensional projections. The distribution were chosen to keep zero mutual information and an increasing value of entropy. In the figure we include the calculations of the entropies for the 2D probability distributions together with the calculations for the 1D projections and the mutual information calculations for all the cases following equation 4 information. One way to increase the entropy keeping the mutual information equal to zero is simply to switch on pixels keeping the squared shape of the PDF (and, in fact, keeping any other symmetric shape) until all pixels are on, being thus the entropy maximal. In figure 6 we show another way to increase the entropy keeping mutual information equal to zero is to switch on pixels forming a line perpendicular to any of the two variable A1or A2. In this case zero mutual information reflects the fact that the knowledge of the value of one variable does not help at all to determine the value of the other one. In order to increase the entropy keeping the mutual information equal to zero one can make such a line “thicker” by switching on adjacent pixels. On the other hand, if we want to increase the mutual information by keeping the entropy constant we can simply increase the slope of the horizontal line of figure 6b: the number of pixels switched on does not change and therefore S(A1A2) remains constant and equal to ln N. However the number of bins for the projected PDF’s A1and A2start to grow and so it does their associated entropies. Maximum mutual information is reached when the line has a slope equal to one 6c: in that case knowing A1completely determines the knowledge of A2. It should be pointed out that the definition of mutual information is also capable to handle with the case when two variables are not linearly correlated. In this case (see the dashed line of figure 6c) mutual information keeps being maximum. Therefore in order to discover correlations between variables it is better to use the mutual information than the correlation function σA1A2=P a1,a2 ( ¯a1−a1)·( ¯a2−a2). c) b) I 2 (A 1 ,A 2 )=ln N I 2 (A 1 ,A 2 )=0 I 2 (A 1 ,A 2 )=0 S(A 1 A 2 )=ln N S(A 1 A 2 )=ln N S(A 1 A 2 )=2 ln N S(A 2 )=ln N S(A 1 )=ln N S(A 2 )=ln N S(A 1 )=ln N S(A 2 )=ln N S(A 1 )=0 a) 0ln N 0 2 ln N I 2 (A 1 ,A 2 ) S Figure 6. Examples of two-dimensional probability maps ordered by increasing values of entropy (ordinate) and mutual information (abscissa). As in figure 5 we include both 2D probability distributions together with their 1D projections and the calculations of their entropies. The inset between panels (b) and (c) indicates a 2D a series of 2D distributions with increasing mutual information in the sense of the arrow. In panel (c) we show two 2D distributions with a maximal mutual information: one with a linear correlation between variables (full line) and one with a non-linear correlation (dashed line). 8 L. C. Pardo et al. /(2015) –13 9 Figure 7. Symmetric three-dimensional probability distributions together with their two and one-dimensional projections, ordered by decreasing values of mutual information. Figures a and b are coming from a three spin system at zero temperature in the non-frustrated and frustrated case respectively. Figure c is one example of the maximum frustration that can be achieved from a three-dimensional probability distribution. 7.3. The three-dimensional case In order to clarify why the mutual information for a three-dimensional PDF can be negative, we will use the example proposed by Matsuda et al. of a three spin system that can be up or down having an interaction among them ruled by a Heisenberg Hamiltonian: H=−J(x1x2+x2x3+x1x3), where J=±1. As in that case, we will study the case where variables xican take only the values ±1. For this Hamiltonian the shape of the three-dimensional PDF will be very simple since it is formed by eight 3D pixels, called voxels from now on, whose state can be easily calculated using: p(x1,x2,x3)=e−βH Z(12) where β=1/KBTis related to the inverse of the temperature, and Zis the partition function that, for this case, is Z=2e3βJ+6e−βJ. Since we are interested in keeping things as simple as possible, we calculate the PDF for two extreme cases: when the temperature is infinity (β=0) and when the temperature is zero (β=∞). For the first case (β=0), calculation in both cases J=±1 is very simple since all voxels are switched on and therefore the entropy of the systems is maximal and the mutual information is zero. The interesting case is when the temperature is zero and therefore β=∞. In this case we find very different PDF shapes for the cases J=±1. We show in panel (a) of figure 7 the PDF for the case J=1. For this case parallel spins are giving the minimum energy of the system and therefore there is a well defined zero Kelvin state with all spins either up or down. In this case the three body mutual information of the system is positive I3(X1,X2,X3)=ln2. The three-dimensional PDF together with its projections in two and one dimensions needed to calculate the mutual information are also shown in panel (a) of figure 7. As it can readily be seen the 3D PDF is relating the variables one by one as in the 2D case, so that the dependency between variables is maximum. Moreover, the projections in two dimensions also allow us to see that there is a relationship between variables, and in fact it fully determines their dependence. Roughly speaking, the 3D PDF is well behaved and its 2D projections are giving us information concerning the dependence between variables. We will study now the case where J=−1 that favors anti-parallel spin interaction: this is a well known case of a geometric frustrated system. In panel (b) of figure 7 we show the three-dimensional PDF for this system when β=∞. For this case the mutual information is negative and equal to I3(X1,X2,X3)=−0.117. As it can readily be seen the three-dimensional PDF is not as well behaved as in the last case: if a spin is up, i.e. if we perform a cut on the 3D PDF and take only the upper voxels, there are a lot of possibilities of arranging the other two spins with equal probability. Moreover the projections in two dimensions do not allow us to deduce the shape of the three-dimensional PDF. This causes that the entropies of the two-dimensional projections of the original 3D PDF have a high value and, since they are subtracting terms in the definition of the three variable mutual information of equation 6, the total value is negative. The main point we would like to emphasise with this very simple example is that a negative mutual information implies a correlation between three variables that can not be seen as the sum of a pairwise dependence of two variables. In other words we must have a careful look at the 3D probability distribution to get any information about how variables are correlated, since its two-dimensional projections have all the information messed up resulting in a high entropic PDF. Fol- 9