A machine learning model to forecast product sales based on advertising spend across TV, radio, and newspaper channels — helping businesses optimize their marketing budget.
Understanding the relationship between advertising spend and sales is crucial for marketing optimization. This project builds a Sales Prediction Model using regression analysis to predict product sales based on advertising budgets across multiple channels.
Developed as part of my Data Science Internship at Oasis Infobyte.
- ✅ Analyzed the impact of TV, radio, and newspaper advertising on sales
- ✅ Built and compared multiple regression models
- ✅ Identified which advertising channels have the strongest ROI
- ✅ Provided actionable insights for marketing budget allocation
- ✅ Clean Jupyter Notebook with EDA and model evaluation
| Property | Details |
|---|---|
| Task | Regression — predict sales revenue |
| Features | TV ad spend, Radio ad spend, Newspaper ad spend |
| Target | Sales (in thousands of units) |
| Business Use | Marketing budget optimization |
| Feature | Description |
|---|---|
TV |
Advertising budget for TV (in $1000s) |
Radio |
Advertising budget for Radio (in $1000s) |
Newspaper |
Advertising budget for Newspaper (in $1000s) |
Sales |
Product sales (in 1000s of units) |
- Analyzed correlation between advertising channels and sales
- Found TV advertising has the strongest positive correlation with sales
- Identified that newspaper advertising has minimal impact on sales
- Visualized relationships using scatter plots and heatmaps
- Checked for multicollinearity between advertising channels
- Normalized features for better model performance
- Created interaction terms if needed
- Trained Linear Regression as baseline
- Compared with Ridge and Lasso regression for regularization
- Selected best model based on R² score and RMSE
- Calculated ROI (Return on Investment) for each channel
- Recommended optimal budget allocation strategy
- Identified diminishing returns thresholds
| Tool | Purpose |
|---|---|
| Python | Core programming language |
| Pandas & NumPy | Data manipulation |
| Matplotlib & Seaborn | Data visualization |
| Scikit-learn | Regression models & evaluation |
| Jupyter Notebook | Development environment |
| Metric | Score |
|---|---|
| R² Score | (Add your score) |
| RMSE | (Add your score) |
| MAE | (Add your score) |
💡 Run
sample.ipynbto see full model evaluation and insights.
Advertising Channel Performance:
| Channel | Impact on Sales | Recommendation |
|---|---|---|
| TV | 🟢 Strong | Primary investment channel |
| Radio | 🟡 Moderate | Secondary support channel |
| Newspaper | 🔴 Weak | Minimize or eliminate spend |
Predicted Sales Examples:
- TV: $50K, Radio: $20K, Newspaper: $10K → Sales: ~15,000 units
- TV: $100K, Radio: $40K, Newspaper: $0K → Sales: ~25,000 units
Optimization Strategy:
- Allocate 60-70% of budget to TV advertising
- Use 20-30% for radio to reach different demographics
- Reduce newspaper spend — reallocate to digital channels
git clone https://github.com/Khiladi-786/Sales_Prediction_Model.git
cd Sales_Prediction_Modelpip install -r requirements.txtjupyter notebook sample.ipynbSales_Prediction_Model/
│
├── sample.ipynb # Main Jupyter Notebook
├── requirements.txt # Python dependencies
├── template/ # Project templates
└── README.md # Project documentation
Nikhil More B.Tech CSE (AI/ML) — University of Mumbai (2023–2027)
Data Science Intern @ Oasis Infobyte | C-DAC Ambassador | Google Student Ambassador
This project is licensed under the MIT License.
⭐ If you found this project useful, please give it a star!