This project applies Logistic Regression to predict whether a person will buy insurance based on their age.
The dataset used in this project is insurance_data.csv, which contains:
age: The age of the personbought_insurance: (0 or 1) indicating whether insurance was purchased
Ensure you have the following libraries installed:
pip install pandas numpy matplotlib scikit-learn- Clone the repository (if applicable) or download the
Untitled5.ipynbfile. - Open Jupyter Notebook and navigate to the file.
- Execute the cells sequentially.
- Import necessary libraries.
- Load and explore the dataset.
- Visualize the data using scatter plots.
- Split the data into training and test sets.
- Train a Logistic Regression model using
sklearn. - Make predictions and evaluate the model.
The model predicts whether a person is likely to purchase insurance based on their age, using logistic regression.
- Your Name (Replace with your actual name)
This project is for educational purposes only.