Discrete probability distribution Created 2026-09-24 Updated 2026-10-14
A discrete probability distribution is a probability distribution concentrated on a finite or countable set of possible values : a random variable with this law satisfies . Its probability mass function assigns a probability to each value:
Thus the probability of an event is obtained by adding masses, rather than integrating a probability density function. The possible values need not be equally spaced, or even integers. When the relevant moments are finite, its expected value and variance are
For a constructed example, assign values masses . They sum to one; , , and . Hence the variance is . A mean can lie between possible values: no outcome here equals .
The useful organizing question is what an experiment records. One yes/no indicator random variable gives a Bernoulli distribution; a success count in a fixed number of independent attempts gives a binomial distribution; the attempt number of the first success gives a geometric distribution. A Poisson distribution describes an event count under different assumptions. Naming the quantity first helps prevent selecting a familiar formula for the wrong experiment.
Discrete random variable Created 2026-10-06 Updated 2026-10-14
A random variable is discrete when some finite or countable set has . Its probability mass function is ; these nonnegative masses sum to one. An event determined by the value has probability . Values outside may still occur on a zero-probability event without changing this definition.
Countable support need not consist of integers: a random variable constantly equal to is discrete. Integer-indexed tail-sum formulas therefore require a separate integer-valued hypothesis. For the dice sum in random variable, the expected value is and the variance is ; the same answer follows by adding the variances of its independent summands.
A time-homogeneous Discrete-time Markov chain is a sequence of random variables indexed by nonnegative integers, with the displayed conditional probabilities. Here is its natural filtration and is a row-stochastic transition matrix. The Markov property removes dependence on earlier observations once is specified; the time-homogeneous Markov property makes independent of .
Consider states (sunny) and (rainy), with the constructed transition matrix
Rows give today's state and columns tomorrow's, in order . These numbers define an illustrative model, with one step interpreted as one day; they are not estimates of real weather. Let . The law of total probability gives the recurrence relation
Subtracting makes the deviation multiply by at each step. Thus
Starting sunny gives , , and ; starting rainy gives and . The two predictions approach the same stationary distribution while retaining a shrinking trace of the initial probability distribution.
Figure 1.
Constructed sunny/rainy transitions and the exact sunny probabilities from three initial distributions.
Details.
An expected hitting time answers a different question. Starting sunny, let . Every day before the first rain remains sunny, so
This geometric distribution has finite expected value. A first-step calculation gives , with , hence days. The same result follows from the geometric series . This is a mean waiting time, not a prediction that rain first occurs exactly five days later.
A probability row vector is a stationary distribution when . The Markov chain is reversible in that law when detailed balance holds: . Multiplying those equations along a finite path gives equal forward and reversed stationary path probabilities.
Discrete-time multi-state diagnosis model Created 2026-10-06 Updated 2026-11-05
The Discrete-time multi-state diagnosis model tracks the delay between infection and diagnosis. Let be the expected number of new infections at step , with for . An infection at step has one early opportunity for diagnosis at step , with Probability . If not diagnosed early, it has a diagnosis opportunity with Probability at each step , conditional on still being undiagnosed. Assume and , with the same transition probabilities for all cohorts.
The expected early and late diagnosis counts at step are
where an empty sum is zero. Each term in the second expression is a cohort size multiplied by its Probability of avoiding early diagnosis, surviving the earlier late opportunities, and being diagnosed now. The waiting time in the late state therefore has a positive-support geometric distribution.
For a single cohort with , , , and no later infections, the expected counts are , , , and . The ratio , when its denominator is positive, is the early fraction of the expected diagnosis intensity. It is not generally the expected value of the observed random fraction: taking a ratio and taking an expected value do not commute. Initial infections before step zero require additional cohort terms, so the time origin must be stated.
Discrete uniform distribution Created 2026-09-29 Updated 2026-10-14
A discrete uniform distribution gives every element of a nonempty finite set the same probability. Write for its cardinality. A random variable with this law has support of a probability distribution and probability mass function
The masses sum to . Conversely, if all masses equal , their sum is , so necessarily . Thus equal chances determine the whole law.[ref]
Counting now computes an event's probability: for any set of possible values,
In particular, when , the answer is . The intersection matters: values outside the support of a probability distribution contribute zero. This turns a probability question into a combinatorics question, provided that equal chances are justified by the model.
For an ideal fair six-sided die, and each face has probability . The event of an even integer is , so its probability is ; the event has probability . Direct summation gives the expected value and the variance . The mean is a balance point between possible outcomes. These are exact consequences of stipulated fairness, rather than measured frequencies from physical dice.
Figure 1.
An ideal fair die: six equal probability masses and a mean between the faces
. Details.
Uniformity describes probabilities, not distances between values. For a second constructed model, stipulate equal-chance selection from . Every value has probability , despite the unequal gaps . Here , while the expected value and variance are
Neither the midpoint of the extreme values, , nor a formula using only the cardinality gives these moments. For a general numerical support of a probability distribution, use its actual values:
Figure 2.
Equal chances for unequal gaps: four masses and four equal-width sampling intervals
. Details.
Choosing an item from a finite list with equal chances is a basic building block of simple random sampling. A bijection that relabels the items preserves equal probabilities, although changing numerical labels can change the expected value and variance. A function that merges labels can destroy uniformity: for the fair-die model, has masses at , since four faces map to three. Always count the original equally likely outcomes.
An indicator random variable for membership in a set has a Bernoulli distribution with parameter ; counting that event over independent repetitions gives a binomial distribution with parameters and . Equal chances among individual values need not produce equal chances among aggregated counts.[ref]
Suppose the support of a probability distribution consists of all consecutive integers from to , including both endpoints, with . Its cardinality is , and a discrete uniform distribution on it satisfies
For a short derivation, set , whose possible values are . The finite sums give
and hence
Adding shifts the expected value by and leaves the variance unchanged. For completeness, the first sum follows by pairing with . For the second, sum from to : the left side is , so inserting the first sum gives the stated result.
The edge case has : with probability one, expected value , and variance zero. On an arithmetic progression with , the same argument instead gives expected value and variance . Equal spacing is the extra hypothesis behind these formulas; the discrete uniform distribution on requires the general sums above.
Doppler cooling 2026-10-14
Consider equal opposing laser beams along the axis and an atom with velocity . Let be their angular frequency, the atomic resonance angular frequency, their wavenumber, and the laser detuning. Red detuning means . To first order in , the atom sees
For small positive , the beam travelling towards negative is closer to resonance and causes more photon absorption; its momentum kicks point against . The beam travelling towards positive is further from resonance. Reversing exchanges the roles of the two beams. This is a Doppler effect on the absorption rates, rather than a need to follow each atom with a moving beam.
An absorbed photon gives the atom momentum , where is the reduced Planck constant. Subsequent spontaneous emission gives a recoil opposite to the emitted photon. For an emission pattern symmetric under reversal of direction, that recoil has zero expected value, but nonzero variance. Its mean therefore leaves the directional absorption force intact, while its randomness adds recoil energy. Random absorption times and choices of beam add further momentum fluctuations. Zero mean recoil does not mean zero heating.
Figure 1.
Opposing beams and Doppler-selective photon absorption
. An original schematic for an atom moving right. Both beams have the same red detuning in the laboratory. The calculated weak-field line shape below shows their different atom-frame scattering rates for and ; it is not experimental data. Details.
For a nonnegative supermartingale and , let count completed upcrossings of , allowing the first entry at time zero. The displayed bound holds for every integer . Construct the multiplicative upcrossing supermartingale, stop at the th completed crossing, and use its initial expected value and nonnegativity. The bound is exponential in the number of crossings, and complements the first-moment Doob upcrossing inequality.
Durk Kingma 2026-11-05
Durk Kingma is a computer scientist who publishes as Diederik P. Kingma. His personal profile describes research on machine learning and generative models, and records a 2017 doctorate at the University of Amsterdam.[ref] The institutional thesis front matter gives his full formal name as Diederik Pieter Kingma.[ref]
Figure 1.
Durk Kingma portrait linked from his personal research homepage
.
Kingma and Max Welling coauthored Auto-Encoding Variational Bayes by Diederik P. Kingma and Max Welling. A variational autoencoder couples a latent-variable model with an approximating posterior distribution that can be optimized through variational inference. Their reparameterization gradients represent a simulated random variable as a differentiable transformation of parameter-independent noise, allowing derivatives through the transformation.[ref] Kingma also coauthored the Adam paper with Jimmy Lei Ba.[ref]
An original scalar calculation makes the noise handling concrete. Use the Gaussian reparameterization , with having the standard normal distribution and . For , a one-draw reparameterization gradient with respect to is
The derivative holds the sampled fixed. This pathwise gradient is justified here by direct calculation; a general interchange of derivative and expected value requires differentiation under the integral sign conditions.
Noise coupling matters even for a central finite difference. If the evaluations at and share the same , the difference of the two squares gives exactly for every . This is a use of common random numbers. If instead the evaluations use independent standard normal distributions for their noise draws, the estimator
still has expected value , but independence gives the variance of Gaussian-square finite-difference gradients
Indeed, a normal random variable of mean and variance has squared-value variance ; sum the two independent squared-value variances and divide by . Thus shrinking need not suppress simulation noise.
For chosen , and , both estimators have expected value 2, while their variances are 16 with shared noise and 2408 with independent noise. The example is a separate exact quadratic model; its purpose is to explain the role of keeping base noise fixed, not to reproduce a published variational-autoencoder benchmark.
Figure 2.
Variance of independent-noise and shared-noise quadratic gradient estimates
. Original analytic curves at mu = 1 and sigma = 2. Shared-noise central differences equal the pathwise derivative in this quadratic example; independent-noise variance grows as the finite-difference step shrinks. Details.
Dynkin formula for a diffusion Created 2026-10-14 Updated 2026-11-05
For a diffusion process with diffusion generator , the Itô formula makes a local martingale. Under stopping and integrability conditions making it a true martingale, taking expectations gives the displayed identity. For Brownian motion, , recovering the usual Brownian formula.
Dynkin's formula Created 2026-10-14 Updated 2026-11-05
For a Markov process with infinitesimal generator and a suitable test function , the displayed process is a local martingale. With integrability it is a true martingale and yields the corresponding expectation identity at admissible stopping times. For bounded in the semigroup generator domain, . The Markov property applies this identity conditionally over each interval, proving the martingale increments have zero conditional expectation. Localization gives the local version. For a continuous diffusion, these identities are the martingale problem for .
Effective bandwidth 2026-10-06
Effective bandwidth describes the exponential-moment traffic rate at a specified time scale and tail parameter. Independent sources have additive effective bandwidths. The Chernoff bound connects their sum to overflow bounds. For a single time unit, the small-parameter limit is the expected value and the large-parameter limit is the essential supremum, with appropriate moment or extended-value conventions.
Efron–Stein inequality Created 2026-09-24 Updated 2026-10-18
The Efron–Stein inequality bounds the variance of a complicated output by the effect of replacing one input at a time. Let be mutually independent random variables, not necessarily identically distributed, and for a measurable function , with . Take with having the same probability distribution as , all inputs mutually independent. Define
Use the same function , keeping every other input fixed. Then
The expected value averages over both the original inputs and their replacements. An infinite right side gives a trivial bound; under the stated square-integrable condition every term is finite.[ref]
For a concrete four-state example, take independent Bernoulli random variables with and , and set . This output records whether either input is one. The states have respective probabilities , so
Replacing changes only when and . A fresh Bernoulli draw can repeat the old value: the replacement is not a forced flip. By independence, the expected value of the squared change is
Similarly,
Thus Efron–Stein inequality gives . The larger second contribution reflects both its replacement probability and how often the other input leaves the output sensitive to it.
Figure 1.
Four weighted states explain the Efron–Stein inequality resampling contributions
. Original constructed model: independent Bernoulli random variables with parameters and , and . Each node shows its joint probability. Directed arrow labels are joint probabilities of the original state and replacement value, rather than conditional transition probabilities. Only solid edges change ; same-state replacements and the dashed edges contribute zero. Both directions count before the factor . Details.
For the same inputs, consider instead . The variance of a sum of independent random variables gives
Here and , so the Efron–Stein inequality is exact: . More generally, for with square-integrable summands, each contribution equals and these variances add exactly.
Independence is essential. Let for a single Bernoulli random variable with parameter , and take . Its variance is one. If each coordinate is nevertheless replaced by an independent draw from its marginal Bernoulli distribution, each squared-change expected value is , giving the false proposed upper bound . Replacement now creates off-diagonal states and that the original input never visits. The original coordinates fail the hypothesis of Efron–Stein inequality.
Figure 2.
The Efron–Stein inequality can be loose, exact, or inapplicable when independence fails
. Exact enumeration in three constructed models: the four-state maximum has variance and bound ; the weighted sum on the same independent inputs has variance and bound ; the dependent model has variance one but marginal replacement produces , which is not a valid bound. Stacked contributions are half the squared-change expected values. The third panel deliberately violates the theorem's assumption. Details.
The attraction is local calculation: a function may involve many inputs, yet changing one can have a simple effect. Each half squared-change expected value supplies a coordinate's contribution to an upper budget for the total variance. Applying Chebyshev's inequality then bounds a tail probability using that budget. These contributions need not partition the actual variance, as the maximum example shows.
The name commemorates Bradley Efron and Charles M. Stein. Their 1981 paper The Jackknife Estimate of Variance appeared in The Annals of Statistics, volume 9, issue 3, pp. 586–596.[ref]
Elementary renewal theorem Created 2026-10-03 Updated 2026-11-05
For strictly positive independent and identically distributed interarrival times with finite mean , the elementary renewal theorem states
This is a limit of expected counts. The renewal counting law of large numbers gives the almost-sure version, but almost-sure convergence alone does not justify moving the limit through an expectation.
An elementary proof uses Wald's equation. The first index for which the renewal sum exceeds is a stopping time; itself generally is not. The exponential moment of a renewal count ensures that its expectation is finite. Since , Wald's equation gives , proving the lower asymptotic bound.
For the upper bound, truncate each interarrival to , with mean . The truncated process has at least as many renewals, , and its first sum exceeding is at most . Hence
For fixed , this gives . Finally by monotone convergence. The two bounds prove the theorem without an unjustified interchange of expectation and limit.
Empirical distribution function Created 2026-09-24 Updated 2026-10-18
The empirical distribution function counts the fraction of observations at or below a threshold. For a statistical sample of real observations , define
Each indicator function contributes one exactly when its observation is counted. Equivalently, , where the empirical measure assigns probability mass to each observation, including repeated observations.[ref]
Choose the illustrative statistical sample . Its empirical distribution function is
For example, counts both observations equal to , , and . There is no observation at , so there is no jump there. The five observations produce only four distinct jump locations.
Figure 1. . The chosen statistical sample is . Stacked marks retain the two observations at . Open circles show excluded heights and filled circles show the value at each jump of the right-continuous step function. The right axis gives the cumulative count, five times the empirical distribution function. Details.
The convention makes the empirical distribution function right-continuous: once a threshold reaches an observation, that observation remains counted immediately to its right. For a finite statistical sample, the count is constant from any up to the next larger observed value, proving right continuity. Its left-hand limit counts observations strictly below , so
A value occurring times causes one jump of size . At the jump is ; at , , and each jump is . All jumps sum to one. Thus the empirical distribution function is a nondecreasing step function with limits zero and one, and is itself a valid cumulative distribution function.
This turns many questions about data into simple cumulative distribution function operations. The observed fraction in is : for it is , counting and but excluding both s. Including the left endpoint gives . A sample quantile reads the same staircase in reverse: the smallest threshold reaching is . Unlike a histogram, this representation requires no choice of bins; its jumps retain every observation and its multiplicity.
The exact description of a finite statistical sample must be distinguished from a statistical model for how it was obtained. The empirical distribution function is defined for any finite list, with no independence assumption. Once the list is observed, its counts are fixed. For statistical inference, one often models as independent and identically distributed random variables with an unknown population cumulative distribution function . Then describes the sampling law, while varies across repeated statistical samples. The value is an observed fraction and an estimate of ; it does not establish that the population probability is . Even when is continuous, every finite is discrete.
For any threshold fixed before sampling, the indicator functions are independent Bernoulli random variables with success probability . Therefore the count has a binomial distribution and
The expected value follows by adding the expected values of the indicator functions; the variance follows by adding their variances using independence and dividing by . Thus is an unbiased estimator of at a fixed threshold. Controlling the error at every threshold at once requires more than a fixed-threshold calculation: the DKW inequality supplies such control, and the Glivenko-Cantelli theorem describes its uniform convergence almost surely as grows.
Comparing with a proposed cumulative distribution function also motivates goodness-of-fit tests, including the Kolmogorov-Smirnov test, the Anderson–Darling test, and the Cramér–von Mises criterion. A standard Kolmogorov-Smirnov test calibration assumes a fully specified continuous population law; fitting its statistical parameters from the same statistical sample changes that calibration.[ref]
Empirical likelihood Created 2026-09-24 Updated 2026-11-05
Empirical likelihood assigns adjustable probability masses to observed values, rather than selecting a fixed finite-dimensional probability distribution family. For distinct observations from an independent and identically distributed sample, the basic objective is with and . Without additional constraints the maximum is at , recovering the empirical distribution.
To assess a proposed expected value , impose and maximize under that constraint. The empirical likelihood ratio is
For observations and proposed expected value , the constraints force weights , giving and . A proposed expected value outside the convex hull of the observations has no feasible weights. Such sample-support restrictions matter in small samples and should not be confused with proof that the population expected value is impossible. The method's likelihood-without-a-parametric-family motivation is described by Art B. Owen.[ref]
For a fixed sample , the empirical Rademacher complexity is
Taking its expected value over the sample gives .
The end-to-end vector joins the two ends of a polymer chain. In an isotropic unforced polymer solution, its vector expected value is zero; a useful measure of chain size is its root-mean-square length. For an ideal chain with independent isotropic steps of length , the cross terms in the square of the step sum have zero expected value, so . For a long Gaussian chain, its radius of gyration obeys . If counts chemical repeat units instead of independent Kuhn length segments, the statistical length used in must be calibrated to that choice of ; it is not automatically the physical bond length or the Kuhn length itself.
Consider a binary Markov source with fair initial bit and flip probability . Its exact -symbol information entropy is . At ,
This includes the uncertainty of the initial bit; the entropy rate itself is bits per symbol. The finite-block difference is .
For any finite block distribution, the entropy lower bound for prefix codes gives expected codeword length , while Shannon coding achieves . These bounds apply to each block as one source symbol, without requiring consecutive blocks to be independent. Here Huffman coding on all possible 16-symbol words gives the independently calculated value bits per block, or bits per symbol. The noninteger value is an expected value; each actual codeword has an integer length. As the block length grows, the prefix code bounds squeeze towards the entropy rate when an optimal code is used.
Figure 1.
Fair marginal bits can have a lower entropy rate, with a finite-block initial cost
. The left panel shows the exact binary entropy for the symmetric binary Markov source; each individual symbol still has one bit of information entropy. Both near-persistence and near-alternation make the next symbol predictable. The right panel uses and plots , rather than literal fractional codeword lengths. The Huffman coding point is the exact expected length over all 16-symbol words. Details.
An entropy rate below one does not allow every word to fit into a shorter fixed binary word with zero error. For , all binary words are possible, so an injective fixed-length code needs at least bits. Compression instead exploits variable codeword lengths, or the vanishing-error convention in reliable source encoding at a rate. These are different guarantees.
Entry count of a continuous-time Markov chain Created 2026-10-05 Updated 2026-11-05
The entry count counts jumps of a continuous-time Markov chain into state by time , excluding initial occupation. It is a counting process. For a finite-state chain with homogeneous transition intensities, its mean has derivative conditional on initial state , so its expected value is the sum of incoming rates times the expected occupation times of a continuous-time Markov chain. This density is an expected count rate, not necessarily a normalized probability density function.