Discrete wavelet transform 2026-10-14
A discrete wavelet transform computes multiscale approximation and detail coefficients from sampled data. For the Haar wavelet, replace each adjacent pair byThe approximation coefficient is times the pair's arithmetic mean; it is not the ordinary mean. The detail coefficient records their signed contrast. Repeat on the approximation coefficients until only one remains, keeping every detail coefficient.
For a worked example, start with the vector . The first pass gives approximation coefficients and detail coefficients . Transforming the remaining pair gives the coarse coefficient and the half-to-half detail . In the order coarse value, coarse detail, then fine details, the transform isThis is an orthogonal matrix transformation. Each pair preserves , so the full transform preserves the squared Euclidean norm:The inverse function for each pair is , . Reversing the passes therefore recovers every original value. This squared-norm bookkeeping is often called signal energy; it need not represent physical energy. [ref]
https://www.mathworks.com/help/wavelet/ug/haar-transforms-for-time-series-data-and-images.html. MathWorks: Haar transforms, approximation/detail coefficients and squared-norm conservation
Continuous and discrete normalizations differ. If data values are interpreted as the heights of a step function on equal cells of , its normalized L2 inner product coefficients are the discrete coefficients divided by . For our four values they are , as the Haar projection example shows. The same normalization is used by the wavelet regression estimator on .
Under independent Gaussian noise with a common variance, orthogonality preserves that coefficient noise variance and independence. It does not make every arbitrary correlated signal independent: this statistical conclusion uses the Gaussian model and its equal-variance independent inputs.
For an integrable function on , average on each dyadic interval of length . The resulting step function converges to almost everywhere and in the L1 norm. If has the uniform distribution on , then , where rounds down to a dyadic endpoint. Refinement makes these conditional expectations a uniformly integrable martingale. The uniformly integrable martingale convergence theorem gives almost-sure and convergence in L1 to a limit .
Since , the generated limiting sigma-algebra contains up to null sets. For every event in any finite-stage sigma-algebra, convergence in the L1 norm gives . The pi-lambda theorem extends this equality to the limiting sigma-algebra, identifying . The uniform distribution of translates the two convergence conclusions into the assertions for . Choosing a Borel representative of and assigning arbitrary values at the endpoint one makes all random variables well defined without changing either conclusion.
Empirical distribution function Created 2026-09-24 Updated 2026-10-18
The empirical distribution function counts the fraction of observations at or below a threshold. For a statistical sample of real observations , defineEach indicator function contributes one exactly when its observation is counted. Equivalently, , where the empirical measure assigns probability mass to each observation, including repeated observations.[ref]
Choose the illustrative statistical sample . Its empirical distribution function isFor example, counts both observations equal to , , and . There is no observation at , so there is no jump there. The five observations produce only four distinct jump locations.
The convention makes the empirical distribution function right-continuous: once a threshold reaches an observation, that observation remains counted immediately to its right. For a finite statistical sample, the count is constant from any up to the next larger observed value, proving right continuity. Its left-hand limit counts observations strictly below , soA value occurring times causes one jump of size . At the jump is ; at , , and each jump is . All jumps sum to one. Thus the empirical distribution function is a nondecreasing step function with limits zero and one, and is itself a valid cumulative distribution function.
This turns many questions about data into simple cumulative distribution function operations. The observed fraction in is : for it is , counting and but excluding both s. Including the left endpoint gives . A sample quantile reads the same staircase in reverse: the smallest threshold reaching is . Unlike a histogram, this representation requires no choice of bins; its jumps retain every observation and its multiplicity.
The exact description of a finite statistical sample must be distinguished from a statistical model for how it was obtained. The empirical distribution function is defined for any finite list, with no independence assumption. Once the list is observed, its counts are fixed. For statistical inference, one often models as independent and identically distributed random variables with an unknown population cumulative distribution function . Then describes the sampling law, while varies across repeated statistical samples. The value is an observed fraction and an estimate of ; it does not establish that the population probability is . Even when is continuous, every finite is discrete.
For any threshold fixed before sampling, the indicator functions are independent Bernoulli random variables with success probability . Therefore the count has a binomial distribution andThe expected value follows by adding the expected values of the indicator functions; the variance follows by adding their variances using independence and dividing by . Thus is an unbiased estimator of at a fixed threshold. Controlling the error at every threshold at once requires more than a fixed-threshold calculation: the DKW inequality supplies such control, and the Glivenko-Cantelli theorem describes its uniform convergence almost surely as grows.
Comparing with a proposed cumulative distribution function also motivates goodness-of-fit tests, including the Kolmogorov-Smirnov test, the Anderson–Darling test, and the Cramér–von Mises criterion. A standard Kolmogorov-Smirnov test calibration assumes a fully specified continuous population law; fitting its statistical parameters from the same statistical sample changes that calibration.[ref]
1.3.5.16. Kolmogorov-Smirnov Goodness-of-Fit Test. NIST and SEMATECH e-Handbook of Statistical Methods; Characteristics and Limitations, items 1 and 3; Definition, test statistic and fully specified distribution requirement
Haar projection Created 2026-10-06 Updated 2026-10-14
The Haar projection at level is the orthogonal projection onto the functions constant on level- dyadic intervals. On each cell it replaces by its cell average. This is the closest cellwise-constant approximation in the L2 norm, because choosing a constant on a cell minimizes at its cell average.
On , take the step function with values on successive quarter-intervals. At level zero, its Haar projection is the constant . At level one, it has values and on the two halves. At level two, it recovers the four original values exactly. With normalized Haar wavelets, these approximations areThe coefficients are L2 inner products, so they differ from the discrete vector coefficients by the factor . Their squared sum also has a direct meaning:The approximation errors in squared L2 norm of are respectively : each added detail removes exactly its own squared coefficient from the error.
Coarse mean, half-interval contrasts and quarter-interval details reconstruct the same four-step function
. Details. The Haar projection can be expressed using level- Haar scaling functions, or through a coarse scaling family and the Haar wavelets at intermediate levels. On with lowest level zero, that coarse family is the single constant function . On the whole real line, use the integer translates of a coarse Haar scaling function instead; one global constant is not square-integrable. Refinement improves the representation while retaining the earlier coefficients.
Haar wavelet Created 2026-10-05 Updated 2026-10-14
The Haar wavelet is a signed contrast between two adjacent half-intervals:It has compact support, zero integral, and unit L2 norm: and . The zero integral is its one vanishing moment. Its Haar scaling function is , which records a coarse value rather than a contrast. Endpoint conventions do not alter the L2 inner products.
The normalized copies compare the halves of the dyadic interval . Narrower copies are taller so that their L2 norms stay one. Thus a coefficient identifies both a location, through , and a scale, through .
For a simple step function equal to on and on , its coarse coefficient is , while its first contrast is . Thus . The negative coefficient raises the second half and lowers the first. Finer contrasts vanish because is constant on each half. A jump aligned with this dyadic interval boundary therefore needs only two nonzero coefficients; jumps at other positions can require details at many scales.
Its jump discontinuities make the Haar wavelet particularly transparent for changes between neighbouring regions, while limiting approximation of smooth variation. A Daubechies wavelet uses a more elaborate pattern to obtain additional vanishing moments and, at sufficiently high order, smoother basis functions. The elementary Haar refinement identity has coefficients and explains how the coarse and fine descriptions fit together.
The historical source is Alfred Haar's [ref]
https://history-of-approximation-theory.com/fpapers/haar1910.pdf. Zur Theorie der orthogonalen Funktionensysteme, Mathematische Annalen 69 (1910), pp. 331–371
. Chapter III, beginning on page 361, constructs the constant function and these localized piecewise-constant orthogonal functions. Its original endpoint assignments differ from the half-open convention used here, without changing L2 inner products. Monotonic function 2026-10-14
A real-valued function , with domain of a function in the usual order of the real numbers, is a monotonic function if it is either a nondecreasing function throughout or a nonincreasing function throughout . The same direction must work for every pair in . Being a strictly increasing function on one part and a strictly decreasing function on another does not make the whole function monotone: for example, on the real line changes direction at zero. A constant function is both a nondecreasing function and a nonincreasing function.
The word "increasing" is ambiguous across textbooks: some allow equal outputs and some require unequal outputs. Use nondecreasing function for the weak inequality and strictly increasing function for the strict inequality; use nonincreasing function and strictly decreasing function in the other direction. Neither continuity nor differentiability is part of the definition of a monotonic function.
Strict monotonicity gives injectivity, so an equation has at most one solution and an inverse function exists on the image of a function. Weak monotonicity permits repeated outputs and jumps. In probability theory, a cumulative distribution function is a nondecreasing function; its quantile function uses a generalized inverse to handle those flat parts and jumps. Monotonicity alone does not guarantee continuity, even for a strictly increasing function.
Nondecreasing function Created 2026-10-06 Updated 2026-10-14
A real-valued function is a nondecreasing function if every pair in its domain of a function satisfies . Flat intervals are allowed, unlike for a strictly increasing function. For example,is a continuous nondecreasing function, but it repeats its output on each flat interval.
A nondecreasing function can also be discontinuous. The step function for and for has a jump discontinuity at zero without ever decreasing. It is the cumulative distribution function of a random variable that equals zero with probability one; quantile functions handle such jumps through a generalized inverse. Nondecreasing allocation functions permit critical-value payments in single-parameter mechanisms.
Past exam of the mathematics course of the University of Cambridge 2001 ia Paper 1 12D ii Solution Created 2026-09-24 Updated 2026-10-14
Put . At an interior point and for small enough,By continuity at , the modulus is bounded by the supremum of between and , which tends to zero. Thus the fundamental theorem of calculus givesAt the interval endpoints the same argument supplies the corresponding one-sided derivatives.
For an integrable discontinuous function, the single-point spike from part (i) has , so ; this disproves the derivative identity even when the primitive is differentiable. To see that differentiability itself may fail, take the step function for and for . It is Riemann integrable, but its primitive is and has left derivative zero and right derivative one at . Hence the full assertion is false for general Riemann-integrable functions.
Past exam of the mathematics course of the University of Cambridge 2002 ia Paper 1 10C iii Solution Created 2026-09-24 Updated 2026-10-14
Past exam of the mathematics course of the University of Cambridge 2008 ii Paper 4 25J iii Solution Created 2026-09-24 Updated 2026-10-14
Choose a step function with , by part (i). The Fourier transform satisfiesBy part (ii), . Since is arbitrary,This proves the Riemann-Lebesgue lemma with the transform convention in the question.
Past exam of the mathematics course of the University of Cambridge 2008 ii Paper 4 25J i Solution Created 2026-09-24 Updated 2026-10-14
Work in the real space, consistent with the specified real step coefficients. First approximate an integrable function by a finite-valued measurable function with bounded support. Truncate its domain to and its values to ; the error tends to zero by integrability. Quantize those remaining values in intervals of mesh , producing a simple function with finite-measure Borel sets and error at most on the truncated domain. Thus can be made arbitrarily small.
For each , use the allowed approximation by a finite union of intervals , choosing the symmetric-difference errors soThese unions can be written as finite disjoint bounded intervals, and changing endpoints to the required half-open convention changes only a null set. The function is therefore a step function of the specified form, andCombining the two approximations proves the step functions are dense in . In the complex version of , the same argument applies to real and imaginary parts when complex step coefficients are allowed.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 64 3 ii Solution Created 2026-10-03 Updated 2026-10-07
First apply Lebesgue decomposition to the derivative measure relative to :Here is the almost-everywhere approximate gradient, rather than an assertion that belongs to . Split the singular part into its jump part of a BV derivative and Cantor part of a BV derivative:An approximate jump point has a unit normal and distinct finite BV traces on a hypersurface , obtained as mean limits on the corresponding two half-balls. Their set is the jump set of a BV function, countably -rectifiable. Reversing the normal swaps the BV traces on a hypersurface and leaves the displayed measure unchanged. The approximate discontinuity set differs from only by an -null set.
The remaining is singular to Lebesgue measure and gives zero mass to every set with sigma-finite measure. It is diffuse rather than a second jump contribution. In one dimension the three parts are illustrated by an affine function, a step function and the Cantor function, respectively. Countably many jumps therefore do not imply that the singular derivative has no Cantor part of a BV derivative.
Past exam of the mathematics course of the University of Cambridge 2016 ia Paper 1 12F Solution Created 2026-09-24 Updated 2026-10-06
The stated bound is Lipschitz continuity with constant . For every and every , taking ensures whenever . The same works at every point, so is both continuous and uniformly continuous.
For an integer , partition into equal intervals and define a step functionAt the remaining endpoint set , so the final interval may be taken closed on the right. The Lipschitz bound givesChoosing proves the requested uniform step approximation on a compact interval:A sufficiently fine partition gives a piecewise constant approximation uniformly over the whole interval.
The continuous function and every finite step function are Riemann integrable. Put . Integrating each constant piece explicitly givesSince the sine differences have absolute value at most , the triangle inequality and uniform approximation giveTo prove convergence, fix and first choose with . With this held fixed, the finite number is independent of , so the second term is also less than for sufficiently large . ThereforeFirst make the approximation error small, then let the oscillation frequency grow. This is the step-function proof of the Riemann-Lebesgue lemma; it does not require assuming that a Lipschitz function has an everywhere-defined derivative.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 202 1 iii Solution Created 2026-10-03 Updated 2026-10-05
For deterministic step functions, define directly from Brownian motion incrementswith the left endpoint of the first interval and outside the listed intervals. The printed endpoint list omits ; the intended convention is , usually .
Given finitely many observation times, refine the deterministic partition of an interval to include all observation times and all . Every is a linear combination of the same finite family of independent centered normal Brownian motion increments. Thus every linear combination of is normal, including possibly a degenerate constant: is a Gaussian process. By independence, only increments in the common interval contribute to the covariance, givingThe same calculation for two step functions proves, rather than assumes, the Itô isometryFor , choose deterministic step functions in the L2 space. This identity makes a Cauchy sequence in the L2 space; the Riesz-Fischer theorem defines by mean-square convergence, independently of the approximation. The covariance formula passes to the limit by the Cauchy-Schwarz inequality. For finitely many times and coefficients , the characteristic functions converge toso the extension remains a Gaussian process.
For completeness, the construction has a continuous version. Each approximating is a martingale, directly by the centered independent increments of Brownian motion; the Doob L2 maximal inequality givesTo prove the inequality used here without assuming Itô integral properties, a continuous martingale satisfies , by conditioning at the first crossing on finite deterministic grids and then using continuity; integrating in and using the Cauchy-Schwarz inequality yields . A sufficiently fast subsequence therefore converges uniformly almost surely on every compact time interval, giving the continuous version of the stochastic integral.
Past exam of the mathematics course of the University of Cambridge 2019 ib Paper 4 12E b iii Solution Created 2026-09-24 Updated 2026-09-29
The space is not compact because it is not complete. For , define the continuous functionThese functions converge in the L1 norm to the step function , because is supported on an interval of length and bounded in absolute value by one. They are consequently Cauchy for the metric , since for sufficiently close pairs the outer minimum with does nothing.
If converged in this metric to some , it would also converge to in . Uniqueness of an limit would give almost everywhere. Continuity would then force on and on , which is impossible at . Thus this Cauchy sequence has no limit in , while every compact metric space is complete.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 3 35D Solution Created 2026-09-24 Updated 2026-10-03
The chemical potential is the change in internal energy when one particle is added at fixed entropy and volume:Equivalently, for the Helmholtz free energy.
Let a microstate have energy and particle number . Maximizing the Gibbs entropy subject to normalization and fixed mean values of and is the maximum-entropy derivation of equilibrium ensembles. With Lagrange multipliers , , and , varyThe stationarity equation is . Normalization therefore gives the grand canonical ensembleHere is the grand canonical partition function and is the Boltzmann constant.
For one fermionic quantum state of energy , the Pauli exclusion principle permits occupation numbers only . Its two grand-canonical weights are and , so its mean occupation is the Fermi-Dirac distribution
For a free nonrelativistic particle, . In a region of area , the number of wave-vector states in the annulus from to , including the two spin angular momentum states, isSince , the two-dimensional free-electron density of states is constant:
We now use units in which , as in the question. At zero temperature, the Fermi-Dirac distribution is a step function, and henceAt positive temperature the same fixed particle number satisfies the exact relationThusThis is the low-temperature particle-number cancellation for constant density of states. Therefore, for , the mean number of particles in the energy interval is
Finally, compare the internal energy with its zero-temperature value. The thermally excited particles above and holes below have equal leading particle numbers, so their terms proportional to cancel. With ,where the integral follows from the fermion-to-boson thermal integral ratio. Differentiation gives the linear low-temperature heat capacity of a two-dimensional Fermi gas:The requested power law is therefore linear in , with exponent one.



