Basis Functions

Basics of Basis Functions

  • Basis functions are thought of as families of transformations of our predictors
  • The family function is usually flexible enough to transform our data to a wide variety of shapes, but not overly flexible where there is overfitting
  • Roughly speaking, a basis function refers to any function applied to a predictor in a model

Examples of Basis Functions

  • For the following examples, let's assume XX and ZZ are both random variables
  • Linear functions

    • Linear functions are the product of any number of constants and a single predictor variable
    • The following are some examples of linear functions:
    1X,1X,56X1X, -1X, 56X
  • Polynomial functions

    • Polynomial functions are the product of any number of predictor variables

      • The following are some examples of polynomial functions:
    ZX,XX,X2,ZX3,ZXXZX, XX, X^{2}, ZX^{3}, ZXX
  • Exponential functions

    • Exponential functions are the exponential of a predictor variable
    • The following is an example of an exponential function:
    exp(X)exp(X)
  • Logarithmic functions

    • Logarithmic functions are the logarithm of a predictor variable

      • The following is an example of a logarithmic function:
    log(X)log(X)
  • Cosine functions

    • Cosine functions are the cosine of a predictor variable
    • The following is an example of a cosine function:
    cos(X)cos(X)

References

Next

Ridge Regression