Balanced random cut lower bound 2026-10-03
If a graph has even order and edges, it has a cut with equally sized parts and at leastcrossing edges. Choose one part uniformly among the -vertex subsets. A fixed edge is separated with probabilityand apply linearity of expectation.
Bernoulli distribution Created 2026-09-28 Updated 2026-10-14
A Bernoulli random variable records one success as and one failure as . For , its probability mass function iswith zero mass elsewhere. The terms success and failure merely name outcomes; success need not be desirable. Any event produces such a variable through its indicator random variable , with . A single Bernoulli distribution requires no independence assumption; independence becomes relevant when several trials are combined.
Because , the expected value and variance follow immediately:For a constructed trial with , these are and . The variance is greatest at , where it equals , since . At or , the outcome is certain and the variance vanishes.
The beauty of an indicator random variable is that counting becomes addition: summing such indicators counts successes, and the linearity of expectation gives the expected count even when the indicators are dependent. With independence and a shared , the full count law is the binomial distribution. These models are summarized in Penn State STAT 504, discrete distributions.
A historical anchor is Bernoulli's posthumous Ars conjectandi: its original title page identifies the author and records publication at Basel in 1713. This documents the book's publication, rather than establishing priority for the modern name Bernoulli distribution. See Ars conjectandi, original title page, ETH Library.
Bernoulli-Laplace diffusion model 2026-10-25
Two urns each contain balls, with red and blue balls in total. Independently choose one ball uniformly from each urn and exchange them. The red count in the first urn is a Markov chain on . Its upward and downward probabilities are displayed above, and the probability of remaining at is . Thus . Starting from , linearity of expectation gives , with the initial value separately understood when . Random exchanges drive the expected imbalance toward zero.
Binomial distribution Created 2026-09-24 Updated 2026-10-14
The binomial distribution counts successes in a fixed number of independent Bernoulli trials with common success probability . Equivalently,Here is a nonnegative integer and . The binomial coefficient counts placements of the successes; each particular arrangement has probability . The binomial theorem makes the masses sum to . At all mass is at zero, and at all mass is at ; these endpoint laws can be read directly without interpreting .
The linearity of expectation and addition of variances for independent random variables giveThe fixed trial count, common success probability, and joint independence are substantive model assumptions. Sampling uniformly without replacement from a finite population instead leads to a hypergeometric distribution. Independent trials with different success probabilities generally give a Poisson binomial distribution. Common marginal success probabilities alone are insufficient: if all ten indicators equal the same Bernoulli random variable with , their sum is zero with probability or ten with probability . Its mean is still three, but its variance is . The standard construction is given in Penn State STAT 504, binomial distribution.
For an exact constructed example, let each of ten independent trials choose uniformly from ten labelled tokens, with replacement, and mark three tokens as successes. Then and . Exactly three successes have probabilityThe mean is , the variance is , and the standard deviation is . Zero successes have probability , so at least one success has probability . A single count calculation replaces enumeration of all equally likely token sequences.
Birthday collision count 2026-10-14
The birthday collision count counts equal-label unordered pairs. Write it as a sum of indicator random variables:This uses linearity of expectation; mutual independence of the pair indicators is unnecessary. For 23 uniform calendar labels, , whereas . A configuration with three equal labels contributes three pairs, so counting pairs and recording whether any pair exists are different random variables.
Treating every pair event as mutually independent would give the wrong exact formula. For three draws, and force . The probability that all three equalities hold is , while the product of their individual probabilities is for . This distinguishes independence of the original label draws from mutual independence of events built from overlapping draws.
Birthday probability for hash outputs 2026-10-13
How soon should a hash collision appear? Specify the probability distribution of the outputs first. Evaluate distinct keys and assume their hash values are independent random variables, each with the uniform distribution on a finite set of possible outputs. The randomness may come from an idealized randomly chosen hash function; a fixed hash function and a fixed list of keys have a definite outcome. Sampling the same key twice creates a repeated hash value without creating a hash collision, so distinctness of the queried keys matters.
This is the existing birthday problem, with hash values in place of birthdays. Let be the probability of at least one equal pair. The exact formula isThe empty product is , so . Given previous distinct hash values, the next value avoids them with conditional probability . Multiply these conditional chances and subtract from . Equivalently, for , exactly of the equally likely ordered outcomes have no repeated value. This derivation also explains why independence of all outputs, rather than merely uniform individual values, is required.[ref]
https://cacr.uwaterloo.ca/hac/about/chap2.pdf. Menezes, van Oorschot and Vanstone, Handbook of Applied Cryptography, section 2.1.5, Fact 2.27(i), birthday probability
For , the exact hash collision probabilities are , , and . Thus only distinct queries already exceed a one-half chance of some pair matching. The striking feature is the number of opportunities: queries supply pairs. By linearity of expectation, the expected value of the number of equal pairs is . This expectation counts pairs, not the probability of at least one pair; three equal outputs contribute three pairs in one outcome. The union bound gives .
Using the natural logarithm expansion in the exact product givesFor , the omitted correction in the logarithm of the no-collision probability is . Thus the approximation is controlled when is small; in particular it becomes accurate at the birthday scale proportional to as increases. The inequality also shows that the displayed approximation is a lower bound for when . Setting its exponent to gives the approximate half-probability sample size for large .
For comparison, under the same independent uniform model the probability of hitting one previously fixed digest in queries isEach query supplies one chance to hit , instead of a growing number of possible pairs. For , , and the first integer with is . In a toy model with possible -bit digests, the any-pair transition therefore has scale queries, while the fixed-target transition has scale . This explains the birthday-search distinction between collision resistance and preimage resistance.[ref]
https://cacr.uwaterloo.ca/hac/about/chap9.pdf. Menezes, van Oorschot and Vanstone, Handbook of Applied Cryptography, Fact 9.33 and section 9.7.1, generic collision versus preimage searches
The assumptions are essential. Uniform marginals alone do not give the product formula: if all equal one shared uniform random variable, every distinct pair collides with probability . A universal hash family bounds each pair's hash collision probability, but that condition alone does not supply joint independence of every output. Nor does a fixed output length establish collision resistance or preimage resistance: the toy has , making deliberate hash collisions immediate. The curves describe the specified model and do not establish the security of a concrete cryptographic hash function.
Boole's inequality 2026-10-14
Boole's inequality, also called the union bound, bounds the probability that at least one of several events occurs by adding their individual probabilities. For a finite or countable family of events in the same probability space,The union includes outcomes where several events occur together. There is no independence assumption: adding the individual probabilities counts such outcomes repeatedly, which can only make the sum larger. The cap at one uses the total mass of a probability measure. For infinitely many events, the sum is a nonnegative series, possibly infinite; an infinite sum gives only the bound one. This is countable subadditivity of a measure specialized to a probability measure. See Probability: Theory and Examples (fifth edition) by Rick Durrett (Section 1.1, Theorem 1.1.1(ii), printed p. 2).
For example, choose uniformly from the twelve outcomes , using the discrete uniform distribution. Put . If , these are disjoint events and their union has probability , exactly the union bound. If , the union has only six outcomes, so its exact probability is , although both individual probabilities are still and the bound is still . If , the exact probability falls to with the same bound. These examples isolate overlap in the union bound by keeping the individual probabilities fixed.
The same individual event probabilities give different exact union probabilities as overlap increases
. Each panel is a fully specified discrete uniform distribution on twelve numbered outcomes. Blue means only, orange means only, purple means their intersection, and white means neither. The bottom bars compare the exact union probability with the sum of the individual probabilities. The three unions contain eight, six, and four outcomes; the sum counts eight in every panel. Details.The union bound is useful when each event is easy to control but their joint behavior is difficult to determine. A short proof uses indicator functions: at every outcome,Taking expected values and using linearity of expectation proves the finite bound.[ref] For a countable family, the finite unions increase to the full union; continuity of probability passes the finite inequalities to the limit. The closure of a sigma-algebra under countable unions ensures that this limiting union is an event. For the continuity of probability step, see Probability: Theory and Examples (fifth edition) by Rick Durrett (Section 1.1, Theorem 1.1.1(iii), printed p. 2).
Bootstrap sample Created 2026-09-24 Updated 2026-10-18
A bootstrap sample of size is drawn by sampling with replacement from the observed data slots. Some observations occur repeatedly. For a given slot, every draw misses it with probability , so its omission probability after independent draws isBy linearity of expectation, the expected number of omitted slots is , whether or not their omission events are independent. For the three-observation exact bootstrap distribution for three observations, an individual slot is omitted with probability and the expected number of omitted slots is . This finite-sample calculation explains both repeated values and incomplete coverage; is a limiting expected proportion, not an exact fraction in every resample.
Conditional expectations cut example 2026-10-18
Consider the following original five-vertex simple graph, where denotes the undirected edge :Its seven edges give initial expected value . Use vertex order and choose zero whenever the two child conditional expectations tie.
The complete decision ledger is below. A prefix lists fixed labels in vertex order; all later labels remain hypothetically independent fair bits. Each candidate entry is the conditional expectation of the final cut of a graph, including the contribution of unresolved edges.
| Prefix before choice | Next vertex | Set to 0 | Set to 1 | Chosen label | Retained conditional expectation |
|---|---|---|---|---|---|
| Empty | |||||
For example, after , edge is fixed crossing and the other six edges are unresolved, giving . Setting fixes crossing and noncrossing, leaving four unresolved edges: . Setting instead fixes crossing and noncrossing, giving the same conditional expectation.
Conditional expected cut values along every chosen branch
. At each step, both candidate values are computed by the conditional expectation cut formula. The highlighted cell is chosen; ties choose zero. Below, the retained conditional expectation follows , starting before any label is fixed. The last value is the actual size of the resulting cut of a graph, rather than an average over remaining choices. Details.The final labels are , so the two sides are and . The five crossing edges are ; do not cross. This exceeds , and hence also the rounded-up guarantee of four edges.
It is not a maximum cut. Labels cross all edges except , giving six. Seven are impossible because the triangle in a graph cannot have all three edges crossing a two-sided cut of a graph. An independent enumeration of all complete label assignments gives the following distribution, counting an assignment and its label-swapped counterpart separately:
| Size of cut of a graph | Number of label assignments |
|---|---|
The weighted sum is , so the average is , agreeing with linearity of expectation. Choosing in the earlier tie discards the remaining size-six completion while preserving the average of four. The method protects an expected value guarantee; it need not preserve the best possible completion.
Conditional expectations for maximum cut 2026-10-18
Let be a finite undirected simple graph, with vertices and edges. A cut of a graph assigns each vertex a label zero or one; an edge crosses precisely when its endpoints have different labels. Its size is the number of crossing edges. A maximum cut maximizes that size.
For the analysis, assign independent fair bits to the vertices. For each edge , the indicator random variable has expected value : exactly two of the four equally likely endpoint assignments cross. Thus linearity of expectation gives the random cut lower bound:Linearity of expectation does not require the indicator random variables to be independent. What matters here is the stipulated distribution of the endpoint bits.
Convolution Created 2026-09-24 Updated 2026-10-14
Convolution combines two functions by adding their products over all ways of splitting an argument. For Lebesgue integrable functions on the real line, their convolution isThe arguments and always add to . For in the L1 space, the integral exists almost everywhere and defines another element of the L1 space, with by Young's convolution inequality. Particular examples below have a value at every .
To see what the integral counts, take the indicator function . The product equals one exactly when belongs to both intervals and . Its integral is their overlap length, soAt , the overlap is and the output is ; at , the two intervals coincide and the output is one. The result is the shifted triangular function . As changes, is a reflected and translated copy of : the moving overlap makes the entire graph visible without a difficult integration.
The same calculation gives the probability distribution of a sum of two independent random variables. If are independent random variables with the continuous uniform distribution on , each has probability density function . Their sum has probability density function by convolution of probability densities. The probability density function at one is larger than near zero or two because there are more combinations of the two inputs giving that sum. Its total integral is one; its expected value is one and its variance is . These follow equally from integrating the triangular function or from linearity of expectation and variance additivity for independent random variables.
Convolution also gives a useful averaging operation. For , let . Thenthe mean of in a neighborhood of . A smaller examines a smaller neighborhood. For a continuous function , this mean tends to as , an example of an approximate identity. Integrating a sharp input against a distributed convolution kernel can produce a smoother output; the triangular example turns two discontinuous inputs into a continuous output.
In signal processing, a linear time-invariant system combines shifted copies of its impulse response by the same rule. In discrete time, an input value at index contributes a scaled response at index , and discrete convolution sums these contributions. This is the superposition interpretation developed in Oppenheim, MIT Signals and Systems, Lecture 4, convolution sums and integrals. The convolution theorem then gives another description: transform both inputs with a Fourier transform and multiply their transforms. Combining shifts, combining independent quantities and multiplying frequency descriptions are three faces of the same operation.
Coordinate revealment 2026-10-14
The coordinate revealment of coordinate for a decision tree under input probability distribution isIt depends on the chosen decision tree and the probability distribution, not just on the Boolean function. Since no coordinate is queried twice on a graph path, indicator functions giveThe second equality uses linearity of expectation; it does not require independence of random variables or a product measure. The cited paper defines these inspection probabilities and their sum for product measures; the displayed indicator function argument extends the identity to any input probability distribution.[ref]
For the three-bit majority decision tree under the discrete uniform distribution, , whose sum is . Reading coordinate 3 first, then coordinate 1, and stopping on agreement gives the same majority function, depth and expected query cost, but coordinate revealments . The asymmetry belongs to the chosen query order. Parity gives for every exact decision tree without repeated queries. If repeated queries were charged, inspection probabilities would count distinct coordinates; total query count would instead require expected multiplicities.
If are independent random variables, each with the uniform distribution on for , then has the symmetric triangular distributionThe convolution of probability densities gives . The overlap of these two intervals has length for and is empty otherwise, proving the formula. By linearity of expectation and the variance of a sum,For , its upper-tail probability is .
A useful model for elapsed time measured from two independently truncated clock readings uses as the display resolution and as the endpoint-offset difference. Independence is essential: uniform marginal probability distributions alone do not imply this triangular distribution. For example gives with certainty. In general, with the same uniform marginals, .
Dobiński's formula 2026-10-25
For with Poisson distribution of mean one, every factorial moment satisfies . The polynomial identityexpresses powers in terms of falling factorials, where are Stirling numbers of the second kind. Substituting and using linearity of expectation provesOn the other hand, the probability mass function gives . This proves Dobiński's formula and explains why a count of set partitions is a moment of a Poisson distribution. For example, . At , take also for , obtaining . For each fixed , the ratio test proves convergence of the displayed infinite sum.
Expected cover time of a cycle Created 2026-10-05 Updated 2026-10-14
A simple random walk on a cycle graph of vertices has expected value of its cover time equal to , from any starting vertex. Lift the walk to the integers using the same increments. Its contiguous visited interval covers all residues precisely when it reaches length . Sum the expected time to expand a random-walk range, , using linearity of expectation; no independence of expansion times is needed.
Expected frequency 2026-10-25
The expected value of the number of observations in a category under a specified statistical model. For observations with common category probability , linearity of expectation gives ; the calculation does not itself require independence. In a contingency table, fitting independence gives . These are model-based counts, which may be fractional, rather than an additional set of observed responses. Pearson's chi-squared test compares observed counts with their corresponding expected frequencies.
Expected generation size in a Galton-Watson process Created 2026-09-29 Updated 2026-10-14
For a Galton-Watson process starting with one ancestor and finite offspring mean , the expected value of the generation size is . At it is one, including when ; zero offspring mean forces every later generation to be empty. With initial ancestors, the expected value is .
For , , the offspring mean is . The exact calculations used in the generation probability mass function figure under Galton-Watson process give:
Nearly half the families are already empty at generation six, yet the expected value exceeds three. Since empty families contribute zero,whenever . At generation six this conditional expectation is about . Conditioning on being nonempty now differs from conditioning on eventual survival: some presently nonempty families will still die out. The eventual branching extinction probability is , even as the unconditional expected value grows without bound.
The expected value is useful for computing average population counts and, in the subcritical case, the expected value of the total progeny of a branching process. Its simple formula comes from one local calculation: linearity of expectation and the independent and identically distributed offspring counts giveThe tower property of conditional expectation gives the second equality; starting from gives the formula. It describes an average over the generation probability distribution, not deterministic growth of an individual family. [ref]
https://www.uni-muenster.de/Stochastik/lehre/WS1011/SpezielleStochastischeProzesse/Ch_1.pdf. University of Münster branching-process notes, Section 1.3, Proposition 1.4
Expected number of coordinatewise maxima 2026-10-14
For independent uniform points in a rectangle, condition on one point with normalized coordinates . It is a maximal external point if all others avoid the upper-right rectangle of area , giving conditional probability . Integrating gives , where is a harmonic number. Linearity of expectation over the indicator random variables gives . The same answer holds for independent continuous coordinate distributions, by transforming each coordinate with its distribution function.
Expected number of observed categories 2026-10-31
In independent trials with category probabilities , let count the distinct categories observed. Write it as the sum of indicator random variables for the categories' appearances. Category is absent with probability , so linearity of expectation gives the displayed formula. The appearance indicators need not be independent. For equally likely categories the expression becomes ; uneven probabilities can substantially delay observation of rare categories.
Expected value Created 2026-09-24 Updated 2026-10-18
An expected value is the probability-weighted arithmetic mean of a real-valued random variable. On a probability space , its general definition is the Lebesgue integralwhere is the probability distribution of . For an integrable random variable, this is a finite real number. With a probability mass function , use ; with a probability density function , use . These are two ways of computing the same weighted average, rather than different definitions for different experiments.
For example, suppose takes the values with probabilities . ThenThe most likely outcome is , and is not a possible outcome at all. The expected value summarizes all outcomes and their weights; it need not predict the result of one trial. Geometrically, placing masses equal to the probability masses at the outcome positions gives a center of mass at , since . This balance-point interpretation also explains the connection to a weighted arithmetic mean. [ref].
For the dimensionless random variable with probability density function on , the expected value is . Integrating the probability density function itself gives one; to compute the expected value, multiply by the outcome first. [ref]
https://ocw.mit.edu/courses/18-05-introduction-to-probability-and-statistics-spring-2022/mit18_05_s22_class06-prep-a.pdf. Orloff and Bloom, expectation for continuous random variables
.Expected value balances probability masses, or integrates outcomes weighted by a probability density function
. The left panel's dashed line marks , even though the only possible outcomes are . In the right panel, the shaded area under is ; the area under the dashed probability density function is one. Both examples use dimensionless outcomes. Details.Why is this useful? Linearity of expectation lets us compute an average total by adding average contributions, even for dependent random variables. And for independent and identically distributed integrable random variables, the strong law of large numbers says their sample mean approaches their common expected value almost surely. The theorem supplies the link to repeated observations; the weighted-average definition itself does not promise that any particular finite run will be close to the expected value.
There is a useful historical connection to valuing uncertain rewards. In his 1657 De ratiociniis in ludo aleae, Christiaan Huygens assigns the value to equally likely rewards , and when they have equally likely chances. These are the finite weighted-average formulas for expected value. His opening discussion asks how to divide the stakes when a game stops before completion, connecting probability to a concrete question about an unfinished contest. [ref]
https://math.dartmouth.edu/~doyle/docs/huygens/huygens.pdf. Huygens, De ratiociniis in ludo aleae, 1657; reprint of the 1714 English translation, introduction and Propositions I–III
.





