sábado, 27 de febrero de 2016

Assignment 3: Pearson Correlation

1.- Research question:

I want to find ou whether we can predict the number of suicides in a given country, knowing the % of urban population it has.

For that matter I am going to use the following variables from the GapMinder dataset:

  • Urban Rate
  • Suicides per 100K people
2.- Code used (SAS)


LIBNAME mydata "/courses/d1406ae5ba27fe300 " access=readonly;
DATA new; set mydata.gapminder;

PROC SORT; BY COUNTRY;

PROC CORR; VAR urbanrate suicideper100TH;

RUN;

3.- Results:

2 Variables:urbanrate suicideper100th
Estadísticos simples
VariableNMediaDev stdSumaMínimoMáximoEtiqueta
urbanrate20356.7693623.844931152410.40000100.00000urbanrate
suicideper100th1919.640846.3001818410.2014535.75287SUICIDEPER100TH
Coeficientes de correlación Pearson
Prob > |r| suponiendo H0: Rho=0
Número de observaciones
 urbanratesuicideper100th
urbanrate
urbanrate
1.00000
 
203
-0.13038
0.0761
186
suicideper100th
SUICIDEPER100TH
-0.13038
0.0761
186
1.00000
 
191

4.- Interpretation:

There is almost no linear relation between the Urban Rate of a country and its number of suicides. We cannot make predictions.

Even if the r value was strong enough for us to make predictions, the p value of 0,0761 (higher than 0.05) does not allow us to refuse the null hypothesis which claims there is no relation vetween the variables.

No hay comentarios:

Publicar un comentario