Haldane mapping function 2026-10-14
The Haldane mapping function connects additive genetic map distance to endpoint recombination fraction in a toy model with no crossover interference. Specify the model directly along a transmitted chromatid: the exchange count in the interval has a Poisson distribution with expected value , where is the distance in morgans. Counts in disjoint intervals are independent random variables. This is the transmitted-chromatid convention; is not the mean number of exchanges across all four chromatids in meiosis.
An odd exchange count changes parental phase. Summing the odd terms of the Poisson distribution gives
For , the inverse and short-interval approximation are
Here is the natural logarithm. At , the recombination fraction is ; at , the distance is morgans, or about centimorgans. The linear approximation is useful only near zero. The recombination fraction approaches as grows; has no finite inverse in this model.
The model is a useful baseline, not a universal rule for every interval during meiosis. Crossover interference can change the relationship between distance and recombination fraction. For the count convention and assumptions, see Weeks, Tang and Kwon (2009): genetic map functions and exchange-count conventions. Haldane's original paper is bibliographically recorded as The combination of linkage values, and the calculation of distances between the loci of linked factors, Journal of Genetics 8 (1919), 299–309, in Selected Genetics Papers of J. B. S. Haldane, edited by K. Dronamraju (1990), contents.
Haploid selection recurrence Created 2026-10-13 Updated 2026-10-20
Consider an explicitly idealized haploid population with two inherited types , one allele per individual at the tracked genetic locus, and discrete, nonoverlapping generations. Assume faithful type transmission, no mutation or gene flow, a constant environment, and reproductive contributions independent of type frequency. Let the expected values of offspring surviving to the next census be , with relative genotype fitness .
For frequency , expected offspring contributions are proportional to and . Normalizing gives the deterministic large-population mathematical model
The denominator is mean relative genotype fitness. For and , . Equivalently, 200 and 800 parents with contribute expected counts 240 and 800. Fractional per-parent expected values are averages, not literal fractional offspring. The ratio of these expectations is a deterministic approximation, not generally the expectation of a random ratio.
The odds multiply particularly simply:
Thus : repeated modest advantage can substantially change composition. For and , . The deterministic boundary remains unchanged: natural selection needs existing variation.
Figure 1.
Deterministic selection and stochastic sampling in a finite population
. Both panels start at . The left compares the deterministic haploid selection recurrence with eight simulated finite-population paths at ; the right shows eight neutral genetic drift paths at . Each simulation samples offspring independently per generation. These are illustrative mathematical models, not experimental measurements. Details.
A distinct stochastic extension fixes offspring and samples their types independently using a binomial distribution: , where , then . Its conditional expected value is and conditional variance is . With , the conditional expected value remains , yet realized frequencies wander through genetic drift. With , genetic drift can still lower or lose entirely. Over several generations, the deterministic curve need not equal the mean stochastic trajectory, because the recurrence is nonlinear.
Hardy-Weinberg principle Created 2026-10-03 Updated 2026-10-13
The Hardy-Weinberg principle describes the genotype proportions produced by independently combining two parental gametes from the same allele pool. For alleles with allele frequencies , where , the Hardy-Weinberg proportions are
The two ordered heterozygote outcomes contribute . These proportions sum to , and their implied allele frequency is . Reshuffling copies therefore preserves their frequencies.
For stable Hardy-Weinberg equilibrium across generations, use a large population with random mating, equal allele frequencies in the parental pools, ordinary Mendelian segregation, and no natural selection, mutation, gene flow or genetic drift. Negligible genetic drift is an idealization of large population size. The one-generation random-mating equilibrium needs independent union of gametes; persistence additionally requires processes that change allele frequencies to be absent.
At , the predicted genotype proportions are . For 100 sampled individuals the expected values of the counts are , rather than the of a specified cross. The latter fixes both parental genotypes; Hardy-Weinberg proportions average over population mating.
Figure 1.
Hardy-Weinberg genotype proportions as allele frequency varies, highlighting p = 0.70
. Details.
An observed population need not have these proportions. For example, , no , and among 100 individuals still gives , but has no heterozygotes. Random mating predicts heterozygosity in the next generation under the stated model. A finite sample can also depart by chance, so a discrepancy is a starting point for investigating inbreeding, population stratification or genotyping error, rather than proof of one cause.
Hardy's 1908 note made the conceptual payoff explicit: a dominant phenotype does not by itself make its allele spread. Complete dominance describes expression; changes in frequency require a separate mechanism such as natural selection. See Hardy, Mendelian Proportions in a Mixed Population, Science 28 (1908), 49–50.
Harmonic function for a Markov chain Created 2026-10-14 Updated 2026-10-20
A harmonic function assigns a value to each state of a Markov chain such that one transition leaves its expected value unchanged. This turns a question about many possible future sample paths, such as which endpoint is reached first, into a local averaging rule. For a transition matrix , a real-valued function is harmonic at state when
Here means expected value conditional on starting at ; on a countable state space the sum must be absolutely convergent. If this holds at every state, write . At an absorbing state the equation is automatic, so prescribed boundary conditions supply information that the averaging rule cannot.
For a finite Markov chain, choose a boundary set that can be reached from every state, and assign boundary values . If is its first hitting time, the harmonic extension is
Choosing to be the indicator function of one target within gives a hitting probability. This is a discrete Dirichlet problem: enforce the averaging rule outside and fix the values on . See Hao Wu's MIT lecture 8, harmonic extension, slide 5. The construction extends the mean-value idea of a harmonic function; for a random walk on a graph it is a discrete harmonic function.
Harry Markowitz 2026-11-05
Harry Markowitz developed modern portfolio theory, making the tradeoff between expected return and variability a mathematical allocation problem. His 1952 Portfolio Selection by Harry Markowitz emphasizes that the variability of a combination depends on relationships between its components, not just on each component considered alone.[ref]
For an original toy example, let two return random variables each have variance one. Equal weighting gives
With zero covariance the result is ; with covariance one it is one. The calculation explains why counting assets alone does not determine diversification. Expected values, covariance estimates and allocation constraints supply distinct inputs to the optimization.
The 1990 economics prize recognized his theory of portfolio choice. The awarding academy's account identifies both the 1952 paper and his expanded 1959 treatment.[ref]
Figure 1. . University of Chicago Library, Archival Photographic Files, image apf1-13352. [ref]. Photograph undated.
Harry Nyquist Created 2026-10-18 Updated 2026-11-05
Harry Nyquist was an electrical engineer whose work connected communication engineering with physical and mathematical limits. His 1928 theory explained thermal electrical fluctuations using thermodynamics and statistical mechanics, agreeing with John Bertrand Johnson's measurements.[ref]
In the classical regime , an approximately constant electrical resistance at temperature produces an open-circuit voltage expected value square over a one-sided frequency band of width . Here is the Boltzmann constant. The formula connects Johnson-Nyquist noise with both the physical conductor and the signal bandwidth through which it is observed.[ref]
Hash function 2026-10-13
A hash function is a function assigning each key in an input set a value in an output set . Usually is much smaller: a long name or large integer becomes a small bucket index. Equal keys must receive equal values from the same hash function; different keys may also receive equal values. Such a hash collision means "look in the same place", and does not establish key equality. If , the pigeonhole principle makes some collisions unavoidable.
For example, modular arithmetic gives the hash function , with seven bucket indices . Store the seven keys : their values are respectively . In particular, although . A hash table is a data structure that uses these indices to locate records. With separate chaining, each bucket holds a linked list of records, so bucket retains all four keys . Inserting must not overwrite merely because their hash function values agree.
Figure 1.
Seven keys stored in seven buckets using the hash function h(k) = k mod 7
. Orange arrows identify four colliding keys. Bucket 3 keeps all four records in a linked list; equality is checked on the stored keys. Details.
Searching for computes bucket , then compares the actual keys until it reaches . Searching for absent key reaches that same bucket and must reject every stored key. This data structure trades a search through all records for a search through one short chain, provided the hash function distributes keys adequately. A fixed hash function can perform poorly on patterned keys: already demonstrate the problem. A universal hash family introduces controlled randomness to limit the expected value of this extra work. Neither indexing nor a small collision probability inherently supplies encryption or message authentication; a cryptographic hash function has additional requirements such as collision resistance.
Hash table resizing Created 2026-10-13 Updated 2026-10-18
Changing the number of hash buckets and reassigning stored records using the new bucket-index hash function. Amortized analysis of rebuilding and expected value bounds for subsequent lookup address different costs.
Rebuild the balanced example from load factor of a hash table with while keeping exactly the same twelve records. Under , keys retain their indices, whereas keys move from hash buckets to hash buckets . The new chain lengths are twelve ones followed by four zeros; . Copying the old eight chain heads and adding eight empty heads would leave those four moved keys unreachable by the new lookup rule.
Figure 1.
Hash table resizing from eight to sixteen hash buckets redistributes existing records
. Original modular arithmetic example for keys . Blue keys keep their indices; orange keys move because differs from . The record count stays twelve, and empty hash buckets still count towards capacity. Details.
For a short algorithm correctness outline, allocate the new array, visit every old record once, compute its new bucket index, and link it into that hash bucket. At every step, each transferred record is stored exactly once at the index prescribed by the new hash function. Finishing the visit therefore preserves every key-value association and makes the new lookup rule valid. Direct transfer can skip duplicate searches because the old one-value-per-key map already established distinct equivalence classes; rebuilding is not twelve new user insertions.
Under constant-cost hashing, linking and slot initialization, separate chaining rebuilding takes time complexity: initialize new heads, examine old heads, and transfer records. For doubling, , this is in Big O notation. It is when the resize policy makes proportional to , but an enormous mostly empty old array can make scanning its heads dominate. Growing capacity can lower without shortening a particular chain: the concentrated keys all remain in hash bucket after growth from eight to sixteen.
For an insertion-only sequence starting empty, choose initial capacity and double before a genuinely new key would make . The first three growths occur before inserting records and transfer existing records. If distinct records are inserted, the transfer count is . More generally, the transferred old capacities form a geometric series; if the last is , their sum is . Initializing and scanning these geometrically growing arrays also costs in total, giving amortized rebuilding overhead per insertion. A triggering insertion still pays for its whole rebuild.[ref]
The illustrative twelve-record resize above is an explicitly requested rebuild, not a growth triggered by this threshold policy. Checking for an equal key before growing also prevents a value replacement from triggering unnecessary growth. To combine resizing overhead with expected constant insertion time complexity, separately impose the collision and constant-cost assumptions in load factor of a hash table. Amortized analysis distributes rebuilding costs over operations; it does not randomize a poor hash function or bound a single operation's latency. With deletions, separate the grow and shrink thresholds; for example, growing when full and halving at one-quarter live occupancy leaves room for many operations between opposite rebuilds.[ref]
// Target: computer-science.bigb
The Hasselmann stochastic climate model represents slowly responding climate variables driven by fast weather fluctuations as well as external forcing. Klaus Hasselmann's 1976 paper separates fast and slow variables, retains fluctuations lost by simple averaging, and explains why stabilizing climate feedbacks are needed to prevent indefinitely growing variability. Its general framework is broader than a single-temperature equation.[ref]
Consider an original scalar specialization for a spatially averaged temperature anomaly , with an effective ocean mixed layer heat capacity per unit area :
Here is imposed radiative forcing, is the net restoring coefficient after the chosen climate feedbacks, and represents random net heat flux from unresolved weather. The anomaly energy per unit area is , so its tendency equals the net input. The weather term represents exchange with omitted degrees of freedom; it does not assert that an isolated ocean creates energy. and have units , and has units .
First set , start from , and switch to constant . The integrating factor gives
For , and , the relaxation time is , about years using 365.25 days per year. At , , with eventual warming . Doubling doubles the response time but leaves this equilibrium unchanged. This separates thermal inertia from climate sensitivity.
Now set and idealize the weather forcing as Gaussian white noise with
The Dirac delta function has inverse-time units, so has units . The rigorous stochastic differential equation is
where is Brownian motion. This is an Ornstein-Uhlenbeck process. In stationary initialization its variance and autocovariance function are
Define the two-sided angular-frequency power spectral density by . The Fourier transform of the exponential autocovariance function, or the squared response to a sinusoidal input, gives
Thus fast fluctuations are suppressed; the climate output is red over the frequency range above the corner , with a low-frequency plateau. This is a colored noise spectrum without a periodic driver. The corner is in cycles per second, not . The continuous white input is only an approximation on times longer than weather's correlation time.
Figure 1.
Thermal inertia delays forced warming and filters random weather forcing
. Original one-box model: the step-forced mean approaches two kelvins, with one-standard-deviation spread from a fixed initial temperature and chosen white-noise strength. The right panel shows the analytic normalized two-sided spectrum, not measured climate data. Details.
For the same and , and the stationary standard deviation is . From fixed , the variance grows as , even when the forced expected value is predictable. Integrating over all angular frequencies returns , checking the normalization independently. If the unforced variance instead grows as ; if , deviations amplify. Neither case has the stationary spectrum above.
A red spectrum alone cannot establish attribution of recent climate change: internal variability, changing forcing and measurement effects must be distinguished. This scalar model supplies a calculable baseline for variability and persistence, not a universal spectrum for all climate timescales or a full attribution analysis.
If is a measurable function into a separable Banach space and has finite second moments under probability measures , then their Bochner integral expected values satisfy
Here the Hellinger distance includes the factor in its square. For a proof, use , , and . Apply the norm bound for a Bochner integral and the Cauchy-Schwarz inequality to , then use . This explains why stability of a Bayesian posterior in Hellinger distance controls posterior expected values when the relevant second moments remain bounded.
Heterogeneous individual claims model Created 2026-10-14 Updated 2026-11-05
Each policy has an independent Bernoulli random variable of probability , and its independent severity has expected value and variance . independent policies give and . Conditioning on the claim indicator proves the formulas. Keeping the policy label preserves the dependence between the occurrence probability and the severity law; replacing all labels by a single mixture is an approximation unless the relevant laws agree.
Hoeffding inequality Created 2026-09-24 Updated 2026-10-14
The Hoeffding inequality turns finite interval bounds and independence into exponentially small tail probabilities for a sum. It requires neither a normal distribution nor identical probability distributions. Let be independent essentially bounded real random variables, with deterministic finite bounds almost surely. Define the centered sum and its squared-width budget by
For and ,
The union bound therefore gives . If , every is constant almost surely, so and both positive-threshold tail probabilities vanish. The equal-width version is stated in the authored Stanford notes.[ref]
The quantity is a sum of squared interval widths, not the variance of . Centering changes the endpoints to and , leaving each width unchanged. For example, independent random variables in and have , whatever their expected values or probability distributions. A deviation at least three above their total expected value has probability at most . If all widths equal , the sample mean satisfies
Independence is essential to this general guarantee. Take one Bernoulli random variable with success probability and set every . Each lies in , but for every the sample mean is either zero or one. Thus , whereas incorrectly inserting these dependent observations into the formula would give , less than one for . Some special dependent models have their own valid concentration inequalities; arbitrary statistical dependence cannot be ignored.
For the short proof, apply Markov's inequality to with , factor the expectation using independence, and apply the Hoeffding lemma to each factor:
Minimizing this quadratic polynomial at gives the upper tail probability; applying it to gives the lower one. This is the Chernoff bound method. The original 1963 article is Probability Inequalities for Sums of Bounded Random Variables by Wassily Hoeffding; its publisher record identifies the article, but its full text was unavailable during this source check. The argument above is a direct derivation rather than a claim to have inspected that article's proof.
Hoeffding lemma Created 2026-09-24 Updated 2026-10-14
The Hoeffding lemma controls the entire centered moment-generating function using only an interval width. For an essentially bounded real random variable with finite deterministic bounds almost surely, every real satisfies
Equivalently, . This single-random variable statement needs no independence assumption; independence enters when applying it to the factors for a sum in the Hoeffding inequality. Both signs of are allowed, and equality holds at or when .[ref]
In the convention for a centered sub-Gaussian random variable , the Hoeffding lemma supplies . This upper parameter need not equal the actual variance. For a Bernoulli random variable of success probability ,
The actual variance is , whereas the supplied parameter is for every . This explains part of the conservatism visible in Hoeffding sample size for Bernoulli frequencies.
Figure 1.
Exponential tilting changes the weights but preserves the bounded interval
. The original three-point model has with probabilities and mean zero. Left: tilted masses proportional to for stay within . Right: its cumulant-generating function stays below the Hoeffding lemma bound . Its tilted variance is , smaller than the general width-only ceiling four. Details.
A short proof exposes why the constant is . Put and define exponential tilting by
The tilted probability measure has the same interval of possible values, and differentiating the cumulant-generating function gives . Boundedness justifies these derivatives for every finite . Under any such tilted law, Popoviciu's inequality on variances gives : the variance is no larger than the expected value of the squared distance from the interval midpoint, itself at most . Since , the integral form of Taylor's theorem yields
This expression handles either sign of without changing the argument.
The constant cannot be reduced uniformly over all essentially bounded real random variables. Equal endpoint probabilities at and give , a scaled Rademacher random variable, and
Thus the sharpness is already forced near zero by the variance; the bound need not be equality at nonzero parameters for a particular probability distribution.
Hölder's inequality Created 2026-09-24 Updated 2026-10-18
Hölder's inequality controls a product using separate information about its two factors. If one factor is large on part of a domain, the other factor's complementary Lp norm limits how much their product can accumulate there. The same statement bounds finite sums, integrals and expected values; no independence is required in the probabilistic version.
Let be conjugate exponents, meaning
On a measure space, if and , then and
Here the Lp norms are finite; at exponent the norm uses the essential supremum. For a finite vector, integration with counting measure gives
The first step is the triangle inequality; the second is Hölder's inequality.[ref]
For finite vectors, the endpoint case , is : bound every by its maximum, then sum the . Swapping the factors gives the other endpoint. The choice gives the Cauchy-Schwarz inequality.
The Horvitz-Thompson estimator estimates a finite population total by expanding each observed unit's contribution by the reciprocal of its inclusion probability. D. G. Horvitz and D. J. Thompson introduced the general unequal-probability construction in 1952.[ref]
Let be fixed values attached to labelled population units. A sampling design selects a random subset , with known inclusion probabilities . Then
where is the inclusion indicator. This is inverse probability weighting for a finite population.[ref] Its expected value is immediately
The subscript emphasizes design-based inference: the fixed values are not assumed to follow a probability model; the sample-selection mechanism supplies the randomness. The inclusion indicators need not be independent. Dividing by known gives an unbiased estimator of the finite population mean.
For an original exact example, use values and choose samples , , with probabilities , respectively. The inclusion probabilities are . The corresponding estimates of the total are , and
Simply multiplying each sample mean by three instead gives totals , with expected value . Equal treatment of the observed values ignores the unequal chances of observing them.
Figure 1.
Inverse-inclusion weighting corrects the expected total in an unequal-probability sample
. Original exact enumeration of three possible two-unit samples from values 2, 4 and 6. The left panel shows their selection probabilities; the right compares the Horvitz-Thompson total with three times the sample mean. The population total is 12. Details.
The sampling variance depends on pair information. Put , including . Bilinearity of covariance gives
For the three-unit design it is , found directly from . Thus an unbiased estimator need not give a nearly correct total in each sample.
With pairwise inclusion positivity, the same expansion device applied to pairs constructs the Horvitz-Thompson variance estimator:
Its expected value equals the preceding population sum because . In the worked design its three possible values are , whose probability-weighted average is . This particular unbiased estimator of variance can therefore be negative for an individual sample. Its expected value identity is a statement about repeated selection.
If , an arbitrary unobserved cannot contribute to an unbiased total estimate. If a distinct pair has , its product cannot be recovered by the pair-expansion argument. Finally, dividing the weighted sum by the random sum of its inverse-probability weights changes the estimator into a ratio; the indicator proof above no longer establishes that this ratio is an unbiased estimator. The known population size and the actual sampling design are part of the result.
The Horvitz-Thompson variance estimator estimates the sampling variance of a Horvitz-Thompson estimator using observed values and known individual and joint inclusion probabilities. It is a random estimate of a fixed design-dependent variance, rather than the variance itself.
Let be an inclusion indicator, , and , with . For fixed population values , write . Bilinearity of covariance gives
Under pairwise inclusion positivity, a sample provides the estimator
The diagonal terms are included. Taking expected values replaces by 1, proving . This is the pairwise counterpart of inverse-probability expansion for the finite population total.[ref]
An original exact example uses fixed values . Select with probabilities , respectively. Then , and the possible total estimates are . Their expected value is the true total 4, with variance
For those same samples, the variance estimates are . Their expected value is also 2. In particular, for , the two diagonal contributions are 4 and 2, while the combined off-diagonal contribution is , giving .
Thus this unbiased estimator of variance can be negative in a realized sample. Replacing a negative result by zero changes its expected value; in this example that modification raises the mean estimate to . A positive square root is therefore not always available as a sample standard error from this particular formula. If some , dropping an unobservable cross-product does not preserve the proof; the missing term needs separate analysis.
Hyperexponential distribution Created 2026-10-07 Updated 2026-11-05
A finite mixture distribution of exponential distributions with rates and nonnegative weights summing to one. Its expected value is and its moment-generating function is on the common finite domain. The mixture chooses one component for each observation; it is not a sum of independent exponential variables.
Hypergeometric distribution Created 2026-09-24 Updated 2026-10-14
The hypergeometric distribution counts marked objects in a uniformly chosen sample of fixed size from a finite population, using sampling without replacement. Let be the population size, let objects be marked, and sample distinct objects. If counts the marked objects selected, its probability mass function is
The bounds describe the support of a probability distribution and must be an integer; the mass is zero elsewhere. The denominator counts all size- subsets, while the numerator counts choices of marked and unmarked objects using binomial coefficients. This counting argument requires every size- sample to have the same probability.[ref]
For a constructed example, a box contains ten labelled objects, four red and six blue. Select five without replacement. There are possible samples. The probabilities for are
In particular, . Five red objects are impossible because the box only contains four. The expected value is , and the variance is .
Figure 1.
Five draws from four red and six blue objects: replacement preserves the mean but changes the spread
. Details.
The count law also answers a detection question: what is the chance that five draws find at least one red object? By the complement rule of probability, it is , approximately . This can model inspecting five distinct objects from a known finite collection, with a mark indicating the property we want to detect. If repeated inspections can select the same object again, the replacement model instead gives . Equal expected values therefore do not imply equal chances of detecting a marked object.
The corresponding binomial distribution counts red draws when each selected object is put back before the next independent draw: . It has the same expected value , but variance , and it permits five red draws. Without replacement, a red first draw leaves red probability for the next draw; a blue first draw leaves . This statistical dependence pulls the total toward the fixed composition of the population, producing the finite population correction.
The useful modelling question is whether previously selected objects remain available. A fixed-size sample of distinct items calls for a hypergeometric distribution; fresh independent trials with constant success probability call for a binomial distribution. When the population grows with while stays fixed, the hypergeometric masses tend to the corresponding binomial distribution masses: removing finitely many objects has an increasingly small effect on the next draw's probability.
The IID sample property places no integrability condition on its common probability distribution. An IID sample with the standard Cauchy distribution has no finite expected value or variance. The Cauchy sample mean stability result shows that its averages keep that same Cauchy distribution for every sample size. Thus increasing need not concentrate an IID sample around a population mean that does not exist. The finite-variance bound below applies only when its hypotheses hold.
Inclusion indicator 2026-11-05
An inclusion indicator records whether a specified population unit appears in a sample :
It is an indicator random variable, with expected value and variance . Its randomness comes from sample selection; the population value attached to unit may be treated as fixed in a sampling calculation.[ref]
Inclusion indicators turn a sum over a changing sample into a sum over fixed population labels:
If every , the same identity immediately proves
The inverse-inclusion-probability total is unbiased because , not because the selected units must look typical in every realization.
Pair products connect the notation to joint inclusion probabilities: , so . For a fixed sample size , in every realization. Consequently,
In simple random sampling with , the four individual variances sum to , while the six distinct pair covariances are each . Their doubled sum is , giving total variance zero. Treating the inclusion indicators as independent would incorrectly predict a random sample size. The notation makes that error easy to detect.