Reviewing Linear Regressions in R and Learning Them in Python

Simple Linear Regressions

In Python:

This slideshow requires JavaScript.

In R:

This slideshow requires JavaScript.

Multiple Linear Regressions with Backward Elimination

In Python:

This slideshow requires JavaScript.

In R:

This slideshow requires JavaScript.

We later went back through our summary statistics to examine Adjusted R^2 and found that the model with both final variables (R&D Spend and Marketing Spend) was the best predictor of profit in the given data on 50 startups.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: