ADCh[n]DFTK–P–1rng = np.random.default_rng()2x = rng.normal(0, 1e-3, (64, 64))3X = np.fft.fft(x, axis=1)4S = (abs(X)**2).mean(0) / (64*1e6)x = 0.00 mV64
016324863-3-2-10123n (1 µs apart)mVSAMPLES x[n]xymean x² = 1.05 mV²y[n] = moving average of x-8-404800.250.50.751lag mmV²AUTOCORRELATION R[m]RxRyR[0] = 0.99 mV²Ry[1] = 0.19 mV²-500-250025050001234f (kHz)µV²/HzPSD S(f)K = 1 segmentS = σ²·Ts = 1 µV²/Hzarea = 1 µV²/Hz × 1 MHz = 1 mV²Sy = |H(f)|² · Swhite: N0/2 per hertzK = 1
Coloured parts: what the current step is about; everything else rests in whiteBlocks: noise source, converter (ADC), filter, DFT processor, averager memory and a Python code cardPlots: the samples x[n], the autocorrelation R[m] and the PSD estimateThe small card is a segment of 64 samples; the estimate is recomputed as segments are averagedGaussian white noise, σ = 1 mV, sampled at 1 MHz: 64 periodograms of 64 samples are averaged into a flat PSD of 1 µV²/Hz. The periodograms use no window and no overlap (Bartlett's method). For white noise this estimate has the right mean at every bin; its spread falls like 1/√K only because the segments are independent.

Noise and its power

  1. 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.

Measuring the spectrum

White noise

Shaping and using noise

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.