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 and 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:
-
Polynomial functions
-
Polynomial functions are the product of any number of predictor variables
- The following are some examples of polynomial functions:
-
-
Exponential functions
- Exponential functions are the exponential of a predictor variable
- The following is an example of an exponential function:
-
Logarithmic functions
-
Logarithmic functions are the logarithm of a predictor variable
- The following is an example of a logarithmic function:
-
-
Cosine functions
- Cosine functions are the cosine of a predictor variable
- The following is an example of a cosine function:
References
Next