Noise and its power
A noise source feeds a converter that takes 1 million samples a second. Each sample is random: x[0] = 0.68 mV, x[1] = −0.36 mV, x[2] = −1.32 mV. Knowing one tells you nothing about the next.
Square every sample and average: that is the power. For these 64 samples the mean of x² is 1.05 mV². The true value is the variance, σ² = 1 mV². Power, not the values, is what we can predict.
Measuring the spectrum
Where in frequency does that power sit? Take the DFT of the 64 samples and square each bin: |X[k]|²·Ts/N. This periodogram swings from 0.06 to 4.3 µV²/Hz. One look at noise is noisy.
Cut the record into segments, take a periodogram of each, and average them bin by bin (Bartlett's method). The bumps shrink like 1/√K: after K = 64 segments the spread drops from 88% to 13%.
White noise
The average settles on a flat line: every frequency holds the same power per hertz. Noise like this is called white, after white light. Its power spectral density is S(f) = σ²·Ts = 1 µV²/Hz.
A density is spread over a width. Multiply 1 µV²/Hz by the 1 MHz band from −500 to +500 kHz: 1,000,000 µV² = 1 mV². The area under the PSD is the total power, σ².
The autocorrelation R[m] of white noise is one spike: R[0] = σ², and every other lag is near 0 (here at most 0.02). The Fourier transform of a spike is flat. That link, PSD = transform of R, is the Wiener–Khinchin theorem.
Shaping and using noise
Send the noise through a 4-point moving average. Neighbours now share samples, so R[1] = 0.19 mV², and the PSD becomes |H(f)|²·S(f): high frequencies drop, with zeros at ±250 kHz. Power falls to 0.25 mV²: the area.
In Python with numpy: draw 64 segments of 64 samples with σ = 1 mV (written in volts), FFT each row, square, average down the columns and divide by N·fs. S comes out near 1e−12 V²/Hz = 1 µV²/Hz.
Warm resistors make real white noise. At 290 K its available power density is kT = 4.00×10⁻²¹ W/Hz, or −174.0 dBm/Hz. Links write white noise as N0/2 per hertz, two-sided. The matched filter uses it for SNR.
The working
# step 1/10 · noise fs = 1 MHz -> Ts = 1 µs between samples x[n]: Gaussian, mean 0, σ = 1 mV x[0] = 0.68 mV x[1] = −0.36 mV x[2] = −1.32 mV no formula gives the next value. we can still describe its AVERAGE behaviour (see Maths: random variables, normal distribution)
The noise is a seeded pseudo-random Gaussian record (σ = 1 mV, fs = 1 MHz, 64 segments of 64 samples), so every value in the figure is computed from this model and repeats exactly. A fresh run of the Python code gives different samples but the same averages. Power here means mean square value, as if the voltage drove 1 Ω: mV² for power and µV²/Hz for density (1 mV²·µs = 1 µV²/Hz). The plotted PSD is two-sided: it covers −500 to +500 kHz, so its area is the whole power.