Ex 5.2 Compute Correlations Among Variables:

Objective: Compute correlations and conduct linear regression analyses among variables in the World Happiness Report data.

  1. Download the Ex5.2_ComputeCorrelationsAmongVariables.ipynb file.
  2. Using the WHR2018Chapter2OnlineData.xls file, work through each of the steps in the Jupyter Notebook and submit your completed Jupyter Notebook (.ipynb) file to the first quiz question on Canvas. Your notebook should include both your code and the corresponding output that match the screengrabs provided below of the completed steps 2, 3, 4, 5, and 6. Be sure to run all cells so that every output appears in the notebook.

Expected output: pairwise correlation matrix for World Happiness Report variables from step 2

 

Expected output: Seaborn heatmap of correlation matrix for World Happiness Report features from step 3

 

Expected output: Seaborn pairplot showing relationships among World Happiness Report variables from step 4

 

Expected output: Seaborn regplot regression scatter of two World Happiness Report variables from step 5

 

Expected output: Seaborn regression plot with fitted line showing correlation between two WHR variables from step 6