Giter Club home page Giter Club logo

logistic-regression-model-prolog's Introduction

๐Ÿฅ Insurance Data Analysis: Logistic Regression Modeling and Performance Evaluation

Welcome to the Insurance Data Analysis repository! ๐ŸŽ‰ This repository contains a Python notebook (Q3.ipynb) that performs insightful analysis on insurance data using logistic regression. The dataset consists of the following columns:

  • age: age of the primary beneficiary.
  • sex: insurance contractor gender, female or male.
  • BMI: Body mass index, providing an understanding of the body weight relative to height.
  • children: Number of children covered by health insurance or number of dependents.
  • smoker: Smoking status.
  • region: the beneficiary's residential area in the US (northeast, southeast, southwest, northwest).
  • charges: Individual medical costs billed by health insurance.

๐Ÿ“ Overview of the Notebook

The notebook follows a step-by-step process to analyze the insurance data and build a logistic regression model. Here's an overview of what you'll find inside:

  1. Data Loading: The insurance data is uploaded and loaded into the notebook.
  2. Data Scaling: The data is scaled to normalize the values between 0 and 1.
  3. Data Visualization: Interactive plots are generated to visualize the distribution of various features based on the outcome (diabetic or non-diabetic).
  4. Train-Test Split: The dataset is divided into training and testing sets with an 80:20 ratio.
  5. Logistic Regression Modeling: A powerful logistic regression model is applied to the training data.
  6. Model Evaluation: The model's accuracy and root mean squared error (RMSE) are calculated using the testing data.
  7. Confusion Matrix: A detailed confusion matrix is generated to evaluate the performance of the model.

๐Ÿš€ Get Started!

Feel free to explore the notebook and leverage the provided code to gain insights into the relationship between the input features and the outcome variable (diabetic or non-diabetic). You can also use the logistic regression model to make predictions and evaluate its performance.

Enjoy your data exploration journey and feel free to customize the notebook to suit your specific needs! If you have any questions or feedback, please don't hesitate to reach out. Happy analyzing! ๐Ÿ˜Š๐Ÿ”

logistic-regression-model-prolog's People

Contributors

swati-sharma14 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.