Linear Interpolation using Python
Do you have a series of correlated point data (x,y) and need to fit a linear polynomial with these data and plot the generated result? No worries, a few codes in python can do that for you.
We will first generate few data points (x,y) having exponential relationship. Then we will fit a linear polynomial between set of x and y using interpld function of scipy.interpolate library and finally plot the interpolated linear polynomial among the original correlated point data.
This job can be easily done with followi