Law of the unconscious statistician Created 2026-10-14 Updated 2026-10-25
The law of the unconscious statistician computes the expected value of a measurable function of a random variable directly from the original probability distribution. If is an integrable random variable, thenUse for a probability mass function, or for a probability density function. There is no need to derive the probability distribution of first. The identity is the integration rule for a pushforward measure, and also holds with an infinite value when is nonnegative. [ref]
https://ocw.mit.edu/courses/res-6-012-introduction-to-probability-spring-2018/pages/part-i-the-fundamentals/. Tsitsiklis, Introduction to Probability, Lecture 5: the expected value rule
.For taking with probabilities , choosing gives . Its variance is therefore . Squaring the expected value would instead give , because squaring does not commute with averaging.
Law of total expectation Created 2026-09-24 Updated 2026-10-14
The law of total expectation makes averaging in stages reliable, provided the outer stage uses the actual probabilities of the groups. For an integrable random variable and a sub-sigma-algebra ,Replacing each outcome by its group's conditional mean preserves the overall expected value. In the definition of conditional expectation, take the event to obtain this identity.[ref]
For a complete finite example, choose a group with probability and with probability . Within group , is or with equal conditional probabilities; within group , it is or with equal conditional probabilities. Thus the joint probability distribution puts probabilities on . The conditional means are two and eight. Consequently,Direct averaging of the four values gives the same . Taking the unweighted average of the two group means instead gives five, which describes a different choice of group probabilities. This is why the outer weighting matters.
The formula is useful when conditioning on a first choice makes the remaining experiment simple. It can replace a large outcome enumeration by smaller calculations within groups. In a mixture distribution, it combines component means using mixture weights; in a random sum of independent claims, it separates the number of summands from their individual expected values under the stated independence assumptions. The same averaging step appears in the law of total variance.
A leave-one-out inverse-variance weighted consensus applies an inverse-variance weighted mean to all laboratories except the one being assessed. Suppose their results are independent random variables with common expected value and known positive variances . For laboratory , defineUnder this model it is the best linear unbiased estimator of from the remaining results. The omitted observation does not determine its own leave-one-out interlaboratory consensus value.
The minimum-variance property follows directly from the Cauchy-Schwarz inequality. For any fixed coefficients satisfying , the linear unbiased estimator hasEquality holds precisely for . ThereforeThis is a comparison among linear unbiased estimators under the stated independent-error model; it requires no normal distribution assumption.
For an original example, assess a laboratory reporting with standard uncertainty . The other laboratories report with respective standard uncertainties , all in the same units. Their total precision is , givingThe held-out difference is , withThe denominator includes the benchmark's uncertainty even though was excluded. This uncertainty-normalized difference and a proficiency-test z-score based on a predetermined assessment scale answer different questions.
Shared bias in an interlaboratory consensus changes the uncertainty model. Suppose instead , where the common reference contribution has variance and the mutually independent residuals, independent also of , have variances . Coefficients summing to one preserve in the benchmark. Its variance is , so the minimizing coefficients use , andUsing the full marginal uncertainties as if they were independent changes the coefficients and loses the shared-reference structure. The propagation of uncertainty retains the covariance of dependent inputs.[ref]
If the held-out laboratory shares the same , that contribution cancels in , while it remains in the benchmark's absolute measurement uncertainty. Precision of a difference and knowledge of an absolute value are distinct properties. Estimated, result-dependent uncertainties or additional correlations require analysis of the actual estimator; the fixed known-variance proof does not establish optimality for those cases.
Lebesgue integral Created 2026-09-29 Updated 2026-10-14
For a nonnegative measurable function on a measure space, defineThe supremum may be infinite. A simple function assigns finitely many heights to measurable sets, so its integral is height times measure, summed over those pieces. This definition groups points by their values rather than requiring a partition into short intervals. See MIT lecture 11, Definition 108.
A real-valued function is Lebesgue integrable when . Its integral is , where is its positive part and . This finiteness requirement avoids subtracting two infinities. For functions taking values in the complex numbers, integrate the real part and imaginary part separately.
Consider the Dirichlet function on . It is a simple function, andIts Riemann integral does not exist. For every partition of an interval , each nondegenerate contains both rational numbers and irrational numbers, by their respective density of the rational numbers and density of the irrational numbers. Thus its infimum there is and its supremum is . The lower Darboux sum is , whereas the upper Darboux sum is . Refinement never closes this gap. A finite scatterplot cannot represent this behavior: the assertion concerns every subinterval and every partition of an interval.
Another view builds the Lebesgue integral from horizontal layers. For any nonnegative measurable function, the layer cake representation statesBoth sides may be infinite. The right side integrates the measure of a superlevel set against Lebesgue measure in the height variable . See Gautam Iyer's measure theory notes, Theorem 9.5.
For on with Lebesgue measure, the superlevel set at is , of Lebesgue measure ; for it is empty. ConsequentlyAt height , the layer extends from to , a width of . The picture shows why the same area can be accumulated vertically or horizontally. In a probability space, the identical formula expresses the expected value of a nonnegative random variable through its exceedance probabilities.
A proof outline avoids extra assumptions on the measure space. For a nonnegative simple function with disjoint measurable sets , the superlevel set has measure . Integrating this finite sum gives . Next use approximation by nonnegative simple functions . For every , the superlevel sets increase to . Continuity from below of a measure and the monotone convergence theorem on the height variable give the formula for .
Lévy maximal inequality Created 2026-09-24 Updated 2026-11-05
Let be independent random variables taking values in a normed vector space, each symmetric in law: and have the same probability distribution. With partial sums , the Lévy maximal inequality isThe statement requires no finite moments. Symmetry is stronger than having zero expected value and is the key reflection hypothesis.
For a proof, let be the first crossing index. On , the future sum is independent of the past and symmetric. For any vector with , the two vectors and cannot both have norm at most : their average is , contradicting the triangle inequality. Symmetry therefore gives conditional terminal escape probability at least . Sum over the disjoint first-crossing events to obtain the inequality. This controls every intermediate partial sum using a single terminal tail.
Limb darkening Created 2026-10-06 Updated 2026-10-14
Limb darkening is the decrease of emergent specific intensity toward the apparent edge of a stellar disc. A transit depth then depends on the intensity sampled by the planet as well as its projected area; the uniform-disc area ratio is only an approximation.
For a spherical star of radius , let be distance from the centre of its projected disk and let be the angle between the outward unit normal and the line of sight. The angular coordinate isDisk centre has ; the apparent edge approaches . A resolved image measures specific intensity in each direction. Limb darkening means that this specific intensity itself falls toward the edge; the projected area factor used when collecting radiant flux is a separate geometric effect.
A simple explanation assumes a horizontally uniform plane-parallel atmosphere, a sufficiently deep optically thick medium, negligible scattering of light, and thermal absorption and emission in local thermodynamic equilibrium. Let be inward vertical optical depth at fixed frequency . An oblique light ray has line of sight optical depth , so it encounters the same attenuation at a smaller vertical optical depth. The formal solution of the radiative transfer equation givesHere is the source function; under these assumptions it is the Planck function . If temperature increases inward, an oblique view preferentially samples cooler layers and hence lower specific intensity. [ref]
The weight is an exponential distribution in vertical optical depth, with expected value and standard deviation . Thus “seeing down to optical depth one” refers to the line of sight, and represents a broad sampling of layers rather than a sharp emitting surface. For a source function that is linear throughout the atmosphere, the Eddington-Barbier relation is exact:This follows by integrating the constant and linear terms separately. A constant source function instead gives constant specific intensity, as in the blackbody limit of an isothermal atmosphere. An outward-rising temperature or important scattering of light changes the argument. Close enough to the actual edge, a plane-parallel atmosphere also loses validity because of curvature. Neither one limb-darkening coefficient nor a universal dependence on wavelength follows from this simple model.
Lincoln-Petersen estimator 2026-10-14
The Lincoln-Petersen estimator is the ratio estimator obtained by matching the observed overlap to its hypergeometric expected value. It is defined when . To distinguish that ratio from the exact integer maximization, consecutive positive likelihoods satisfyThis comparison is valid for . For the toy counts, the numerator minus the denominator is . Thus the likelihood function increases up to ninety-nine, ties at ninety-nine and one hundred, then decreases for every larger integer. This independently establishes the global maximum-likelihood estimates, beyond the plotting window. The adjacent-ratio method is given in Guiteras, §8.
Linearity of expectation Created 2026-09-24 Updated 2026-10-14
For integrable random variables on the same probability space and fixed real numbers , linearity of expectation statesThe random variables can be dependent random variables. The formula follows by the linearity of integration; a finite linear combination of integrable random variables remains integrable. For example, if takes with probabilities , then and are dependent random variables, yet .
An especially useful application counts how many events occur. Put , an indicator random variable, and . Since , we get . There is no need to compute the whole probability distribution of , or to assume independence. For a uniform random permutation of objects, each object stays fixed with probability , so the fixed point count of a uniform random permutation has expected value one for every . [ref]
https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/mit6_042js15_textbook.pdf. Lehman, Leighton and Meyer, Mathematics for Computer Science, §18.5: linearity and sums of indicators
.Linearity of expectation concerns addition and multiplication by fixed scalars. Products instead satisfy under the hypotheses of expectation of a product of independent random variables. For the example above, , whereas . Applying a nonlinear function before averaging can therefore change the answer substantially; use the law of the unconscious statistician to compute that average.
Linear probability score Created 2026-10-07 Updated 2026-10-14
The linear probability score pays the reported probability of whichever binary outcome occurs. With report and observed , its reward isIt looks sensible: assign more probability to what happens and receive more reward. But the expected value under a Bernoulli distribution with true success probability isThis is an affine function of the report. When , the maximum over is at ; when , it is at . At , every report ties. Thus the linear probability score encourages reporting certainty about the more likely outcome and is not a proper scoring rule.
For the stipulated , the expected value of the reward is . Honest reporting earns in expectation, whereas earns . The forecaster improves expected reward by replacing a 70% forecast with a 100% forecast. The Brier score and logarithmic scoring rule avoid this incentive, as the expected-score diagram under proper scoring rule shows.
Linear search comparison count 2026-10-14
Count just the equality tests between the target and an entry, excluding loop conditions and index updates. If the first match is at index , linear search uses exactly equality tests. If the target is absent, it uses exactly . Thus for the best successful case costs one equality test, and the worst case costs , attained by absence or a first match at the last index. For , the sole outcome is absence with .
An expected value needs a specified probability distribution. For , condition on success, assume the target occurs exactly once, and assume its position has a uniform distribution on a finite set of indices . Then the expected value of the linear search comparison count isThis is the average of the costs under those assumptions, with no assumption that the array is sorted. It is not a universal average for arbitrary queries. For example, with , a unique successful target at index with probability and at index with probability has expected value , rather than .
Duplicates also require care about what is sampled. Choose a position uniformly in , then search for its value. All queries succeed, but the five possible sampled positions give costs : both positions holding cause an immediate match at index . The expected value is , not . Uniformly choosing an occurrence does not uniformly locate the first match.
More generally, let the success probability be and let be the conditional probability that the first matching index is , allowing duplicates. Since , the expected value isUnder the unique, uniformly located successful-target assumptions this becomes . If every query is absent, and without needing conditional probabilities. When , success is impossible and ; the successful-search conditional formula is undefined.
Converting the linear search comparison count to execution time needs a cost model. Under constant-cost equality tests, next-entry access, and loop bookkeeping, worst-case time complexity is in Big O notation for , with constant overhead even for the empty sequence. Variable-length entries can make an equality test expensive. On a linked list, advance along its links; repeatedly restarting at the head to obtain the next numeric index adds work that the comparison count does not capture. These are exact operation counts and conditional mathematical averages, not runtime measurements.
Location estimator 2026-11-05
A location estimator estimates the common shift in a location family, for example observations with a fixed error probability distribution. A translation-equivariant estimator obeysChanging the origin of measurement then shifts the estimate by the same amount. Both the sample mean and sample median have this property, but their sensitivity to an outlier differs.
For observations , both estimates equal . Replacing by changes the sample mean to while leaving the sample median at . This illustrates resistance to an extreme observation, not a claim that the sample median is optimal under every probability distribution. A location parameter need not be a population mean: a Cauchy distribution has a location parameter although its expected value does not exist.
For a real location parameter and positive scale parameter , the logistic distribution has probability density function and cumulative distribution functionDifferentiating recovers , and its limits at infinity show normalization of a probability distribution. The density is symmetric about with exponentially decaying tails, so its expected value exists and equals . Allowing in the displayed expression makes negative and its integral ; a signed scale must instead be replaced by in the prefactor to define the same valid density.
Logarithmic loss 2026-10-14
The loss function assigning to a predicted probability distribution and observed outcome . It is the negative logarithmic scoring rule; its expected value under the true probability distribution is cross-entropy. Predicting zero probability for an observed outcome gives infinite loss.
Logarithmic-regime giant component 2026-10-07
Fix , , and with . A binomial random graph has one giant component of the displayed order and all other graph components are tree components of orders at most , with high probability. The expected value and variance of the isolated vertex count concentrate it around . A Cayley formula upper bound for connected sets excludes component sizes through a small fixed fraction of ; the empty-graph cut bound excludes the remaining sizes up to . An extra-edge count excludes cyclic small graph components. The expected value of the number of vertices in small nonisolated tree components is , where . The Markov inequality completes the count of vertices outside the unique large graph component.
Logarithmic scoring rule Created 2026-10-07 Updated 2026-10-14
The logarithmic scoring rule rewards the natural logarithm of the reported probability mass or probability density at the observed outcome. The title uses the reward convention. For a binary report , its negative is the logarithmic loss:For this is ; for it is . At an endpoint, use these outcome-specific forms: assigning zero probability to the outcome incurs infinite loss, while assigning it probability one gives zero. The natural logarithm therefore makes a confidently wrong binary forecast far more costly than the bounded Brier score does.
Under the stipulated Bernoulli distribution with , the expected logarithmic loss isIts unique minimum is at , where the expected loss is approximately . At it is approximately . More generally, the excess expected logarithmic loss over truthful reporting is the Kullback-Leibler divergence in the order true law first, reported law second:For , this Kullback-Leibler divergence is nonnegative and vanishes only at , explaining why the logarithmic scoring rule is a strictly proper scoring rule. The same Kullback-Leibler divergence identity applies to probability density functions relative to a common measure when the truthful expected logarithmic loss is finite and the comparison expected value is well defined.[ref]
Strictly Proper Scoring Rules, Prediction, and Estimation by Tilmann Gneiting and others. Section 3.1, Example 3, and Section 4.1
For sequential forecasts, the existing prequential log score identity explains how logarithmic rewards add over observations. Loss function 2026-09-29
A loss function assigns a numerical penalty to a prediction and its observed outcome. Its expected value is the population risk optimized by a statistical learning procedure.
Lossless two-channel thickness scattering model Created 2026-10-18 Updated 2026-10-20
Consider an original illustrative model with exactly two outgoing scattering channels: a central beam and one diffracted beam . Let be specimen thickness and a constant coupling with units of inverse length. Normalize the probability amplitudes to incident probability current, assume equal longitudinal speeds, and specifyThese ordinary differential equations define a lossless toy model, not a fit to the silicon example or a complete theory of crystal scattering. Differentiating once more gives , soThe identity expresses conservation within these two scattering channels. Alternatively, substituting the ordinary differential equations into makes the two cross terms cancel. Here ideal bright-field transmission electron microscopy accepts fraction and rejects fraction ; ideal dark-field transmission electron microscopy accepts precisely the rejected channel. This complementarity requires the declared two-channel completeness and absence of loss.
Even with known , thickness is ambiguous: and both give . Near , ; extending that approximation through a full oscillation would erase the ambiguity incorrectly. The model isolates reversible transfer between probability amplitudes; it does not say that every thicker specimen must look darker.
Real dark-field transmission electron microscopy usually collects only a subset of the directions rejected in bright-field transmission electron microscopy. Other elastic scattering directions, inelastic scattering and detector losses prevent a general two-image conservation rule. To keep loss and background separate, extend the counting model explicitly. Let be the fraction absent from both recorded beam channels, describe the remaining fraction, be incident count per exposure, the detector efficiency and its mean additive background. Then the expected value of recorded count isFor separately acquired equal-illumination exposures with known , the two corrected mean counts sum to , not necessarily . Removal from these channels is not synonymous with physical absorption: an electron can leave the chosen acceptance or change kinetic energy without being stopped in the specimen. Background subtraction removes a mean offset, but its counting variance remains.
Lubell mass Created 2026-10-03 Updated 2026-10-05
The Lubell mass of a set family isIt is the expected value of the number of members of on a Uniformly random maximal chain in a Boolean lattice.
Luria-Delbrück experiment 2026-10-18
In 1943, Salvador Luria and Max Delbrück grew separate Escherichia coli B cell cultures from small equal inocula, without the challenging bacteriophage. They used nutrient broth or an asparagine–glucose cell culture medium. On nutrient agar plates, they first spread excess bacteriophage and then the bacterial sample centrally, leaving an outer margin. After incubation, resistant biological colonies provided the readout; counts were usually made at 24 and 48 hours. Their control plated repeated samples from one shared culture. Independently grown cultures varied much more than this sampling comparison. That contrast supported resistant lineages arising before challenge: early mutations could produce many resistant descendants before natural selection revealed them.[ref]
Mutations of Bacteria from Virus Sensitivity to Virus Resistance by Salvador Luria and Max Delbrück. pp. 501–504, Material and Methods; Experimental, plating reliability, Table 1 and independent cultures, Table 2
This was evidence about the timing of heritable resistance, not DNA sequencing of the responsible genes. It does not establish uniform mutation rates or exclude environmentally induced mutations; the paper itself discusses physiological dependence and delayed expression.[ref]
Mutations of Bacteria from Virus Sensitivity to Virus Resistance by Salvador Luria and Max Delbrück. pp. 505–507, discussion of excess variation, physiological state, delayed resistance and genetic relatedness
Now construct a deliberately small mathematical model of the timing effect. Start with one sensitive biological cell at generation . Every biological cell divides into two in each of five synchronous rounds, with no death or growth difference. There are biological cells immediately after round , ending with . In each scenario, exactly one newly formed daughter changes to resistance immediately after round ; its descendants inherit resistance without reversion or further mutations. Resistance is expressed immediately, and the final challenge allows every resistant biological cell, and no sensitive one, to form one separate biological colony.
The descendant count obeysAt the moment of the event there is one resistant biological cell; each remaining round doubles its descendants. This proves the formula by repeated multiplication, with terminal case . An event after round 1 gives resistant and 16 sensitive biological cells; an event after round 4 gives resistant and 30 sensitive biological cells. Both scenarios contain one mutation event. A culture with no event gives zero resistant biological colonies under these assumptions. The difference is family size, rather than the number of events.
For comparison, suppose each of the 32 final sensitive biological cells independently acquires resistance only on challenge, with probability and no subsequent multiplication before counting. Then the resistant count has a binomial distribution, with expected value and variance . This alternative mathematical model has no pre-challenge resistant family to amplify. Its independent trials are an assumption of the comparison, not a consequence of using physically distinct biological cells. The clonal scenarios explain how a jackpot can occur; they do not assign probabilities to the event times or estimate a real mutation rate.
// Target: biology.bigb
Lyapunov moment inequality Created 2026-10-06 Updated 2026-10-14
The Lyapunov moment inequality says that higher positive absolute moments give no smaller absolute moment sizes on a probability space. For a real random variable and ,allowing an infinite value. For the left expression is an Lp norm; below one it is a quasi-norm, so the usual triangle inequality terminology needs that distinction. The comparison uses a probability measure of total mass one; arbitrary unnormalized measure spaces need a factor depending on their total mass.
For a nonnegative count, the first moment size is its expected value, while the second is the square root of its second moment. Both ten-trial counts in second moment method have first moment size one. The independent count has second moment size , whereas the shared-outcome count has second moment size . The second moment distinguishes models with the same average because its square increases the influence of rare large counts.
More generally, for with a Bernoulli random variable of parameter ,It rises from one at toward ten as . Replacing by a parameter gives , which decreases toward zero for a fixed positive exponent when , making the rare-event and large-exponent limits different questions. For a scaled Rademacher random variable taking values and two with equal probabilities, every absolute moment size is exactly two: increasing the exponent does not distinguish signs when the absolute value is constant.
Lyapunov moment inequality reveals how higher moments emphasize large outcomes and when equality holds
. Left: the two original ten-trial models from second moment method have the same mean one, but different absolute moment sizes at exponents above one. The shared model has with . Right: equal masses at and two keep almost surely, giving equality for every pair of positive exponents. These are fully specified mathematical probability models. Details.For finite , apply the reversed Jensen's inequality to the strictly concave function and the nonnegative random variable :Taking the positive th root proves the claim. Equality in this finite case holds exactly when is constant almost surely. If the higher moment is infinite, the upper bound is infinite and remains valid. Exponent zero is excluded from the statement; logarithmic or geometric limiting summaries require separately stated conventions, especially when can vanish.





