Simple Linear Regressions
In Python:
In R:
Multiple Linear Regressions with Backward Elimination
In Python:
In R:
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.