5. Mathematics for Machine Learning: Fitting a Straight Line - AvinandanBose/Machine-Learning GitHub Wiki
Fitting a Straight Line









Plotting it in python:
.webp)
Output
.webp)
Plotted in a curve
.webp)
Step 2









Plotting it through python
.webp)
Output 1 With no common difference
.webp)
Graph
.webp)
Output 2 n is even With common difference in x
.webp)
Graph
.webp)
Output 3 n is odd With common difference in x
.webp)
Graph
.webp)