Measurements
After the system reaches equilibrium, we can measure physical quantities, such as, energy, magnetization, and various susceptibilities. However, measuring physical quantities accurately requires careful consideration of autocorrelation and the generation of independent samples. Autocorrelation refers to the correlation between measurements taken at different Monte Carlo steps, which can lead to biased estimates and underestimated errors. Generating independent samples ensures that the measurements are statistically meaningful.
Autocorrelation of Physical Quantities
1. Autocorrelation Function
The autocorrelation function measures the correlation between measurements of a quantity separated by a time interval (in Monte Carlo steps): where is the average of the product of measurements separated by steps.
2. Autocorrelation Time
The autocorrelation time characterizes how quickly the autocorrelation function decays. It is defined as: In practice, is estimated by fitting to an exponential decay:
3. Effect of Autocorrelation
Autocorrelation reduces the effective number of independent samples, leading to underestimated statistical errors. To account for this, the error in the measured quantity is corrected by: where is the variance of , and is the effective number of independent samples:
- is the variance of , defined as: where is the average of the squared measurements, and is the average of the measurements.
- is the effective number of independent samples:
Generating Independent Samples
1. Spacing Measurements
To reduce autocorrelation, measurements should be spaced by at least the autocorrelation time . This ensures that consecutive measurements are approximately independent. For example, if , measurements should be taken every 10 Monte Carlo steps.
2. Blocking Method
The blocking method is a technique to generate independent samples by grouping measurements into blocks. Each block should be larger than the autocorrelation time. The average of each block is treated as an independent sample, and the variance of these block averages is used to estimate the error.
3. Parallel Tempering
For systems with slow dynamics, parallel tempering can be used to generate independent samples. This involves running multiple simulations at different temperatures and periodically swapping configurations between them. The swaps help the system explore configuration space more efficiently.
Physical Quantities
Some example physical quantities are shown below for Ising model. For different models, different quantities would need to be considered.
Magnetization:
where is the total number of spins.
Energy:
Magnetic susceptibility:
The magnetic susceptibility measures the response of the systemβs magnetization to an external magnetic field. It is defined as: where is the average magnetization, and is the external magnetic field. In Monte Carlo simulations, is computed from the fluctuations in the magnetization using the formula: where:
- is the inverse temperature,
- is the total number of spins,
- is the average magnetization,
- is the average of the squared magnetization.
Specific Heat:
The specific heat measures the systemβs heat capacity, or how much energy is required to change its temperature. It is defined as: where is the average energy of the system.
In Monte Carlo simulations, is computed from the fluctuations in the energy using the formula: where:
- is the inverse temperature,
- is the total number of spins,
- is the average energy,
- is the average of the squared energy.