The 1D Ising model is exactly solvable via the transfer matrix T. Its largest eigenvalue λ₁ gives the free energy; the gap λ₁−λ₂ determines the correlation length ξ = 1/ln(λ₁/λ₂). Compare the exact solution with Monte Carlo simulation to see how they agree perfectly.