This project demonstrates a simple linear regression model for predicting life satisfaction based on GDP per capita.
- Python 3.6 or higher
- Jupyter Notebook
- NumPy
- Pandas
- Matplotlib
- Scikit-learn
- Clone this repository.
- Install the required packages using pip:
pip install -r requirements.txt
. - Launch Jupyter Notebook and open
life_satisfaction_prediction.ipynb
file.
- Open
life_satisfaction_prediction.ipynb
file in Jupyter Notebook. - Run each cell of the notebook to execute the code.
- Modify the input value
new_X
to predict a new life satisfaction value based on a new GDP per capita value.