A phase transition is a collective change: at the critical point, fluctuations are correlated over the whole system and relax slowly. This page shows a way to detect it without measuring any correlation length directly. Run $N$ independent copies of the system, record one global quantity of each over time, and ask how similar those $N$ time series are to each other. The answer is read from the spectrum of their correlation matrix, compared against what random matrix theory predicts for series that are not correlated at all.
This is the method of my PhD thesis, Random matrices approaches for correlated time series: statistical physics and other applications [1, 2, 3, 4, 5], and the simulations run on the same code, compiled to WebAssembly.
From time series to a spectrum
Each of the $N$ samples starts from its own random initial state and produces a series $m_{it}$, $t = 0, \dots, n$. Stacking them as rows gives the $N \times (n+1)$ time series matrix $M$. Every series is standardized over time,
$$ m^\ast_{it} = \frac{m_{it} - \langle m_i \rangle}{\sigma_i}, $$
and the correlation matrix is
$$ G^\ast = \frac{1}{n+1} M^\ast M^{\ast\mathsf{T}}, \qquad g^\ast_{ij} = \frac{1}{n+1} \sum_{t=0}^{n} m^\ast_{it}\, m^\ast_{jt}, $$
so $g^\ast_{ij}$ is the Pearson correlation between samples $i$ and $j$. Its eigenvalues $\lambda$ summarize all $N(N-1)/2$ correlations at once.
If the series are independent noise, the eigenvalue density does not collapse onto $\lambda = 1$ as one might expect: finite series have spurious correlations of order $1/\sqrt{n+1}$, and they spread the spectrum over the Marchenko-Pastur law [6, 7]
$$ \sigma(\lambda) = \frac{\sqrt{(\lambda_+ - \lambda)(\lambda - \lambda_-)}}{2\pi q \lambda}, \qquad \lambda_\pm = (1 \pm \sqrt{q})^2, \qquad q = \frac{N}{n+1}. $$
Deviations from it are genuine correlations.
What the spectrum can and cannot tell
Two exact identities fix what is worth measuring. Standardization makes every diagonal entry $g^\ast_{ii} = 1$, so the eigenvalues always sum to $\operatorname{Tr} G^\ast = N$ and their mean is exactly one, whatever the system does. The mean carries no information.
The variance of the eigenvalues does, and it has a direct meaning:
$$ \operatorname{var}(\lambda) = \frac{1}{N} \operatorname{Tr} {G^\ast}^2 - 1 = \frac{1}{N} \sum_{i \neq j} {g^\ast_{ij}}^2 = (N - 1)\, \big\langle {g^\ast_{ij}}^2 \big\rangle_{i \neq j}, $$
the mean squared correlation between different samples, scaled by $N - 1$. Uncorrelated series give the Marchenko-Pastur value $q$; series that all move together push it towards $N - 1$.
The largest eigenvalue $\lambda_{\max}$ measures how much of the ensemble follows one common signal. When every series is (up to its sign) the same, $G^\ast$ has rank one: $\lambda_{\max} \to N$ and every other eigenvalue drops to zero, opening a gap in the spectrum.
The sources
- White noise: independent Gaussian values. The spectrum settles on the Marchenko-Pastur law.
- Correlated pairs: a toy model with a knob [4]. Samples come in pairs whose series have correlation $\rho$, built from two independent Gaussian series $\varphi_1, \varphi_2$ as $\varphi_1 \sin\theta + \varphi_2 \cos\theta$ and $\varphi_1 \cos\theta + \varphi_2 \sin\theta$ with $\sin 2\theta = \rho$ [8]. Different pairs are independent. As $\rho$ grows the spectrum splits into two bulks around $1 \pm \rho$ [9].
- Ising model on a periodic $L \times L$ lattice with $L = 32$, heat bath dynamics, series of the magnetization over $n = 300$ sweeps from random configurations. The temperature $T$ is set relative to $T_c$ [10].
- Contact process [11, 5] on a ring of $L = 128$ sites, series of the density of active sites $\rho_a$ over $n = 500$ steps from fully active chains, with infection rate $\alpha$ and diffusion probability $\gamma$. It has an absorbing state and no Hamiltonian, and belongs to the directed percolation universality class rather than Ising’s [12].
What the reference scans show
In both models the ordered side has every sample following the same trajectory, so the correlations are strong, $\lambda_{\max}$ approaches $N$ and $\operatorname{var}(\lambda)$ approaches $N - 1$. For the Ising model that trajectory is ordering into one of two domains, up or down, so correlations are near $\pm 1$. For the contact process it is the common decay into the absorbing state, below $\alpha_c$. Across the transition both statistics collapse, and the critical point sits where they change fastest:
- Ising model: $\operatorname{var}(\lambda)$ falls steepest, its inflection point, at $T = T_c$ within the $0.02\,T_c$ spacing of the scan. $\langle \lambda_{\max} \rangle$ has its inflection just above, between $T_c$ and $1.02\,T_c$.
- Contact process without diffusion: $\langle \lambda_{\max} \rangle$ has its inflection and $\operatorname{var}(\lambda_{\max})$ its maximum at $\alpha \approx 3.15$, and $\operatorname{var}(\lambda)$ its inflection at $\alpha \approx 3.10$. That is about $5\%$ below $\alpha_c \approx 3.298$ at these sizes. With diffusion the same features move down together, to $\alpha \approx 2.55$ for $\gamma = 0.5$ and $\alpha \approx 2.35$ for $\gamma = 1$, following the known decrease of the critical rate with diffusion [13, 14]. For $\gamma > 0$ the dashed critical line is the thesis’ Bělehrádek fit [15, 5] $\alpha_c = 2.33\,(\gamma + 0.16)^{-0.19}$ of the spectral and power law estimates, not an independent value.
On the other side of the transition neither model reaches the Marchenko-Pastur law: the series are short and remember their initial state, so they stay autocorrelated and $\operatorname{var}(\lambda)$ remains well above $q$.
Each change of source or parameter starts a new ensemble. The time series matrix fills in as the samples evolve; when it is complete its correlation matrix is diagonalized, its eigenvalues are added to the histogram, and a new matrix begins. The spectral statistics at every parameter value you visit are kept as points on the scan plots, over reference curves precomputed with the same sizes and $1000$ matrices per point.
Source
Speed
ρ =
T = Tc
α =
γ
Matrices = var(λ) = 〈λmax〉 = MP var(λ) =
Sample 1
Time series matrix M (t = )
Correlation matrix G*
Correlations between samples
Eigenvalue density
var(λ)
〈λmax〉
var(λmax)
References
- R. da Silva, Random matrices theory elucidates the nonequilibrium critical phenomena, International Journal of Modern Physics C 34, 2350061 (2023). doi:10.1142/S0129183123500614
- R. da Silva, H. C. M. Fernandes, E. Venites Filho, S. D. Prado, J. R. Drugowich de Felício, Mean-Field Criticality Explained by Random Matrices Theory, Brazilian Journal of Physics (2023). doi:10.1007/s13538-023-01295-9
- E. Venites Filho, R. da Silva, J. R. Drugowich de Felício, A Spectral Investigation of Criticality and Crossover Effects in Two and Three Dimensions: Short Timescales with Small Systems in Minute Random Matrices, Entropy (2024). doi:10.3390/e26050395
- R. da Silva, E. Venites Filho, S. D. Prado, J. R. Drugowich de Felício, Efficient computational method using random matrices describing critical thermodynamics, International Journal of Modern Physics C (2025). doi:10.1142/s0129183124501638
- R. da Silva, E. Venites Filho, H. A. Fernandes, P. F. Gomes, Revisiting the Contact Model with Diffusion Beyond the Conventional Methods, Symmetry (2025). doi:10.3390/sym17050774
- J. Wishart, The Generalised Product Moment Distribution in Samples from a Normal Multivariate Population, Biometrika 20A, 32–52 (1928). doi:10.1093/biomet/20A.1-2.32
- V. A. Marčenko, L. A. Pastur, Distribution of Eigenvalues for Some Sets of Random Matrices, Mathematics of the USSR-Sbornik 1, 457–483 (1967). doi:10.1070/SM1967v001n04ABEH001994
- R. da Silva, S. D. Prado, A simple study of the correlation effects in the superposition of waves of electric fields: The emergence of extreme events, Physics Letters A 384, 126231 (2020). doi:10.1016/j.physleta.2019.126231
- T. Wirtz, M. Kieburg, T. Guhr, Asymptotic coincidence of the statistics for degenerate and non-degenerate correlated real Wishart ensembles, Journal of Physics A: Mathematical and Theoretical 50, 235203 (2017). doi:10.1088/1751-8121/aa6a6c
- L. Onsager, Crystal Statistics. I. A Two-Dimensional Model with an Order-Disorder Transition, Physical Review 65, 117–149 (1944). doi:10.1103/PhysRev.65.117
- T. E. Harris, Contact Interactions on a Lattice, The Annals of Probability 2, 969–988 (1974). doi:10.1214/aop/1176996493
- H. Hinrichsen, Non-equilibrium critical phenomena and phase transitions into absorbing states, Advances in Physics 49, 815–958 (2000). doi:10.1080/00018730050198152
- C. E. Fiore, M. J. de Oliveira, Phase transition in conservative diffusive contact processes, Physical Review E 70, 046131 (2004). doi:10.1103/PhysRevE.70.046131
- W. G. Dantas, M. J. de Oliveira, J. F. Stilck, Revisiting the one-dimensional diffusive contact process, Journal of Statistical Mechanics: Theory and Experiment 2007, P08009 (2007). doi:10.1088/1742-5468/2007/08/P08009
- T. Ross, Bělehrádek-type models, Journal of Industrial Microbiology 12, 180–189 (1993). doi:10.1007/BF01584188
- E. P. Wigner, Characteristic Vectors of Bordered Matrices With Infinite Dimensions, Annals of Mathematics 62, 548–564 (1955). doi:10.2307/1970079
- F. J. Dyson, Statistical Theory of the Energy Levels of Complex Systems. I, Journal of Mathematical Physics 3, 140–156 (1962). doi:10.1063/1.1703773
- M. L. Mehta, Random Matrices, (Elsevier, 2004).
- Vinayak, T. Prosen, B. Buča, T. H. Seligman, Spectral analysis of finite-time correlation matrices near equilibrium phase transitions, EPL (Europhysics Letters) 108, 20006 (2014). doi:10.1209/0295-5075/108/20006
- H. E. Stanley, P. Gopikrishnan, V. Plerou, L. A. N. Amaral, Quantifying fluctuations in economic systems by adapting methods of statistical physics, Physica A: Statistical Mechanics and its Applications 287, 339–361 (2000). doi:10.1016/S0378-4371(00)00473-8
- J.-P. Bouchaud, M. Potters, Financial Applications of Random Matrix Theory: a short review, arXiv, 0910.1205 (2009). doi:10.48550/arXiv.0910.1205
- M. Scheffer, J. Bascompte, W. A. Brock, V. Brovkin, S. R. Carpenter, V. Dakos, H. Held, E. H. van Nes, M. Rietkerk, G. Sugihara, Early-warning signals for critical transitions, Nature 461, 53–59 (2009). doi:10.1038/nature08227
- J. Marro, R. Dickman, Nonequilibrium Phase Transitions in Lattice Models, (Cambridge University Press, 1999). doi:10.1017/CBO9780511524288