Lecture 6 - correlation and regression Flashcards
what is correlation used to test?
the relationship between two variables
what is linear regression used for?
used to predict one variable from another
more powerful than correlation
can linear regression infer causation?
no
what is pearson correlation coefficient used for?
measuring the extent of the relationship between 2 variables
what are the two conditions for the use of peasons?
both variables must be continuous and follow a normal distribution
what if the two conditions of pearsons do not apply?
spearman rank is used instead
how does traditional regression work?
regress the dependent variable ( outcome ) on the independent variable
what do the variables in the regression line mean?
y = ax + b y= dependent variable x=independent variable b= y- intercept a=gradient of the line
what is the least squares approach
estimates should be made to minimise the sum of squared deviations –> residuals
what are the assumptions behind the linear regression model
- errors must be normally distributed
- linear association between x and y
- Variance of y should be equal across all values of x