Let have the fair Bernoulli distribution and set for every . Each coordinate has the same fair probability distribution as in the independent model, but the coordinates are dependent: , whereas the product of the marginal probabilities is . Every future sigma-algebra equals , so the tail sigma-algebra also equals .
The tail event of infinitely many heads is now exactly , with probability . For the finite-window events in infinitely many heads as a tail event,
The sample space can even be the same full Cartesian product in both models: the dependent probability measure assigns mass to each of the all-zero and all-one sequences. Then is the same literal tail event in both models. Only the probability measure and its independence properties change.
Figure 1.
More independent trials increase the chance of a head; repeated copies of one coin do not
. Exact constructed probabilities for at least one head in a window of coordinates. The independent curve is and tends to one; the shared-coin curve stays at . These are calculations from the two specified probability measures, not measurements or simulated frequencies. Details.
Bernoulli coupling by a shared uniform random variable Created 2026-10-05 Updated 2026-10-14
For and a random variable with the uniform distribution on , set and . Each has the corresponding Bernoulli distribution, and , because disagreement occurs precisely between the two thresholds. This is a maximal coupling of the two laws.
Bernoulli distribution Created 2026-09-28 Updated 2026-10-14
A Bernoulli random variable records one success as and one failure as . For , its probability mass function is
with zero mass elsewhere. The terms success and failure merely name outcomes; success need not be desirable. Any event produces such a variable through its indicator random variable , with . A single Bernoulli distribution requires no independence assumption; independence becomes relevant when several trials are combined.
Because , the expected value and variance follow immediately:
For a constructed trial with , these are and . The variance is greatest at , where it equals , since . At or , the outcome is certain and the variance vanishes.
The beauty of an indicator random variable is that counting becomes addition: summing such indicators counts successes, and the linearity of expectation gives the expected count even when the indicators are dependent. With independence and a shared , the full count law is the binomial distribution. These models are summarized in Penn State STAT 504, discrete distributions.
A historical anchor is Bernoulli's posthumous Ars conjectandi: its original title page identifies the author and records publication at Basel in 1713. This documents the book's publication, rather than establishing priority for the modern name Bernoulli distribution. See Ars conjectandi, original title page, ETH Library.
On a finite graph with symmetric edge-swap rates, the stirring representation of symmetric exclusion transports the occupations by a random permutation. An independent identically distributed Bernoulli distribution occupation field is invariant under every deterministic permutation, and hence under this random permutation when it is independent of the initial field. Therefore the displayed product measure is invariant, including densities zero and one. Equivalently, an edge swap preserves the number of particles and has the same reverse rate, giving detailed balance.
Bernoulli process 2026-10-14
A Bernoulli process is a sequence of independent and identically distributed random variables with a Bernoulli distribution: and . It models repeated Bernoulli trials with a fixed success probability and no dependence between trials. The count has a binomial distribution, expected value , and variance ; the first success time has a geometric distribution on . The observations and the accumulated count are different stochastic processes: the observations are independent, while consecutive counts share all earlier observations. [ref]
Bernoulli trial 2026-10-14
A random experiment with two outcomes, success and failure, whose success indicator has a Bernoulli distribution. Repeated trials sharing success probability give a binomial distribution for their success count if they are independent conditional on ; integrating over an uncertain common generally makes the trials dependent marginally.
Binary cross-entropy 2026-10-14
Let follow a Bernoulli distribution with true event probability , and let the model report event probability . The binary cross-entropy is its expected logarithmic loss:
For , it is minimized at , where the value is binary entropy . An individual outcome has loss when and when ; the binary cross-entropy averages those two cases using the true probabilities.
For , truthful reporting gives bits. Reporting gives one bit. Reporting gives
Both and select zero if one predicts only the more likely binary outcome. Their predicted probabilities are very different, however, and cross-entropy reveals the cost of underestimating the event that occurs a quarter of the time. Endpoint losses are computed using the realized outcome rather than multiplying zero by an undefined logarithm.
Figure 1.
The expected logarithmic loss is minimized by reporting the true event probability
. The true Bernoulli distribution has parameter . The blue curve averages the orange event loss and gray nonevent loss with weights and . Its minimum is at , while both endpoint limits diverge because both outcomes have positive probability. These are calculated expectations, rather than measurements. Details.
Bond percolation Created 2026-09-24 Updated 2026-10-14
In independent bond percolation with parameter , every edge of a graph is open with probability and closed with probability . The choices are independent random variables with a Bernoulli distribution. All vertices remain present; only the usable connections change. The percolation clusters are the connected components of a graph formed by the open edges, including isolated vertices.
A specified simple graph path with edges is an open path with probability , by independence. Connecting its endpoints is a different event: other graph paths may also connect them. The four-edge example in percolation theory makes that distinction explicit. Interpreting open edges as usable channels makes the model useful for connectivity questions; it does not by itself assign a travel time, flow rate, or capacity to a channel.
Brier score 2026-10-14
The binary Brier score applies squared-error loss to a reported success probability and the observed indicator . It is a loss, so smaller is better. Its values lie in : predicting the outcome with certainty gives zero, while assigning it zero probability gives one. Unlike the logarithmic scoring rule loss, the binary Brier score remains bounded even for a confidently wrong forecast.
For a Bernoulli distribution with true success probability , averaging the two squared losses gives
The report controls only ; the remaining term is the variance of the Bernoulli random variable. Consequently the Brier score is a strictly proper scoring rule. At , the expected loss is , with unique minimum at . Reporting instead gives expected loss , despite its better loss on the particular outcome above.
For several possible categories, the Brier score sums the squared differences between reported probabilities and observed category indicators. With two categories that sum is , so its numerical values are twice the binary convention used here, with the same optimizing report. Brier's original [ref] averages these category-sum losses over forecasts. Strictly Proper Scoring Rules, Prediction, and Estimation by Tilmann Gneiting and others (Section 3.1, Example 1, and Table 1) gives the category-sum and binary forms as negative rewards; negating them gives the losses described here.
Central limit theorem Created 2026-09-24 Updated 2026-10-14
Let be real independent and identically distributed random variables with expected value and finite, strictly positive variance . Write and for their sum and sample mean. The central limit theorem states
Precisely, for every real ,
where is the standard normal distribution function. The conclusion is convergence in distribution to the standard normal distribution. If the variance is zero, every observation equals almost surely; the displayed normalization is then undefined and there is no fluctuating error to describe.
The striking feature is that the observations need not have a normal distribution. They may be binary, bounded, or strongly skewed. Their detailed probability distribution disappears from this limit except through the expected value and variance. The subtraction removes predictable growth: . The division implements variance normalization: variance additivity for independent random variables gives , so every has expected value zero and variance one. For nonzero , an uncentered sum drifts; without rescaling its spread grows.
For a concrete example, let each have a Bernoulli distribution with success probability . Then has a binomial distribution, with expected value and variance . Its exact probability mass function and its normalized count are
Here is a binomial coefficient. Individual trials are conspicuously skewed, yet their centered, rescaled counts approach the same standard normal distribution as sums of fair trials.
Figure 1.
Exact standardized binomial distributions approach the standard normal curve
. For independent Bernoulli trials with , each blue bar has width equal to the normalized lattice spacing and area equal to the exact binomial distribution mass at its center. Heights are mass divided by spacing, so they can be compared with the orange probability density function of the standard normal distribution. All four normalized counts have expected value zero and variance one. The rectangles visualize discrete masses; they do not make the discrete probability distributions continuous. Details.
At , has expected value and standard deviation . The exact binomial distribution gives . A normal approximation with the continuity correction uses the interval to :
The small discrepancy is an approximation error, not an equality supplied by the central limit theorem.
The strong law of large numbers and weak law of large numbers locate the average: , respectively by almost sure convergence and convergence in probability. The central limit theorem magnifies that shrinking error and describes its shape. In terms of the sample mean, the resulting normal approximation is , with standard error . This explains why four times as many independent observations halve the standard error. When is known, has approximately coverage for at large , giving a confidence interval. This coverage refers to repeated samples, not a guarantee for an individual interval.
A useful application is the Monte Carlo method: estimate a success probability by the proportion of successful simulated trials. Nicholas Metropolis and S. Ulam's original paper, "The Monte Carlo Method" (1949), illustrates this with games of solitaire and estimation of a region's volume by randomly selected points, and discusses why estimates require probabilistic error control. The strong law of large numbers justifies convergence of such proportions for independent repetitions; the central limit theorem supplies their large-sample error scale when .[ref]
There are three useful limits to this picture:
A historical original-paper reference is J. W. Lindeberg's "Eine neue Herleitung des Exponentialgesetzes in der Wahrscheinlichkeitsrechnung" (1922), published in Mathematische Zeitschrift 15, pp. 211–225. The Lindeberg condition and Lindeberg-Feller central limit theorem below describe a version for sums whose summands need not share a probability distribution.[ref]
A brief proof outline uses the characteristic function of . Its expected value is zero and its variance is one, so the finite second moment gives
The Taylor expansion of the complex exponential, with its remainder controlled by , and the dominated convergence theorem justify this step without a third-moment assumption. Independence then gives the characteristic function of :
The limit is the characteristic function of the standard normal distribution; the Lévy continuity theorem turns this into convergence in distribution.
Characteristic function Created 2026-09-24 Updated 2026-10-18
The characteristic function of a real random variable is
It determines the probability distribution of .
Here and . By Euler's formula, its real part and imaginary part are and . The complex exponential has absolute value one, so this expected value exists for every real random variable, even without finite absolute moments. Moreover,
The bound uses the triangle inequality for a vector-valued integral; the last identity is complex conjugate symmetry.[ref] Consequently the real part is an even function and the imaginary part is an odd function.
For a discrete probability distribution with values and probabilities , the characteristic function is : a weighted average of points on the unit circle in the complex plane. For example, if has the Bernoulli distribution with and , then
Each point being averaged has absolute value one, but their directions partially cancel. At , the same average is ; at , it returns to one. The characteristic function is thus neither a probability density function nor a probability mass function: its argument is a frequency parameter, and its values can be complex numbers. This Bernoulli distribution has no probability density function with respect to Lebesgue measure, yet its characteristic function is defined at every frequency.
Figure 1.
A Bernoulli characteristic function as a weighted average on the unit circle
. At , the two complex exponentials are and . Left: their weighted average lies one third of the way along their connecting segment. Right: adding the weighted arrows and gives . The dashed unit circle makes the absolute bound one visible. Details.
For a probability density function , the same definition becomes , the Fourier transform with the displayed sign convention. The Laplace transform of a nonnegative random variable instead uses for , a real decaying weight. For the Bernoulli distribution above, it is ; neither transform is the probability density function. The uniqueness theorem for characteristic functions explains why the oscillating averages still retain the entire probability law, while the characteristic function of a sum of independent variables turns combining laws into multiplication. These two properties make the representation useful even when directly computing a sum's probability distribution is cumbersome.
If is an integer and , the characteristic function has continuous derivatives through order , with
Thus finite absolute moments justify recovering moments from derivatives.[ref]
For a short justification of differentiation under the integral sign, the difference quotient for the st derivative has integrand . Its absolute value is at most , since for real . Lower absolute moments are finite because . Apply the dominated convergence theorem successively, then use the same integrable bound to obtain continuity of each derivative.
For the Bernoulli distribution with parameter , direct differentiation gives and , agreeing with . Its variance is therefore . Existence and continuity of a characteristic function alone do not authorize these moment calculations: the standard Cauchy distribution, whose expected value is undefined, still has a characteristic function. The stated finite absolute moment hypothesis is a sufficient condition for the derivative formula, not an assumption built into the definition of a characteristic function.
Let be the Bernoulli distribution with success probability and the Bernoulli distribution with success probability . For ,
The two summands have product . Their arithmetic mean is at least their geometric mean, with equality at . Thus
The same argument gives for complementary parameters . At the laws agree and .
Figure 1.
Chernoff affinity and Chernoff information for two complementary coin laws
. Original computed example, with success probabilities and . The affinity is minimized at ; the best negative-log affinity is . Details.
With equal prior probabilities, count the successes among observations. The likelihood ratio is , so choose when and when . If is even, either decision or a fair tie randomization gives the same average error at . Under , has the binomial distribution with parameters . Symmetry therefore gives the exact optimal average error
The last term applies only for even ; it represents half the tie probability. Direct finite sums give , and . Twenty observations reduce the optimal average error to about 0.158%. The finite-sample Chernoff error bound at is , a guarantee rather than the exact error.
Figure 2.
Exact repeated-coin error, the finite-sample Chernoff error bound, and the limiting error exponent
. Original finite-binomial calculations under two fixed independent coin laws with equal priors. The first panel uses a logarithmic scale. The normalized negative log error approaches ; finite-sample error need not equal the simple exponential. Details.
Reducing the exact error from to illustrates the value of repeated evidence. The example assumes a single fixed coin law throughout the experiment. If repeated sensor readings share an unmodelled common error, increasing their number need not supply this much independent information.
Conditional independence Created 2026-09-24 Updated 2026-10-14
Random variables and are conditionally independent given when, for every pair of Borel sets , the following identity holds almost surely:
Here conditional probabilities are conditional expectations of the corresponding indicator random variables given the sigma-algebra generated by . This defines the condition even when . In terms of regular conditional distributions, the conditional joint law is the product of the conditional marginal distributions for almost every conditioning value.
For discrete random variables, at every with , the condition becomes
Where , this is equivalent to . Once is known, observing provides no further information about .[ref]
For a worked example, suppose a latent variable chooses between two environments with . Given , take to be independent and identically distributed with a Bernoulli distribution of parameter , where and . Think of two separate trials run under the same quiet or active environment. Their conditional joint probability mass functions, with rows and columns , are
Each is exactly the product of its own conditional marginal distributions: for , and for . Thus are conditionally independent given .
If the environment is unobserved, the law of total probability averages the two tables:
Both unconditional marginal distributions are fair, but . The law of total expectation gives
Figure 1.
An unobserved shared environment creates statistical dependence between conditionally independent trials
. The first two tables show independent Bernoulli trials at conditional success probabilities and . Averaging them with equal weights gives the third table. The fourth table is the product of the resulting unconditional marginal distributions, which differs from the actual joint table. These are stipulated model probabilities, not observed frequencies. Details.
Observing makes the active environment more plausible, so it raises to . Knowing the actual environment removes this source of statistical dependence. The covariance induced by a shared latent variable lemma explains the calculation without listing all the outcomes.
This is why conditional independence is useful in statistical modelling: a model can multiply simple conditional laws and then average over a shared latent variable. The resulting observations can remain statistically dependent. Conditional independence graphs organize such information relations; their interpretation as causes requires additional assumptions from causal inference. Conditioning describes the information available to an observer. It does not, by itself, describe what would happen if an experimenter changed a variable.
Conditional logistic model for longitudinal binary data Created 2026-10-07 Updated 2026-10-14
A logistic regression can specify each binary response conditionally on recorded past outcomes and baseline covariates. A chain rule for probabilities gives the path likelihood as the product of the conditional Bernoulli distribution masses. This permits dependence within a person's history without treating their outcomes as unconditionally independent. The model must specify the initial history and which past features enter its conditional mean.
Let be independent random variables, each with a Bernoulli distribution of parameter , and put . Unconditionally, the four ordered pairs each have probability . On the event , only and remain, each with conditional probability . Thus
Knowing that exactly one trial succeeded makes observing one outcome informative about the other. This violates conditional independence given , even though the original random variables are independent. Given or , both variables are constant random variables and are conditionally independent there; that does not repair the failure at , an event of positive probability.
Figure 1.
Selecting pairs with exactly one success makes independent trials dependent
. Left: four equally probable outcomes of independent fair Bernoulli trials. The selection retains exactly two pairs. Right: their conditional joint table has zero mass on the diagonal and off it. Within this selected model the conditional covariance is ; the two conditional marginal distributions remain fair. Details.
The conditional covariance here is . Both conditional variances are , so the conditional correlation coefficient is : within the selected group, . These conclusions follow from restricting a finite sample space, without positing any physical interaction between the trials.
This example and the shared-environment example establish both logical directions: independent random variables need not be conditionally independent, and conditionally independent variables need not be independent. When is represented as the joint result of two inputs in a causal directed acyclic graph, conditioning on it has the collider structure associated with collider bias. A probability calculation by itself establishes a dependence relation, not a physical causal mechanism or an intervention.
For increasing events under a finite Bernoulli distribution product measure, first assume all parameters are at most . Write and for last-coordinate sections. The zero-section of their disjoint occurrence of increasing events is ; its one-section is . The intersection in this union contains . If , and the last parameter is , mathematical induction bounds disjoint occurrence by . The product of the two marginal probabilities exceeds this bound by . For a larger parameter , replace that coordinate by the logical disjunction of independent bits with parameter . Disjoint original witnesses lift to disjoint bit witnesses. Apply the small-parameter inequality and then pass to degenerate parameters by continuity.
Coupling 2026-10-13
A coupling of probability distributions is a joint probability distribution of random variables whose marginal distributions are . It lets us choose the statistical dependence between two random constructions while preserving the individual laws. This choice can make a comparison much easier: giving two simulations the same random input may keep their paths close, even though separately generating both paths would hide that relationship.[ref]
For example, two fair coin tosses can be generated independently, with mismatch probability , or by tossing once and setting , with mismatch probability zero. Both constructions have the same two Bernoulli distributions as marginals. Their joint laws differ. A maximal coupling makes the values agree as often as possible; a coalescing coupling arranges permanent agreement of two processes after a random time. Minimizing expected geometric separation instead leads to Wasserstein distance.
Independent marking is the hypothesis that guarantees the Poisson thinning theorem. Equal marginal retention probabilities do not guarantee it. Consider one Bernoulli random variable with success probability , independent of a Poisson process, and retain every arrival when and none when . Each arrival is retained with probability , but the marks share the same coin. In an interval whose original count has Poisson distribution of mean , the retained count is and the rejected count is , so
The extra variance shows that is not Poisson distributed; the negative covariance proves dependence. Its no-arrival probability is , rather than . For the toy values , both rules have retained mean , but the common-coin rule has variance and no-arrival probability , compared with variance and no-arrival probability for independent marking. These formulas follow by conditioning on and using the law of total variance.
An arrival-dependent or adversarial retention rule can change the law just as strongly. Keeping every second arrival gives . Its successive retained gaps are sums of two independent exponential random variables, hence have the Erlang distribution of shape two and rate , not an exponential distribution. The resulting renewal process and its count variance are analyzed in Every second Poisson arrival has underdispersed counts, and the two dependent streams in alternating split of a Poisson process. As an even more restrictive rule, keeping only the first arrival ever gives , a Bernoulli distribution at each , so it cannot have a positive-mean Poisson distribution. A thinning rule must specify how decisions depend on arrivals and on one another; the independent-marking conclusion cannot be applied automatically to arbitrary deletion.
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.