Skip to content

This mini project uses linear regression to create a model that predicts the life satisfaction of a country based on its GDP per capita. The data used is from the OECD Better Life Index and World Bank's World Development Indicators for the year 2015.

Notifications You must be signed in to change notification settings

mahdi-eth/Life-Satisfaction-Prediction-Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Life Satisfaction Prediction

This project demonstrates a simple linear regression model for predicting life satisfaction based on GDP per capita.

Requirements

  • Python 3.6 or higher
  • Jupyter Notebook
  • NumPy
  • Pandas
  • Matplotlib
  • Scikit-learn

Installation

  1. Clone this repository.
  2. Install the required packages using pip: pip install -r requirements.txt.
  3. Launch Jupyter Notebook and open life_satisfaction_prediction.ipynb file.

Usage

  1. Open life_satisfaction_prediction.ipynb file in Jupyter Notebook.
  2. Run each cell of the notebook to execute the code.
  3. Modify the input value new_X to predict a new life satisfaction value based on a new GDP per capita value.

Data Sources

About

This mini project uses linear regression to create a model that predicts the life satisfaction of a country based on its GDP per capita. The data used is from the OECD Better Life Index and World Bank's World Development Indicators for the year 2015.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages