Beyond Linearity Flashcards

1
Q

What are some predictive models that move beyond linearity?

A
  1. Polynomial Functions
  2. Step Functions - break X into bins, create an ordered categorical variable
  3. Piecewwise Polynomilas - fit a different polynomial function to different bins, instead of just different coefficients in each bin (2).
  4. Splines - piecewise polynomials that yield a function that is continous across bins.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Things you have to worry about w/splines

A

you have to pick the number of knots, or bins using cross validation. You could choose the location of the knots, but usually just go w/uniform if you dont know.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Splines vs Polynomial

A

Splines usually better, b/c fit lower order polynomial across bins, whereas polynomial must use a higher order polynomial to achieve same effect.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Smoothing Spline

A

Just like splines, but add a penalty or regularization parameters that awards “smoothness”, uses the 2nd derivative.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Local Regression

A

Regression Done iratievely on local values of X, by weighting locally close values higher and far away values almost close to zero. Results in a sort of “moving average regression”. You have to choose the span, or S which is the number of local data points to consider.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Consideration of Local Regession

A

susceptable to high-dimensionality, because lie KNN, in high dimensional space there may be few local data points. Doesn’t usually work if p >4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Generalized Additive Models

A

Allows you to fit a separate non linear function to each X.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Advantages of GAM

A
  1. Can fit non linear functions to each X
  2. Potentially more accurate predictions
  3. Model is additive, so each effect of X is determined by holding all other vars constant. This means easy to interpret model resutls.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly