Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📈 Insurance Charges Prediction using Linear Regression

An end-to-end Machine Learning project that predicts individual insurance charges using the Linear Regression algorithm. The project demonstrates the complete ML workflow, from data exploration and preprocessing to model training, prediction, and evaluation using Python and Scikit-learn.


🚀 Project Overview

The objective of this project is to build a regression model capable of predicting medical insurance charges based on demographic and lifestyle factors such as age, BMI, smoking status, gender, region, and number of children.


📂 Dataset

The dataset contains information about individuals, including:

  • Age
  • Sex
  • BMI (Body Mass Index)
  • Number of Children
  • Smoking Status
  • Region
  • Medical Insurance Charges (Target Variable)

🛠️ Technologies Used

  • Python
  • Jupyter Notebook
  • NumPy
  • Pandas
  • Matplotlib
  • Seaborn
  • Scikit-learn

📊 Project Workflow

  • Data Loading
  • Exploratory Data Analysis (EDA)
  • Data Cleaning
  • Feature Encoding
  • Train-Test Split
  • Linear Regression Model
  • Model Prediction
  • Model Evaluation

🤖 Machine Learning Model

Algorithm Used:

  • Linear Regression

📈 Model Evaluation

The model performance was evaluated using:

  • R² Score (Coefficient of Determination)

---Adjusted R2

📁 Repository Structure

Insurance-Charges-Prediction/
│
├── Linear_Regression_Model.ipynb
├── insurance modified.csv
├── requirements.txt
├── README.md


▶️ Installation

Clone the repository:

git clone https://github.com/yourusername/Insurance-Charges-Prediction.git

Install the required libraries:

pip install -r requirements.txt

Launch Jupyter Notebook and open:

Linear_Regression_Model.ipynb

📌 Key Features

  • Complete data preprocessing pipeline
  • Data visualization using Matplotlib and Seaborn
  • Linear Regression model implementation
  • Prediction of medical insurance charges
  • Performance evaluation using R² Score
  • Well-structured and reproducible notebook

📄 License

This project is intended for educational and portfolio purposes.

About

Predicting insurance charges using Linear Regression through data cleaning, exploratory data analysis, feature engineering, feature scaling, and model evaluation.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages