This project analyzes and predicts medical costs using machine learning techniques.
The application is deployed on Streamlit Cloud and provides instant medical insurance cost predictions in both USD and INR.
- Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Run Jupyter Notebook:
jupyter notebook- Open
notebooks/Medical_Cost_Prediction.ipynbin your browser and run the cells sequentially.
notebooks/: Contains Jupyter notebooks with analysisMedical_Cost_Prediction.ipynb: Main analysis notebook
app.py: Streamlit web application for cost predictionmodels/: Contains trained machine learning models
The project analyzes medical cost data with features including:
- Age
- BMI (Body Mass Index)
- Number of children
- Medical charges
- Predicts medical insurance costs in USD and INR
- Takes into account:
- Age
- BMI
- Smoking status
- Number of children
- Region
- Gender
Currently using Linear Regression with features:
- Age
- BMI
- Smoking status
You can either:
- Use the live application
- Run locally using
streamlit run app.py