Sales Prediction Using Regression and Advertising Data AnalysisSales Prediction Using Regression and Advertising Data Analysis
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Task 5 of my Data Science internship with @Oasis Infobyte: Sales Prediction using Python 📈
I predicted product sales from advertising spend on TV, Radio and Newspaper (200 markets) and looked at which channel matters most.
What I did: • EDA with scatter plots, a pairplot and a correlation heatmap • Compared Linear Regression, Polynomial Regression (degree 2) and Random Forest • Evaluated with MAE, RMSE and R², plus residual analysis
Key findings: ✅ Linear baseline: R² = 0.899. Polynomial Regression: R² = 0.987, MAE = 0.53 ✅ The linear model's errors formed a clear U-shape, meaning it was systematically wrong. The polynomial model's errors looked random ✅ TV has the biggest overall impact, then Radio. Newspaper has almost no independent effect ✅ TV and Radio reinforce each other. Adding a single TV × Radio term lifted R² from 0.899 to 0.974
These are patterns in observational data, so a controlled budget test would be needed before moving real money.
Code, notebook and charts: [GitHub link]
#oasisinfobyte #datascience #machinelearning #python #regression #dataanalytics #internship
Post image
Post image
Post image
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started