Skip to content

Commit 801877f

Browse files
committed
Added few changes
1 parent c1cc4f0 commit 801877f

File tree

3 files changed

+498
-127
lines changed

3 files changed

+498
-127
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Medical Insurance Cost Prediction Model
2+
3+
This folder contains the Jupyter Notebook and related documentation for the Medical Insurance Cost Prediction project. The primary goal of this project is to predict the medical insurance costs based on various factors such as age, sex, BMI, number of children, smoking status, and region.
4+
5+
## Contents
6+
7+
- **insurance.ipynb**: This Jupyter Notebook implements the medical insurance cost prediction model. It includes the following sections:
8+
- Importing necessary libraries: This section imports all the required libraries for data manipulation, visualization, and model building.
9+
- Loading the dataset: This section loads the dataset from a CSV file into a pandas DataFrame.
10+
- Data cleaning and preprocessing: This section handles missing values, data type conversions, and other preprocessing steps to prepare the data for analysis.
11+
- Exploratory Data Analysis (EDA): This section performs various data visualization techniques to understand the distribution and relationships within the data.
12+
- Converting categorical variables into numerical format: This section converts categorical variables into numerical format using techniques like label encoding.
13+
- Model training using Random Forest Regressor: This section splits the data into training and testing sets and trains a Random Forest Regressor model.
14+
- Making predictions based on user input: This section allows users to input their parameters and get the predicted insurance cost.
15+
16+
17+
## Usage
18+
19+
To use the model, follow these steps:
20+
21+
1. Ensure you have the required dependencies installed. You can install them using pip:
22+
```
23+
pip install numpy pandas matplotlib seaborn plotly scikit-learn xgboost imbalanced-learn
24+
```
25+
26+
2. Open the `insurance.ipynb` file in Jupyter Notebook.
27+
28+
3. Run the cells sequentially to execute the model. You can input your parameters when prompted to get the predicted insurance cost.
29+
30+
## Dependencies
31+
32+
- Python 3.x
33+
- Jupyter Notebook
34+
- Libraries: numpy, pandas, matplotlib, seaborn, plotly, scikit-learn, xgboost, imbalanced-learn
35+
36+
## Author
37+
38+
- Harshit Seth
39+
40+
- GitHub: [HarshitSeth77](https://github.com/HarshitSeth77)
41+
- LinkedIn: [Harshit Seth](https://www.linkedin.com/in/harshitseth77/)
42+
43+
## Conclusion
44+
45+
This project provides a comprehensive approach to predicting medical insurance costs using machine learning techniques. By following the steps outlined in the Jupyter Notebook, users can understand the data preprocessing, exploratory data analysis, and model training processes. The model can be used to make accurate predictions based on user input, helping individuals and organizations estimate insurance costs effectively.

0 commit comments

Comments
 (0)