Noise you cannot predict
A resistor is never quiet. Heat jiggles its electrons, so a tiny random voltage appears across it: thermal noise. No formula tells you the next value. One recording of it is called a realization.
Build three identical copies: same resistor, same temperature. Each records a different wiggle. The set of all records the experiment could give is a random process, or ensemble. Each record is one sample function.
Describing it with numbers
Freeze one instant, n = 40 (t = 2 ms). The three copies give 0.36, 10.09 and −7.40 µV. The value at a fixed time is a random variable: unpredictable, but described by a probability distribution.
Collect all 300 samples and count how many land in each 5 µV bin. The bars estimate the probability distribution: values near 0 are common, values beyond ±30 µV are rare.
Each voltage is the sum of countless tiny electron kicks, so it is Gaussian (central limit theorem). The bell curve with σ = 12.87 µV fits the bars. 206 of 300 samples (68.7%) lie within ±σ; theory says 68.3%.
The mean, or expected value, is μ = E[x]. Thermal noise pushes up as often as down, so μ = 0. The average of our 300 samples is 0.18 µV: close to 0, but an estimate, not the true value.
The variance σ² = E[(x − μ)²] measures the spread. With μ = 0 it is the average power: σ² = 4kTRB = 165.7 µV² (1 MΩ, 300 K, B = 10 kHz). So σ = 12.87 µV rms; our data give 12.93 µV.
Rules that make it simple
The temperature stays the same, so the statistics do too: the mean and variance at n = 10 equal those at n = 80. That is a stationary process. It is also ergodic: one long record's time average matches the ensemble average.
Knowing x[40] tells you nothing about x[41]: the samples are independent. Over our 297 neighbour pairs the correlation is −0.07, near 0. Noise like this is called white; the next lessons, on autocorrelation and spectra, make that exact.
Noise on a signal
Add copy 1's noise to a 1 kHz sine of amplitude 100 µV. Signal power is A²/2 = 5000 µV², noise power 165.7 µV². Their ratio, the signal-to-noise ratio (SNR), is 30.2, or 14.8 dB.
numpy draws Gaussian samples: rng.normal(0, 12.87, (3, 100)) makes three records of 100. A fixed seed (9) repeats the same numbers: these are the samples drawn in the figure. w.mean() and w.std() give 0.18 and 12.93.
The working
# step 1/11 · unpredictable resistor R = 1 MΩ at T = 300 K (27 °C) heat -> electrons jiggle -> random voltage sampled fs = 20 kHz (every 50 µs) 100 samples = 5 ms deterministic: x[n] = 100·sin(...) predicts every value random: no formula gives the next value motion in the figure: slowed down a lot
Thermal noise follows the Johnson-Nyquist formula v² = 4kTRB; with R = 1 MΩ, T = 300 K and B = 10 kHz, σ = 12.87 µV. The 300 samples are numpy's output for seed 9; every statistic in the figure is computed from them. The motion is slowed down a great deal: real samples arrive every 50 µs. The jiggling dots on the resistors are a cartoon of thermal motion, not real electron paths.