Date: January 21, 2024

Topic: Parametric Regression

Recall

Find a best fit line or polynomial curve that best fit the data. This graph is then used to estimate future values.

The previous data points are not considered when making future predictions

Notes

Parametric Regression (Parametric)

Our goal is to find values for the constant terms that best model the data.

Fitting a line

Untitled

Fitting a polynomial

Untitled


KNN and kernel regression relies on the existing data to make predictions.

KNN selects the closest $k$ points to make a prediction

Kernel regression weights the data points based on the query, and predicts from there.

K Nearest Neighbor (Non-parametric/instance based)

Find the closest points to estimate the input data

Untitled

Kernel Regression


Use parametric models when we know what the model might look like.

Use non-parametric models when the data seems to be complex and we don’t know the underlying distribution.

Parametric vs Non-parametric

Cannonball Example (Parametric)

Untitled

Honeybee Example (Non-parametric)

Untitled


<aside> 📌 SUMMARY: We have parametric methods like linear regression and non-parametric ones like KNN and kernel regression to model our data’s behavior

</aside>


Date: January 21, 2024

Topic: Training and Testing



<aside> 📌 SUMMARY: When testing algorithms, always use newer data. APIs implemented should include common methods across the models.

</aside>