Skip to content

Kernel Ridge Regression

A flexible, nonlinear prediction method: a kernel measures similarity between cases and a ridge penalty controls overfitting.

  • Prediction is the goal and the relationship is nonlinear or involves interactions you cannot specify in advance.
  • Datasets up to about 10,000 cases (the method uses an n × n matrix).
  • Cases are independent; the training data represent the cases you will predict.
  • Predictors on very different scales should be standardized.
  • Kernel and penalty must be tuned; use cross-validation rather than training-set fit.
  • Cross-Validation lists the mean squared prediction error for each penalty (alpha) and kernel width (gamma); the smallest is chosen.
  • Model Summary gives the training R² and RMSE (optimistic; rely on the cross-validated error).
  • The observed-by-predicted plot shows systematic misfit.

A kernel ridge regression with a radial basis kernel (alpha = 0.1, gamma = 0.1, chosen by 5-fold cross-validation) predicted yield with a cross-validated RMSE of 0.42.

Syntax: KRR y WITH x1 x2 /KERNEL=RBF /CROSSVALID=FOLDS(5) ALPHAS(0.01 0.1 1) GAMMAS(0.1 1) /STANDARDIZE /PLOT.


This page comes from OrcStat’s built-in help (the same text as in the app’s Help panel). To suggest a change, open an issue.