Generalized additive models(GAMs) provide a general framework for extending a standard linear model by allowing non-linear functions of each of the variables, while maintaining additivity. GAMs can be applied with both quantitative and qualitative responses.
GAMs for Regression Problems
It is called an additive model because we calculate a separate for each , and then add together all of their contributions.
Advantages and limitations of a GAM:
- GAMs allow us to fit a non-linear for each , so that we can automatically model non-linear relationships that standard linear regression will miss. This means that we don't need to manually try out many different transformations on each variable individually.
- The non-linear fits can potentially make more accurate predictions for the response .
- Because the model is additive, we can still examine the effect of each on individually while holding all of the other variables fixed. Hence if we are interested in inference, GAMs provides a useful representation.
- The smoothness of the function for the variable can be summarized via degree of freedom.
- The main limitation of GAMs is that the model is restricted to be additive. With many variables, important interactions can be missed.
GAMs provide a useful compromise between linear and fully nonparametric models.