the following is the output to the preceding codethis little bit of code will create function to draw the best fit line alongside the data there' little bit more matplotlib magic going on here we're going to make gju-jof list and we're going to use the qsfejdu function we wrote to take the qbhf qffetwhich is our -axisand create the function from that so instead of taking the observations for amount spentwe're going to find the predicted ones just using the tmpqf times plus the joufsdfqu that we got back from the mjosfhsftt call above essentially herewe're going to do scatter plot like we did before to show the raw data pointswhich are the observations then we're also going to call qmpu on that same qzqmpu instance using our gju-jof that we created using the line equation that we got backand show them all both together when we do thatit looks like the following graph