Linear Regression Flashcards
What is the sum of the residuals from the best fit line?
0
What is the goal of simple linear regression?
To come up with a model to minimise the sum of the squares of the residuals
What is the centroid?
The point plotted (E(x), E(y)) on a graph of two variables that the regression line ALWAYS goes through
What is Sxx? And what is it used for? (kinda trick question)
Sample corrected sum os squares and it has no statistical significance
Formula for Var(X) in terms of Sxx
Var(X) = Sxx/n-1
Formula for Sxx (Both of them boi)
Sxx = Σ(x-µ)2 = Σ(x2) - (Σx)2/n
What’s the formula for Syy the same as?
The formula for Sxx
What does Covariance show?
Covariance shows the direction of the relationship the two variables have, essentially how do they vary together and it gives the direction to a r value
What is the formula for r?
r = Sxy/sqrt(Sxx*Syy)
How do you find a linear regression line for an exponential relationship?
Code the exponential relationship to a linear one
What are the two forms of an exponential relationship?
y = axn and y = kbx