Skip to content

filipamiralopes/Predict-Life-Expectancy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Ironhack Logo

Predicting Life Expectancy with Machine Learning

Project Description

Motivation: when you wish to save for your retirement provision, insurance companies are interested in predicting how much will you live in order to estimate how much you should pay to them. For example, if you end up living way longer than it was expected by the insurance, the insurer will have a loss.

For this project I will have a set of predictors (e.g. income, spending on healthcare, etc) to estimate life expectancy (the target). As we have a label (life expectancy) and this label is within a range (continuous data), we are dealing with a typical scenario of Supervised Machine Learning (Linear) Regression (for more details see report.pdf). I used a decision tree model from scikit-learn to estimate life expectancy with 92% accuracy

Contents

Inside the folder "predict-life-expectancy" you will find:

  • code
  • data_sets (sources: Kaggle/WHO and gapminder.org)
  • report.pdf
  • slides.pdf

Predict your life expectancy

http://filipamiralopes.pythonanywhere.com

About

Data extraction and cleaning • dataset of predictors • scikit-learn • Decision tree • Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 100.0%