Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Regression & Curve Fitting

Curve fitting refers to drawing a curve within a given dataset to capture a true pattern of the dataset. It is done using regression.

Types of Regression

It is about learning a general pattern and predict unseen data.

Note

Interpolation is not same as Regression. Interpolation is about drawing a curve passing exactly through all data points whereas Regression is about finding a best-fit trend in a given dataset.

1. Linear Regression Aka Least Squares

It is based on the line forming method. For a set of data in a graph, a line is drawn there and distance from that line (estimation line for output prediction of an unknown input) are sqaured and summed which is called as least squares.

And minimum least square is what we want to achive, i.e. Best Fit Model.

The final line (best fit model) minimizes the sums of squares (also known as least squares) between it and the real data.

In this situation, we optimize the value of slope(weight) and intercept(bias) for best fit.

2.