https://github.com/dadananjesha/simple-linear-regression

Simple Linear Regression in Python is an educational project demonstrating how to perform linear regression analysis using Python.

https://github.com/dadananjesha/simple-linear-regression

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.5%) to scientific vocabulary

Keywords

data-tools iiit-bangalore linear-regression simple-linear-regression upgrad
Last synced: 5 months ago · JSON representation

Repository

Simple Linear Regression in Python is an educational project demonstrating how to perform linear regression analysis using Python.

Basic Info
  • Host: GitHub
  • Owner: DadaNanjesha
  • License: mit
  • Language: Jupyter Notebook
  • Default Branch: main
  • Homepage:
  • Size: 118 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
data-tools iiit-bangalore linear-regression simple-linear-regression upgrad
Created 12 months ago · Last pushed 12 months ago
Metadata Files
Readme License

README.md

Simple Linear Regression in Python 📈🐍

Python Version Jupyter Notebook License: MIT

Simple Linear Regression in Python is an educational project demonstrating how to perform linear regression analysis using Python. The analysis is carried out in a Jupyter Notebook, using the advertising.csv dataset to predict sales based on advertising spend.


📖 Table of Contents


🔍 Overview

This project performs a simple linear regression analysis on advertising data to predict sales based on different advertising channels. Using Python and Jupyter Notebook, the project walks through data exploration, visualization, model building, and evaluation. It serves as a straightforward introduction to regression techniques and how they can be used for predictive analytics.


✨ Project Highlights

  • Data Exploration:
    Perform exploratory data analysis (EDA) to understand the distribution of advertising spend and sales.

  • Visualization:
    Generate scatter plots and regression lines to visualize relationships between variables.

  • Model Building:
    Fit a simple linear regression model to predict sales from advertising spend (e.g., TV, Radio, Newspaper).

  • Evaluation:
    Evaluate the model's performance using metrics such as R² and Mean Squared Error (MSE).


📊 Dataset Description

  • File: advertising.csv
  • Contents:
    The dataset includes advertising spending and corresponding sales data. Common features include:
    • TV: Advertising dollars spent on TV.
    • Radio: Advertising dollars spent on radio.
    • Newspaper: Advertising dollars spent on newspapers.
    • Sales: Sales generated (dependent variable).
  • Format: CSV file with rows representing individual observations.

🔄 Flow Diagram

mermaid flowchart TD A[📄 Load CSV Data] --> B[🧹 Data Cleaning & Exploration] B --> C[📊 Data Visualization] C --> D[🛠️ Build Linear Regression Model] D --> E[📈 Model Evaluation & Insights]


🗂️ Project Structure

plaintext Simple_Linear_Regression/ ├── Simple Linear Regression in Python.ipynb # Jupyter Notebook with the full analysis ├── advertising.csv # Dataset file containing advertising and sales data ├── README.md # Project documentation (this file) └── requirements.txt # Python dependencies (e.g., pandas, numpy, matplotlib, seaborn, scikit-learn)


💻 Installation & Setup

Prerequisites

  • Python 3.8+
  • Jupyter Notebook

Installation Steps

  1. Clone the Repository:

bash git clone https://github.com/yourusername/Simple_Linear_Regression.git cd Simple_Linear_Regression

  1. Set Up a Virtual Environment:

bash python -m venv venv source venv/bin/activate # For Windows: venv\Scripts\activate

  1. Install Required Packages:

Make sure your requirements.txt includes: plaintext pandas numpy matplotlib seaborn scikit-learn jupyter

Then run:

bash pip install -r requirements.txt

  1. Launch Jupyter Notebook:

bash jupyter notebook


🚀 Usage

  • Open the Notebook:
    Launch Simple Linear Regression in Python.ipynb in Jupyter Notebook to follow the step-by-step analysis.

  • Explore the Analysis:
    Execute cells to clean data, visualize relationships, build the regression model, and evaluate performance.

  • Interpret the Results:
    Review plots and metrics (e.g., R², MSE) to understand the effectiveness of the model.


⭐️ Call-to-Action

If you find this project helpful, please consider: - Starring the repository to show your support. - Forking to contribute improvements. - Following for updates on future projects.

Your engagement helps boost visibility and encourages further collaboration!


📜 License

This project is licensed under the MIT License.


🙏 Acknowledgements

  • Data Source: Thanks to the provider of the advertising dataset.
  • Open Source Libraries: Gratitude to the maintainers of Pandas, NumPy, Matplotlib, Seaborn, Scikit-Learn, and Jupyter.
  • Contributors: Special thanks to everyone who has contributed to this analysis.

Happy Analyzing! 🎬📈

Owner

  • Name: DADA NANJESHA
  • Login: DadaNanjesha
  • Kind: user
  • Location: BERLIN

GitHub Events

Total
  • Watch event: 1
  • Push event: 3
  • Pull request event: 1
  • Create event: 3
Last Year
  • Watch event: 1
  • Push event: 3
  • Pull request event: 1
  • Create event: 3

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: less than a minute
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: less than a minute
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • DadaNanjesha (1)
Top Labels
Issue Labels
Pull Request Labels