Predicting profit for 50 startups based on R&D spend, marketing, administration costs and location using Multiple Linear Regression.
- 50_Startups.csv — 50 records with features: R&D Spend, Administration, Marketing Spend, State, and Profit (target)
- Encoded the categorical
Statecolumn using label/one-hot encoding - Split data into training and test sets (80/20)
- Trained a Multiple Linear Regression model using Scikit-learn
- Predicted profits on the test set and compared against actual values
- Analysed which features have the strongest impact on profit
R&D Spend has the strongest positive correlation with profit — startups investing more in R&D consistently show higher returns regardless of location.
Python, Pandas, NumPy, Matplotlib, Scikit-learn, Jupyter Notebook
git clone https://github.com/Ayush28042005/Multiple-linear-regression.git
cd Multiple-linear-regression
pip install pandas numpy matplotlib scikit-learn
jupyter notebook multiple-linear-regression.ipynbAyush Saini