This page assumes you have seen none of the notation in the parent note. We will earn every symbol — one at a time, each anchored to a picture — before it is ever used.
Picture one user arriving at your site. They either convert (buy, click, sign up) or they don't. That is a yes/no event: exactly like flipping a coin that lands heads or tails.
We write that outcome as Xi — the little i is just a name-tag ("user number i"). We agree:
Xi={10if user i converts (heads)if not (tails)
In figure s01 you see ten users drawn as bars: amber bars stand at height 1 (converted), cyan bars at height 0 (didn't). The number printed above each bar is that user's Xi. Look at how their average — the box on the right — is simply the count of amber bars divided by ten.
This is the Bernoulli random variable. "Random variable" just means a number whose value we won't know until the event happens. A single yes/no coin flip like Xi is called a Bernoulli trial.
The coin has a secret bias: some hidden fraction of all possible users would convert. Call that hidden fraction p (a number between 0 and 1).
You cannot see p. What you can do is watch n real users and count. That gives you an estimate, and we mark estimates with a little hat: p^ ("p-hat").
The symbol ∑i=1nXi is a summation: the tall "S" (Σ, Greek letter sigma) says "add these up". i=1 underneath and n on top say "run i from 1 to n". So ∑i=1nXi just means X1+X2+⋯+Xn — the total conversion count K from the previous section.
If p^ jumps around every time you re-run, how much does it jump? That "typical amount of wobble" is what variance and its square root, standard error, measure.
In figure s02 the amber curve plots the variance of one coin flip, p(1−p), against p. Follow it: the hill peaks at p=0.5 and touches zero at both ends. The two cyan arrows mark the "rigged coin" corners where a coin always does the same thing and never surprises you.
For one coin flip Xi the variance is p(1−p) — biggest at p=0.5 (a fair coin is the most unpredictable) and 0 at p=0 or p=1.
A single p^ is a lumpy thing. But here is the magic: average enough independent coin flips and the wobble of the average always takes the same bell shape, no matter how weird one flip was. That is the Central Limit Theorem (CLT).
In figure s03 the cyan curve is the standard bell; the vertical dashed line marks a point z on the x-axis, and the amber shaded region is everything to its left. That shaded area is exactly the number Φ(z) we define in the next section.
Now the whole point: we run two models side by side and compare them.
The question "is B better?" is a question about the gapp^B−p^A. To judge whether that gap is bigger than luck, we need its wobble — its standard error. Since the two groups are separate people, their variances add:
In figure s04 the same amber gap is drawn on two bells. On the narrow (large-n) bell it juts far out — many wobbles wide, convincing. On the wide (small-n) bell the identical gap is buried in the fuzz — just noise. Same gap, opposite verdict — that is why sample size decides everything.
Now the punchline symbol. Suppose the new model's rate beats the old by some gap. Is that gap big? "Big" only means something relative to the wobble. The z-score answers exactly that — it re-expresses the gap in units of standard error:
z=SE0p^B−p^A=standard error under H0observed gap=noisesignal
Only now, with z defined as the standard Normal variable, does Φ earn its keep:
These are the words the Hypothesis Testing framework wraps around the z-score.
A confidence interval then reports the plausible range of the true gap — not just "different: yes/no" but "different by roughly this much." It is built with the unpooled SE from §6, because there we're estimating the actual gap rather than testing "no gap".
Each foundation flows into the two-proportion z-test and the sample-size formula in the parent note. Neighbouring ideas — Shadow Deployment, Canary Releases, Multi-Armed Bandits, Offline vs Online Evaluation, and Model Monitoring & Drift — reuse this same signal-vs-noise machinery.
Cover each answer and test yourself before moving to the parent note.
What does Xi=1 physically mean?
User i did the good thing (converted / clicked) — a "heads" on their private coin; a single Bernoulli trial.
What does the symbol n stand for?
The sample size — the number of users (coin flips) in the experiment, chosen in advance.
What is the difference between a Bernoulli and a Binomial?
Bernoulli is one yes/no flip (Xi); Binomial is the count K=∑Xi of heads in n independent flips, with mean np and variance np(1−p).
What is the difference between p and p^?
p is the unknowable true conversion rate of the whole population; p^=K/n is our measured fraction from a finite sample, marked with a hat.
Read ∑i=1nXi in words.
Add up all the outcomes from user 1 to user n — i.e. the total number of conversions K.
Why is the variance of one Bernoulli flip p(1−p)?
Uncertainty peaks at a 50/50 coin (p=0.5) and vanishes when the coin is rigged (p=0 or 1); the product p(1−p) is exactly that hill shape.
Under what assumption does Var(p^)=p(1−p)/n hold?
The users must be independent; if outcomes are correlated (e.g. per-request splitting) the variances don't simply add and this underestimates the wobble.
What conditions must hold before you invoke the CLT here?
Independent flips of equal p, and enough data that np≥5 and n(1−p)≥5; it breaks near extreme p or small n where the count is skewed.
What is a continuity correction?
A ±0.5 nudge to the boundary when approximating a discrete count by the smooth Normal area; negligible for large n but important for small counts.
What do nA, nB, pA, pB, p^A, p^B mean?
nA,nB = users in each arm; pA,pB = the true (unknown) rates of models A and B; p^A,p^B = the measured sample rates of each arm.
What is the SE of the difference p^B−p^A, and what do you plug in?
p^A(1−p^A)/nA+p^B(1−p^B)/nB — the two independent group variances added then square-rooted, using the sample rates (the true p's are unknown).
Why and how do we pool under H0?
Under H0 both arms share one true rate, so the best estimate uses all data: p^pool=(KA+KB)/(nA+nB), giving the z-test's SE; the unpooled SE is for the confidence interval instead.
In one sentence, what is a z-score?
The observed gap divided by its standard error — how many wobbles wide the difference is (signal over noise), on a bell standardized to centre 0, width 1.
What is Φ(z)?
The area under the standard Normal bell to the left of z — the lookup that turns a z-score into a probability.
Give the two-sided and one-sided p-value formulas.
The two models have identical true rates, pA=pB; the observed gap is pure luck.
What do α and power 1−β control?
α = tolerated false-alarm rate; power = chance of catching a real effect of size δ.
What is the MDE δ, and is it measured or chosen?
The smallest true lift δ=pB−pA you want to be able to detect — a design target chosen up front, not measured; it feeds the sample-size/power calculation.