Skip to content

unnatii14/Advertising-Budget-Linear-Regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Advertisement Budget Sales Prediction using linear regression

πŸ“Œ Description

A Linear Regression project to analyze and predict sales based on TV, Radio, and Newspaper advertisement budgets.


πŸ“ Project Overview

This project demonstrates how linear regression can be applied to a marketing dataset to determine the relationship between advertising spend and sales performance.


πŸ§ͺ Key Features

  • Linear Regression using Scikit-learn
  • Data visualization with Seaborn and Matplotlib
  • Model evaluation using MAE, MSE, RΒ² Score, and cross-validation
  • Outlier detection and comparison of model performance before and after removing outliers

πŸ“Š Results Summary

Metric With Outliers Without Outliers
Accuracy (RΒ²) 89.94% 87.82%
MAE 0.28 1.39
MSE 0.12 3.26

Insights:

  • TV and Radio have the strongest influence on sales.
  • Newspaper budget has minimal impact.
  • Removing outliers reduces accuracy slightly but offers more stable predictions.

βœ… Model Usage Guidance

  • Use the one without outliers when you want a more stable and fair predictor.
  • Use the one with outliers when you're okay with higher sensitivity but possible overfitting.

πŸ“Ž How to Run

  1. Clone the repository
  2. Open the Jupyter/Colab notebook
  3. Run all cells to view analysis and predictions

About

A Linear Regression project to analyze and predict sales based on TV, Radio, and Newspaper advertisement budgets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors