# FAQ: Multiple Linear Regression - Visualizing Results with Matplotlib

This community-built FAQ covers the “Visualizing Results with Matplotlib” exercise from the lesson “Multiple Linear Regression”.

Paths and Courses
This exercise can be found in the following Codecademy content:

## FAQs on the exercise Visualizing Results with Matplotlib

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

## Join the Discussion. Help a fellow learner on their journey.

Agree with a comment or answer? Like () to up-vote the contribution!

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

Hello there ! just one question, how does this scatterplot give us hint on " how the independent variables impact prices". Are we close to the real values ? How do i know by this plot that my predictions are almost right ? is not another solution to plot actual y and predicted ones so what in an instant lookup we can see the differences like two side by side histograms ! Thanks !

6 Likes

my guess is that the closer to the center - the better the prediction - which is why there is a glut around a slope of 1?

How to print in different colors, predicted results? think this would show perfectly the difference

Guess this would do the thing to show in colors and difference, as we have 708 rows in test batch so we need to plot each row as a colored dot.

plt.scatter(range(708), y_predict, c=“red”)

plt.scatter(range(708), y_test, c=“blue”)

plt.show()

I had a same question and guess I solved with this:

plt.scatter(range(708), y_predict, c=“red”)

plt.scatter(range(708), y_test, c=“blue”)

plt.show()

Original plot is good too as dots line up more on diagonal as more are equal but for me colored ones seems to show difference more easy