Count the ways to store an integer number of quanta
Let solid A contain \(a\) independent harmonic modes and solid B contain \(b\), all with energy spacing \(\varepsilon\). Omit their fixed zero-point energy. The total excitation count \(Q\) is fixed. In one solid a configuration is an ordered list of nonnegative mode occupations. An arrangement of \(q\) identical excitation symbols and \(a-1\) separators specifies such a list. The multiplicity is \(\binom{q+a-1}{a-1}\). The count for distinguishable packets would be different, because exchanging two excitations between identical occupations introduces no new configuration here.
The denominator counts all occupations of the \(a+b\) modes; summing the numerator over every partition must reproduce it. As a simple check, set \(a=2,b=1,Q=2\). The unnormalised weights for \(q=0,1,2\) are 1, 2 and 3. The most probable count is 2, but the mean is \(4/3\). “Thermal equilibrium” does not require every observed energy to coincide with the most likely energy.
Separate the mean from the fluctuations
By permutation symmetry each individual mode holds mean \(Q/(a+b)\). Therefore \(\langle q\rangle=Qa/(a+b)\). For the second moment, introduce an auxiliary variable \(x\) marking quanta in solid A. The coefficient of \(z^Q\) in \(G(x,z)=(1-xz)^{-a}(1-z)^{-b}\) is the unnormalised probability generating function. Differentiating once in \(x\) weights by \(q\), twice by \(q(q-1)\). At \(x=1\) the second derivative is \(a(a+1)z^2(1-z)^{-(a+b+2)}\). Divide its coefficient by the total multiplicity and combine first and second moments. Writing \(s=a+b\) gives
The second solid contains exactly \(Q-q\). Its variance is identical, and the covariance of the two measured energies is minus their common variance in energy units. A pair of independently fitted canonical distributions cannot reproduce this anticorrelation. At \(Q=24,\ a=4,\ b=8\) the mean number in A is 8 and the variance is about 14.77. These are fluctuations of a perfectly isolated combined system, not a leak in the calorimeter.
Background · Can two noisy calorimeters expose the true energy variance?
The two solids exchange energy while their sum is fixed. If the first energy fluctuates upward by \(\delta E\), the other fluctuates downward by exactly the same amount. Let the two recorded energies be \(X=E_1+n_1\) and \(Y=E_2+n_2\). Suppose each readout noise is independent of the physical energies and of the other noise. The same-channel variance and the cross covariance then measure different combinations.
A single histogram that is too broad can mimic a reservoir with different heat capacity. Simultaneous measurements in the two channels allow the exchanged-energy variance to be recovered from the negative covariance. A drifting bath or common electronic pickup violates the assumptions. The measured variance of \(X+Y\) is a direct diagnostic for such extra fluctuations when the readout noise levels are known.
Compare with a canonical ensemble at the same mean
In a canonical description each mode has a geometric distribution. Match its mean to \(\bar n=Q/s\). A single mode then has variance \(\bar n(1+\bar n)\), and \(a\) independent modes have variance \(a\bar n(1+\bar n)\). Dividing the exact microcanonical variance by this canonical variance leaves \(b/(s+1)\). At the example point this is \(8/13\). Increasing \(a\) along with \(b\) at fixed fraction does not make a macroscopic subsystem independent of the reservoir; the ratio stays below one. Holding \(a\) fixed, taking \(b\) large and keeping \(Q/s\) fixed does recover the canonical width.
The negative-binomial canonical distribution has support on every nonnegative integer, even those above \(Q\). This is another sign that it describes another experiment. Merely deleting the tail without changing its other weights does not recover the true finite-reservoir conditional probability.
Calculate the distribution without enormous factorials
The ratio of successive unnormalised weights is \((q+a)(Q-q)/[(q+1)(Q-q+b-1)]\). Start with a positive arbitrary initial weight, march through the allowed \(q\) and normalise once. The graph compares this exact probability to a canonical law at the same mean. Adjust reservoir size and total energy; use the displayed first two moments to distinguish a shift in the average from a change in the width. The plotted canonical values cover the physically accessible count interval, so their displayed partial sum can be less than one.
Tutorial
If A and B contain identical mode counts, is \(Q/2\) necessarily the most likely observed value?
Work through the solution
The distribution is symmetric. For odd \(Q\) there is no integer value at exactly \(Q/2\); two equally likely central counts are possible. With one mode in each solid, every admissible value is equally likely. Symmetry fixes the mean exactly even when it does not identify a unique most probable observation.
For \(a=4,b=8,Q=24\) what variance would an unconditioned canonical fit predict?
Work through the solution
Here \(\bar n=2\). The canonical count variance is \(4(2)(3)=24\). Multiplying by \(8/13\) returns \(14.769\) for the closed pair. Count-to-energy conversion multiplies variances by \(\varepsilon^2\).
An experiment finds a noisy sum of the two reported energies. What can one infer before relaxing the energy-conservation model?
Work through the solution
In the ideal model \(E_A+E_B\) is constant. Check both readouts' measurement noise and energy calibration. Independently fluctuating detector errors add variance in the sum even for a closed sample. Record a reference configuration or estimate detector noise from repeated measurements of the same state.
The finite-reservoir chapter connects this exact count to the curvature of the entropy.