Write for the training values of each component in the additive regression model. Separate the regression intercept from the smooth components by imposing for every . Without these constraints, adding a constant to a component and subtracting it from the intercept gives exactly the same mean function. A population alternative is when those expectations exist. Additional identifiability of additive regression components requirements exclude redundant component directions, as discussed below.
The backfitting algorithm proceeds as follows:
  • Initialize and for all , or use another centered starting fit. Choose the smoother and its tuning parameters for each predictor.
  • Cycle through . Form the partial residual , using the newest available component estimates.
  • Apply the generic smoother in predictor : . Center its fitted values and replace the current component by . The same centering constant is subtracted from its function when predicting at a new predictor value.
  • Repeat complete cycles until the components and fitted sum change by less than the chosen numerical tolerance. Return .
Because every component remains centered, the least-squares update of the intercept remains throughout. The essential update is
For penalized least-squares smoothers these updates are coordinate descent on the additive fitting objective. For a completely arbitrary smoother, convergence is an additional property to establish, not a consequence of merely specifying the iteration. Centering removes the constant ambiguity but does not by itself remove concurvity.
There are two distinct identifiability issues. Without centering, constants can move between the regression intercept and the additive components. After centering, the decomposition still fails to be unique if there are nonzero allowed centered perturbations satisfying
Then replacing by leaves every fitted response unchanged. This nonlinear analogue of multicollinearity is concurvity. For example, if two predictor columns are identical, a centered function can be added to the effect of the first and subtracted from the effect of the second. Conceptually, the data observe their combined effect but cannot tell which predictor deserves the credit. A unique fitted sum can therefore coexist with nonunique individual effects. Smoothness penalties can distinguish some such decompositions, so a representation ambiguity is not automatically an ambiguity of every penalized estimator.
For a precise criterion for the backfitting algorithm with linear smoothers, put , , and . On the centered component space its fixed-point equations are the linear backfitting equations
A consistent system has more than one solution exactly when there is a nonzero centered tuple satisfying for all . In the two-component case, elimination gives
Thus
A common centered direction reproduced exactly by both smoothers, , gives the homogeneous perturbation and is a concrete instance. For example, two identical predictor columns with smoothers that reproduce the same centered linear trend have this property. Approximate concurvity yields an eigenvalue near one, causing poor conditioning and slow or unstable component estimation, but it does not constitute exact nonuniqueness. Failure of an iteration to converge is also distinct from the existence of multiple fixed points.
To isolate the bias-variance tradeoff of the smoothing step, fix the three neighbor locations and write , with independent zero-mean errors of common variance . At a target , the local estimate is
The bias and variance of a three-neighbour weighted smoother are
Consequently the variance is minimized by equal weights, , when it equals . It decreases as increases from zero to , and increases thereafter toward as . In particular, variance is not increasing over the entire interval .
Giving more weight to the closest location reduces the influence of more distant responses and often reduces smoothing bias. If the closest location is the target itself, , put . Then the squared bias is , and
Thus a locally flat signal favors equal averaging, while stronger local smoothing bias favors greater nearest-point weight. At a general target the bias is affine in , and its absolute value need not decrease: farther neighbors can cancel one another's approximation errors. Even without that cancellation, a smoothness-based worst-case bias bound decreases with because the first neighbor is closest. The exact tradeoff is therefore lower variance near balanced weights versus potentially lower bias near the closest-point fit. These formulas describe the elementary smoother; fitted partial residuals, centering and repeated backfitting can introduce dependence, so the variance of the final additive fit requires its full fitting operator rather than this single-step calculation.
For an design matrix, distinguish the coefficient vector from the fitted-response vector. The ridge regression objective and its solution are
The gradient is . For , is a positive-definite matrix, so this is the unique minimizer even if is rank deficient. The expression with an additional leading is instead the -vector of fitted values,
This distinction corrects the dimensional mismatch in the printed coefficient-estimator notation.
The quadratic penalty discourages large coefficients, exchanging some bias for lower variance. If is a reduced singular value decomposition, with positive singular values , then
The principal-component shrinkage by ridge regression therefore shrinks directions with small most strongly. These are precisely the poorly determined directions created by multicollinearity, where ordinary least-squares coefficients can have large variance or fail to be uniquely determined. A positive penalty stabilizes their inversion and sets coefficients in the null space to zero. It does not make the predictors independent or provide a universal risk improvement for every signal. Because the penalty depends on coefficient units, predictors are ordinarily standardized before choosing by cross-validation. An unpenalized intercept in ridge regression is handled separately by centering; the displayed objective either has no intercept or applies the penalty to every component included in .
Use the Gaussian sampling model with known , and the independent prior with . A Gaussian prior alone is not enough to imply the ridge result without this likelihood assumption. The posterior distribution is proportional to
Maximizing it is equivalent to minimizing the ridge objective with . More explicitly, complete the square. The posterior precision, covariance matrix and mean are
Consequently the Gaussian posterior representation of ridge regression is
A tighter prior, smaller , implies stronger shrinkage; larger observation-noise variance at fixed prior scale also increases the penalty. The posterior covariance is , not the frequentist sampling covariance of the ridge estimator, which is . If an intercept is to remain unpenalized, give only the slopes this proper Gaussian prior and center the design and responses.
The ridge regression penalty is quadratic, whereas the Lasso uses an absolute-value penalty. To make the constants explicit, compare
Both trade goodness of fit against coefficient size, and both require sensible predictor scaling and tuning. Ridge continuously shrinks coefficient directions and generally retains all variables. The Lasso's nonsmooth penalty can set coefficients exactly to zero, so it performs variable selection as well as shrinkage. When , let . The distinction is especially transparent:
The second formula is soft thresholding. For general designs, the Karush-Kuhn-Tucker conditions for the Lasso give for a nonzero coefficient and for a zero coefficient. The latter interval permits exact zeros; the ridge equation instead is .
Ridge is especially useful for stable prediction when many predictors carry small effects or are highly correlated. Its strictly convex penalty gives unique coefficients for even in a rank-deficient design. It shares an effect among identical predictor columns: for a fixed coefficient sum the minimum quadratic penalty splits that sum equally. The Lasso can give a simpler sparse model when many effects are absent, but selection among strongly correlated predictors can be unstable. With identical columns, any same-sign split of a selected coefficient sum has the same absolute-value penalty and the same fitted values, so the coefficient vector need not be unique. This is a possible design degeneracy, not a claim that every Lasso fit is nonunique.
The penalties also encode different prior shapes: the Gaussian prior yields ridge, while independent double-exponential priors yield a Lasso posterior mode under Gaussian noise. A Lasso mode is not generally its posterior mean. Practically, sparse interpretability favors the Lasso, while stable distributed effects can favor ridge; prediction performance should be checked with cross-validation, and neither method universally dominates the other.
Use labels and base predictions . The binary AdaBoost algorithm starts with observation weights and score . For rounds :
  • Fit the weak learner to the training observations using weights , producing .
  • Compute its weighted error .
  • For , choose and update .
  • Reweight and normalize: , where is the sum of the unnormalized weights.
The final classifier is
Resolve a zero-score tie by a fixed convention. A classifier with error above may be sign-reversed if the base class permits it; otherwise it fails the weak-learning requirement and should be replaced. Error gives zero weight and no improvement. Error zero gives the limiting perfect-classifier step with infinite coefficient, so terminate with that classifier rather than computing the undefined finite update. Misclassified observations are multiplied by and correctly classified observations by , increasing the relative weight of errors for the next round. The procedure is sequential, and its number of rounds is a tuning parameter.
The exponential classification risk for the training sample is . At the start of round , define
Thus the observation weights arise directly from each point's current exponential loss. For a candidate base classifier and coefficient ,
where is its error under . For a fixed the bracket is increasing in , so the appropriate base fit minimizes weighted classification error. With fixed, differentiation gives
The second derivative is positive, hence the exponential-loss derivation of AdaBoost yields
The normalizer is . Consequently the next normalized weights again satisfy , proving the update by induction from uniform initial weights. The factor by which an error gains weight relative to a correct observation is .
This calculation also explains why repeated weak fits can improve training performance. Since the initial mean exponential loss is one, its value after rounds is . A misclassified point has and hence exponential loss at least one, giving the AdaBoost training error bound
The last inequality uses . This is a training guarantee under positive edges, not a guarantee that further rounds always improve prediction on new observations.
A random forest constructs an ensemble of classification and regression trees. For each tree, draw a bootstrap sample of the training observations. Grow the tree by recursive partitioning; at each node, draw a fresh random subset of predictor coordinates and choose the best split only among those coordinates, using a criterion such as Gini impurity. Trees are ordinarily grown deeply with a chosen minimum terminal-node size and without the pruning used to select a single small tree. Repeat for many independently randomized trees. For binary classification, predict by majority vote; for regression, average the tree predictions. The out-of-bag error predicts each observation using only trees whose bootstrap samples omitted it, furnishing an internal assessment of prediction error.
The strategies differ in how they form a useful ensemble. The forest uses resampling and random predictor subsets to decorrelate trees; averaging then reduces the variability of individual tree predictions. For illustration, if equally weighted predictions have common variance and pairwise correlation , the variance of their average is , showing why low inter-tree correlation matters. This identity describes a regression-prediction calculation; it is not an exact classification-error formula.
AdaBoost instead fits sequentially, with each round responding to errors of the accumulated score. It uses nonuniform observation weights and nonuniform final classifier weights derived from exponential loss; a forest's bootstrap sampling is ordinarily uniform and its final votes are ordinarily equal. Forest trees can be built in parallel once the data and tuning parameters are fixed, whereas each boosting stage depends on previous stages. Random forests commonly use deep trees; AdaBoost often uses shallow trees or stumps as weak learners, although its base class is not restricted to them. Reweighting persistent errors can make boosting sensitive to mislabeled points and outliers, while randomization and averaging often make a forest less sensitive; neither statement is a universal robustness theorem. Both methods require attention to ensemble size and tree complexity, and neither guarantees a better classifier for every dataset.
Random forests diversify and average randomized trees; AdaBoost sequentially fits errors and combines classifiers with loss-derived weights.
For a binary hypothesis class , a set of distinct points is shattered if every one of its binary labelings is realized by some member of . The VC dimension is
with value infinity if arbitrarily large finite sets are shattered. For real-valued scores, apply this definition to the associated binary decision functions, for example their signs. The word “some” matters: shattering every set of that size is not required.
As an example, take the interval classifiers on the real line, . Two ordered points can receive labels , , or by choosing an interval away from both, around the first, around the second, or containing both. Hence the class shatters two points. No three ordered points can be shattered, since any interval containing the first and third also contains the middle, making labeling impossible. Thus the VC dimension of interval indicators is
This describes combinatorial classification capacity, rather than merely counting written parameters; the definition applies equally to nonlinear or infinite-parameter classes.
Condition on the training covariates, and let . The fresh response has the same marginal distribution as and is independent of the complete training response vector, hence independent of . Assume the relevant second moments are finite. Expanding the squared errors gives
The first expectation averages over both training and new responses; the second averages over training responses only. Subtracting cancels both second-moment terms, leaving
Averaging over the design points proves the covariance formula for prediction optimism:
No linear fitting rule or Gaussian noise assumption is needed. The difference arises because a training response and its fitted value are dependent, whereas a fresh response and the fitted value are independent. Ordinary fitting often makes those covariances positive and the training error too favorable, explaining the name prediction optimism.
For example, if is a fixed linear smoother and , then . Thus
This links the optimism correction to effective degrees of freedom. For a data-selected fitting operator, its realized trace alone does not generally give the covariance penalty, since selecting the model uses the responses too.
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.

Articles by others on the same topic (0)

There are currently no matching articles.