Skip to content

adithyakrishhna/OIBSIP-Task-5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Sales Prediction Using Python

This repository contains a machine learning model for sales prediction using Python. The model utilizes linear regression to forecast sales based on advertising data.

Overview

This project illustrates the process of building a sales prediction model in Python, employing machine learning techniques. The dataset employed in this project, "Advertising.csv," encompasses data on advertising expenditures across TV, radio, newspapers, as well as corresponding sales figures.

Procedure

Follow these steps to construct and assess the sales prediction model:

  1. Import Libraries: Start by importing the essential Python libraries for data manipulation and visualization.

  2. Import Dataset: Load the dataset from the "Advertising.csv" file into a Pandas DataFrame for analysis.

  3. Data Visualization: Explore the dataset through data visualization techniques. Generate a pairplot and a heatmap to visualize relationships and correlations between variables.

  4. Data Preprocessing: Preprocess the data, including feature scaling, and divide the dataset into training and testing sets.

  5. Linear Regression Model: Develop a linear regression model using scikit-learn. Train the model using the training dataset.

  6. Model Evaluation: Evaluate the model's performance using common regression metrics such as Mean Absolute Error (MAE), Mean Squared Error (MSE), Square Root of Mean Absolute Error (RMSE), and R-squared (R2) score.

Conclusion

This project demonstrates the application of machine learning, specifically linear regression, for sales forecasting based on advertising data. The model is a valuable tool for making sales forecasts and optimizing advertising strategies.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors