Skip to content

Sales prediction involves estimating future product sales based on factors like advertising spend, target audience, and platform. Businesses rely on data scientists to forecast sales and optimize advertising costs. Machine learning in Python can be used for this task.

Notifications You must be signed in to change notification settings

yuvrajsaraogi/Sales-Prediction-using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Sales Prediction using Python

πŸ“Œ Project Overview

This project predicts sales revenue based on advertising budgets using machine learning. The dataset includes advertising expenditures on TV, Radio, and Newspaper, and the goal is to build a model to predict sales based on these investments.

πŸ—‚ Dataset Overview

The dataset consists of 200 entries with the following columns:

  • TV – Advertising budget for TV (in $1000s)
  • Radio – Advertising budget for Radio (in $1000s)
  • Newspaper – Advertising budget for Newspaper (in $1000s)
  • Sales – Sales revenue generated (in $1000s) (Target variable)

βš™οΈ Technologies Used

  • Python 🐍
  • Pandas & NumPy (Data Processing)
  • Matplotlib & Seaborn (Data Visualization)
  • Scikit-learn (Machine Learning – Linear Regression)

πŸš€ Features

βœ… Data Cleaning and Preprocessing
βœ… Exploratory Data Analysis (EDA)
βœ… Sales Prediction using Linear Regression
βœ… Model Evaluation Metrics

πŸ”₯ Usage

  • Load and explore the dataset.
  • Perform Exploratory Data Analysis (EDA) to visualize trends in advertising and sales.
  • Train a Linear Regression model to predict sales.
  • Evaluate the model's performance using:
    • RΒ² Score
    • Mean Squared Error (MSE)

πŸ“Š Visualizations

The notebook includes:
βœ… Pairplots for feature relationships
βœ… Correlation Heatmap to find important variables
βœ… Regression Plot to visualize predictions

🀝 Contributing

Contributions are welcome! πŸŽ‰
If you’d like to contribute, please:

  • Fork the repository
  • Create a new branch (feature-branch)
  • Submit a pull request

πŸ“œ License

This project is licensed under the MIT License.

About

Sales prediction involves estimating future product sales based on factors like advertising spend, target audience, and platform. Businesses rely on data scientists to forecast sales and optimize advertising costs. Machine learning in Python can be used for this task.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published