This page assumes nothing. If you have never seen E[⋅], ∑, Pr[⋅], or (2n), start here. Every symbol used on the parent note is unpacked below, in an order where each idea stands on the previous one.
Before symbols, a picture. Imagine rolling a die. The number that lands up is not fixed — it depends on chance. A quantity like this is called a random variable: a number whose value is decided by an act of chance.
Figure s01 — A fair die's outcome X has six possible values, each a bar of height 61. There is no single "the value" of X; instead there is a whole spread, and the orange arrow highlights that this spread — not one number — is what a random variable really is.
Las Vegas: the running timeT is a random variable; the answer is fixed-correct.
Monte Carlo: the answer is the random variable; the time is fixed.
Before we can measure chance, we need to name the thing whose chance we measure.
Picture it as a slice of a full pie. The whole pie is "everything that could happen" and has area 1. Your event is a wedge; its area is the probability.
The multiply rule is exactly why the parent's confidence-boosting works: k independent wrong runs each of chance q give a joint chance q⋅q⋯q=qk.
Deeper foundations for these rules live in Probability and Expectation.
Figure s02 — Two coin flips drawn as separate coins with a dotted "no influence" arrow between them. Because flip 2 cannot feel flip 1, their joint chance is the product of the single-flip chances — the picture behind Pr[A∧B]=Pr[A]Pr[B].
Now the single most important symbol on the parent page — and note it is built on ∑, which we just introduced.
Picture the possible values as weights placed on a ruler, each weight sized by its probability. E[X] is the balance point where the ruler tips level.
Figure s03 — Each possible value of X is a bar whose position is the value and whose height is its probability. The orange fulcrum sits at E[X] — the exact point where the loaded ruler balances. This is why we call the expectation the "centre of gravity" of the distribution.
Figure s04 — The bars show Pr[N=k]: the chance the first success arrives on try k. They shrink geometrically because each earlier try had to fail first. The orange dashed line marks the balance point E[N]=p1 — the average number of tries.
Read each question, answer in your head, then reveal.
What is an "event" and how do we write "A and B"?
An event is a yes/no statement about a random outcome; "A and B" is written A∧B, the overlap of both.
What does Pr[A]=0.3 mean in plain words?
The event A is true about 30% of the time if you repeat the experiment forever.
When may you multiply two probabilities together?
Only when the two events are independent (one doesn't affect the other): Pr[A∧B]=Pr[A]Pr[B].
State the union bound and when it's useful.
Pr[A1∨⋯∨Am]≤∑Pr[Ai]; it bounds the chance that at least one of many bad events happens, without needing independence.
What is E[X] intuitively, and which symbol is it built from?
The long-run average / balance point of X; built from the summation ∑.
State linearity of expectation and why dependence doesn't matter.
E[X1+⋯+Xm]=E[X1]+⋯+E[Xm]; it just regroups the same summed numbers, so it never asks how the variables interact.
An indicator X is 1 on event A, else 0. What is E[X]?
E[X]=Pr[A].
You retry until success, each try succeeds with prob p. Expected tries, and the one-line reason?
p1; a failure resets you to the start (memoryless), giving E=1+(1−p)E.
Why is 1−x≤e−x true?
1−x is the tangent line of the convex curve e−x at x=0, and a convex curve stays above its tangents.
What does ln undo, and where does the topic use it?
It undoes ex (exponents); used to solve qk≤ε for k and to get Hn≈lnn.
What is (2n) and where does it appear?
The number of unordered pairs 2n(n−1); the reciprocal of Karger's single-run success probability.
State Markov's inequality in words.
A non-negative variable exceeds a times its average with probability at most a1.
See it all assembled on the parent: 3.7.19 Randomized algorithms — Las Vegas, Monte Carlo (Hinglish). Applications live in QuickSort, Quickselect, Primality Testing, and Min-Cut and Max-Flow.