implement linear regression using python and plot the graph