Inequalities and limit theorems proofs — step by step with the playlist, Markov, Chebyshev, the law of large numbers and the CLT with the mgf (and the bound I wrote the wrong way round)

In a class mock exam I was asked to prove Chebyshev and I wrote, very confidently, “≥ σ²/t²”. I had applied Markov to (X−μ)2(X – \mu)^2 and, when moving to the complementary event, I flipped the inequality where I shouldn’t: my “proof” ended up saying that the probability of moving away from the mean is at least σ2/t2\sigma^2/t^2, and with a small tt that is greater than 1. The lecturer only wrote in the margin “probability 4?”. Since then, every time I close a bound I ask myself what happens with a very small and a very large tt.

Here, step by step, are the proofs of the topic inequalities and limit theorems: the two inequalities, the law of large numbers, the two faces of the central limit theorem, the idea of its proof with the moment generating function, the Poisson that becomes normal and the sample size. Each one says what is to be proved, where you start from, what justifies each step and how to check it with R. The example is the same as in the theory: the length of a song on the gym playlist, X=2+EX = 2 + E with E∼exp(2/3)E \sim \text{exp}(2/3), with mean 3.5 and standard deviation 1.5.

Table of Contents

Before we start: the rules we will use

RuleWhat it saysWhere it is used
Expectation as an integralE(g(X))=∫g(x)f(x) dxE(g(X)) = \int g(x) f(x)\,dxMarkov
Integral of something positiveIf h≥0h \ge 0, ∫Ah≥0\int_A h \ge 0; removing pieces only makes it smallerMarkov
MonotonicityIf a≤ba \le b on AA, ∫Aa≤∫Ab\int_A a \le \int_A bMarkov
Equal events∣X−μ∣≥t  ⟺  (X−μ)2≥t2\lvert X – \mu\rvert \ge t \iff (X – \mu)^2 \ge t^2, if t>0t > 0Chebyshev
Mean and variance of Xˉ\bar XE(Xˉ)=μE(\bar X) = \mu, Var(Xˉ)=σ2/n\text{Var}(\bar X) = \sigma^2/n if independentLaw of large numbers
mgf of a sumMX+Y(t)=MX(t) MY(t)M_{X+Y}(t) = M_X(t)\,M_Y(t) if independentCLT, Poisson
mgf of aXaXMaX(t)=MX(at)M_{aX}(t) = M_X(at)CLT, Poisson
Taylor of eue^ueu=1+u+u22+u36+…e^u = 1 + u + \tfrac{u^2}{2} + \tfrac{u^3}{6} + \dotsCLT, Poisson
Limit of the number ee(1+an)n→ea\left(1 + \tfrac{a}{n}\right)^n \to e^a, also if aa depends on nn and tends to aaCLT
Continuity theoremIf MZn(t)→MZ(t)M_{Z_n}(t) \to M_Z(t) near 0, FZn→FZF_{Z_n} \to F_ZCLT, Poisson

Proof 1: Markov’s inequality

What is to be proved

If X≥0X \ge 0 has finite mean, for any t>0t > 0:

P(X≥t)≤E(X)t P(X \ge t) \le \frac{E(X)}{t}

Why it matters. It is the first bound that only needs the mean. And it is the building block of the topic: Chebyshev is Markov applied to (X−μ)2 (X – \mu)^2 , and the law of large numbers is Chebyshev applied to Xˉ \bar X .

Where we start from

Only from the fact that XX is not negative and the definition of expectation. We do it for a continuous variable with density ff; in the discrete case the integrals become sums and the reasoning is the same.

Step 1: split the mean in two pieces

We split the values of XX into those that do not reach tt and those that do:

E(X)=∫0∞xf(x) dx=∫{x<t}xf(x) dx+∫{x≥t}xf(x) dx E(X) = \int_0^{\infty} x f(x)\,dx = \int_{\{x < t\}} x f(x)\,dx + \int_{\{x \ge t\}} x f(x)\,dx

Step 2: drop the first piece

In the first piece, x≥0x \ge 0 and f(x)≥0f(x) \ge 0, so the integral is ≥0\ge 0. If we remove it, what is left is smaller or equal:

E(X)≥∫{x≥t}xf(x) dx E(X) \ge \int_{\{x \ge t\}} x f(x)\,dx

This is where we use that XX is not negative. If it were, the first piece could be negative and removing it would raise the result.

Step 3: replace xx by tt

In the second piece every xx satisfies x≥tx \ge t, so xf(x)≥tf(x)x f(x) \ge t f(x) and, by monotonicity:

∫{x≥t}xf(x) dx≥∫{x≥t}tf(x) dx=t∫{x≥t}f(x) dx=t P(X≥t) \int_{\{x \ge t\}} x f(x)\,dx \ge \int_{\{x \ge t\}} t f(x)\,dx = t \int_{\{x \ge t\}} f(x)\,dx = t\, P(X \ge t)

The last two equalities: t t comes out of the integral because it is a constant, and the integral of the density over {x≥t} \{x \ge t\} is the probability of landing there.

Step 4: solve

Putting steps 2 and 3 together, E(X)≥t P(X≥t)E(X) \ge t\,P(X \ge t). Since t>0t > 0, we divide without changing the direction:

P(X≥t)≤E(X)t \boxed{P(X \ge t) \le \frac{E(X)}{t}}
Markov with t = 7: where the mean is lostCurve x times f(x) for the song between 2 and 12. Its total area is the mean, 3.5. The grey area, from 2 to 7, is 3.20 and is dropped in step 2. The coral area, from 7 onwards, is 0.30; below it, the curve t times f(x) with t = 7 encloses 0.25, which is t times P(X ≥ t). The difference, 0.05, is lost in step 3.0.00.51.023456789101112x, length in minutesx · f(x)t = 7step 2: dropped3.20upper part: 0.30t · P(X ≥ t): 0.25step 3: lose 0.05x · f(x)t · f(x), x ≥ t
The mean is the whole area. Markov only keeps the dark part of the tail: 0.25 out of 3.5.

The drawing shows each loss: the part of the mean that comes from the short songs (step 2) and what is lost by flattening each xx of the tail down to the value tt (step 3). With t=7t = 7, the bound loses almost everything: that is why it is so loose.

Check it with R

l <- 2/3; fX <- function(x) l * exp(-l * (x - 2))
t <- 7
c(upper   = integrate(function(x) x * fX(x), t, Inf)$value,   # the piece we keep
  lower   = integrate(function(x) x * fX(x), 2, t)$value,     # the piece we drop
  t_times_P = t * (1 - pexp(t - 2, l)))                        # t · P(X >= 7)

Output:

    upper     lower t_times_P 
0.3032289 3.1967711 0.2497180 

The two pieces add up to 3.5, the mean. The piece of songs of 7 minutes or more is 0.30 and, after replacing each xx by 7, it becomes 7⋅P(X≥7)=0.257 \cdot P(X \ge 7) = 0.25. The chain is 3.5≥0.30≥0.253.5 \ge 0.30 \ge 0.25: the two inequalities of the proof, with numbers.

Check you’ve got it: what bound does Markov give for a song lasting 3 minutes or more, and why is it useless?

3.5/3=1.17 3.5/3 = 1.17 . It is true, but it says nothing: you already knew a probability is ≤1 \le 1 . It happens whenever t≤E(X) t \le E(X) . The real one is P(X≥3)=e−2/3=0.51 P(X \ge 3) = e^{-2/3} = 0.51 . Markov only says something when t t is well above the mean.

Proof 2: Chebyshev’s inequality

What is to be proved

If XX has finite mean μ\mu and variance σ2\sigma^2, for any t>0t > 0:

P(∣X−μ∣≥t)≤σ2t2 P(|X – \mu| \ge t) \le \frac{\sigma^2}{t^2}

and, with t=kσt = k\sigma, its two usual forms: P(∣X−μ∣≥kσ)≤1/k2P(|X – \mu| \ge k\sigma) \le 1/k^2 and P(∣X−μ∣<kσ)≥1−1/k2P(|X – \mu| < k\sigma) \ge 1 – 1/k^2.

Why it matters. Markov looks at one side only and needs X≥0 X \ge 0 . Chebyshev measures the distance to the mean on both sides, for any variable with finite variance: with k=2 k = 2 , at least 75 % of the values fall within 2σ 2\sigma , whatever the distribution.

Where we start from

From Markov, which requires a non-negative variable. X−μX – \mu can be negative, but its square cannot.

Step 1: the non-negative variable

Let Y=(X−μ)2Y = (X – \mu)^2. It is ≥0\ge 0 and its mean is the variance: E(Y)=E((X−μ)2)=σ2E(Y) = E\big((X – \mu)^2\big) = \sigma^2.

Why the square and not ∣X−μ∣ |X – \mu| : Markov would also work, but it would give E∣X−μ∣/t E|X – \mu|/t , a mean you almost never know. The mean of the square is σ2 \sigma^2 .

Step 2: Markov with t2t^2

We apply Markov to YY with the value t2>0t^2 > 0:

P((X−μ)2≥t2)=P(Y≥t2)≤E(Y)t2=σ2t2 P\big((X – \mu)^2 \ge t^2\big) = P(Y \ge t^2) \le \frac{E(Y)}{t^2} = \frac{\sigma^2}{t^2}

Step 3: the same event, written with ∣X−μ∣|X – \mu|

Since t>0t > 0 and the square root is increasing, (X−μ)2≥t2(X – \mu)^2 \ge t^2 happens exactly when ∣X−μ∣≥t|X – \mu| \ge t. They are the same event, so they have the same probability:

P(∣X−μ∣≥t)≤σ2t2 \boxed{P(|X – \mu| \ge t) \le \frac{\sigma^2}{t^2}}
Chebyshev is Markov on (X − μ)²Parabola (x minus 3.5) squared for x between 0 and 9, with the horizontal line at 9. The parabola is above 9 exactly when x is below 0.5 or above 6.5, the two coral strips, which are the points at distance 3 or more from the mean.0920300123456789x, song length(x − μ)²t² = 9μ = 3.5|x − μ| ≥ 3same eventY = (X − μ)² ≥ 9in the coral strips
The parabola exceeding t² and x being t or more from μ are the same condition: that is why Markov on Y works for |X − μ|.

Step 4: the forms with kk

With t=kσt = k\sigma, σ2/t2=σ2/(k2σ2)=1/k2\sigma^2/t^2 = \sigma^2/(k^2\sigma^2) = 1/k^2. And since “being less than kσk\sigma away” is the complement of “being kσk\sigma or more away”:

P(∣X−μ∣<kσ)=1−P(∣X−μ∣≥kσ)≥1−1k2 P(|X – \mu| < k\sigma) = 1 – P(|X – \mu| \ge k\sigma) \ge 1 – \frac{1}{k^2}

Watch the direction: subtracting an amount that is at most 1/k21/k^2 leaves something that is at least 1−1/k21 – 1/k^2. This is where I went wrong in the mock exam. The quick check: with a very large kk the outside bound must tend to 0, and with k≤1k \le 1 the outside bound is 1 or more and says nothing (a probability is always ≤1\le 1).

Writing P(∣X−μ∣≥t)≥σ2/t2P(|X – \mu| \ge t) \ge \sigma^2/t^2. With a small tt it would give probabilities greater than 1. Outside bounds are always upper ones (≤\le) and inside ones, lower ones (≥\ge).

Check it with R

set.seed(2026)
x <- 2 + rexp(100000, 2/3)                    # 100,000 songs
c(square = mean((x - 3.5)^2 >= 9),           # P(Y >= t^2), with t = 3
  distance = mean(abs(x - 3.5) >= 3),        # P(|X - mu| >= t): the same event
  bound = 2.25 / 9)                          # sigma^2 / t^2

Output:

  square distance    bound 
 0.04921  0.04921  0.25000 

The first two columns are the same number, 0.04921, because they count exactly the same songs: that is step 3. The bound, 0.25, is above, as Chebyshev promises.

Check you’ve got it: what does Chebyshev guarantee for songs between 0.5 and 6.5 minutes long, and how many really fall there?

The interval is 3.5±3=μ±2σ 3.5 \pm 3 = \mu \pm 2\sigma , so k=2 k = 2 : at least 1−1/4=0.75 1 – 1/4 = 0.75 . In reality, since no song is shorter than 2 minutes, only the upper tail falls outside, P(X≥6.5)=e−3=0.05 P(X \ge 6.5) = e^{-3} = 0.05 : 0.95 stays inside. The gap is the price of not using the shape of the distribution.

Proof 3: the weak law of large numbers

What is to be proved

If X1,…,XnX_1, \dots, X_n are independent, with E(Xi)=μE(X_i) = \mu and Var(Xi)=σ2\text{Var}(X_i) = \sigma^2, for any c>0c > 0:

P(μ−c<Xˉ<μ+c)≥1−σ2nc2→n→∞1 P(\mu – c < \bar X < \mu + c) \ge 1 – \frac{\sigma^2}{nc^2} \xrightarrow[n \to \infty]{} 1

Why it matters. It is the reason averaging works: with enough data, the sample mean gets close to the population mean. It justifies estimating μ \mu with Xˉ \bar X .

Where we start from

From Chebyshev (proof 2), applied to Xˉ\bar X instead of XX, and from the mean and variance of a mean of independent variables (topic 6).

Step 1: the mean and variance of Xˉ\bar X

By linearity of expectation, E(Xˉ)=1n∑E(Xi)=1nnμ=μE(\bar X) = \frac{1}{n}\sum E(X_i) = \frac{1}{n} n\mu = \mu. By independence, the variance of the sum is the sum of the variances, and the constant 1/n1/n comes out squared:

Var(Xˉ)=1n2∑i=1nVar(Xi)=1n2 nσ2=σ2n \text{Var}(\bar X) = \frac{1}{n^2}\sum_{i=1}^n \text{Var}(X_i) = \frac{1}{n^2}\, n\sigma^2 = \frac{\sigma^2}{n}

Step 2: Chebyshev for Xˉ\bar X

Xˉ\bar X is a variable with mean μ\mu and variance σ2/n\sigma^2/n. Chebyshev with t=ct = c says:

P(∣Xˉ−μ∣≥c)≤σ2/nc2=σ2nc2 P(|\bar X – \mu| \ge c) \le \frac{\sigma^2/n}{c^2} = \frac{\sigma^2}{nc^2}

Why you can: Chebyshev holds for any variable with finite mean and variance, and Xˉ \bar X is just one more, with mean μ \mu and variance σ2/n \sigma^2/n .

Step 3: the complement and the limit

∣Xˉ−μ∣<c|\bar X – \mu| < c is the same as μ−c<Xˉ<μ+c\mu – c < \bar X < \mu + c. Moving to the complement, as in step 4 of Chebyshev:

P(μ−c<Xˉ<μ+c)≥1−σ2nc2 \boxed{P(\mu – c < \bar X < \mu + c) \ge 1 – \frac{\sigma^2}{nc^2}}

With cc fixed, σ2/(nc2)→0\sigma^2/(nc^2) \to 0 as n→∞n \to \infty, and the probability, which cannot exceed 1, is squeezed between something that tends to 1 and 1 itself: it tends to 1. That is the convergence in probability of Xˉ\bar X to μ\mu.

This is the weak law. There is a strong law, which says that the sequence of means of one and the same sequence of songs tends to μ\mu with probability 1 (what the running mean in the theory drew). Its proof is not part of ME1.

Check it with R

With the playlist and c=0.25c = 0.25, we simulate 2000 times the mean of nn songs and count how many are a quarter of a minute or more away from 3.5:

set.seed(2026)
outside <- function(n) mean(replicate(2000, abs(mean(2 + rexp(n, 2/3)) - 3.5) >= 0.25))
round(c(n50 = outside(50), n200 = outside(200), n720 = outside(720)), 4)
round(2.25 / (c(50, 200, 720) * 0.25^2), 4)      # the bound sigma^2 / (n c^2)

Output:

   n50   n200   n720 
0.2355 0.0165 0.0000 
[1] 0.72 0.18 0.05

With 50 songs it moves away 23.6 % of the time (the bound allowed 72 %); with 200, 1.65 % (the bound, 18 %); with 720, none of the 2000 (the bound, 5 %). The probability of moving away goes to 0, always below the bound.

Check you’ve got it: where is independence used, and what would happen if the n songs were the same one repeated?

Only in step 1, so that the variance of the sum is the sum of the variances. If they were the same song, Xˉ=X1 \bar X = X_1 , its variance would stay at 2.25 and the bound with c=0.25 c = 0.25 would be 1−2.25/0.252=−35 1 – 2.25/0.25^2 = -35 . The probability of moving away would be 0.88 with one song or with a thousand: repeating a data point tells you nothing new.

Proof 4: the law for relative frequencies

What is to be proved

If X1,…,XnX_1, \dots, X_n are independent Bernoulli(p)(p) and p^=Xˉ\hat p = \bar X is the proportion of successes (skipped songs, for example), for any ε>0\varepsilon > 0:

P(∣p^−p∣≥ε)≤p(1−p)nε2≤14nε2 P(|\hat p – p| \ge \varepsilon) \le \frac{p(1-p)}{n\varepsilon^2} \le \frac{1}{4n\varepsilon^2}

and the second bound does not depend on pp: it serves to choose nn before knowing what pp is.

Why it matters. It says that the relative frequency gets close to the probability, the idea of probability “in the long run”. And the bound without p p answers the question of any survey: how much data do I need before knowing anything.

Where we start from

From proof 3 and the mean and variance of a Bernoulli: E(Xi)=pE(X_i) = p and Var(Xi)=p(1−p)\text{Var}(X_i) = p(1 – p).

Step 1: the law of large numbers with σ2=p(1−p)\sigma^2 = p(1-p)

It is proof 3 with μ=p\mu = p and σ2=p(1−p)\sigma^2 = p(1-p):

P(∣p^−p∣≥ε)≤p(1−p)nε2 P(|\hat p – p| \ge \varepsilon) \le \frac{p(1-p)}{n\varepsilon^2}

Step 2: the worst case of p(1−p)p(1-p)

g(p)=p(1−p)=p−p2g(p) = p(1-p) = p – p^2 is a downward parabola. Its derivative, 1−2p1 – 2p, is zero at p=1/2p = 1/2, where it equals 1/41/4. So, for any pp, p(1−p)≤1/4p(1-p) \le 1/4, and:

P(∣p^−p∣≥ε)≤14nε2 \boxed{P(|\hat p – p| \ge \varepsilon) \le \frac{1}{4n\varepsilon^2}}

Step 3: the nn that guarantees a precision

If you want p^\hat p to be within ε\varepsilon of pp with probability at least 1−α1 – \alpha, it is enough for the bound to be ≤α\le \alpha:

14nε2≤α  ⟺  n≥14αε2 \frac{1}{4n\varepsilon^2} \le \alpha \iff n \ge \frac{1}{4\alpha\varepsilon^2}

Why it is enough: P(∣p^−p∣<ε)≥1−14nε2 P(|\hat p – p| < \varepsilon) \ge 1 – \frac{1}{4n\varepsilon^2} , and if the bound is ≤α \le \alpha , that is ≥1−α \ge 1 – \alpha . To solve for n n you multiply by n/α>0 n/\alpha > 0 : the direction does not change.

To estimate the proportion of songs you skip with an error of 0.05 and probability 0.95: n≥1/(4⋅0.05⋅0.052)=2000n \ge 1/(4 \cdot 0.05 \cdot 0.05^2) = 2000 songs, without knowing anything about pp.

Check it with R

p <- seq(0, 1, by = 0.25)
p * (1 - p)                               # never exceeds 0.25, and reaches it at p = 0.5
1 / (4 * 0.05 * 0.05^2)                   # n for error 0.05 with prob. 0.95

Output:

[1] 0.0000 0.1875 0.2500 0.1875 0.0000
[1] 2000
Check you’ve got it: if you know you skip at most one song in ten, how many songs are enough for the same error and the same probability?

720 are enough. The parabola p(1−p) p(1-p) goes up on [0,1/2] [0, 1/2] , so with p≤0.1 p \le 0.1 its maximum is 0.1⋅0.9=0.09 0.1 \cdot 0.9 = 0.09 , not 1/4. With the bound of step 1, n≥0.090.05⋅0.052=720 n \ge \frac{0.09}{0.05 \cdot 0.05^2} = 720 , compared with 2000.

Proof 5: the two faces of the CLT

What is to be proved

That standardising the mean and standardising the sum give the same variable:

Zn=Xˉ−μσ/n=Sn−nμσn Z_n = \frac{\bar X – \mu}{\sigma/\sqrt n} = \frac{S_n – n\mu}{\sigma\sqrt n}

and, therefore, that if Zn≈N(0,1)Z_n \approx N(0, 1), then Xˉ≈N(μ,σ/n)\bar X \approx N(\mu, \sigma/\sqrt n) and Sn≈N(nμ,σn)S_n \approx N(n\mu, \sigma\sqrt n).

Why it matters. In the exam you are asked sometimes about the session mean and sometimes about the total. Here you see it is the same result and which standard deviation goes with each: σ/n \sigma/\sqrt n with the mean, σn \sigma\sqrt n with the sum. Mixing them up is the most repeated mistake.

Where we start from

From Sn=nXˉS_n = n\bar X and what you saw in topic 5: if Z∼N(0,1)Z \sim N(0, 1), a+bZ∼N(a,∣b∣)a + bZ \sim N(a, |b|).

Step 1: multiply top and bottom by nn

Xˉ−μσ/n=n(Xˉ−μ)nσ/n=nXˉ−nμσn=Sn−nμσn \frac{\bar X – \mu}{\sigma/\sqrt n} = \frac{n(\bar X – \mu)}{n\sigma/\sqrt n} = \frac{n\bar X – n\mu}{\sigma\sqrt n} = \frac{S_n – n\mu}{\sigma\sqrt n}

In the denominator, n/n=nn/\sqrt n = \sqrt n. It is the same calculation that gives sd(Sn)=σn\text{sd}(S_n) = \sigma\sqrt n.

Step 2: undo the standardisation

Solving, Xˉ=μ+σnZn\bar X = \mu + \frac{\sigma}{\sqrt n} Z_n and Sn=nμ+σn ZnS_n = n\mu + \sigma\sqrt n\, Z_n. If ZnZ_n is almost N(0,1)N(0,1), each is almost a normal with that mean and standard deviation:

Xˉ≈N ⁣(μ,σn)Sn≈N(nμ,σn) \boxed{\bar X \approx N\!\left(\mu, \frac{\sigma}{\sqrt n}\right) \qquad S_n \approx N(n\mu, \sigma\sqrt n)}

And for any z1<z2z_1 < z_2, P(z1<Zn<z2)→Φ(z2)−Φ(z1)P(z_1 < Z_n < z_2) \to \Phi(z_2) – \Phi(z_1) translates, solving for SnS_n, into:

P(nμ+z1σn<Sn<nμ+z2σn)→Φ(z2)−Φ(z1) P(n\mu + z_1\sigma\sqrt n < S_n < n\mu + z_2\sigma\sqrt n) \to \Phi(z_2) – \Phi(z_1)

Why you can solve for them like this: Xˉ=μ+σnZn \bar X = \mu + \frac{\sigma}{\sqrt n} Z_n is the form a+bZ a + bZ from topic 5, with mean a a and standard deviation ∣b∣ |b| . With the sum, a=nμ a = n\mu and b=σn b = \sigma\sqrt n .

Check it with R

set.seed(2026)
x <- 2 + rexp(20, 2/3); n <- 20; mu <- 3.5; sigma <- 1.5
c(via_the_mean = (mean(x) - mu) / (sigma / sqrt(n)),
  via_the_sum  = (sum(x) - n * mu) / (sigma * sqrt(n)))

Output:

via_the_mean  via_the_sum 
    2.896556     2.896556 

For the same 20-song session, the two standardisations give the same number, 2.90: this session came out long, almost three standard deviations above what was expected. Choosing one or the other in the exam is a matter of convenience: if you are asked about the total, the sum; if about the mean, the mean.

Check you’ve got it: what probability does the CLT give for a 20-song session lasting more than 80 minutes? Do it with the sum and with the mean.

With the sum: z=(80−70)/(1.520)=10/6.71=1.49 z = (80 – 70)/(1.5\sqrt{20}) = 10/6.71 = 1.49 . With the mean: 80 minutes are 4 on average, and z=(4−3.5)/(1.5/20)=1.49 z = (4 – 3.5)/(1.5/\sqrt{20}) = 1.49 . The same z z , as step 1 says, and 1−Φ(1.49)=0.07 1 – \Phi(1.49) = 0.07 .

Proof 6: the idea of the CLT with the moment generating function

What is to be proved

That if the XiX_i are iid with mean μ\mu, variance σ2\sigma^2 and an mgf that exists near 0, the mgf of Zn=Sn−nμσnZ_n = \frac{S_n – n\mu}{\sigma\sqrt n} tends to that of an N(0,1)N(0, 1), which is et2/2e^{t^2/2}. By the continuity theorem (notes, theorem 9), that is enough for FZn→ΦF_{Z_n} \to \Phi.

In the notes the CLT is stated without proof; this is the idea, and it is good for understanding why you get a normal and not something else.

Why it matters. It explains why a normal comes out whatever the starting distribution. And the scheme (standardise, mgf, Taylor near 0, limit of the number e e ) is the one in proof 7 and in the binomial of “Prove it yourself”.

Where we start from

From the mgf rules (sum of independents and aXaX), Taylor and the limit of the number ee.

Step 1: standardise each term

Let Wi=(Xi−μ)/σW_i = (X_i – \mu)/\sigma. They are iid with E(Wi)=0E(W_i) = 0 and E(Wi2)=Var(Wi)=1E(W_i^2) = \text{Var}(W_i) = 1, and

Zn=Sn−nμσn=1n∑i=1nWi Z_n = \frac{S_n – n\mu}{\sigma\sqrt n} = \frac{1}{\sqrt n}\sum_{i=1}^n W_i

Step 2: the mgf of ZnZ_n

By independence, the mgf of the sum is the product, and the constant 1/n1/\sqrt n goes inside the argument:

MZn(t)=∏i=1nMWi ⁣(tn)=[MW ⁣(tn)]n M_{Z_n}(t) = \prod_{i=1}^n M_{W_i}\!\left(\frac{t}{\sqrt n}\right) = \left[M_W\!\left(\frac{t}{\sqrt n}\right)\right]^n

The two rules one after the other: the constant 1/n 1/\sqrt n goes inside the argument (MaX(t)=MX(at) M_{aX}(t) = M_X(at) ), and by independence the mgf of the sum is the product. Since the Wi W_i are identical, the n n factors are equal: hence the power n n .

Step 3: Taylor of MWM_W near 0

The mgf stores the moments in its derivatives at 0: MW(0)=1M_W(0) = 1, MW′(0)=E(W)=0M_W'(0) = E(W) = 0 and MW′′(0)=E(W2)=1M_W''(0) = E(W^2) = 1. So, for small ss,

MW(s)=1+0⋅s+12s2+(terms with s3 and higher) M_W(s) = 1 + 0 \cdot s + \frac{1}{2}s^2 + \text{(terms with } s^3 \text{ and higher)}

With s=t/ns = t/\sqrt n, which is small when nn is large:

MW ⁣(tn)=1+t22n+rnn,rn→0 M_W\!\left(\frac{t}{\sqrt n}\right) = 1 + \frac{t^2}{2n} + \frac{r_n}{n}, \qquad r_n \to 0

(the terms with s3=t3/n3/2s^3 = t^3/n^{3/2} and beyond, multiplied by nn, still tend to 0).

Step 4: the limit

MZn(t)=[1+t2/2+rnn]n→n→∞et2/2 M_{Z_n}(t) = \left[1 + \frac{t^2/2 + r_n}{n}\right]^n \xrightarrow[n \to \infty]{} e^{t^2/2}

by the limit of the number ee with an=t2/2+rn→t2/2a_n = t^2/2 + r_n \to t^2/2. And et2/2e^{t^2/2} is the mgf of the N(0,1)N(0, 1):

MZn(t)→et2/2  ⇒  Zn→dN(0,1) \boxed{M_{Z_n}(t) \to e^{t^2/2} \;\Rightarrow\; Z_n \xrightarrow{d} N(0, 1)}

What is taken for granted: the first equality of step 4 takes 1/n 1/n out as a common factor to get the form (1+an/n)n (1 + a_n/n)^n from the table. And the final arrow is the continuity theorem: if the mgfs get close near 0, so do the distribution functions.

Why a normal: in step 3 only the mean (0) and the variance (1) of each term survive. All the information about the shape (skewness, tails) is in the terms of order 3 and higher, which the n\sqrt n crushes. That is why the starting distribution does not matter.

For the song

With the playlist, W=(X−3.5)/1.5=E/1.5−1W = (X – 3.5)/1.5 = E/1.5 – 1, and E/1.5E/1.5 is an exp(1) (by the aXaX rule: an exp(2/3) multiplied by 2/3). Its mgf is 11−s\frac{1}{1-s} for s<1s < 1, so MW(s)=e−s1−sM_W(s) = \frac{e^{-s}}{1 – s} and

MZn(t)=(e−t/n1−t/n)n,t<n M_{Z_n}(t) = \left(\frac{e^{-t/\sqrt n}}{1 – t/\sqrt n}\right)^n, \qquad t < \sqrt n
The mgf of Z_n approaches the normal oneMoment generating functions between t = −1 and t = 1: in violet the standard normal one, e to the t squared over two; dashed coral those of Z_n for the song with n = 5 and n = 20. All three are 1 at t = 0 and almost coincide nearby; at t = 1 they are 2.07, 1.80 and 1.65.1.01.41.82.2−1.0−0.50.00.51.0tM(t)at t = 1:n = 5 → 2.07 · n = 20 → 1.80normal → 1.65e^(t²/2), N(0, 1)n = 20n = 5
Near 0 the three curves are the same; at the ends, the n = 20 one is already much closer to the normal than the n = 5 one.

Check it with R

M <- function(t, n) (exp(-t / sqrt(n)) / (1 - t / sqrt(n)))^n   # mgf of Z_n for the song
round(sapply(c(1, 5, 20, 100, 1000), function(n) M(1, n)), 4)
round(exp(1^2 / 2), 4)                                            # mgf of the N(0, 1) at t = 1

Output:

[1]    Inf 2.0706 1.8036 1.7092 1.6666
[1] 1.6487

How to read it

  • Inf with n=1n = 1: the mgf of a single standardised song does not exist at t=1t = 1 (it needs t<1=1t < \sqrt 1 = 1). The long tail of the exponential does not allow it.
  • 2.0706, 1.8036, 1.7092, 1.6666: with 5, 20, 100 and 1000 songs the value goes down towards 1.6487, which is e1/2e^{1/2}. In the drawing, the n=5n = 5 and n=20n = 20 curves stick to the normal one near 0 and separate at the ends: the convergence is “in a neighbourhood of 0”, as the continuity theorem requires.
Check you’ve got it: in step 3, why is the term in s equal to 0, and what would happen if we did not subtract the mean?

It is 0 because MW′(0)=E(W) M_W'(0) = E(W) and W W is centred. Without subtracting μ \mu , the derivative at 0 would be μ/σ \mu/\sigma and the bracket would contain μtσn \frac{\mu t}{\sigma\sqrt n} ; times n n , μtnσ \frac{\mu t\sqrt n}{\sigma} , which grows without end: there is no limit. That is why the CLT talks about Sn−nμ S_n – n\mu .

Proof 7: the Poisson becomes normal

What is to be proved

If T∼Pois(m)T \sim \text{Pois}(m), then Z=T−mmZ = \frac{T – m}{\sqrt m} tends in distribution to an N(0,1)N(0, 1) as m→∞m \to \infty. This is what justifies Pois(nλ)≈N(nλ,nλ)\text{Pois}(n\lambda) \approx N(n\lambda, \sqrt{n\lambda}) in the theory.

Why it matters. When you count events with a high mean (the ads of many sessions), the Poisson is computed with the normal. And it is the technique of proof 6 with every step done by hand.

Where we start from

There are two routes. The short one, with the CLT: Pois(nλ)\text{Pois}(n\lambda) is the sum of nn independent Poisson(λ)(\lambda) (topic 3: the mgf of the sum is enλ(et−1)e^{n\lambda(e^t – 1)}), with μ=σ2=λ\mu = \sigma^2 = \lambda, so Sn−nλnλ→N(0,1)\frac{S_n – n\lambda}{\sqrt{n\lambda}} \to N(0,1). The long one, directly with the mgf, shows how proof 6 works in a concrete case. We take the long one.

Step 1: the mgf of ZZ

With MT(s)=em(es−1)M_T(s) = e^{m(e^s – 1)} and the rules for aXaX and adding a constant (MX+b(t)=ebtMX(t)M_{X+b}(t) = e^{bt}M_X(t)):

MZ(t)=e−tm MT ⁣(tm)=exp⁡ ⁣(m(et/m−1)−tm) M_Z(t) = e^{-t\sqrt m}\, M_T\!\left(\frac{t}{\sqrt m}\right) = \exp\!\Big(m\big(e^{t/\sqrt m} – 1\big) – t\sqrt m\Big)

Where it comes from: Z=1mT−m Z = \frac{1}{\sqrt m} T – \sqrt m . Subtracting m \sqrt m gives the factor e−tm e^{-t\sqrt m} ; the 1/m 1/\sqrt m goes inside the argument (rule for aX aX ).

Step 2: Taylor of the exponent

et/m−1=tm+t22m+t36m3/2+… e^{t/\sqrt m} – 1 = \frac{t}{\sqrt m} + \frac{t^2}{2m} + \frac{t^3}{6m^{3/2}} + \dots

Multiplying by mm and subtracting tmt\sqrt m:

m(et/m−1)−tm=tm+t22+t36m+⋯−tm=t22+t36m+… m\big(e^{t/\sqrt m} – 1\big) – t\sqrt m = t\sqrt m + \frac{t^2}{2} + \frac{t^3}{6\sqrt m} + \dots – t\sqrt m = \frac{t^2}{2} + \frac{t^3}{6\sqrt m} + \dots

It is the Taylor expansion of eu e^u from the table with u=t/m u = t/\sqrt m , without the 1. Multiplying by m m : m⋅tm=tm m \cdot \frac{t}{\sqrt m} = t\sqrt m , m⋅t22m=t22 m \cdot \frac{t^2}{2m} = \frac{t^2}{2} . And since the exponential is continuous, the limit of the exponent carries over to MZ M_Z .

Step 3: the limit

The tmt\sqrt m term cancels, t2/2t^2/2 stays and the rest tend to 0. So

MZ(t)→et2/2 \boxed{M_Z(t) \to e^{t^2/2}}

the mgf of the N(0,1)N(0, 1). The same with a binomial: S−npnp(1−p)→N(0,1)\frac{S – np}{\sqrt{np(1-p)}} \to N(0, 1) as n→∞n \to \infty with pp fixed (you have it in “Prove it yourself”).

Check it with R

MP <- function(t, m) exp(m * (exp(t / sqrt(m)) - 1) - t * sqrt(m))   # mgf of (T - m)/sqrt(m)
round(sapply(c(1, 10, 60, 1000), function(m) MP(1, m)), 4)

Output:

[1] 2.0509 1.7457 1.6858 1.6575

With m=1,10,60m = 1, 10, 60 and 1000 at t=1t = 1: 2.05, 1.75, 1.69, 1.66, going down towards e1/2=1.6487e^{1/2} = 1.6487. With m=60m = 60, the ads of 30 sessions in the theory, the mgf is already four hundredths from the normal, and the approximation of P(T≤50)P(T \le 50) was off by two thousandths.

Check you’ve got it: why do we divide by the square root of m and not by m?

Because the standard deviation of T T is m \sqrt m , and standardising means dividing by it. Dividing by m m , the t2/2 t^2/2 would become t2/(2m)→0 t^2/(2m) \to 0 and the mgf would tend to 1, the mgf of a constant: (T−m)/m (T – m)/m collapses to 0.

Proof 8: the sample size, with Chebyshev and with the CLT

What is to be proved

The minimum nn such that P(∣Xˉ−μ∣<c)≥1−αP(|\bar X – \mu| < c) \ge 1 – \alpha:

Chebyshev: n≥σ2αc2CLT: n≥(z1−α/2 σc)2 \text{Chebyshev: } n \ge \frac{\sigma^2}{\alpha c^2} \qquad\qquad \text{CLT: } n \ge \left(\frac{z_{1-\alpha/2}\,\sigma}{c}\right)^2

where z1−α/2z_{1-\alpha/2} is the quantile of the N(0,1)N(0,1): qnorm(1 - alpha/2), 1.96 for α=0.05\alpha = 0.05.

Why it matters. “How much data do I need?” is a fixed exam question. The two formulas together show the price of assuming nothing: Chebyshev holds with any distribution; the CLT gives a much smaller n n , but an approximate one.

Step 1: with Chebyshev

By proof 3, P(∣Xˉ−μ∣<c)≥1−σ2nc2P(|\bar X – \mu| < c) \ge 1 – \frac{\sigma^2}{nc^2}. It is enough for that bound to be ≥1−α\ge 1 – \alpha:

1−σ2nc2≥1−α  ⟺  σ2nc2≤α  ⟺  n≥σ2αc2 1 – \frac{\sigma^2}{nc^2} \ge 1 – \alpha \iff \frac{\sigma^2}{nc^2} \le \alpha \iff n \ge \frac{\sigma^2}{\alpha c^2}

In the last step we multiply by n/α>0n/\alpha > 0, which does not change the direction.

Step 2: with the CLT

For large nn, Xˉ−μσ/n≈N(0,1)\frac{\bar X – \mu}{\sigma/\sqrt n} \approx N(0, 1), so:

P(∣Xˉ−μ∣<c)=P ⁣(∣Zn∣<cnσ)≈2Φ ⁣(cnσ)−1 P(|\bar X – \mu| < c) = P\!\left(|Z_n| < \frac{c\sqrt n}{\sigma}\right) \approx 2\Phi\!\left(\frac{c\sqrt n}{\sigma}\right) – 1

We want that to be ≥1−α\ge 1 – \alpha, that is, Φ ⁣(cnσ)≥1−α2\Phi\!\left(\frac{c\sqrt n}{\sigma}\right) \ge 1 – \frac{\alpha}{2}. Since Φ\Phi is increasing, its inverse is applied to both sides:

cnσ≥z1−α/2  ⟺  n≥z1−α/2 σc  ⟺  n≥(z1−α/2 σc)2 \frac{c\sqrt n}{\sigma} \ge z_{1-\alpha/2} \iff \sqrt n \ge \frac{z_{1-\alpha/2}\,\sigma}{c} \iff \boxed{n \ge \left(\frac{z_{1-\alpha/2}\,\sigma}{c}\right)^2}
Songs needed for a precision c with probability 0.95Paired bars on a log scale for three precisions. With c = 0.5 minutes, Chebyshev asks for 180 songs and the CLT 35; with c = 0.25, 720 and 139; with c = 0.1, 4500 and 865.10100100010000precision c, in minutesn18035c = 0.5720139c = 0.254,500865c = 0.1Chebyshev: σ²/(αc²)CLT: (1.96 σ/c)²
Log scale: each vertical step is multiplying by 10. Halving c multiplies n by 4, with both formulas.

What step 2 skips: P(∣Z∣<a)=Φ(a)−Φ(−a)=2Φ(a)−1 P(|Z| < a) = \Phi(a) – \Phi(-a) = 2\Phi(a) – 1 , because Φ(−a)=1−Φ(a) \Phi(-a) = 1 – \Phi(a) by symmetry; and 2Φ−1≥1−α 2\Phi – 1 \ge 1 – \alpha is Φ≥1−α/2 \Phi \ge 1 – \alpha/2 , adding 1 and dividing by 2.

Check it with R

sigma <- 1.5; alpha <- 0.05; c0 <- c(0.5, 0.25, 0.1)          # precisions, in minutes
rbind(Chebyshev = ceiling(sigma^2 / (alpha * c0^2)),
      CLT       = ceiling((qnorm(1 - alpha / 2) * sigma / c0)^2))

Output:

          [,1] [,2] [,3]
Chebyshev  180  720 4500
CLT         35  139  865

Both formulas have c2c^2 in the denominator: halving the precision multiplies nn by 4. And the ratio between the two is always the same, 1/αz2=201.962=5.2\frac{1/\alpha}{z^2} = \frac{20}{1.96^2} = 5.2: with α=0.05\alpha = 0.05, Chebyshev asks for about five times more.

Check you’ve got it: what n do the two formulas ask for with a precision of 0.25 minutes and alpha = 0.1?

Chebyshev: n≥2.250.1⋅0.252=360 n \ge \frac{2.25}{0.1 \cdot 0.25^2} = 360 . CLT: the quantile is z0.95=1.64 z_{0.95} = 1.64 and (1.64⋅1.50.25)2=97.4 \left(\frac{1.64 \cdot 1.5}{0.25}\right)^2 = 97.4 , which is rounded up: 98. Both go down, and Chebyshev still asks for more than three times as many.

Prove it yourself

Try each one on paper before opening the solution.

  1. Markov with powers. Prove that, for any r>0r > 0 and t>0t > 0, P(∣X∣≥t)≤E(∣X∣r)trP(|X| \ge t) \le \frac{E(|X|^r)}{t^r}. Which inequality of the topic do you get with r=2r = 2 and X−μX – \mu instead of XX?
  2. The binomial becomes normal. If S∼binom(n,p)S \sim \text{binom}(n, p), use the CLT to justify that S−npnp(1−p)\frac{S – np}{\sqrt{np(1-p)}} tends to an N(0,1)N(0,1) and write the approximation of P(S≤k)P(S \le k) with continuity correction.
  3. Twelve uniforms. Let S12S_{12} be the sum of 12 independent uniforms U(0,1)U(0, 1). Prove that S12−6S_{12} – 6 has mean 0 and variance 1, and explain why it is almost an N(0,1)N(0, 1).
Solution 1: Markov with powers

Y=∣X∣rY = |X|^r is non-negative. Since t>0t > 0 and u↦uru \mapsto u^r is increasing on [0,∞)[0, \infty), ∣X∣≥t  ⟺  ∣X∣r≥tr|X| \ge t \iff |X|^r \ge t^r: the same event. Applying Markov to YY with the value trt^r:

P(∣X∣≥t)=P(∣X∣r≥tr)≤E(∣X∣r)tr P(|X| \ge t) = P(|X|^r \ge t^r) \le \frac{E(|X|^r)}{t^r}

With r=2r = 2 and X−μX – \mu instead of XX you get P(∣X−μ∣≥t)≤E((X−μ)2)/t2=σ2/t2P(|X – \mu| \ge t) \le E\big((X-\mu)^2\big)/t^2 = \sigma^2/t^2: Chebyshev. With a larger rr the bound falls faster with tt (like 1/tr1/t^r), but it needs a higher moment.

Solution 2: the binomial becomes normal

SS has the same distribution as X1+⋯+XnX_1 + \dots + X_n with independent Bernoulli(p)(p) XiX_i. Each XiX_i has μ=p\mu = p and σ2=p(1−p)\sigma^2 = p(1-p), finite. By the CLT:

S−nμσn=S−npnp(1−p)→dN(0,1) \frac{S – n\mu}{\sigma\sqrt n} = \frac{S – np}{\sqrt{np(1-p)}} \xrightarrow{d} N(0, 1)

SS only takes integer values; each value jj is associated with the interval (j−0.5,j+0.5)(j – 0.5, j + 0.5), so {S≤k}\{S \le k\} is the interval up to k+0.5k + 0.5:

P(S≤k)≈Φ ⁣(k+0.5−npnp(1−p)) P(S \le k) \approx \Phi\!\left(\frac{k + 0.5 – np}{\sqrt{np(1-p)}}\right)
Solution 3: twelve uniforms

Each UiU_i has mean 1/21/2 and variance 1/121/12 (topic 4). By linearity and independence:

E(S12−6)=12⋅12−6=0,Var(S12−6)=Var(S12)=12⋅112=1 E(S_{12} – 6) = 12 \cdot \tfrac{1}{2} – 6 = 0, \qquad \text{Var}(S_{12} – 6) = \text{Var}(S_{12}) = 12 \cdot \tfrac{1}{12} = 1

By the CLT, Sn−n/2n/12≈N(0,1)\frac{S_n – n/2}{\sqrt{n/12}} \approx N(0, 1); with n=12n = 12 the denominator is 1 and you get exactly S12−6S_{12} – 6. Since the uniform is symmetric, the CLT already works very well with 12: it was a classic trick to simulate normals before rnorm existed. It is not exactly normal: it never leaves (−6,6)(-6, 6).

When to use each result

If you are asked for…UseWhat you need
A bound with only the mean, X≥0X \ge 0MarkovE(X)E(X)
A bound for moving away from the meanChebyshevμ\mu, σ2\sigma^2
Proving that Xˉ\bar X approaches μ\muWeak law (Chebyshev with σ2/n\sigma^2/n)μ\mu, σ2\sigma^2, independence
The nn for a proportion without knowing ppp(1−p)≤1/4p(1-p) \le 1/4ε\varepsilon, α\alpha
An approximate probability of SnS_n or Xˉ\bar XCLTμ\mu, σ\sigma, large nn
Proving that a family becomes normalmgf of the standardised variable → et2/2e^{t^2/2}The mgf
The nn for a precision of Xˉ\bar XChebyshev or CLT (proof 8)σ\sigma, cc, α\alpha

Typical mistakes when proving

Using Markov without saying the variable is non-negative. It is the hypothesis used in step 2: write it down.

Replacing Var(Xˉ)=σ2/n\text{Var}(\bar X) = \sigma^2/n by σ2/n2\sigma^2/n^2 or by σ2\sigma^2. The constant 1/n1/n comes out squared (1/n21/n^2), but the sum of nn equal variances brings an nn: you get σ2/n\sigma^2/n. And it only holds if they are independent.

Flipping the inequality when moving to the complement when you shouldn’t, or not flipping it when you should. If P(A)≤aP(A) \le a, then P(Ac)=1−P(A)≥1−aP(A^c) = 1 – P(A) \ge 1 – a. Check with a very large tt: the outside bound must go to 0 and the inside one to 1.

In the CLT proof, forgetting the n\sqrt n inside the argument of the mgf, MW(t/n)M_W(t/\sqrt n), and writing MW(t)nM_W(t)^n. That is the mgf of the unstandardised sum, which converges to nothing.

Solving for nn and leaving the answer as a decimal or rounding down. nn is a number of observations and the inequality is n≥n \ge: always round up.

Try it in the R playground

Open the R playground on the site (or RStudio) and paste this script. It checks the three pieces of this article with the playlist:

set.seed(2026)
x <- 2 + rexp(100000, 2/3)
# 1. Markov and Chebyshev: bound against the simulated frequency
t <- c(5, 7, 9)
rbind(Markov = 3.5 / t, simulated = sapply(t, function(s) mean(x >= s)))
k <- c(1.5, 2, 3)
rbind(Chebyshev = 1 / k^2, simulated = sapply(k, function(j) mean(abs(x - 3.5) >= 1.5 * j)))
# 2. The mgf of Z_n approaches the normal one
M <- function(t, n) (exp(-t / sqrt(n)) / (1 - t / sqrt(n)))^n
curve(exp(x^2 / 2), -1, 1, lwd = 2, ylab = "mgf")
for (n in c(5, 20, 100)) curve(M(x, n), -1, 1, add = TRUE, lty = 2)
# 3. The n of proof 8, checked by simulation
n <- 139
mean(replicate(2000, abs(mean(2 + rexp(n, 2/3)) - 3.5) < 0.25))   # close to 0.95

Things to look at:

  1. That in both tables the simulated row is always below the bound, and well below the further out you go.
  2. That the dashed curves join the solid one (et2/2e^{t^2/2}) as nn grows, sooner near 0 than at the ends.
  3. That with the CLT’s 139 songs the proportion of means within 0.25 of 3.5 comes out close to 0.95.

Summary

ProofKey ideaResult
1. MarkovSplit E(X)E(X), drop the lower part and flatten the upper part down to ttP(X≥t)≤E(X)/tP(X \ge t) \le E(X)/t
2. ChebyshevMarkov on (X−μ)2(X – \mu)^2, with t2t^2P(∣X−μ∣≥t)≤σ2/t2P(\lvert X – \mu\rvert \ge t) \le \sigma^2/t^2
3. Weak lawChebyshev on Xˉ\bar X, with variance σ2/n\sigma^2/nP(∣Xˉ−μ∣<c)≥1−σ2/(nc2)→1P(\lvert\bar X – \mu\rvert < c) \ge 1 – \sigma^2/(nc^2) \to 1
4. Frequenciesp(1−p)≤1/4p(1-p) \le 1/4n≥1/(4αε2)n \ge 1/(4\alpha\varepsilon^2)
5. Two facesMultiply top and bottom by nnXˉ−μσ/n=Sn−nμσn\frac{\bar X – \mu}{\sigma/\sqrt n} = \frac{S_n – n\mu}{\sigma\sqrt n}
6. CLT with the mgfTaylor: only mean and variance surviveMZn(t)→et2/2M_{Z_n}(t) \to e^{t^2/2}
7. PoissonThe tmt\sqrt m cancelsT−mm→N(0,1)\frac{T – m}{\sqrt m} \to N(0,1)
8. Sample sizeSolve nn from the bound or from Φ\Phiσ2/(αc2)\sigma^2/(\alpha c^2) or (zσ/c)2(z\sigma/c)^2

Now, on to computing: the inequalities and limit theorems practice in R repeats these checks with large simulations, histograms and quantile-quantile plots. If a proof gets stuck, go back to the theory, where each result first appears with the playlist.

Next step: practiceInequalities and limit theorems in R — practice with 100,000 songs, running means, replicate and qqnorm (and the histogram that was a single bar)

Did this article help you? Here is how you can support SergioLearns →