Week 20 Flashcards
1
Q
What is bivariate data?
A
Data in the form of pairs of points, aka (x, y) points
2
Q
What is the difference between correlation and regression?
A
correlation - measures how a change in x affects y
regression - predicts y values based on x values
3
Q
What is the correlation coefficient?
A
Measures the degree of linear relationship between two variables
4
Q
What is the formula for correlation coefficient?
A
5
Q
What is the formula for least squares regression?
A
y = mx+c
m = sum( (xi-mean(x)) * (yi-mean(y)) ) / sum( (xi-mean(x))^2)
c = mean(y) - (m*mean(x))