def main() np array([ ] np array([ ] coef_estimation(xyprint("estimated coefficients:\nb_ {\nb_ {}format( [ ] [ ])plot_regression_line(xybif __name__ ="__main__"main(output estimated coefficientsb_ b_ example in the following python implementation examplewe are using diabetes dataset from scikit-learn firstwe will start with importing necessary packages as follows%matplotlib inline import matplotlib pyplot as plt import numpy as np from sklearn import datasetslinear_model from sklearn metrics import mean_squared_errorr _score