Fourier Fit
The red Powerball is a single integer between 1 and 26. Plot every draw and you get a zigzag; smooth it with a rolling average and the line settles near 13.5 with small wiggles. Wiggles look like waves — and waves have formulas. We sweep five smoothing windows, fit a Fourier series at each, and ask the harder question: is this signal, or is it filtered noise pretending to be signal?
Power spectrum
Power per frequency bin from the FFT. The dashed line is the 95% noise floor — the highest power Gaussian noise would produce after the same filtering, corrected for testing all 662 bins simultaneously.
Fitted formula
The Fourier series we just fit, written out. Each cos term is one of the top peaks from the power spectrum, written in amplitude–period–phase form. As you change K, terms appear and disappear here too.
Powerball + rolling average + Fourier fit
The faint zigzag is the actual Powerball drawn each night (1–26). The mid-weight line through the middle is the rolling average for the active window. The bold line is the sum of the top 5 highest-power sine waves fit to that rolling average. Drag K to add or remove harmonics; pick how many recent draws to show.
Residuals
What's left after subtracting the fit. Should look like noise centered on zero. The shaded band is ±1σ of filtered Gaussian noise (raw σ / √window) — what we'd expect from fair draws.
How it works
The series. For every Powerball draw since the format change to a 1–26 red ball pool (Oct 2015), we take the red Powerball value. We then sweep five rolling-average windows — 5, 10, 20, 50, 100 draws — to ask the same question at multiple smoothing levels. Each window drops its first W−1 warm-up points (their averages cover fewer than W draws) and subtracts the mean.
The transform. A discrete Fourier transform decomposes each de-meaned signal into a sum of sines and cosines at every frequency from one full cycle across the whole history up to the Nyquist limit (period of two draws). The power at each frequency tells us how much of the signal's wiggle lives there.
The null. A rolling average is a low-pass filter — even pure white noise, filtered this way, will produce a non-flat power spectrum with apparent peaks. So per window we run a Monte Carlo: 200simulations of Gaussian noise with the same standard deviation as real draws, run through the same pipeline. The 95th-percentile-of-max power across all bins is the global threshold for that window. Bars above it are 95%-significant after correcting for the fact that we're looking at hundreds of frequency bins at once.
The fit. We pick the top 10highest-power frequencies and reconstruct them as a smooth curve. Drag K to add or remove harmonics; switch windows to ask the question at a different smoothing level. If the draws are fair, every window's spectrum should be flat against its own threshold — zero peaks, at any smoothing.