Giter Club home page Giter Club logo

how-much-is-your-life-worth's Introduction

Banner

Problem Statement

An insurance company wants to improve its cash flow forecasting by better predicting an annual life insurance premium using demographics and basic customer health risk metrics at the time of application.

Objective

Build a machine learning model that can predict the premium for life insurance based on a customer's basic information.

Dataset

Variable Description
Age Age of applicant (primary beneficiary)
Sex Gender of applicant (female, male)
BMI An applicant’s weight in kilograms divided by the square of height in meters
Children Number of children or dependents
Smoker Smoking habits
Region Northeast, Southeast, Southwest, Northwest
Charges Life insurance premium based on the data given (target variable)

Methodology

  • Performed exploratory data analysis
  • Used feature selection
  • Built an accurate model
  • Designed frontend of webpage with Streamlit
  • Deployed model using Heroku

Result

Random Forest Regression model with an accuracy of 85.4%

What you need to deploy

File Description
Procfile State what commands are to be run on start up
requirements.txt Python package dependencies needed on Heroku
scaler_value.pkl Saved data preparation objects
setup.sh Set up the platform project directory
Life_Insurance_Model.pkl Serialized model
streamlitpredictinsurancecharges.py Frontend code

Web App front page visual

Front page

Conclusion

A simple random forest regression model can be used to create a machine learning model that can then be deployed for business purposes.

how-much-is-your-life-worth's People

Contributors

hafizah avatar

Stargazers

 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.