1/17
Looks like no tags are added yet.
correlation
connection between two or more variables
what does correlation do ?
finds the best fit line by minimising the differences (called residuals) between the data and the line
r = Sxy (how much x and y change together, covariance)/(Sx - Sy) (how much x and y change separately, total variance)
if r is above 0
positive correlation
if r is below 0
negative correlation
if r is close to 1
strong correlation
if r is close to 0
weak correlation
r2
tells us how much variance is explained by our correlation
if r2 is close to 1 = lots of variance
if r2 is close to 0 = little variance
regression
used to estimate the relationship between a dependent variable and one or more independent variables
regression calculation
y = mx + c
c = intercept
m = slope
when x = 0, y = intercept
when x + 1, y increases by the slope (m)
correlation
describes a single relationship
direction and strength of relationship
X + Y are interchangable
r2, r
doesn’t allow prediction
regression
describes multiple relationships
directionS and strengthS of relationshipS
X + Y are NOT interchangeable
R, R2, F, t, SE, B
allows prediction
simple regression
two simple variables
one straight line

multiple linear regression
a single outcome variable (y)
multiple predictor values (x1, x2…)
find the best fitting surface
residuals are distance from the surface
predictors can be almost anything
very flexible

for correlation and regression…
…the residuals should be approximately normally distributed
overfitting in regression
when you use too many variables to explain the variance in your own data
use linear regression when…
you want to quantify how much a change in one variable will effect another variable
use regression when…
you want to extrapolate a potential relationship between two continuous variables using some already existing data
regression to the mean
statistical phenomenon where an unusually high or low measurement is followed by a measurement closer to the average