Date: January 30, 2024

Topic: Evaluating KNNs and Linear Regression

Recall

Increasing $K$ for KNNs leads to less overfitting. However if it is too high then the model doesn’t predict accurately.

KNNs also cannot extrapolate

Notes

Evaluating KNNs

Predictions of $y$ as $x$ increases

Untitled

Varying $K$

Untitled


Increasing the degree $d$ leads to more overfitting.

Linear regression models are able to extrapolate

Evaluating Linear Regression

Untitled


<aside> 📌 SUMMARY: For KNNs, increasing $K$ leads to less overfitting. For linear regressions, increasing $d$ leads to more overfitting. KNNs cannot extrapolate while linear regressions can.

</aside>


Date: January 30, 2024

Topic: RMS Error

Recall

RMS error is obtained by taking the magnitude of the difference between prediction and actual $y$-values

Notes

Root Mean Square Error (RMSE)

Untitled

In-sample vs Out-of-sample

Untitled


Cross validation allows us to train and test on the same data in more ways.

As financial data is time dependent, we split our data but always make sure that test is ahead of train


<aside> 📌 SUMMARY: Cross validation is a method to expose our model to a wider variety of data while maintaining the same dataset

</aside>


Date: January 30, 2024

Topic: Correlation