Elementary outcome 2026-10-14
An elementary outcome is one member of the sample space. For the ordered two-toss model, is one outcome; it contains both toss results. By contrast, “at least one head” is an event containing three outcomes. The outcome and the singleton set are different objects: when that singleton is measurable, the notation gives its probability. In the finite model below, every subset is measurable.
The word elementary refers to the chosen level of detail. An outcome can be an ordered pair, a sequence, or an entire realization of a point process. A random variable then extracts a numerical feature of that outcome; the window count of a point process is one example.
Empirical cross-entropy 2026-10-14
For observations of a categorical variable, empirical cross-entropy is the average logarithmic loss under the reported probability mass function . Writing the empirical distribution as givesUnder independent and identically distributed observations from and a fixed model with positive probability for each possible outcome, the law of large numbers gives convergence to . A finite empirical distribution is an estimate of , rather than the true source law; unobserved outcomes need not be impossible. If the same data are used to choose , evaluating the resulting empirical cross-entropy on that data need not estimate its prediction performance on fresh observations without bias.
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 , defineEach 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 isFor 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.
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 , soA 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 andThe 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]
1.3.5.16. Kolmogorov-Smirnov Goodness-of-Fit Test. NIST and SEMATECH e-Handbook of Statistical Methods; Characteristics and Limitations, items 1 and 3; Definition, test statistic and fully specified distribution requirement
Empirical variance 2026-10-14
The empirical variance is the variance of the empirical distribution, which puts probability on each observation. It uses divisor , whereas the usual sample variance uses divisor . For independent and identically distributed random variables with finite second moment, jackknife bias correction converts the empirical variance into the unbiased estimator exactly.
Empty groups in a binomial homogeneity test 2026-10-14
For independent , a group with necessarily has and contributes likelihood one. Its probability parameter is unidentifiable and supplies no restriction to test. If groups have positive sample sizes, the unrestricted model has probability parameters and the common-probability model has one; the asymptotic homogeneity test therefore has degrees of freedom. Zero expected-count rows must be removed rather than divided by in the Pearson statistic.
An unbounded probability density function does not imply an atom. HereThe last equivalence follows from . The endpoint interval has much more probability than the same interval under a uniform distribution, whose value is , but its probability still tends to zero. This is an integrable singularity.
For example, the first 1% of the unit interval contains about of the probability; the last 1% contains the same amount because the arcsine distribution is a symmetric probability distribution. Each exact endpoint still has zero probability. Density and interval probability answer different questions.
Endpoint density diverges, but every finite bin has finite probability
. Original exact curves and bin probabilities. Left: the arcsine cumulative distribution function compared with the uniform one. Right: ten equal-width bins have probabilities , not heights sampled from the divergent density. Their total is one. Details.A numerical integration routine must respect these endpoint integrable singularities. The substitution givesIt turns a difficult-looking density integral into a constant measure in angle. Integrating finite bins is also a faithful way to draw the distribution near its endpoints; sampling to make a bar height is not.
Endpoint-specific rare-event sample size 2026-10-14
A sample size calculation for a binary endpoint requires its own baseline probability, not merely the rate of a related outcome. A fatal-event probability equals the probability of the underlying event times its conditional fatality probability; knowing only that product does not identify the incidence of all events. Thus a mortality rate can size a mortality trial but cannot determine the size for all fatal and nonfatal events without further assumptions. The significance level, allocation, target statistical power and effect definition must also be specified.
Suppose a constant Hamiltonian operator has a complete discrete orthonormal basis of energy eigenstates, . Expanding an initial pure state and applying the time-evolution operator term by term givesA projective measurement resolving these basis vectors therefore assigns the same Born rule probability to each label at every time. An energy measurement groups labels sharing the same energy eigenvalue: is also constant. If , their probability amplitude ratio instead evolves asOnly energy differences enter this relative quantum phase. Adding a constant to the Hamiltonian operator multiplies the entire pure state by , a global phase, and leaves the density operator unchanged.
For a fixed observable , the expectation value can nevertheless vary:Terms joining distinct energy eigenvalues can oscillate; diagonal terms cannot. If , these terms between different energies vanish, so the expectation value is constant. This distinguishes conservation of energy from the stronger claim that every observable is stationary.
An energy eigenstate has only a global phase evolution and is a stationary state. A quantum superposition entirely within one degenerate energy eigenspace is also an energy eigenstate and is stationary. For a general density operator in finite dimension, stationarity under a constant Hamiltonian operator means : differentiating proves necessity, and commuting through the exponential proves sufficiency. Merely fixing the diagonal energy populations does not fix the off-diagonal quantum coherence.
Entropy bounds for a type class 2026-10-14
For an attainable empirical distribution on a fixed finite alphabet of size ,Thus differs from by at most , uniformly over attainable profiles. Information entropy is the leading logarithmic count; the polynomial factor matters at short lengths.[ref]
The Method of Types by Imre Csiszár. §II, Lemma II.2, equation (II.4), printed pp. 2506–2507: type-class cardinality bounds
The upper bound has a short explanation. Under an independent and identically distributed source whose law is itself, each string in has probability . Multiplying by the number of such strings cannot give a probability above one. A corresponding polynomial lower bound follows from the multinomial coefficient; the Stirling's approximation gives sharper prefactors when needed.
For the balanced four-symbol class, , so the upper bound is , while the exact size is six. Information entropy is not an exact count for a short string. On the leading scale it becomes precise: the difference divided by tends to zero as grows with the alphabet fixed.
Entropy rate 2026-10-14
The entropy rate measures average new uncertainty per emitted symbol of a stochastic process. Predictability from earlier symbols can make this much smaller than the information entropy of one symbol. For example, a binary Markov source can emit a fair bit at every time while repeating its previous bit with probability : each individual symbol has one bit of uncertainty, but the entropy rate is only about bits per symbol.
For a finite alphabet source , definewhen the limit exists. Base-two logarithms give bits per symbol. Multiplying by a fixed emission frequency gives bits per unit time; the symbol rate and the uncertainty of the sequence are different inputs. A strictly stationary process on a finite alphabet always has an entropy rate, equal to its conditional entropy rate.[ref]
6.441 Information Theory (Spring 2016 lecture notes) by Yury Polyanskiy and others. §5.5, Definition 5.1 and Theorem 5.5, printed p. 57: block entropy and stationary conditional-entropy limit
For an independent and identically distributed source, the chain rule for information entropy gives , hence . With dependence, conditioning reduces entropy and makes the past useful. The examples under Markov information source show this benefit using exact finite-block calculations.
Entropy rate and coding length 2026-10-14
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.
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.
Equality in Boole's inequality 2026-10-14
For finitely many events, or a countable family with finite sum of individual probabilities, equality in the uncapped union bound holds exactly when every pairwise intersection has probability zero. Equivalently, at most one event occurs almost surely. Pairwise disjoint events give equality, but literal disjointness is stronger than necessary: shared outcomes of probability zero do not change either side. For the capped bound, if the sum exceeds one, equality instead means that the union is an almost sure event; overlap can then have positive probability.
The cap and the disjoint case are both sharp. If the individual probabilities sum to at most one, put the events on separate pieces of a sample space to attain their sum. The twelve-outcome disjoint example does this with two events of probability . If the sum exceeds one, a covering union can attain the cap: on the same twelve-outcome sample space, and have sum and exact union probability one. These are sharpness examples, not an assertion that every overlapping family attains the bound. Positive-probability disjoint events are also not independent events, because their joint probability is zero while the product of their individual probabilities is positive.
Equality in Cantelli's inequality 2026-10-14
For and , place probabilitiesTheir weighted deviations cancel, giving expected value ; their weighted squared deviations give variance . Only the upper point belongs to , so its tail probability attains Cantelli's inequality. With , , , the locations are two and , with masses and . The optimized shift makes the lower point zero before squaring, explaining equality in the Markov's inequality step.
The threshold convention matters: this example has . For a strict threshold, placing the upper point at instead gives probabilities approaching the same bound as , with the prescribed mean and variance retained. Extra restrictions on the support of a probability distribution can change which extremal models are allowed.
Equality in Chebyshev's inequality 2026-10-14
For , assign probability to each of and , and the remaining probability to . This probability distribution has expected value , variance , and tail probability . Thus Chebyshev's inequality is sharp when only these two moments are supplied. For example, , , gives masses , , . Replacing with would exclude the two extreme points in this example.
Equality in Markov's inequality 2026-10-14
For a finite-expected value nonnegative random variable and , equality in the uncapped Markov's inequality holds exactly when takes only and almost surely. Indeed the nonnegative difference has zero expected value exactly when it vanishes almost surely. Giving probability yields and . This shows the bound cannot generally be reduced using only the nonnegative random variable's expected value.
Equal-width bin entropy 2026-10-14
Partition into bins of width , and let the discrete random variable record the bin containing . This is a quantization of . Its probability mass function isand its discrete information entropy is . Let be the average probability density within bin . Rearrangement gives the exact finite-bin identityFor a continuous probability density on , uniform continuity makes the bin averages converge uniformly to the density. Since is continuous at zero with the stated convention, the right-hand side converges to . Thus the increasing resolution cost is ; differential entropy is the remaining offset, rather than the entire discrete encoding cost.
For a continuous uniform distribution, every bin has probability , and exactly. For the continuous uniform distribution's squared transformation above, the exact bin probabilities areThe diagram computes these masses directly, including the bin next to the integrable singularity. It compares their corrected information entropy with the analytic differential entropy .
Removing the bin-resolution cost reveals differential entropy
. The left plot shows discrete information entropy increasing with the number of equal-width bins. The right subtracts and compares with the exact differential entropy of a uniform input and its squared transformation. Every plotted point comes from the stated exact probability mass functions; no observations are fitted. Details. Error function Created 2026-09-24 Updated 2026-10-14
The error function records the signed area under a Gaussian function between zero and a variable endpoint:For a negative real number , reversing the integration limits makes this integral negative. The normalization uses the Gaussian integral: the full area of is , so its positive half contributes one after multiplication by . The same definition extends to a complex number along any path from zero to , giving an entire function.[ref]
For example, , , and . A finite positive endpoint captures only part of the positive Gaussian integral; approaches one as but never reaches it at a finite real .
The useful idea is to name a recurring integral once instead of carrying it through every calculation. The error function and the normal distribution express probabilities and quantiles through this area, while an error-function diffusion front describes how diffusion smooths a sharp jump. The complementary error function retains the small area left in the tail.
The fundamental theorem of calculus givesThus the real-axis error function is strictly increasing, with values in . Its integrand is an even function, so the error function is an odd function, . The derivative also gives : the curve is concave for and convex for . These real-axis properties do not imply boundedness throughout the complex plane; the existing quadrant asymptotics of the error function describe a different behavior in other directions.
Error function and the normal distribution 2026-10-14
For a standard normal random variable , its standard normal distribution function isThe change of variables and the symmetric distribution of the standard normal random variable give the second expression. For with , standardization of a normal random variable then givesIn particular, the intervals within one, two, and three standard deviations have calculated probabilities about , , and . These values depend on a normal distribution; they are not universal coverage guarantees for an arbitrary random variable. This is the direct connection between a Gaussian function area and the familiar central intervals.
For a small upper-tail probability, use the complementary error function directly:Computing this as instead can lose the tail to catastrophic cancellation. The Gaussian tail bound gives another useful estimate without requiring an exact error function value.
Error reduction for a randomized algorithm Created 2026-09-24 Updated 2026-10-18
Independent repetitions reduce a randomized algorithm's error probability while preserving polynomial running time.
The combining rule depends on the error orientation. For one-sided error with false acceptance probability at most , reject as soon as any trial rejects and accept only if every trial accepts. For independent trials on the same fixed negative input, false acceptance has probability at most . The protected positive inputs still always accept. If false rejection is the possible mistake instead, accept as soon as any trial accepts. This uses the decisive answer rather than a majority vote.
For constant , grows only logarithmically in to achieve error at most . A polynomial number of trials preserves a polynomial-time algorithm's running-time bound. Independence matters: repeating one answer, or evaluating at the same random point each time, supplies no new evidence. The independent repetition of a polynomial identity test gives an exact -outcome example.
Error syndrome Created 2026-09-24 Updated 2026-10-14
An error syndrome is the list of outcomes obtained by measuring a chosen ordered family of stabilizer generators. Write for eigenvalue and for eigenvalue . For a definite Pauli error on a code state, the rule isThe commuting checks admit joint orthogonal projectorsFor density operator , the Born rule gives outcome probability and conditional state when that probability is nonzero. A definite Pauli error has one deterministic error syndrome independent of the encoded amplitudes. A coherent linear combination of Pauli errors may occupy several sectors, so measuring the error syndrome selects a sector; recovery preserves the logical qubit when the entire error family is jointly correctable. [ref].
An error syndrome locates an error only relative to an assumed family and a recovery rule. Two Pauli errors differing by a logical operator can share an error syndrome; see stabilizer-syndrome coset. In the three-qubit bit-flip syndrome table, and both give . Recovering with corrects the first but converts the second into the logical operator . Likewise, has error syndrome yet changes the encoded relative phase.




