Biased random walk Created 2026-09-24 Updated 2026-10-14
A biased random walk on the integer line takes unit steps right and left with unequal probabilities and , using independent and identically distributed random variables as increments. For , the expected value is : positive for and negative for . Changing to reverses the preferred direction. The exact endpoint probability mass function is given under simple random walk on the integer line.
For example, with each step has expected value and variance . After steps,
The displacement of the expected value from zero is about standard deviations, yet individual sample paths still move left as well as right, as the figure under simple random walk illustrates. Bias lets this elementary stochastic process model an average directional tendency while retaining fluctuations. Boundary and return questions have their own treatments under gambler's ruin and the specialized children below.
Binomial count Created 2026-10-20 Updated 2026-11-05
A binomial count records the number of successes in independent Bernoulli trials with common success probability . It is the sum of the success indicator variables, so , with expected value and variance . Ten independent coin flips give a binomial count of heads; ten dependent outcomes generally do not, even if each marginal success probability is .
Binomial thinning 2026-10-31
Retain each of objects independently with probability , independently of the nonnegative integer-valued random variable . The retained count has the displayed conditional binomial distribution. The probability generating function of an independent random sum gives . If has finite variance, the law of total expectation and law of total variance give
The first term is the average conditional variance of the independent retention decisions; the second is the variance in their conditional expected value.
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 is
The 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]
Figure 1.
Any matching pair appears much sooner than a match to one fixed target
. Computed probabilities for under the independent uniform hash-output model. Left: the exact birthday problem formula and its exponential approximation over the first 48 distinct queries. Right: any-pair collisions and hitting a digest fixed before the queries, over 256 distinct queries. Their first integer sample sizes reaching 50 percent are and . These are theoretical toy curves, not measurements of a real cryptographic hash function. Details.
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 gives
For , 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 is
Each 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]
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.
Boltzmann distribution Created 2026-09-28 Updated 2026-10-14
The Boltzmann distribution assigns probabilities to individual microstates in a canonical ensemble, a statistical ensemble for thermal contact. The system exchanges energy with a thermal reservoir at fixed positive absolute temperature , while its particle number and external parameters, such as volume, stay fixed. The thermal reservoir is large enough that these exchanges barely change its temperature; the coupling permits thermal equilibrium but contributes negligible interaction energy. All the microstates considered have the same . No chemical potential term is needed in their weights; fixed does not imply that the chemical potential is zero.
For a finite discrete set of microstates with energies , write
Here is the Boltzmann constant, is the inverse temperature, is a Boltzmann factor, and is the partition function. The Boltzmann factor is a weight; dividing by the partition function makes it a probability. [ref]
The useful surprise is that a fixed temperature still permits thermal fluctuations in the system's energy. The Boltzmann distribution predicts their probabilities and expected values without tracking every microscopic exchange. Its exponential function also makes rare excited microstates sensitive to temperature: an energy gap much larger than gives strong Boltzmann suppression, while warming increases their relative populations. A population ratio can therefore reveal a gap or serve as a thermometer, provided thermal equilibrium and the relevant state degeneracies are known.
Historically, Josiah Willard Gibbs's Elementary Principles in Statistical Mechanics (1902) presents the canonical ensemble in Chapter IV. His equations 90–92 give an exponential function of energy and its normalization, in classical phase space. This classical formulation exhibits the same weighting principle. [ref] [ref]
Consider two distinguishable, noninteracting two-level systems, each with energies and . Their four microstates have total energies . Thus the three energy macrostates have state degeneracies . This is a stipulated finite model, not a measured material.
Set . The four individual Boltzmann factors are , so the partition function and aggregate probabilities are
Each of the two middle microstates has probability , while their shared energy macrostate has probability .
At the temperature satisfying , the Boltzmann factor is and the partition function is . Therefore
The middle energy is as likely as the ground state energy because its state degeneracy is twice as large. Yet each individual middle microstate is only half as likely as the ground state microstate. The diagram places the four energies beside their individual probabilities, then shows the sums within each macrostate.
Figure 1.
Four microstates and three energy macrostates at a gap of
. Details.
The expected value of energy follows directly by weighting the three possible energies:
At this is . An individual energy measurement still returns , or ; the expected value describes the ensemble average, rather than a fourth possible measured energy.
Boltzmann distribution ratios and energy reference Created 2026-10-14 Updated 2026-10-25
For two individual microstates, the partition function cancels:
At positive temperature, a higher-energy individual microstate is less probable, and equal-energy individual microstates are equally probable. For example, a gap , using the natural logarithm, gives . This comparison concerns individual microstates; a whole macrostate can contain several of them.
Changing the reference for energy leaves every probability unchanged. If all energies become for the same constant , then
The partition function itself changes, but its common factor cancels in the Boltzmann distribution. Thus choosing a ground state energy of zero simplifies calculations without changing populations. The expected value of energy shifts by , as it must when its reference changes.
Keep the gap fixed and vary positive temperature. With , the Boltzmann factor is . In the four-microstate example, as , : the unique ground state has probability tending to one, and the other microstates have probabilities tending to zero. If several microstates instead shared the lowest energy, their state degeneracy would split that limiting population equally.
As in this fixed finite model, all four individual Boltzmann factors tend to one, so all four individual microstates have probability tending to . The three aggregate probabilities instead approach
The equal-population limit applies to this finite set of microstates. An infinite collection of microstates cannot all have the same positive normalized probability, so the statement cannot be extended to an unbounded energy spectrum. Real systems may also acquire additional accessible microstates as temperature rises.
The plotted crossing occurs at , where . For larger positive temperatures, the middle macrostate is more probable than the lowest-energy macrostate, although the lowest-energy individual microstate remains more probable than either individual middle microstate. The expected value of energy rises from zero toward in this finite model.
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.
Figure 1.
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).
Boundary bias of local constant regression Created 2026-10-07 Updated 2026-11-05
A local constant estimator reproduces constants but need not reproduce an affine regression function near a support boundary. Let , take and the regression kernel , and suppose . At target zero, the noiseless Nadaraya–Watson estimator averages for . Whenever , its exact fitted value is
Since , this is the bias of an estimator when observation errors have zero expected value. Under and , it is asymptotic to . The one-sided boundary window has a nonzero first coordinate moment, explaining the first-order bias. An invertible local linear regression fit reproduces exactly at the target and removes this term. If , the local constant average is undefined rather than zero, so a nonempty window is a necessary condition.
A covariance matrix describes second moments, but does not specify a complete probability distribution. A bounded model can realize a prescribed covariance matrix exactly while keeping every possible error finite. This is useful for checking a nonlinear measurement model without accidentally generating physically impossible inputs; it is a constructed model, not evidence that an actual instrument has that distribution.
For two errors with desired standard deviations and correlation coefficient , let be independent random variables with the Rademacher distribution: each takes and with probability . Set
Both expected values vanish. Since and , direct expansion gives
There are at most four distinct states, each obtained from an equally likely sign pair. Also and . At the second sign has no effect, leaving only two distinct states. If either standard deviation is zero, the corresponding error is zero and its correlation coefficient is undefined; the covariance construction still makes sense.
More generally, a finite-support realization of a covariance matrix exists for every real symmetric positive semidefinite matrix . By the spectral theorem, write using its positive eigenvalues and corresponding orthonormal eigenvectors, and put . Let have independent Rademacher distribution coordinates. The random vector then satisfies
The identity matrix appears because the signs have unit variance and zero pairwise covariance. There are at most distinct states, with component bounds by the Cauchy-Schwarz inequality. When , take . Thus singular covariance matrices are allowed; a nonsingular Cholesky decomposition is not required.
This full sign model also makes robust linear constraints for bounded covariance models exact. To require for every sign state, choose each sign to minimize its contribution. The result is the necessary and sufficient condition
where is the L1 norm. This is a small robust optimization calculation. A physical domain must be checked in the chosen units; clipping inadmissible samples afterwards generally changes both the probability distribution and its covariance matrix.
For example, in correlated threshold and amplitude errors in RC timing, take nominal amplitude , threshold , , and . Use and . Every state has , while the minimum amplitude-minus-threshold is
All four states therefore remain within the RC threshold-crossing time domain. Enumerating them supplies an exact check for this particular bounded error model; it does not establish the instrument's actual tail probabilities.
The nonuniqueness of bounded uncertainty laws with a fixed covariance is visible even in two dimensions. Let
For independent fair signs , both and have covariance matrix because is an orthogonal matrix. Yet the first coordinate of is always , whereas that of is with probability and each of with probability . Hence is respectively zero and one half, despite identical expected values and covariance matrices. A nonlinear risk calculation needs more than those moments.
Figure 1.
Two bounded four-state error models with identical covariance and different tail probabilities. All points are constructed, not measured data.
Details.
Branching bound for contact-process survival Created 2026-10-14 Updated 2026-11-05
With recovery rate one, the number of infected sites in a nearest-neighbour contact process on has death rate equal to its size and birth rate at most times its size. It is dominated by a linear birth-death branching process with these per-particle rates. In particular, from one infection its expected size is at most , so its Survival probability is zero when . This proves the displayed lower bound on the critical rate.
Let be the branching extinction probability of a Galton-Watson process with offspring probability generating function . Conditional on extinction, the probability of children is multiplied by : every child's descendants must also become extinct. Hence the new probability generating function is and its mean is . If , the total progeny of a branching process has conditional expected value , and unconditionally . The Markov inequality gives a finite-total-progeny tail bound without discarding the survival mass.
Bühlmann credibility premium Created 2026-10-06 Updated 2026-11-05
The Bühlmann credibility premium is the best affine mean squared error estimate of a risk’s conditional claim expected value. In the Bühlmann model it is , where . The linear least-squares projection equations use and for distinct years.
Can two readout values locate a hit between wires? Only with a specified response model. Place two readout wires at and , put , and stipulate calibrated, noiseless electric charges
These are assumptions for a toy sensor response, not the natural response law of adjacent anode wires. Under these assumptions the centroid
recovers position exactly. The apparent gain in precision comes from adding calibrated analogue information. Taking the mean of two fired wire addresses without their electric charges would instead give the fixed midpoint .
For a chosen noise model, replace the two electric charges by and , with independent random variables of zero expected value and common standard deviation . Assume and no threshold censoring. First-order expansion of the ratio gives
For stipulated and , this approximation gives at the midpoint and at either endpoint. The endpoint values describe uncensored signed channel readouts, including small negative values after baseline subtraction. They do not assume that both channels would pass a positive threshold. A ratio with a fluctuating denominator also need not have exactly zero bias; this is a local small-noise approximation.
Three original counterexamples show why calibration and selection matter:
  • If the right channel retains a relative gain , then . At , the bias is for the chosen pitch, larger than the midpoint noise estimate above.
  • Suppose symmetric electronic leakage transforms the normalized right signal to . Treating as gives a position bias . A known permits inversion; destroys position information entirely. This is a stipulated crosstalk model, not a measurement.
  • Requiring both noiseless channels to exceed accepts only : of uniformly distributed hits. Computing a position spread after that cut describes a selected sample. It does not establish improved spatial resolution for all incident hits.
Likewise, two equal hits at and have exactly the same total two-channel response as one hit at with twice the electric charge. A centroid can hide multiplicity even when each charge measurement is exact.
Diffusion enabled the lecture's Orsay interpolation, without establishing this model's linear response.[ref]
Cameron-Martin theorem for a Gaussian measure Created 2026-10-05 Updated 2026-10-06
For with injective covariance operator of a Gaussian measure, its translated law is an equivalent probability measure to if and only if , the Cameron-Martin space of a Gaussian measure. For such ,
The series has mean-square convergence and converges almost surely under , with normal distribution . Its exponential density has expected value one by the moment-generating function of a normal distribution. Finite-dimensional projections give the formula by ratios of multivariate normal densities; convergence of these likelihood ratios gives the infinite-dimensional result. The expression is only formal when the sample is outside . For , translation gives mutually singular measures.
Campbell's theorem Created 2026-10-14 Updated 2026-11-05
Let be a Poisson point process with intensity measure , and let be a real-valued measurable function. For the ordinary Poisson sum , the condition gives
If also , then
Expand the square: equal-index terms contribute , while the Poisson factorial moment measure makes distinct-index terms contribute . Subtracting the squared expected value proves the variance formula. The Campbell first-moment formula also holds for general point processes; this variance identity uses the Poisson assumption.[ref]
Square integrability alone is insufficient for the ordinary sum on an infinite-intensity space. Take intensity on and . Then , but the sum is infinite almost surely: the ordered points satisfy by the strong law for Poisson arrival times, so comparison with the harmonic series proves divergence.
For this same , the compensated Poisson integral exists as a mean-zero limit under convergence in Lp with and has variance . Its definition is the L2 construction of compensated Poisson integrals, rather than subtraction of two infinite ordinary integrals. When the total intensity is finite, Cauchy-Schwarz inequality makes L2 imply L1, explaining why the shorter variance statement works in that special case.[ref]
Cantelli inequality Created 2026-10-06 Updated 2026-10-14
Cantelli's inequality uses a mean and variance to control deviations in one specified direction. For a real random variable with expected value , finite variance , and ,
Applying the same statement to gives the lower tail probability bound . No independence or particular probability distribution is required. If , the random variable equals almost surely and both positive-threshold tail probabilities are zero.
For variance one and a threshold two above the mean, the upper-tail probability is at most . Applying the two-sided Chebyshev's inequality to contain that upper event would give the weaker bound . For the standard normal distribution, the actual upper tail probability at two is about , much smaller than either bound. Yet the two-point probability distribution in equality in Cantelli's inequality attains , showing why the smaller Gaussian value cannot be promised from these two moments alone.
Figure 1.
Cantelli's inequality sharpens a variance-only upper-tail bound and is exact for a two-point probability distribution
. Left: actual upper tail probabilities for the standard normal distribution are compared with Cantelli's inequality and the capped two-sided Chebyshev's inequality used as an upper-tail bound. Right: masses at and at two have mean zero and variance one. The upper mass is included by the non-strict threshold . These are specified mathematical models, not observations. Details.
A short explanation is to centre and choose a nonnegative shift . On , the square is at least , so Markov's inequality gives
The best shift is , giving the displayed bound. Choosing the shift before squaring exploits the direction of the deviation; squaring the unshifted random variable treats both directions together. This shifted-square proof is also the strategy requested in the University of Utah's 2005 qualifying problem on Cantelli's inequality. [ref].
The one-sided improvement should be used for a one-sided question. Adding upper and lower bounds by the union bound gives for . When , that is at least the Chebyshev's inequality bound ; when , both two-sided expressions exceed one and must be capped. The separate one-sided bounds generally cannot be attained simultaneously by the same probability distribution.
Capped geometric waiting time Created 2026-10-07 Updated 2026-11-05
For a positive-integer geometric distribution with , the capped time has masses for and at . The last mass includes all later arrivals, not only . Its probability generating function and expected value are
The expectation follows either by differentiating the PGF or summing the tail probabilities up to .
Capture-recapture model 2026-10-14
A capture-recapture model is a statistical model for repeated observations of identifiable individuals, including those missed on some occasions. A closed-population capture-recapture model estimates a fixed population cardinality; models allowing individuals to enter or leave can instead describe survival and recruitment. The sampling assumptions determine which likelihood function is appropriate.
For the two-sample closed-population capture-recapture model, condition on the sample sizes and . If the second sample selects distinct individuals from by simple random sampling, then the overlap has the hypergeometric distribution:
Here is an integer and the probability mass function is zero outside these bounds. The binomial coefficients count choices of marked and unmarked individuals, divided by all equally likely size- subsets. The hypergeometric distribution has expected value
Equating the observed overlap with this expected value gives the Lincoln-Petersen estimator. The underlying sampling without replacement, probability mass function, and expected value are developed in Raymond P. Guiteras, MIT 14.30 hypergeometric distribution handout, §§1–4 and 8.
For the toy counts , , and , hold the observations fixed and vary the unknown integer . The likelihood function is
Values below forty cannot contain the observed set union. Exact comparison of consecutive likelihoods gives two tied maximum-likelihood estimates, and . The Lincoln-Petersen estimator returns ; the Chapman estimator returns and is a different rule for estimation.
Figure 1.
Relative likelihood for the toy overlap: integer maxima at 99 and 100, ratio estimate 100, and Chapman estimate 90
. Details.
The vertical scale is . This relative likelihood compares how well candidate statistical parameters explain the same observations; it is not a posterior probability. The displayed range is only a plotting window. The likelihood function remains positive for every integer and tends to zero as increases, so the curve has a continuing right tail. The data do not justify truncating statistical inference at three hundred. The conditional hypergeometric distribution formulation also appears in Louis-Paul Rivest and Mamadou Yauck, Small Sample Estimators for Two-way Capture Recapture Experiments, §3, equation (5).
Zero recaptures require care. With and positive , the Lincoln-Petersen estimator has no finite ratio, but the capture-recapture model still gives a valid likelihood function:
This likelihood function increases toward one as grows, so there is no finite maximum-likelihood estimate. For the same sample sizes twenty and twenty-five with zero overlap, forty-five distinct individuals would be observed. Lack of overlap supplies a lower bound but very weak information about large population cardinalities.
In more elaborate capture-recapture models, a first-recapture array counts individuals released at occasion and next observed at . A probability of survival and a probability of detection contribute a no-observation continuation factor . The resulting likelihood function depends on both survival and detection; these probabilities need not be separately identifiable at the last observation interval. Missing-count EM for capture-recapture describes one way to fit such a model, and identifiability remains a separate issue from computing an estimator output.