A discrete wavelet transform computes multiscale approximation and detail coefficients from sampled data. For the Haar wavelet, replace each adjacent pair by
The 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 is
This 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]
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.
Dyadic partition Created 2026-10-06 Updated 2026-10-07
A dyadic partition of at level consists of equal cells of length . Each cell splits into two cells at the next level. Use left-closed, right-open cells, adding the endpoint to the final cell when a pointwise representative is needed. These nested partitions underlie the Haar scaling functions and Haar wavelets.
At each point there is at most one supported Haar wavelet per scale. If a detail coefficient is below , its value there is at most . Summing these bounds up to level gives the displayed geometric estimate. Selecting so the final term is of the order of the modulus of continuity controls all omitted fine details, even though arbitrary deletions from a uniformly convergent series need not preserve convergence.
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 are
The 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.
Figure 1.
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 .
Figure 1.
The Haar wavelet and two finer localized contrasts have zero integral and unit L2 norm
. Details.
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]. 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.
Let be an integrable function with at least one vanishing moment. For a unit jump discontinuity , where is the Heaviside step function, substitution into the coefficient gives
The signed integral of the whole analyzing function is zero, but the jump discontinuity cuts through its support of a function and usually leaves an unbalanced partial integral. At fixed relative position with nonzero partial integral, the coefficient decays as , slower than the Taylor remainder bound on a smooth region. “Edges survive” means this relative contrast: the normalized coefficients still tend to zero as .
For an original exact comparison, use the smooth polynomial at . The Haar wavelet and the second-difference analyzing function give
The linear term cancels for ; it remains for . For the fixed unit jump discontinuity , choose so that at every scale. Then
Figure 1.
Exact normalized detail coefficients across scales for a smooth polynomial and a fixed unit jump
. Details.
Position matters. If an analyzing function's support of a function lies entirely on one constant side of the jump discontinuity, its coefficient is zero. Even a crossing can cancel: has zero partial integral at . A jump discontinuity on a dyadic interval boundary can likewise escape finer Haar wavelets whose supports do not cross it. These examples describe particular functions and normalizations, not a universal ranking of wavelets for signal processing.
Let for and . Integrating these Haar wavelets gives tents of height supported on the corresponding dyadic intervals. For independent standard normal random variables , the displayed series, summed level by level, is exactly the succession of midpoint displacements in the Lévy construction of Brownian motion. Its almost sure convergence is uniform, and its limit is standard Brownian motion. This gives a continuous function from Gaussian coefficients even though the unintegrated unit-variance Haar wavelet series diverges in L2 space.
Multiresolution analysis Created 2026-09-24 Updated 2026-10-14
A multiresolution analysis organizes a function into successively finer approximation spaces. In the usual orthonormal construction on , these are closed linear subspaces with
Rescaling relates the levels: if and only if . Integer translates of a scaling function form an orthonormal basis of . The detail space is the orthogonal complement of inside , giving . Coarse information and new details therefore fit together without overlap in squared L2 norm.
For the Haar wavelet, consists of square-integrable functions constant on cells of length . Splitting every cell into two halves creates one new contrast per old cell, the Haar refinement identity. On the bounded example , the first three spaces have dimensions : a whole-interval mean, two half-interval means, and four quarter-interval means. The Haar projection diagram displays those three resolutions. This bounded construction starts at level zero; the displayed intersection condition refers to the full family on the real line.
The usefulness is a controlled way to increase resolution. Earlier coarse information remains available while new wavelet coefficients identify what the finer description adds. The wavelet approximation complexity connects this extra resolution to both approximation error and the number of coefficients being estimated. [ref]
Orthonormal wavelet Created 2026-09-24 Updated 2026-10-14
An orthonormal wavelet generates an orthonormal basis of through
The factor compensates for the shrinking support of a function, keeping the L2 norm equal to one. Orthogonality makes different coefficients separate squared-norm contributions, and completeness allows the wavelet series to recover any square-integrable function in the L2 norm.
For the Haar wavelet, wavelets at one scale have disjoint supports. At different scales their dyadic intervals are either disjoint or nested. On the support of the finer wavelet, the coarser one is constant, while the finer one has zero integral, so their L2 inner product is zero. Together with the unit L2 norm, this explains orthonormality. On the bounded interval , add the constant Haar scaling function and use , ; the constant function is not an basis element on the whole line.
Enumerate the orthonormal basis consisting of and the Haar wavelets as , and enumerate the corresponding independent standard normal random variables as . Set . The Parseval identity for a Hilbertian basis gives
The partial sums form a martingale for , since the next summand is independent of the past and has mean zero. Moreover,
The martingale convergence theorem for a martingale bounded in L2 space proves convergence almost surely and convergence in L2. Equivalently one may apply the Kolmogorov convergence theorem to the summable variances .
A finite linear combination of independent normal random variables is normal. Its characteristic function is . Passing to the limit identifies
For this is the constant zero random variable. Each fixed has its own permissible null set; simultaneous pathwise convergence for all is unnecessary.
Let . The assumed orthonormality of the Haar wavelets gives
Enumerate the coefficients level by level as . They are independent and identically distributed standard normal random variables, so the squares have mean one. The strong law of large numbers implies
Consequently,
A convergent sequence in a Hilbert space must be bounded in norm. Hence this random Haar wavelet series diverges in almost surely.
Put and represent the circle by . The full orthonormal basis of Haar wavelets includes the constant and, for every dyadic interval of length , the normalized detail
Take half-open intervals and the corresponding values at their boundaries, so every point belongs to exactly one interval at each level. The constant basis function is necessary: if it were omitted, even could not satisfy the asserted convergence. We use the full conventional Haar wavelet system in the threshold sum.
Let be the function equal to the mean of on each level- dyadic interval. Comparing the means on a parent and its two children proves the Haar refinement identity directly: the difference between the child mean and the parent mean is the appropriate value of . Inductively this gives the Haar projection
Writing for the modulus of continuity, the cell-average formula yields
For a detail on a cell , its integral is zero. Subtracting for any therefore gives the coefficient estimate
In particular , so for every only finitely many details can have . The hard-threshold sum
is thus a well-defined finite sum. Its chosen details need not form a complete set of levels; this is why convergence of the Haar projections alone does not prove the result.
Fix . Choose so that . All finer details satisfy at level . For sufficiently small , every nonzero coefficient at levels below , and the constant coefficient if nonzero, is retained. Also choose the unique integer such that
For we have , so no such detail is retained. Consequently differs from only by omitted details at levels through . At any point there is at most one supported detail per level, and an omitted detail has magnitude at most . The geometric bound for omitted Haar details gives
Since , we conclude
The right side can be made arbitrarily small, proving uniform hard-threshold convergence of normalized Haar expansions:
The square-root scaling imposed by the specified normalization is what makes the omitted contributions a controlled geometric series.
An orthonormal multiresolution analysis is a sequence of closed subspaces satisfying , , , and iff . A scaling function has integer translates forming an orthonormal basis of , and its scaled translates span . Thus contains information at resolution about .
The detail space is generated by the corresponding wavelet functions . The orthogonal splitting iterates to
Accordingly a square-integrable signal has a coarse-and-detail wavelet series,
and its wavelet projection onto keeps the coarse coefficients and details below level . Increasing adds finer-scale oscillations and localized features. On the real line there are infinitely many translates at each level; for a bounded observation interval, with an appropriate interval or periodic construction, the relevant approximation dimension satisfies . For the Haar wavelet on a unit interval this is exactly , corresponding to a separate mean on each dyadic subinterval.
This hierarchy gives a concrete meaning to wavelet approximation complexity. Coarse resolution uses few coefficients and can miss sharp features; fine resolution uses more coefficients and can fit noise. By orthogonality, projection bias is the energy of the omitted details,
For an orthonormal sequence model with independent coefficient noise of variance , estimating the retained coefficients without shrinkage gives
The first term decreases with resolution while the second increases, making the bias-variance tradeoff explicit. Equivalently, a fixed orthogonal regression projection of rank has effective degrees of freedom and prediction optimism under independent equal-variance errors.
Wavelets also permit local rather than only global complexity control. Thresholding small estimated detail coefficients, for example by soft thresholding, retains strong local structure while suppressing fine-scale noise elsewhere. A sparse retained coefficient set can represent localized features much more economically than keeping every coefficient through a high level. Its locations and scales matter as well as its count. If that set is selected using the same noisy responses, however, selection adds adaptivity: its raw coefficient count is not automatically its covariance-based degrees of freedom. Resolution or threshold tuning should therefore account for prediction error, using an appropriate risk estimate or cross-validation, rather than only decreasing training error.
Wavelet complexity is controlled by retained resolutions and coefficients; more detail reduces approximation bias while increasing estimation variance and sensitivity to noise.
Let be the scaling function and an orthonormal wavelet, with and . For , the wavelet series at a coarse level is
The series converges in the L2 norm. Its coarse part captures broad variation and successive wavelet levels add finer detail. Truncating at levels produces the orthogonal projection onto ; Parseval identity makes its squared approximation error the sum of the omitted squared coefficients. Merely square-integrable functions need not have pointwise convergence.
For the Haar wavelet, use the cell convention and let be the unique such interval containing . The Haar scaling functions are , so the Haar projection is
For a merely locally integrable function this cell-average formula remains defined, even if a global orthogonal projection is unavailable. If , the mean value theorem gives Lipschitz continuity and, since on the cell,
Thus the requested bound holds with , by the Haar projection error for a Lipschitz function.
To estimate a density, replace each scaling or wavelet coefficient or by the sample average of that basis function. The finite-resolution Haar density estimator is therefore
It is the histogram on the dyadic cells, is nonnegative, and integrates to one. Its expectation is . A density with bounded derivative is bounded: the Lipschitz density height bound gives by integrating the triangular lower envelope . The case cannot be a probability density on the whole real line. Hence .
The cell probability is . The sample count has a binomial distribution, so
The Cauchy-Schwarz inequality bounds the mean centered absolute deviation by the square root of this variance. Adding the projection bias gives
Choose , so . The two terms have the same order, and
This is a bias-variance tradeoff: refining the cells decreases the averaging bias but increases the sampling variance.
The Haar projection averages this normal distribution density on each cell; the finer cells follow its variation more closely. A Haar density estimator replaces these exact cell probabilities by empirical frequencies and therefore also introduces sampling noise.
For an orthonormal wavelet construction, set
The scaling function generates the approximation spaces , while generates the detail spaces in the multiresolution analysis, with . At coarse resolution zero, the family is an orthonormal basis of .
For the given square-integrable function the coefficients and wavelet series are
For real wavelets these are the real L2 inner products; use complex conjugates for a complex basis. The series converges in the L2 norm, and its coefficients satisfy the Parseval identity for a Hilbertian basis
An hypothesis alone does not assert pointwise convergence.
The resolution- wavelet projection is the orthogonal projection onto :
The two expressions coincide by iterating . Orthogonality gives , which tends to zero. One can equivalently write the projection with kernel , interpreted as the same orthogonal projection.
In fixed-design nonparametric regression, the observations satisfy
with independent errors. In the usual Gaussian version . The regression function is evaluated at the design sites, so it must be specified pointwise there, not only as an equivalence class. For , the observations concern on . They cannot identify its values outside this interval. Use an interval-adapted wavelet basis on , consisting of coarse functions and detail functions ; a Haar wavelet basis is one explicit choice.
Here is a wavelet regression estimator valid for every . Divide into cells , with the value at zero assigned arbitrarily, and form the observed step function on . For any normalized basis function , estimate its coefficient by
The wavelet regression estimator at resolution is therefore
Only finitely many interval basis functions occur. Its expectation is , where equals on . Thus approximation of includes the resolution bias and the grid discretization bias. For continuous , the latter tends uniformly to zero by uniform continuity. No smoothness or consistency claim for arbitrary pointwise representatives of functions is needed to define the estimator.
The common point-evaluation version replaces each weight by , giving
These are Riemann-sum approximations to the coefficient integrals. For Haar wavelets, , and , they equal the integrated-weight coefficients exactly if the dyadic cells and pointwise basis versions are chosen right-closed. Each retained basis function is then constant on every sampling cell. This gives a concrete implementation by the discrete wavelet transform. A sensible finest resolution has ; beyond the grid scale there are details the data cannot resolve.
For wavelet coefficient thresholding, retain the coarse coefficients but discard detail coefficients dominated by noise. A hard-threshold version is
Alternatively, soft thresholding replaces each detail coefficient by . The unthresholded wavelet regression estimator retains all details at the chosen resolution; thresholding retains evidence for local features while suppressing small fluctuations.
The thresholds can be derived from a simultaneous wavelet coefficient noise bound. Write . Independence gives
where the inequality applies the Cauchy-Schwarz inequality on each cell of length . In the dyadic Haar implementation, exactly. For Gaussian errors, the normalized coefficient noise is standard normal. More generally, independent centred sub-Gaussian random variables with parameter give
If detail coefficients are considered, a union bound consequently justifies
With probability at least , every retained detail's noise is below its corresponding threshold; independence between the coefficient errors is unnecessary. With of order and , these thresholds have the familiar order . Coefficients larger than their noise level represent potential signal, and a coefficient zero in the discretized mean is not selected on this simultaneous event. If is unknown, a consistent noise-scale estimate can be substituted; for Gaussian errors and predominantly negligible finest-level signal, the median absolute finest-level coefficients divided by the standard-normal absolute median estimates . Without a Gaussian or sub-Gaussian tail assumption, finite variance alone does not justify the logarithmic thresholds: Chebyshev inequality and the union bound instead permit .
Use half-open intervals and set
The Haar scaling functions and Haar wavelets are
For fixed , each scaling function has squared integral , and different have disjoint supports, proving that this family is orthonormal. Each wavelet also has norm one and integral zero. At a fixed level, distinct wavelets have disjoint supports. At different levels, their dyadic supports are either disjoint or the finer support lies in a half on which the coarser wavelet is constant. The finer wavelet has integral zero, so their inner product vanishes. Finally, a wavelet with is supported inside a unit interval; it is orthogonal to its containing because its integral is zero, and to all other unit scaling functions because their supports are disjoint. Thus both the scaling family at each fixed level and the complete stated Haar family are orthonormal sets.
The Haar refinement identity is
It shows that the closed scaling spaces satisfy , where is the closed span of the level- wavelets. The union of the is dense in : continuous compactly supported functions can be approximated in by their dyadic cell averages, and such continuous functions are dense in . Hence the orthonormal Haar family is also a complete orthonormal basis.
For a locally integrable function, define the compact-support coefficient integrals
These exist without requiring . The two formulas for the Haar approximation are
For the wavelet sum is empty. For every fixed , these sums are locally finite, so they make sense pointwise and locally in . The refinement identities and their orthogonal two-by-two coefficient transformation establish equality by induction, even for merely locally integrable . If , this is also the orthogonal projection onto .
In particular, for and ,
Now impose the symmetry and monotonicity conditions. The limit zero and decrease on imply for . For , the cell average and every value inside lie between and . Therefore
Summing over the positive half-line telescopes and gives a bound . Reflection maps each dyadic cell to another dyadic cell up to endpoints. Since is even, its Haar approximation is even almost everywhere as well, so the negative half-line has the same error. Consequently
The argument proves integrability of the difference, even if itself is not integrable on the whole line. It is the symmetric monotone case of the Haar approximation error for a function of bounded variation.
In the Gaussian white noise model, observe the entire path
where is standard Brownian motion and the deterministic drift belongs to L2 space on . Equivalently, . For every deterministic , the observed stochastic integral satisfies
The noise is an isonormal Gaussian process. In particular its variance is . Gaussian white noise is interpreted through these integrals, rather than as an ordinary random function with a pointwise value at every time. No smoothness of is needed.
Here is the Gaussian maximum bound without independence. Put . It is integrable since it is bounded by . For every ,
The second inequality uses only the moment-generating function of the standard normal distribution, so independence is unnecessary. Jensen inequality gives , hence
Minimizing at proves
For the dyadic partition, let , , putting the endpoint into the final interval. The Haar scaling functions
form an orthonormal basis of the space of functions constant on each interval. The Haar wavelets can be written as
For , the constant function together with , , is another orthonormal basis of . Indeed, each successive level splits a cell's two constants into their sum and difference; the number of basis elements is . Thus the Haar projection is the orthogonal projection
On cell its value is . The first formula also applies to .
Estimate each coefficient by its observed stochastic integral:
This is the Haar projection estimator in Gaussian white noise. The noise integrals over disjoint intervals form a Gaussian vector with zero off-diagonal covariance. The principle that uncorrelated jointly Gaussian variables are independent then makes these coefficients independent. Therefore
Taking expectations shows that is an unbiased estimator of , both coefficientwise and pointwise for the stated step-function representatives.
Only one scaling function is nonzero in each cell, so the supremum norm of the error has the exact form
The endpoint convention ensures the same identity at . Apply the Gaussian maximum bound without independence with to obtain the supremum norm risk of a Haar projection estimator:
The factor comes from cellwise scaling, while the extra square root of comes from taking the maximum over Gaussian errors.
The answer is no with the integer-translation and dilation conventions of this multiresolution analysis. The orthonormal basis axiom forces to consist of functions constant on the cells . Dilation forces to consist of functions constant on . However, the proposed scaling function changes value at , in the interior of the cell . It is therefore not in , contradicting nesting:
Changing values at endpoints makes no difference in . The usual Haar wavelet instead uses the scaling function ; an arbitrary half-unit translation does not preserve the required refinement grid.
With vanishing moments, a wavelet annihilates every polynomial of degree below . A Taylor polynomial then explains small wavelet coefficients on smooth parts of a signal, and efficient best N-term approximation. Compact support localizes coefficients near a feature, limits the number of boundary interactions, and permits a finite filter implementation. Increasing the number of vanishing moments while keeping an orthonormal basis generally requires a larger support of a function: a finite orthonormal filter with vanishing moments needs at least taps, and the minimal-support Daubechies wavelet has support length in the standard normalization.
The Haar wavelet, , has one vanishing moment, unit support length and discontinuities. It is inexpensive and particularly suitable for piecewise constant data with sharp jumps. A Daubechies wavelet of a larger order has more vanishing moments and a longer finite filter; sufficiently large orders also provide greater regularity. It is useful when smooth trends should yield small coefficients, although the wider support of a function can spread a jump across more coefficients. Choose Haar for compact jump localization; choose a higher-order Daubechies wavelet for smooth polynomial structure. More vanishing moments alone does not make every low-order wavelet highly differentiable.
The Haar wavelet provides an explicit one-vanishing moment comparison:
It cancels a constant polynomial, but not a nonconstant affine function. To obtain two vanishing moments by an equally transparent construction, take three adjacent unit intervals with heights proportional to :
The L2 norm normalization follows from . Direct integration gives
Thus has exactly two vanishing moments. In fact its coefficient is a finite difference of adjacent local integrals:
The weights are those of the second-order central difference. The first moment balances the centres of the three intervals; it is not enough merely to balance their signed areas.
Figure 1.
Signed overlaps of the Haar and second-difference analyzing functions with constant, linear, and quadratic test polynomials
. Details.
This is a normalized analyzing function, with no orthonormal basis assertion. Indeed, its unit translate has nonzero L2 inner product:
Hence these translates already fail orthogonality. The Daubechies wavelet construction imposes additional refinement and orthogonality requirements; two vanishing moments and unit L2 norm by themselves do not supply those requirements.