Week 7 Flashcards
What is correlation?
Correlation quantifies the degree of association between two variables (bivariate analysis)
What does r stand for, and what are 3 important values of it?
r = coefficient of correlation
r=1 - perfect positive linear relationship
r=-1 - perfect negative linear relationship
r=0 - no correlation
What is a perfect correlation?
When the line of best for goes through every point (gradient is irrelevant)
Sxx/Syy/Sxy?
Sxx = Σx^2 - ((Σx)^2)/n
Sxy = Σxy - (Σx.Σy)/n
Correlation equation?
r = Sxy/(Sxx.Syy)^0.5
What is spurious correlation?
‘By chance’ correlation
Steps for testing significance of correlation?
1) set hypotheses: H0: p=0 H1: p not equal to zero
2) choose significance level
3) select test statistic (t-dist.)
4) decision rule (reject H0 if |tobt.|>|tcrit.|
5) compute answer:
Use n-2 DofF
t = (r(n-2)^0.5) / (1-r^2)^0.5
Degrees of freedom for t test when testing significance of correlation?
n-2