Refactor monogramRefactor

Mathematics / Heat grids · Numerical error

Why did the sampling share rise from 0.45% to 0.83%?

The lattice sampling change gets smaller, yet its share rises from 0.45% to 0.83% because the total Gaussian-to-grid gap shrinks faster. Following a moving sign change proves the share tends to zero.

Begin with: The sampling test introduces the three shortfalls and the two Gaussian pulses. The printable proof uses mesh quadrature and Gaussian derivatives.

The sampling share rises from 0.45% to 0.83% even though the sampling change gets smaller. On the doubling from 1,024 to 2,048, sampling lowers the predicted shortfall by 0.00004405 percentage point. On the next doubling, it lowers the shortfall by just 0.00003776 point. The total gap from the continuous Gaussian to the grid falls faster, from 0.00969361 to 0.00452469 point. The smaller sampling change takes a larger share of the smaller gap.

Divide two changes on the same doubling

Put absorbing walls at ±d on a line. Each cell holds h = 1/d of its heat per tick. The thermometer reads the center minus the mean of its two neighbors. The sampling test compares the continuous Gaussian prediction, the same pulses evaluated on actual cells and ticks, and the discrete backward weights. Each row subtracts the linear contribution d from the sharp error factor before comparing the two grids.

Write Rc, Rs and Rg for those three residuals. Let Q = √(2/(πe)) log 2 be the limiting increment on doubling. The shortfall Si measures how far the increment falls below Q, as a fraction of Q. The signed sampling share P divides two changes in that same shortfall.

Si(d) = 1 − [Ri(2d) − Ri(d)]/Q,

P(d) = [Sc(d) − Ss(d)]/[Sc(d) − Sg(d)].

Each row doubles the starting wall distance. The changes in shortfall are in percentage points.
Start dSampling changeTotal changeShare
256−0.001380−0.0465962.96%
512−0.0001451−0.0209830.691%
1,024−0.00004405−0.009693610.454%
2,048−0.00003776−0.004524690.834%
4,096−0.000000284−0.0020960.0136%

At d = 1,792, sampling raises the shortfall by 0.00001033 percentage point. The total change still lowers it, so the signed share is about −0.20%. Taking the difference of two residuals can amplify or cancel the effect of sampling on either grid.

Follow the zero across the cells

The same two-pulse ansatz gives a smooth thermometer weight U and a checkerboard weight with magnitude H. The sign count on parity ε is 2(−εU − H)+. As the checkerboard fades near t ≈ (d/2) log d, the zeros of this clipped weight approach the smooth pulse’s zeros at x ≈ ±√((1 − h)t).

Clipping the weight at zero creates a corner between two sampled cells. The leading trapezoid error is the slope jump times a periodic quadratic in the zero’s position within the mesh. That quadratic has mean zero. At successive even ticks the zero moves slowly across one parity lattice. The same holds on the odd ticks. Summation over each sequence cancels the leading error. The proof also bounds the lags near the crossing, when the checkerboard is still too strong for that moving-zero argument, and the later lags when the pulse reaches the walls.

Keep the shape term that survives the count

The first omitted term from the exact tick changes the shape of the smooth pulse. Put c = 1 − h and z = x/√(ct). In standard Gaussian coordinates, its leading term as c tends to 1 is the normal density times (He6(z) − He4(z))/(24t²), where Hej are the probabilists’ Hermite polynomials. The absolute norm weights this correction by the sign of 1 − z². That signed integral is −2α/(3t²), with α = √(2/(πe)).

Sum after t ≈ (d/2) log d and the shape change on one grid has leading term −4α/(3d log d). Subtract the two grids and divide the change by Q. With S written as a fraction, the total gap and the signed share obey

Sc(d) − Sg(d) ∼ 2/[3(log 2)d log d],

|P(d)| = O(log log d / log d).

The bound makes the share tend to zero. Its constant and onset are unspecified, and the finite examples show that the share can rise on an individual doubling. The four-page proof (PDF) gives the mesh estimate, the signed shape coefficient and the bounds needed to subtract the two grids. The full sequence is listed under Recurrences and heat grids.