Support vector regression (SVR) is a machine learning method that fits a function to data while ignoring errors smaller than a set margin. It keeps only the data points that fall on or outside that margin, called support vectors, which makes it resistant to noise. With kernel functions it can model nonlinear relationships.

How it works

SVR looks for the flattest function that keeps most points within a tube of width epsilon around it. Points inside the tube cost nothing; points outside are penalized, with the penalty set by a parameter C. A kernel, such as the radial basis function, maps the data so that curved relationships can be fitted.

Key parameters

Three settings control an SVR model:

  • Epsilon: the width of the tube, or how much error is ignored.
  • C: how strongly errors outside the tube are penalized.
  • Kernel and its parameters: how flexible the fitted function can be.

Use with simulation

SVR is one of several machine learning methods that can forecast inputs, such as demand or processing times, that then drive a simulation model.

Common mistakes

These are the mistakes we see most often:

  • Fitting without scaling the input variables.
  • Tuning C, epsilon and the kernel on the same data used to report accuracy.

Support Vector Regression FAQ

Linear regression minimizes squared error on every point. SVR ignores small errors inside a margin and can fit nonlinear relationships with kernels.

For small to medium data sets with noisy, possibly nonlinear relationships. For very large data sets, tree-based models are often faster.