Convolution Created 2026-09-24 Updated 2026-10-14
Convolution combines two functions by adding their products over all ways of splitting an argument. For Lebesgue integrable functions on the real line, their convolution isThe arguments and always add to . For in the L1 space, the integral exists almost everywhere and defines another element of the L1 space, with by Young's convolution inequality. Particular examples below have a value at every .
To see what the integral counts, take the indicator function . The product equals one exactly when belongs to both intervals and . Its integral is their overlap length, soAt , the overlap is and the output is ; at , the two intervals coincide and the output is one. The result is the shifted triangular function . As changes, is a reflected and translated copy of : the moving overlap makes the entire graph visible without a difficult integration.
The same calculation gives the probability distribution of a sum of two independent random variables. If are independent random variables with the continuous uniform distribution on , each has probability density function . Their sum has probability density function by convolution of probability densities. The probability density function at one is larger than near zero or two because there are more combinations of the two inputs giving that sum. Its total integral is one; its expected value is one and its variance is . These follow equally from integrating the triangular function or from linearity of expectation and variance additivity for independent random variables.
Convolution also gives a useful averaging operation. For , let . Thenthe mean of in a neighborhood of . A smaller examines a smaller neighborhood. For a continuous function , this mean tends to as , an example of an approximate identity. Integrating a sharp input against a distributed convolution kernel can produce a smoother output; the triangular example turns two discontinuous inputs into a continuous output.
In signal processing, a linear time-invariant system combines shifted copies of its impulse response by the same rule. In discrete time, an input value at index contributes a scaled response at index , and discrete convolution sums these contributions. This is the superposition interpretation developed in Oppenheim, MIT Signals and Systems, Lecture 4, convolution sums and integrals. The convolution theorem then gives another description: transform both inputs with a Fourier transform and multiply their transforms. Combining shifts, combining independent quantities and multiplying frequency descriptions are three faces of the same operation.
Take with continuous uniform distribution on and set . This is an increasing invertible transformation on that interval. Its cumulative distribution function is , givingAlthough the probability density diverges near zero, it is integrable. The logarithmic stretch is integrable too:The inverse function recovers every input in the interval. The changed differential entropy records a changed coordinate volume, rather than a failure of recovery.
// Target: probability-and-statistics.bigb
Differential entropy of a uniform law 2026-10-14
For a continuous uniform distribution on an interval of length , the probability density is . Direct integration givesThus a uniform law on an interval of length has differential entropy , while length two gives . Both laws have total probability one. The shorter interval has larger probability density, making negative; this is neither a negative probability nor a negative discrete information entropy.
Uniform densities can have negative or positive differential entropy
. The two stipulated continuous uniform distributions have density two on an interval of length and density on an interval of length two. Each rectangle has area one. The reported differential entropy is in nats, using the displayed numerical coordinates. Details. 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. Excess kurtosis 2026-10-14
Excess kurtosis subtracts from kurtosis, making the normal distribution baseline zero. The non-excess convention is sometimes called raw kurtosis; this still uses a fourth central moment, not the uncentered fourth moment . Software may report either kurtosis or excess kurtosis, so the convention must be stated.[ref]
1.3.5.11. Measures of Skewness and Kurtosis. §1.3.5.11, Alternative Definition of Kurtosis, normal baseline and software convention warning
For a standard normal distribution, the moment-generating function of a standard normal variable gives , hence excess kurtosis zero. For a continuous uniform distribution on , the mean is zero, the variance is one, and direct integration givesThe rare-outlier three-point distribution can instead have kurtosis and excess kurtosis with mean zero and variance one. These are calculated properties of specified probability distributions, rather than a measured statistic.
Kurtosis comparison for a standard normal distribution, a continuous uniform distribution, and a rare-outlier three-point distribution
. The upper panels show probability density functions or a probability mass function; the lower panels show their contributions to the fourth central moment. All three probability distributions have mean zero and variance one. Areas in the continuous panels and sums in the discrete panels give kurtosis. The standard normal distribution continues beyond the displayed window; density and mass heights have different meanings. Details.For independent and identically distributed random variables with the continuous uniform distribution on , let . Its cumulative distribution function is on , so . The endpoint error has a nonconstant limiting probability distribution: for fixed and ,This survival function gives the displayed exponential distribution limit. More generally, for observations uniform on , has the same limit. The scaling identifies an error of order , in contrast to the fluctuations of a typical sample mean with nonzero finite variance.
Exponential posterior for a uniform endpoint Created 2026-10-14 Updated 2026-10-20
For one observation from a continuous uniform distribution on and prior density , the likelihood cancels the factor and leaves . Normalization gives posterior density , for . Its mean is and variance one. The Bayes estimator under squared error loss is therefore , unchanged by multiplying the loss by a positive constant.
Kolmogorov axioms Created 2026-09-29 Updated 2026-10-31
The Kolmogorov axioms describe a consistent way to assign probabilities to events. Start with a sample space and an event sigma-algebra : it contains and is closed under complements and countable unions, hence also countable intersections. The probability measure is a function satisfyingThe triple is a probability space. The third axiom is countable additivity; the infinite series means the limit of a sequence of nonnegative partial sums. It applies to pairwise disjoint events, not to overlapping events and not to arbitrary uncountable unions.[ref]
The sigma-algebra specifies which questions have probabilities, while the axioms specify how those probabilities fit together. For a finite sample space one can take the entire power set; a continuous model commonly uses a Borel sigma-algebra. Nonnegativity and normalization do not require equally likely outcomes or independence: those are additional modelling choices.
For an exact six-outcome model, take , , and assign . The total is one because . Define the probability of an event by summing the weights of its outcomes. The disjoint events , and form a partition of a set withThis is a specified mathematical model, not measured die frequencies. The figure makes probability literal area: each region has the same height and a width proportional to its assigned mass. Regrouping disjoint events preserves their total area.
Several familiar rules are consequences, not further axioms. Finite additivity of a set function follows by appending empty events to the sequence in countable additivity; follows already by writing as a disjoint union. The complement rule of probability gives and therefore . Splitting larger events into a smaller event and a set difference shows .
For overlapping events, the inclusion-exclusion principle corrects double counting:In the six-outcome model, and give , agreeing with the weight of . This decomposition is useful because a complicated event can be assembled from simpler questions with known probabilities.
On a finite sample space, a family of pairwise disjoint events has only finitely many nonempty members, so finite additivity of a set function already handles every countable disjoint union. On an infinite sample space, the countable axiom additionally controls what is left beyond every finite stage. In the fair-coin waiting model of continuity of probability, the finite-stage calculations sum to through toss . Countable additivity makes the probability of a head at some finite toss equal to ; finite-stage sums alone do not justify that passage. For the continuous uniform distribution on , each singleton instead has probability zero, while their uncountable union has probability one. Countable, rather than unrestricted, additivity accommodates both models.
Historically, Kolmogorov's 1933 book Grundbegriffe der Wahrscheinlichkeitsrechnung established the influential axiomatic framework connecting probability theory with measure theory. The three conditions above are the modern presentation on a sigma-algebra. Shafer and Vovk's historical study explains that the original presentation began with finite additivity on an algebra of sets and added continuity for decreasing events with empty intersection, which supplies the countable extension.[ref]
Manometer height-to-pressure calibration 2026-10-18
The ideal measurement calibration is a straight line through the equal-pressure zero. For the stipulated water mass density and gravitational acceleration above, its slope is per vertical millimetre. A lower liquid mass density gives a larger length change for the same pressure, improving the height-reading contribution to measurement resolution but requiring more vertical space for a given pressure range. The pressure scale depends on the actual mass density, which depends on temperature; here is a chosen model value, not an exact property of all water samples.
Suppose each liquid meniscus height is rounded to the nearest scale division . Each height measurement error lies within , so the error in their difference lies within . The resulting pressure error is bounded by . To quantify a standard uncertainty, make the additional model assumption that the two rounding errors are independent random variables, each having a continuous uniform distribution on . Each then has variance ; adding the two variances givesHere denotes standard uncertainty. The worst-case bound and standard uncertainty answer different questions. At they are respectively and of the reading. Shared reading bias or a different reading method can violate the assumed independence.
If the mass density, gravitational acceleration and height difference also have small independent standard uncertainties, a first-order estimate follows from the partial derivatives of :This displays why a finer scale does not remove uncertainty in mass density or gravitational acceleration. A pressure transducer compared against the column needs its own differential-pressure calibration to establish an electrical response.
Normal Q-Q plot 2026-10-14
A normal Q-Q plot compares order statistics with standard normal quantiles . For a normal distribution with , the population quantile function is , so the diagnostic sample relation isThe appropriate reference is a line with an intercept and positive slope, not necessarily the identity line. A line can be fitted through two central sample quantiles; R's
qqline uses the quantile levels and by default. Neither that line nor its fitting rule is part of the definition of a normal Q-Q plot. [ref]https://stat.ethz.ch/R-manual/R-devel/library/stats/html/qqnorm.html. R stats documentation, qqnorm and qqline
To isolate curvature, retain the same 19 plotting positions and construct two more ordered sequences:The are continuous uniform distribution quantiles on , while the apply the hyperbolic sine to the reference quantiles. Both examples are symmetric about zero. At ranks , is approximately and is approximately . Again, these are constructed values rather than random draws or real data.
Read these shapes relative to their central slope. The uniform distribution example has , with derivative ; at the upper endpoint the tangent predicts , while . Its lower end lies above the tangent and its upper end below it: the outer quantiles are compressed. The hyperbolic sine example has ; its tangent predicts at the upper endpoint, while . Its lower end lies below the tangent and its upper end above it: the outer quantiles are stretched. Unequal departures at the two ends can suggest skewness. The direction of these descriptions assumes that reference quantiles are horizontal and observed values vertical. The graphs illustrate finite-range shape differences; a sample pattern cannot establish an asymptotic tail probability law or membership in a heavy-tailed distribution class.
A nearly straight normal Q-Q plot is a diagnostic, not a proof of a normal distribution or a formal hypothesis test. Random statistical samples fluctuate, particularly at extreme order statistics, and apparent curvature depends on sample size, plotting positions and the reference line. A calibrated hypothesis test or uncertainty band requires its own assumptions and must account for parameters estimated from the same observations. Sorting also discards the original observation order: rearranging a time series leaves its Q-Q plot unchanged, so the plot cannot establish independence.
For a normal linear model, R's diagnostic normal Q-Q plot uses standardized regression residuals, also called internally studentized residuals. [ref]
https://stat.ethz.ch/R-manual/R-devel/library/stats/html/plot.lm.html. Maindonald and Maechler, R plot.lm documentation, Details
Even with independent errors, the regression residuals have covariance matrix , where is the hat matrix; fitting parameters generally creates dependencies. Dividing by a shared estimated standard deviation creates further dependence, and the distribution of an internally studentized Gaussian residual is not exactly the standard normal distribution. The normal Q-Q plot therefore helps assess error shape alongside other diagnostics rather than certifying independent normal random variables. One-dimensional Anderson chain Created 2026-10-18 Updated 2026-10-20
Consider a noninteracting electron in a finite tight-binding model with open ends:The vectors form an orthonormal basis of site states. The hopping energy is ; it is not the time coordinate. Draw each independently from the continuous uniform distribution on and then hold it fixed. The disorder strength is dimensionless. Open ends mean no hopping bond connects sites and ; equivalently set . There are no electron interactions, phonons or wave absorption in this model.
The eigenvalue equation in the interior isAs a simple local calculation, if a state's peak is at , a neighbouring site with receives a small leading contribution . Several successive large mismatches multiply small factors. This explains why large disorder can restrict spreading, but is not a proof of Anderson localization: near-resonant denominators and alternative interference paths prevent treating this expansion as uniformly valid.
For the first original calculation, take , , and the fixed random seed . Diagonalizing the resulting real symmetric matrix with
numpy.linalg.eigh and selecting the eigenvalue closest to zero gives , a probability peak at site , and . The selected eigenvector has total probability one. This is one chosen realization, not a disorder average or a measured specimen.The clean comparison needs care. With , the open chain has standing wavesFor even , the identity and finite trigonometric sums give , hence . Thus the clean -site comparison has , although it extends across the chain. Extended does not mean uniform probability. For odd , the special central mode has zeros on alternating sites and instead ; the even-size assumption avoids that exception.
The second original calculation compares and over . For each size, draw independent site patterns using seed , with the size included in the random-seed construction. Scale each fixed pattern across disorder strengths. At every point, average over the four energy eigenstates closest to . The solid line is the median across these sample averages; shading spans their th–th percentiles. The selected states can change as varies: lines connect one sample's selections rather than tracking a single mode.
Participation ratio varies across disorder realizations and finite chain sizes
. Original One-dimensional Anderson chain calculations. Faint lines show individual sample averages, solid lines their medians and bands their th–th percentiles. The left panel plots ; the right divides by site count . These finite samples illustrate concentration and variability, without a fitted critical disorder. Details.At the two clean values are and . At , the computed median sample averages are approximately and . In the latter regime, doubling hardly changes the typical occupied site count, so falls. At weak disorder the larger chain permits more spatial extent. Neither a single curve nor the overlap of finite-size bands proves the infinite-system statement under mobility edge; a long localization length can hide confinement in either size.
Past exam of the mathematics course of the University of Cambridge 2001 ib Paper 2 3D Solution Created 2026-09-24 Updated 2026-10-14
For an observed , the continuous uniform distribution likelihood is , with . Multiplying by the stated prior cancels the factor , giving . Its integral over the permitted parameter values is . Hence the posterior distribution isThis is the exponential posterior for a uniform endpoint. Its posterior mean is and its variance is one. The posterior expected squared-error loss decomposes asSince , its unique minimum occurs at the Bayes estimate . The positive loss multiplier changes the risk, not the optimizing action.
The angular interval has width , so its continuous uniform distribution has probability density functionIntegrating this probability density function gives the cumulative distribution functionValues of the probability density function at the two individual endpoints may be assigned arbitrarily without changing any probability.
The new angular interval has width , so its probability density function is there. Its endpoints stay away from the poles of the tangent function, making bounded and its expected value finite. Integrate over the continuous uniform distribution of angles:The two cosines are and . HenceIt has units of length and is positive because the permitted positive angles extend farther than the negative ones.
The sample maximum has cumulative distribution functionThe product follows from independence of random variables and the continuous uniform distribution of each observation. For every , this cumulative distribution function tends to zero; for it equals one. These are exactly the values of the cumulative distribution function of the constant random variable at its continuity points. Therefore, by the definition of convergence in distribution,At the limiting cumulative distribution function is discontinuous, so the definition does not require checking that point, although also holds.
Set . In polar coordinates, the event is , the angular sectorBecause has the continuous uniform distribution on an interval of length , the probability is the sector's angular length divided by :The symmetry of the standard normal distribution in makes the lower sector equally likely. Their disjoint union is , apart from , an event of probability zero. Therefore the requested cumulative distribution function isThis is the unit-scale half-Cauchy distribution. At there is no atom, and as the cumulative distribution function tends to one.
The left panel uses , giving a sector of angle and probability . The right panel displays the domain for the next change of variables for probability densities; a vertical section through it determines the conditional range.
The joint probability density of the two independent standard normal random variables is . The polar coordinates map has absolute Jacobian determinant , so the change of variables for probability densities givesAt the origin the angle may be assigned arbitrarily: that point has probability zero. The joint probability density factorizes as a Rayleigh distribution density and a continuous uniform distribution density . Hence and are independent.
For , substitute to findTherefore , equivalently , and applying a measurable function to preserves its independence from . Explicitly, with ,Thus and independently. This polar decomposition of a planar standard normal vector separates the uniformly distributed direction from its random squared distance.
The adapted process is bounded by , so every is an integrable random variable, indeed a square-integrable random variable. Independence of from and its continuous uniform distribution giveThis calculation with a random threshold is justified by conditioning on the -measurable value of : for a fixed , the Lebesgue integral equals . More formally, independence integrates the bounded Borel measurable function over its second coordinate. Thereforewhich verifies the martingale property for this filtration.
Since , the conditional expectation of the squared martingale difference isThe law of total expectation yields . In particular, for every .
Let . The continuous uniform distribution likelihood contributes , while the Pareto distribution prior contributes . Their product proves Uniform-Pareto conjugacy:Thus the posterior distribution is Pareto with shape and lower bound . Its density is strictly decreasing on its support, so the highest posterior density interval begins at . Since the upper-tail probability is , the required upper endpoint satisfies . The Pareto highest density interval is therefore
Assume . An increasing affine map sends the two endpoints to zero and one when and . Solving givesIndeed, for , the cumulative distribution function of the transformed random variable iswhich is the cumulative distribution function of the continuous uniform distribution on .
A decreasing affine map works too, by swapping the endpoints:These are the two possible choices, since the image interval must have endpoints zero and one. The case cannot be transformed into a nondegenerate continuous uniform distribution by deterministic constants.









