Giter VIP home page Giter VIP logo

maternal_mortality_rate's Introduction

Predicting Maternal Mortality Rate of the World


Emma and I wanted to create a machine that will be able to predict a women's chance of dying given the country she is in, the country's GDP, it's expenditure on healthcare, the fertility rate of women of that country, as well as if women are provided for additional benefits such as paid maternal health care.


Gathering the Data:

Our data came from worldbank data. We collected several csv files, compiled them into one for our baseline. Our target was predicting mortality rate with the rest being our independent variables.

World GDP ;

Fertility Rate ;

Population ;

Maternity Leaves ;

Maternal Mortality Rate


EDA of our Data

After making a full CSV and converting it to a dataframe, we did some basic Explotarory Data Analysis. First we removed all null values, and cleaned up our data for any missing values. We also scaled and adjust to create a better fit model.

This is what our dataframe consisted of:

screen shot 2019-01-12 at 9 00 24 pm

Here is also a correlational matrix:

screen shot 2019-01-12 at 9 03 42 pm

_________

Modeling

For our first test, we chose to see the affect of fertility rate on mortality rate. We hyposthesized that there would be a strong positive correlation. This test proved that to be true:

screen shot 2019-01-12 at 9 04 06 pm

Then we wanted to compare a country's GDP in relation to it's expendeture on healthcare and it's effect on maternal mortality rate. We found an inverse relationship (negative correlation) this time. This makes sense as we are supposed to observe lower maternal mortality rate on countries who can provide healthcare for the women.

screen shot 2019-01-12 at 9 05 00 pm

Finaly, we made a model with some saling and feature tweak: We found that our model can predict if a woman is to survive childbirth in a given country with a confidence of adjusted 75%.

screen shot 2019-01-12 at 9 21 18 pm

Of course there are few issues here, even after scaling. Our p-values are relatively high for some features. This is due to some features having less samples than the rest. In the future, we would like to run PCA and additional GridSearch based model to find a criteria selection that would improve this model even more.

Here is our last picture graphing our model's ability to predict mortality rate:

screen shot 2019-01-12 at 9 05 48 pm

There are some outliers, but these are the extreme cases not the norm. As you can see, even with those issues our model came very close to predicting with high accuracy a woman's chance of survival given the country's gdp, healthcare expendature and fertility rate.

Thank you for reading.

maternal_mortality_rate's People

Contributors

imamun93 avatar emmabernstein1 avatar

Stargazers

 avatar  avatar Mirza Anandita avatar  avatar  avatar  avatar Mahmoud Galal Ahmed avatar

Watchers

James Cloos 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.