CalcPath
ProgressProblem setsFeedback
← Question sheet

Probability · Solutions

Inequalities and Limit Theorems

12 questions · about 107 minutes

Work this sheet on paper and show every step: a bound is only as good as the hypothesis check that licenses it, so name each inequality or theorem as you use it (“by Markov applied to (X−μ)2”, “by Borel–Cantelli”, “by Slutsky”) and say why its hypotheses hold. Every answer here has an exact closed form; no calculator is needed, and decimal approximations are given in the solutions only as sanity checks. Full worked solutions are on a separate page, with a separate reveal for each question so you can check one without seeing the rest.

  1. 1.Computation

    A non-negative random variable X has mean 10 and variance 9, and nothing else about it is known. Consider the event {X≥16}.

    1. (a)Bound P(X≥16) by Markov's inequality. Which hypotheses did you use?
    2. (b)Bound the same probability by Chebyshev's inequality. Write down explicitly the two-sided event you are bounding and why it contains {X≥16}.
    3. (c)Bound it by Cantelli's inequality. Then say whether the number 81​, obtained by halving your answer to (b), is also a valid bound.
    4. (d)Show that the Cantelli bound cannot be improved: exhibit a non-negative X with mean 10, variance 9 and P(X≥16) equal to your answer in (c).

    Solution

    (a) Markov. X≥0 and E(X)=10<∞, which are the two hypotheses, so with a=16

    P(X≥16)≤16E(X)​=1610​=85​.

    Only non-negativity and the mean were used; the variance played no part.

    (b) Chebyshev. If X≥16 then X−10≥6, so ∣X−10∣≥6: the event {X≥16} is contained in {∣X−μ∣≥6}, and probabilities respect containment. Chebyshev with k=6 gives

    P(X≥16)≤P(∣X−10∣≥6)≤k2σ2​=369​=41​.

    This used finite mean and variance, not non-negativity. It is better than Markov because the variance is small relative to the mean; Markov, which cannot see the variance, has to allow for a spike at 16 carrying 85​ of the mass.

    (c) Cantelli. With t=6,

    P(X−10≥6)≤σ2+t2σ2​=9+369​=459​=51​.

    Halving Chebyshev is not valid: 81​ would be a legitimate one-sided bound only if the distribution were known to be symmetric about its mean, and symmetry is not a hypothesis. Part (d) produces a distribution with P(X≥16)=51​>81​, which shows 81​ is actually false, not merely unproved.

    (d) A distribution attaining 51​. Try two atoms: X=16 with probability 51​ and X=c with probability 54​. The mean fixes c:

    516​+54c​=10⟹4c=34⟹c=217​.

    Check the variance from the deviations 16−10=6 and 217​−10=−23​:

    Var(X)=51​⋅36+54​⋅49​=536​+59​=545​=9.✓

    Both values are positive, so X≥0; and P(X≥16)=51​ exactly. This is the general extremal shape for Cantelli — one atom at the threshold, the rest of the mass just on the other side of the mean — and it shows that no bound smaller than 51​ can hold for every variable with this mean and variance.

  2. 2.Proof

    Markov's inequality uses the first moment. It has a version for any positive moment.

    1. (a)Let Y≥0 and suppose E(Yr)<∞ for some r>0. Prove that for every a>0, P(Y≥a)≤arE(Yr)​. Say exactly where non-negativity is used.
    2. (b)Let Y be uniform on [0,2] and a=23​. Compute P(Y≥a) exactly, and the bound of (a) for r=1, r=2 and r=4.
    3. (c)In one or two sentences: what does (b) show about how the bound depends on r?

    Solution

    (a) Reduce to Markov. The map y↦yr is strictly increasing on [0,∞). Because Y≥0 and a>0, both Y and a lie in that domain, so Y≥a holds if and only if Yr≥ar: the events {Y≥a} and {Yr≥ar} are the same event and have the same probability. This is where non-negativity is used — for a variable that can be negative and even r, Yr≥ar is also produced by Y≤−a, and the two events differ.

    The variable Yr is non-negative with finite mean E(Yr), so Markov's inequality applies to it at threshold ar>0:

    P(Y≥a)=P(Yr≥ar)≤arE(Yr)​.■

    (b) The uniform on [0,2]. The density is 21​ on [0,2], so P(Y≥23​)=22−3/2​=41​ exactly. The moments are

    E(Y)=1,E(Y2)=∫02​2y2​dy=21​⋅38​=34​,E(Y4)=∫02​2y4​dy=21​⋅532​=516​.

    With a=23​ the bounds are

    r=1: 3/21​=32​,r=2: 9/44/3​=2716​,r=4: 81/1616/5​=405256​.

    Sanity check: 32​≈0.667, 2716​≈0.593, 405256​≈0.632, all above the truth 0.25, as every valid bound must be.

    (c) The bound is not monotone in r: going from r=1 to r=2 improved it, and going on to r=4 made it worse again. Raising r weights the far tail more heavily in E(Yr), but the denominator ar grows too, and which effect wins depends on the distribution and on a. So r is a free parameter to be chosen, exactly like the shift u in Cantelli's proof or the exponent s in a Chernoff bound — and the sharpest of these bounds is the infimum over r. (For this Y, r=3 gives E(Y3)=2 and the bound 27/82​=2716​ again, a tie with r=2.)

  3. 3.Computation

    Let X∼Poisson(λ), so P(X=k)=e−λλk/k! for k=0,1,2,…, with E(X)=Var(X)=λ.

    1. (a)Show that the moment generating function is MX​(s)=exp(λ(es−1)) for every real s.
    2. (b)For a threshold a>λ, derive the Chernoff bound P(X≥a)≤e−λ(aeλ​)a, verifying that the optimising s is positive. What happens to the optimisation when a≤λ?
    3. (c)Take λ=1 and a=4. Write down the Chernoff bound, the Markov bound, the Chebyshev bound and the exact value of P(X≥4), all in closed form, and order them.

    Solution

    (a) The MGF. By the definition and the series for the exponential,

    MX​(s)=E(esX)=k=0∑∞​eskk!e−λλk​=e−λk=0∑∞​k!(λes)k​=e−λeλes=exp(λ(es−1)).

    The series converges for every real s, so the MGF exists everywhere; in particular it is finite for some s>0, which is the hypothesis the generic Chernoff bound needs.

    (b) Optimise over s. For any s>0, Markov applied to esX gives P(X≥a)≤e−saMX​(s)=exp(f(s)) with

    f(s)=−sa+λ(es−1),f′(s)=−a+λes,f′′(s)=λes>0.

    So f is convex and its minimum is at f′(s∗)=0, that is es∗=a/λ, or s∗=log(a/λ). Because a>λ this is strictly positive, so it is an admissible choice. Substituting,

    f(s∗)=−alogλa​+λ(λa​−1)=−alogλa​+a−λ,

    and exponentiating,

    P(X≥a)≤e−λea(aλ​)a=e−λ(aeλ​)a.

    When a≤λ, f′(s)=λes−a>0 for every s>0, so f is increasing on (0,∞) and the infimum is approached as s→0+, where e−saMX​(s)→1. The bound degenerates to P(X≥a)≤1: a Chernoff bound has nothing to say about thresholds at or below the mean.

    (c) Four numbers for λ=1, a=4.

    Chernoff: e−1(4e​)4=256e3​.

    Markov (X≥0, mean 1): 41​.

    Chebyshev: {X≥4}⊆{∣X−1∣≥3} and σ2=1, so the bound is 91​.

    Exact: P(X≥4)=1−e−1(1+1+21​+61​)=1−38​e−1.

    Sanity check on the order: e3≈20.09 gives Chernoff ≈0.078; Chebyshev ≈0.111; Markov 0.25; and 38​e−1≈0.981 gives the exact value ≈0.019. So

    exact<Chernoff<Chebyshev<Markov,

    every bound exceeding the truth, and tightening in the order of how much of the distribution each one sees: one moment, two moments, the whole MGF. Even Chernoff is loose by a factor of about four here — it is a bound on a worst case, not an estimate.

  4. 4.Computation

    For each function below, first decide whether it is convex or concave on (0,∞) and say how you know.

    1. (a)Let X equal 1 or 4 with probability 21​ each. Compute both sides of Jensen's inequality for g(x)=x​, g(x)=x1​ and g(x)=x2, and confirm the direction in each case.
    2. (b)A positive random variable X has E(X)=4 and nothing else is specified. For each of the following, either construct an X that achieves it or prove that no X can: E(X​)=3; E(1/X)=51​; E(X2)=20.
    3. (c)If E(X)=4 and E(X2)=16, what can be said about X? Justify from the equality case of Jensen's inequality.

    Solution

    Convexity first. x​ has second derivative −41​x−3/2<0, so it is concave; x1​ has second derivative x32​>0, convex; x2 has second derivative 2>0, convex. Jensen reads E(g(X))≥g(E(X)) for convex g and E(g(X))≤g(E(X)) for concave g.

    (a) E(X)=21+4​=25​.

    For x​ (concave): E(X​)=21+2​=23​, while E(X)​=5/2​. Since (23​)2=49​<25​, indeed 23​<5/2​: the mean of the root is below the root of the mean. ✓

    For x1​ (convex): E(1/X)=21+1/4​=85​, while 1/E(X)=52​. And 85​=0.625>0.4=52​. ✓

    For x2 (convex): E(X2)=21+16​=217​=434​, while E(X)2=425​. ✓ (The gap 49​ is the variance, which is the same statement.)

    (b) Jensen turns each question into a one-line verdict.

    E(X​)=3 is impossible: x​ is concave, so E(X​)≤E(X)​=4​=2<3 for every positive X with mean 4.

    E(1/X)=51​ is impossible: x1​ is convex, so E(1/X)≥E(X)1​=41​>51​.

    E(X2)=20 is possible: convexity only requires E(X2)≥16, and 20 clears it. Take X=2 or 6 with probability 21​ each: E(X)=4 and E(X2)=24+36​=20, and X>0. ✓

    (c) Here E(X2)=16=E(X)2, so Jensen's inequality for the strictly convex g(x)=x2 holds with equality. The equality case says this happens only when X is almost surely constant, and the constant must be its mean: P(X=4)=1. (Equivalently, Var(X)=E(X2)−E(X)2=0, and a variable with zero variance is almost surely its mean.)

  5. 5.Critique

    A laboratory takes n=800 independent measurements X1​,…,Xn​, each known to lie in [0,4], and reports the sample mean Xˉn​ as an estimate of the unknown μ=E(Xi​). A student is asked to guarantee P(∣Xˉn​−μ∣≥0.2) is small and writes:

    Step 1. The Xi​ are independent and bounded, so Hoeffding's inequality applies: P(Xˉn​−μ≥ε)≤e−2nε2.

    Step 2. With n=800 and ε=0.2 this is e−2⋅800⋅0.04=e−64.

    Step 3. The two-sided event is the same thing up to sign, so P(∣Xˉn​−μ∣≥0.2)≤e−64 as well.

    Step 4. Since e−64 is astronomically small, the probability of an error of 0.2 or more is about e−64.

    1. (a)Three of the four steps are wrong. Identify each error and say which hypothesis or which part of Hoeffding's inequality is being misused.
    2. (b)Give the correct two-sided Hoeffding guarantee for this experiment, in closed form.
    3. (c)Suppose it is additionally known that Var(Xi​)=1. Compute Chebyshev's bound for the same event and compare it with your answer to (b). What does the comparison say about what Hoeffding does and does not use?

    Solution

    (a) The three errors.

    Step 1 quotes the wrong special case. The bound e−2nε2 is Hoeffding's inequality for summands in [0,1]. The general statement is

    P(Sn​−E(Sn​)≥t)≤exp(−∑i​(bi​−ai​)22t2​),

    and here every bi​−ai​=4, not 1. The width of the range enters squared, so this is not a small correction — it is a factor of 16 in the exponent. Independence, which Step 1 does state, is genuinely needed and is fine.

    Step 3 forgets the union. The one-sided bound controls {Xˉn​−μ≥ε}; the two-sided event is the union of that with {Xˉn​−μ≤−ε}, which is bounded by applying the one-sided result to −Xi​. Boole's inequality then gives twice the one-sided bound, so the two-sided guarantee carries a factor 2.

    Step 4 reads a bound as an estimate. Hoeffding gives an upper bound valid for every distribution on [0,4]; it is not the probability, and for the particular distribution in the laboratory the truth may be far smaller. "At most" is all that has been shown.

    Step 2 is arithmetic on the wrong formula and is not itself an error.

    (b) The correct guarantee. With t=nε and ∑i​(bi​−ai​)2=16n,

    P(Xˉn​−μ≥ε)=P(Sn​−E(Sn​)≥nε)≤exp(−16n2n2ε2​)=exp(−8nε2​).

    At n=800, ε=0.2: the exponent is 8800×0.04​=4, so the one-sided bound is e−4 and the two-sided bound is

    P(∣Xˉn​−μ∣≥0.2)≤2e−4.

    Sanity check by rescaling: Xi​/4∈[0,1] and the event is ∣X/4​−μ/4∣≥0.05, so the [0,1] form gives 2e−2⋅800⋅0.0025=2e−4, the same. Numerically 2e−4≈0.037 — a real guarantee, and twenty-six orders of magnitude away from the student's e−64.

    (c) Chebyshev with a known variance. Var(Xˉn​)=8001​, so

    P(∣Xˉn​−μ∣≥0.2)≤0.041/800​=321​.

    Now 321​=0.03125<2e−4≈0.0366: here Chebyshev beats Hoeffding. There is no contradiction. Hoeffding uses only the range [0,4] and must cover the worst distribution on it — for instance the two-point distribution at 0 and 4, which has variance 4, four times the variance we were told. For that distribution Chebyshev would give 324​=81​, and Hoeffding would win. Hoeffding's strength is its exponential decay in n and in ε2, which will overtake any nε21​ bound for larger n or larger deviations; at this moderate deviation, knowing the variance is worth more than knowing the range.

  6. 6.Proof

    In each part, state which function you apply Jensen's inequality to, verify its convexity or concavity, and check the hypotheses on the random variable.

    1. (a)Let X>0 with E(X) and E(1/X) both finite. Prove E(X)E(X1​)≥1, and determine exactly when equality holds.
    2. (b)Let x1​,…,xn​ be positive numbers. By choosing a suitable random variable, prove the arithmetic–geometric mean inequality (x1​x2​⋯xn​)1/n≤nx1​+⋯+xn​​, with equality if and only if all the xi​ are equal.
    3. (c)Let X have mean μ and a moment generating function MX​(s) that is finite for all s in an interval around 0. Prove MX​(s)≥esμ for every such s, and deduce that the generic Chernoff bound infs>0​e−saMX​(s) is at least 1 whenever a≤μ.

    Solution

    (a) Take g(x)=x1​ on the open interval (0,∞); g′′(x)=x32​>0, so g is strictly convex. X takes values in (0,∞), has finite mean, and E(g(X))=E(1/X) is finite by hypothesis. Jensen gives

    E(X1​)≥E(X)1​,

    and multiplying through by E(X)>0 (positive because X>0) yields E(X)E(1/X)≥1. ■

    Since g is strictly convex, equality in Jensen holds if and only if X is almost surely constant. So E(X)E(1/X)=1 exactly when P(X=c)=1 for some c>0 — and then both factors are c and c1​, which checks.

    (b) Let X be a random variable that takes the value xi​ with probability n1​ for each i (if some xi​ coincide, the probabilities simply add). Then X>0 and

    E(X)=nx1​+⋯+xn​​,E(logX)=nlogx1​+⋯+logxn​​=log(x1​⋯xn​)1/n.

    The function log has second derivative −x21​<0 on (0,∞), so it is strictly concave, and both expectations are finite sums. Jensen in its concave form gives E(logX)≤logE(X), that is

    log(x1​⋯xn​)1/n≤lognx1​+⋯+xn​​.

    Applying the strictly increasing function exp to both sides preserves the inequality and gives AM–GM. ■

    For the equality case, strict concavity means equality in Jensen holds only when X is almost surely constant, and a variable taking each of the xi​ with positive probability is constant only if all the xi​ coincide. Conversely if all xi​=c both sides equal c.

    (c) Fix s in the interval and take g(x)=esx. Its second derivative is s2esx≥0, so g is convex on all of R, whatever the sign of s. X has finite mean and E(g(X))=MX​(s) is finite by hypothesis, so Jensen gives

    MX​(s)=E(esX)≥esE(X)=esμ.■

    Now let a≤μ and s>0. Then s(μ−a)≥0, so

    e−saMX​(s)≥e−saesμ=es(μ−a)≥1.

    This holds for every s>0, hence for the infimum: the Chernoff bound is at least 1 and says nothing at all about P(X≥a) when a≤μ. That is as it should be — a variable is typically on either side of its mean with substantial probability, and no tail bound can pretend otherwise. It also explains why, for a>μ, the optimising s is bounded away from 0: near s=0 the bound is close to 1, and all the gain comes from moving s out to where e−sa has bitten.

  7. 7.Computation

    Let U be uniform on (0,1). For each sequence below decide, with proof, in which of the four modes — almost surely, in probability, in L2, in distribution — it converges to 0. Use the implications between modes to shorten the work, and say each time which implication you are using.

    1. (a)Xn​=Un.
    2. (b)Yn​=nUn.
    3. (c)Z1​,Z2​,… independent, with P(Zn​=1)=n1​ and P(Zn​=0)=1−n1​. For the almost-sure question, compute P(Zn​=0 for all n≥N) exactly for a fixed N≥2, and use it.

    Solution

    (a) Xn​=Un: all four modes. Fix an outcome ω and write u=U(ω)∈(0,1). Then un→0 as a sequence of numbers, since 0<u<1. So Xn​(ω)→0 for every ω, and in particular almost surely. Almost sure convergence implies convergence in probability, which implies convergence in distribution.

    For L2, compute directly:

    E[(Xn​−0)2]=E(U2n)=∫01​u2ndu=2n+11​⟶0.

    So Xn​→0 in every sense.

    (b) Yn​=nUn: almost surely, in probability, in distribution — but not in L2. Again fix u=U(ω)∈(0,1). The ratio of consecutive terms is

    nun(n+1)un+1​=u(1+n1​)⟶u<1,

    so from some index on the terms shrink by at least a fixed factor r with u<r<1, and nun→0 (the exponential decay of un beats the linear growth of n). Hence Yn​→0 for every ω, so almost surely, and therefore in probability and in distribution by the implications.

    In L2 it fails:

    E(Yn2​)=n2∫01​u2ndu=2n+1n2​⟶∞.

    The sequence converges to 0 at every single outcome and its mean square diverges — because near u=1 the convergence is very slow and n2 is very large. (Even the mean does not go to zero: E(Yn​)=n+1n​→1.) This is a case of almost sure convergence not implying L2 convergence.

    (c) Zn​: in probability, in L2, in distribution — but not almost surely. For any ε∈(0,1], P(∣Zn​∣≥ε)=P(Zn​=1)=n1​→0, so Zn​→0 in probability, hence in distribution. And E(Zn2​)=E(Zn​)=n1​→0, so also in L2.

    For the almost-sure question, note that Zn​ takes only the values 0 and 1, so the numerical sequence Zn​(ω) converges to 0 if and only if it is eventually 0: there is some N with Zn​(ω)=0 for all n≥N. Fix N≥2 and M≥N. By independence,

    P(Zn​=0 for N≤n≤M)=n=N∏M​(1−n1​)=n=N∏M​nn−1​=NN−1​⋅N+1N​⋯MM−1​=MN−1​.

    The events {Zn​=0 for N≤n≤M} decrease in M to {Zn​=0 for all n≥N}, so by continuity of probability from above

    P(Zn​=0 for all n≥N)=M→∞lim​MN−1​=0.

    (For N=1 the event is empty, since P(Z1​=1)=1.) The convergence set is the countable union over N of these events, so by countable subadditivity it has probability at most ∑N​0=0. Hence P(Zn​→0)=0: the sequence converges almost surely to nothing — it is 1 infinitely often for almost every outcome, even though at each fixed time the chance of a 1 is only n1​.

    Summary. Xn​: all four. Yn​: a.s., P, d, not L2. Zn​: P, L2, d, not a.s. Between them, (b) and (c) show that neither of a.s.​ and L2​ implies the other.

  8. 8.Sketch

    Take the probability space Ω=[0,1] with the uniform probability, and for n=1,2,3,… define

    Xn​(ω)={n,0,​0≤ω≤n1​,n1​<ω≤1.​

    Every feature you draw must be labelled with the number that justifies it.

    1. (a)Sketch X1​, X2​ and X4​ as functions of ω on the same axes. What is the area under each graph?
    2. (b)Mark the outcome ω=0.3 on your sketch and list X1​(0.3),X2​(0.3),X3​(0.3),X4​(0.3),…. Then prove that Xn​→0 almost surely, identifying precisely the set of outcomes where convergence fails.
    3. (c)Compute E(Xn​) and E(Xn2​). Does Xn​→0 in L2? Which feature of the sketch shows that E(Xn​) cannot tend to 0?
    4. (d)Sketch the CDF of X4​ and, on the same axes, the CDF of the constant 0. Explain from the sketch why Xn​→0 in distribution, and say what happens at x=0.

    Solution

    (a) The graphs. Each Xn​ is a rectangle standing on the interval [0,n1​] with height n, and zero to the right of it. On axes with ω from 0 to 1 horizontally and height up to 4: X1​ is the horizontal line at height 1 across the whole of [0,1]; X2​ is height 2 on [0,21​] and 0 on (21​,1]; X4​ is height 4 on [0,41​] and 0 after. Draw the drops at ω=21​ and 41​ as vertical dashed segments, with a filled dot at the top (the endpoint n1​ belongs to the tall part).

    The area under each graph is n×n1​=1: the rectangles get taller and narrower at exactly compensating rates. Label each rectangle "area 1".

    (b) One outcome. Draw a vertical dashed line at ω=0.3. It crosses the tall part of X1​ (height 1), of X2​ (since 0.3≤21​, height 2) and of X3​ (since 0.3≤31​, height 3), but not of X4​ (since 0.3>41​). So the sequence at ω=0.3 is 1,2,3,0,0,0,…: three spikes and then zero forever.

    The same happens at every ω>0. Fix such an ω and let N be any integer with N>ω1​. For every n≥N we have n1​≤N1​<ω, so ω lies in the zero part and Xn​(ω)=0. A sequence that is eventually constantly 0 converges to 0. The only outcome where this fails is ω=0, which lies in [0,n1​] for every n, so Xn​(0)=n→∞. The divergence set is {0}, a single point, whose uniform probability is 0. Hence P(Xn​→0)=P((0,1])=1: Xn​a.s.​0. ■

    The mechanism is visible on the sketch: the rectangles are nested, each inside the last, so once the line at ω has escaped a rectangle it has escaped all later ones. Contrast a moving bump, which would revisit ω forever.

    (c) Moments. E(Xn​)=n⋅P(ω≤n1​)=n⋅n1​=1 for every n, and

    E(Xn2​)=n2⋅n1​=n⟶∞.

    So E[(Xn​−0)2]=n does not tend to 0: there is no L2 convergence, and indeed the mean squares diverge. The feature that shows E(Xn​)→0 is the constant area: the expectation of a non-negative function on [0,1] under the uniform probability is the area under its graph, and every rectangle has area 1. A sequence can go to zero at almost every point while its area stays fixed, provided the height escapes to infinity on a vanishing set — and by the implications, Xn​→0 in probability and in distribution as well, since almost sure convergence gives both.

    (d) The CDFs. X4​ takes the value 0 with probability 43​ and 4 with probability 41​, so

    FX4​​(x)=⎩⎨⎧​0,43​,1,​x<0,0≤x<4,x≥4,​

    a staircase with a jump of 43​ at x=0 and a jump of 41​ at x=4. The CDF of the constant 0 is F(x)=0 for x<0 and 1 for x≥0: a single jump of size 1 at x=0. Draw both, with the plateau of FX4​​ at height 43​ sitting just below the limit's plateau at 1.

    For general n the plateau is at 1−n1​ and the second jump is at x=n. As n grows the plateau rises to 1 and the second jump marches off to the right, so at every fixed x>0, FXn​​(x)=1−n1​→1=F(x) once n>x; and for x<0 both are 0. That is convergence at every continuity point of F, which is the definition of Xn​d​0. At x=0, the one discontinuity of the limit, convergence is not required — but here it happens anyway, since FXn​​(0)=1−n1​→1=F(0).

  9. 9.Computation

    A fair six-sided die is rolled n times; Xi​ is the ith score and Xˉn​ the running mean.

    1. (a)Compute μ=E(Xi​) and σ2=Var(Xi​) exactly.
    2. (b)Using Chebyshev's inequality, find the smallest n that guarantees P(∣Xˉn​−μ∣≥101​)≤201​.
    3. (c)Do the same using Hoeffding's inequality, leaving the answer in terms of a logarithm before giving the integer.
    4. (d)Both bounds tend to 0 as n→∞. State exactly which limit theorem this proves, in which mode of convergence, and explain in a few sentences why neither bound, on its own, establishes the strong law.

    Solution

    (a) μ=61+2+⋯+6​=621​=27​, and

    E(Xi2​)=61+4+9+16+25+36​=691​,σ2=691​−449​=12182−147​=1235​.

    (b) Chebyshev. Independence gives Var(Xˉn​)=nσ2​=12n35​, so

    P(∣Xˉn​−μ∣≥101​)≤1/10035/(12n)​=12n3500​=3n875​.

    Requiring 3n875​≤201​ gives n≥3875×20​=317500​=5833.3, so the smallest integer is n=5834.

    Sanity check: at n=5834 the bound is 17502875​<0.05, and at n=5833 it is 17499875​>0.05.

    (c) Hoeffding. Each Xi​∈[1,6], a range of width 5, so ∑i​(bi​−ai​)2=25n. With t=nε=10n​ the two-sided bound is

    P(∣Xˉn​−μ∣≥101​)≤2exp(−25n2(n/10)2​)=2exp(−1250n​).

    Requiring 2e−n/1250≤201​ means e−n/1250≤401​, that is n≥1250log40. Since log40=2log2+log10≈1.3863+2.3026=3.6889, this is n≥4611.1, so the smallest integer is n=4612.

    Sanity check: at n=4612, 2e−4612/1250≈0.04996<0.05; at n=4611 it is ≈0.05000, just over. Hoeffding needs about 79% of Chebyshev's sample here; the advantage would grow if the tolerance 201​ were tightened, because Hoeffding's n grows like log(1/δ) and Chebyshev's like 1/δ.

    (d) What is proved. Both bounds say that for the fixed ε=101​,

    n→∞lim​P(∣Xˉn​−μ∣≥ε)=0,

    and the same argument works for every ε>0. That is the definition of Xˉn​P​μ: the weak law of large numbers, convergence in probability.

    The strong law asserts Xˉn​a.s.​μ, a statement about the whole trajectory of a single sequence of rolls, and no bound on a single P(∣Xˉn​−μ∣≥ε) is by itself a statement about trajectories — the misbehaving set could in principle move around from n to n forever, as the typewriter-style sequences do, while shrinking at every n. What converts a sequence of bounds into an almost-sure statement is summability over n together with the Borel–Cantelli lemma; that is a further step neither part (b) nor (c) has taken. Chebyshev's bound, of order n1​, is not summable at all; Hoeffding's, of order e−cn, is — so the Hoeffding route can be completed into a strong law, whereas the Chebyshev route cannot.

  10. 10.Proof

    Let X1​,X2​,… be independent and identically distributed with a≤Xi​≤b almost surely, where a<b, and let μ=E(Xi​). You may quote Hoeffding's inequality and the first Borel–Cantelli lemma; everything else must be argued. Prove that Xˉn​a.s.​μ by the following route.

    1. (a)Fix ε>0 and put An​={∣Xˉn​−μ∣≥ε}. Show that ∑n=1∞​P(An​)<∞, and give the sum's value in closed form as a function of the bound you use.
    2. (b)Deduce that for almost every outcome ω there is an N(ω) such that ∣Xˉn​(ω)−μ∣<ε for all n≥N(ω).
    3. (c)Part (b) is for one ε. Complete the proof that P(Xˉn​→μ)=1, being explicit about why the passage from one ε to all ε is legitimate.
    4. (d)Explain why the same argument cannot be run with Chebyshev's inequality in place of Hoeffding's, and compare the hypothesis used here with the finite-fourth-moment hypothesis under which the strong law can also be proved by this mechanism.

    Solution

    (a) A summable bound. The Xi​ are independent and bounded in [a,b], so Hoeffding's two-sided inequality applies with ∑i​(bi​−ai​)2=n(b−a)2 and t=nε:

    P(An​)=P(∣Sn​−nμ∣≥nε)≤2exp(−n(b−a)22n2ε2​)=2qn,q=exp(−(b−a)22ε2​).

    Since ε>0 and b>a, the exponent is strictly negative, so 0<q<1 and the bounds form a convergent geometric series:

    n=1∑∞​P(An​)≤2n=1∑∞​qn=1−q2q​<∞.

    (b) Borel–Cantelli. The first Borel–Cantelli lemma says that events whose probabilities have a finite sum occur infinitely often with probability 0. So P(An​ infinitely often)=0. Let Nε​ be that null event. For ω∈/Nε​ only finitely many An​ contain ω; let N(ω) be one more than the largest such n (or 1 if there are none). Then for every n≥N(ω), ω∈/An​, that is ∣Xˉn​(ω)−μ∣<ε. This holds for every ω outside the null set Nε​, which is what "for almost every ω" means. ■

    (c) From one ε to all. Convergence Xˉn​(ω)→μ means: for every ε>0 there is N with ∣Xˉn​(ω)−μ∣<ε for n≥N. Part (b) delivers this one ε at a time, each with its own exceptional null set, and there are uncountably many ε; an uncountable union of null sets need not be null, so we cannot simply take them all. The repair is to use only ε=j1​ for j=1,2,3,….

    Apply (b) with ε=j1​ to get null sets N1/j​, and put N=⋃j≥1​N1/j​. By countable subadditivity, P(N)≤∑j​P(N1/j​)=0. Now take any ω∈/N and any ε>0. Choose j with j1​<ε. Since ω∈/N1/j​, there is Nj​(ω) with ∣Xˉn​(ω)−μ∣<j1​<ε for all n≥Nj​(ω). As ε was arbitrary, Xˉn​(ω)→μ. The convergence set therefore contains the complement of N, so

    P(Xˉn​→μ)≥1−P(N)=1.■

    The passage is legitimate because a countable family of tolerances suffices to test convergence — any ε is beaten by some j1​ — and countably many null sets union to a null set.

    (d) Why Chebyshev cannot do it. Chebyshev gives P(An​)≤nε2σ2​, and ∑n​n1​ diverges, so Borel–Cantelli has nothing to bite on. The bound tends to 0, which is the weak law, but a failure budget of ∑n1​=∞ leaves room for the running mean to wander out of (μ−ε,μ+ε) infinitely often, ever more rarely; Chebyshev cannot rule that out, and the mechanism of (b) needs a finite budget.

    The finite-fourth-moment route gets its summability from Markov applied to Sn4​, which yields P(An​)≤ε4n2C​ and ∑n21​<∞. Boundedness is a strictly stronger hypothesis than a finite fourth moment — a variable confined to [a,b] has every moment finite, with E∣X−μ∣4≤(b−a)4 — so the theorem proved here is a special case of the fourth-moment theorem. What the stronger hypothesis buys is a much better rate: geometric tails 2qn instead of n2C​, which is exactly the difference between Hoeffding and Chebyshev-type bounds seen throughout. In both proofs the structure is identical — a summable bound on the tail probabilities, Borel–Cantelli, then the countable-ε trick — and neither reaches Kolmogorov's theorem, which needs only E∣X∣<∞ and a genuinely harder argument.

  11. 11.Computation

    Let X1​,X2​,… be i.i.d. Bernoulli(p) with 0<p<1, and let p^​n​=Xˉn​. In part (c) you may use that if Wn​d​W then Wn2​d​W2, together with Slutsky's theorem.

    1. (a)State what the central limit theorem gives for n​(p^​n​−p), checking each of its hypotheses.
    2. (b)The log-odds is g(p)=log1−pp​. Find the limiting distribution of n​(g(p^​n​)−g(p)) by the delta method, and evaluate the asymptotic variance at p=41​.
    3. (c)Now take h(p)=p(1−p). Find the limit of n​(h(p^​n​)−h(p)) at p=41​. Then explain why the delta method fails at p=21​, show that at p=21​ the quantity n​(h(p^​n​)−41​) converges in probability to 0, and find the non-degenerate limit of n(h(p^​n​)−41​).
    4. (d)Compute E[h(p^​n​)] exactly for general p and n. Which inequality predicts the sign of the bias, and why does the delta method not see it?

    Solution

    (a) The CLT. The Xi​ are i.i.d. with μ=p and σ2=p(1−p). Since 0<p<1, σ2 is strictly positive and, being at most 41​, finite. All hypotheses hold, and

    n​(p^​n​−p)d​N(0, p(1−p)).

    (This is the standardised statement p(1−p)/n​p^​n​−p​d​N(0,1) with the constant p(1−p)​ multiplied back in.)

    (b) The log-odds. g(p)=logp−log(1−p), so

    g′(p)=p1​+1−p1​=p(1−p)1​,

    which is finite and non-zero on (0,1). The delta method with θ=p and τ2=p(1−p) gives

    n​(g(p^​n​)−g(p))d​N(0, [g′(p)]2p(1−p))=N(0, p(1−p)1​).

    At p=41​: p(1−p)=163​, so the asymptotic variance is 316​. The estimated log-odds has approximate standard error 16/(3n)​=3n​4​ — larger than that of p^​n​ itself by the factor ∣g′(p)∣=316​, because the logit is steep near the edges of (0,1).

    (c) A function with a stationary point. h′(p)=1−2p. At p=41​, h′(p)=21​=0, so the delta method applies:

    n​(h(p^​n​)−163​)d​N(0, (21​)2⋅163​)=N(0, 643​).

    At p=21​, h′(21​)=0, and the delta method's hypothesis g′(θ)=0 fails; its formula would predict a normal with variance 0, which is a signal that the first-order term has vanished and the scale n​ is wrong. Compute directly. Completing the square,

    h(p^​n​)−41​=p^​n​−p^​n2​−41​=−(p^​n​−21​)2,

    exactly, with no remainder. Let Wn​=n​(p^​n​−21​); by (a), Wn​d​W∼N(0,41​), so by the granted fact Wn2​d​W2. Then

    n​(h(p^​n​)−41​)=−n​Wn2​​.

    Slutsky's theorem with An​=Wn2​d​W2 and Bn​=n​1​→0 (a deterministic sequence converges in probability to its limit) gives An​Bn​d​0⋅W2=0. Convergence in distribution to a constant is convergence in probability to it, so n​(h(p^​n​)−41​)P​0.

    The right magnification is n:

    n(h(p^​n​)−41​)=−Wn2​d​−W2.

    Writing W=21​Z with Z∼N(0,1), the limit is −41​Z2: minus one quarter of a chi-squared variable with one degree of freedom. It is non-degenerate, non-normal, and never positive — which makes sense, since h has its maximum at 21​ and h(p^​n​) can only fall short of it.

    (d) The exact bias. Since E(p^​n​)=p and Var(p^​n​)=np(1−p)​,

    E(p^​n2​)=Var(p^​n​)+p2=np(1−p)​+p2,

    so

    E[h(p^​n​)]=p−np(1−p)​−p2=p(1−p)(1−n1​).

    The estimator is biased downward by np(1−p)​, at every p. Jensen's inequality predicts the sign: h′′(p)=−2<0, so h is concave and E[h(p^​n​)]≤h(E[p^​n​])=h(p), with strict inequality because h is strictly concave and p^​n​ is not constant. The delta method is blind to it because the bias is O(n1​) while the spread it describes is O(n​1​); multiplied by n​, the bias is O(n​1​)→0 and vanishes from the limit. At p=21​, where the O(n​1​) term is absent, the bias −4n1​ is exactly the mean of the limit found in (c): E[−41​Z2]=−41​, divided by n. ✓

  12. 12.Critique

    Service times X1​,X2​,… are i.i.d. Exponential(1), so μ=σ=1; take as given ρ=E∣Xi​−1∣3≈2.41 and the Berry–Esseen constant C=0.4748. Write Yn​=n​(Xˉn​−1). A student submits three claims.

    Claim A. "n=100 is above 30, so Xˉ100​ is normal. Hence P(Xˉ100​≥1.3)=P(Y100​≥3)=1−Φ(3)=0.00135, correct to three decimal places."

    Claim B. "Since Yn​d​Z with Z∼N(0,1), we have P(∣Yn​−Z∣≥ε)→0 for every ε>0: for large n the standardised mean is, with high probability, within ε of a standard normal variable."

    Claim C. "Sn​=X1​+⋯+Xn​ is approximately normal for large n, and so is X2​+⋯+Xn​. Their difference is X1​, and a difference of two approximately normal variables is approximately normal. So X1​ is approximately normal: an exponential variable is close to normal after all."

    1. (a)Each claim is wrong. For each, identify the false step and name the theorem or definition it misuses.
    2. (b)For Claim A, state precisely what Berry–Esseen guarantees about P(Y100​≥3). For Claim B, give the statement that is actually true, and prove that the student's version cannot hold by considering −Z as well as Z. For Claim C, say what the true distribution of X1​ is.
    3. (c)Give two bounds on P(Xˉ100​≥1.3) that are theorems rather than approximations: one from Cantelli's inequality and one from a Chernoff bound (derive MX​(s) first). Compare them with the student's figure.

    Solution

    (a) The three errors.

    Claim A treats the central limit theorem, an asymptotic statement about the limit n→∞, as if it delivered an exact distribution at n=100. The rule "n≥30" is folklore, not a theorem; the only theorem about finite n is Berry–Esseen, and it bounds the absolute error in the CDF, which is nowhere near three decimal places here. Claiming three-decimal accuracy in a tail probability of order 10−3 is claiming relative accuracy, which nothing provides.

    Claim B confuses convergence in distribution with convergence in probability. Yn​d​Z is a statement about the CDFs P(Yn​≤z)→Φ(z); it says nothing about the values Yn​(ω) and Z(ω) at the same outcome — indeed Z need not live on the same probability space at all. The implication d​⇒P​ holds only for a constant limit, and N(0,1) is not constant.

    Claim C applies the CLT to an individual summand. The theorem concerns the sum on the scale σn​ — the CDF of (Sn​−n)/n​ is close to Φ — and closeness on that scale says nothing on the scale of a single X1​, which is of order 1. The two "approximately normal" sums differ by an amount that is negligible relative to n​ and not negligible relative to 1, and their approximation errors, which are of the same order as X1​ itself, are exactly what the difference consists of. The step "a difference of approximately normal variables is approximately normal" also requires joint normality and control of the errors, neither of which is available.

    (b) The correct statements.

    A. Berry–Esseen says that for every n and every z,

    ∣P(Yn​≤z)−Φ(z)∣≤σ3n​Cρ​=100.4748×2.41​≈0.114(n=100).

    So all that is guaranteed is ∣P(Y100​≥3)−0.00135∣≤0.114, that is P(Xˉ100​≥1.3)∈[0,0.116]. The student's three decimals are not justified. Sanity check against the truth: S100​ is exactly Gamma(100,1), and the exact value of P(S100​≥130) is about 0.0028 — roughly double the normal figure. The absolute error, about 0.0014, sits comfortably inside the Berry–Esseen envelope; the relative error is about 100%. And the sign is the one skewness predicts: an exponential population has a heavy right tail, and the normal approximation underestimates right-tail probabilities.

    B. The true statement is: for every real z, P(Yn​≤z)→Φ(z). Nothing more. To see that the student's version is impossible, note that −Z is also N(0,1), so Yn​d​−Z just as well, and the student's reasoning would equally give P(∣Yn​+Z∣≥ε)→0. But 2Z=(Yn​+Z)−(Yn​−Z), so by the triangle inequality ∣2Z∣≤∣Yn​−Z∣+∣Yn​+Z∣, and if ∣2Z∣≥2ε then at least one of the two terms is ≥ε. Hence

    P(∣Z∣≥ε)≤P(∣Yn​−Z∣≥ε)+P(∣Yn​+Z∣≥ε)⟶0.

    The left side does not depend on n and equals 2(1−Φ(ε))>0. Contradiction; so no such Z exists, whatever space it is built on.

    C. X1​ is exactly Exponential(1), for every n, with density e−x on x>0 — as skewed as it ever was. The CLT washes the shape of the summands out of the sum; it does not reshape the summands.

    (c) Two bounds that are theorems.

    Cantelli. E(Xˉ100​)=1 and Var(Xˉ100​)=1001​. With t=0.3,

    P(Xˉ100​−1≥0.3)≤1/100+9/1001/100​=101​.

    (Chebyshev would give 9/1001/100​=91​, slightly worse and two-sided.)

    Chernoff. First the MGF: for s<1,

    MX​(s)=∫0∞​esxe−xdx=∫0∞​e−(1−s)xdx=1−s1​,

    finite for every s in (0,1), so the Chernoff bound is available. By independence MS100​​(s)=(1−s)−100, and the event is {S100​≥130}, so for 0<s<1

    P(S100​≥130)≤e−130s(1−s)−100=exp(f(s)),f(s)=−130s−100log(1−s).

    Then f′(s)=−130+1−s100​, which vanishes at 1−s=1310​, i.e. s∗=133​∈(0,1), and f′′(s)=(1−s)2100​>0 confirms a minimum. Substituting,

    f(s∗)=−130⋅133​−100log1310​=−30+100log1013​,

    so

    P(Xˉ100​≥1.3)≤e−30(1013​)100=(1.3e−0.3)100.

    Sanity check: log1.3≈0.2624, so the exponent is 100(0.2624−0.3)≈−3.76 and the bound is about 0.023.

    Comparison. Cantelli 101​=0.1 and Chernoff ≈0.023 are both guarantees valid at n=100; the exact value ≈0.0028 lies below both, as it must; and the student's 0.00135 lies below the exact value — it is not a bound at all, but an approximation that happens to err on the optimistic side by a factor of about two. The right way to read the three numbers is: Chernoff certifies the probability is under 2.5%, the CLT suggests it is of order 0.1% to 0.3%, and only the first sentence is a theorem.

← Back to the question sheet

CalcPath·Free university mathematics

SubjectsProblem setsProgressFeedbackAbout