Week 9 Lecture 9 - regressions Flashcards
When is linear regression used?
when looking at the relationship between two variables
best described with a straight line
How does linear regression differ to correlation?
linear regression proposes a model in which you can make estimates from
What are x and y in a linear regresion?
y = variable being predicted (outcome variable)
x = variable used to predict (predictor variable)
What does a linear regression make the assumption of?
y is dependent on x (to some extent)
Does dependency reflect causal dependency?
no just provides evidence for it
What are the 3 stages of a linear regression?
- analyse relationship between variables
- propose a model to explain relationship
- evaluate model
What does stage 1 of a linear regression involve?
view data in scatterplot, view r value
What does stage 2 of a linear regression involve?
the regression line (line of best fit) –> where deviation from data points is smallest
What are the properties of a regression line?
a.) the intercept
b.) the gradient (slope)
What does stage 3 of a linear regression involve?
assessing goodness-of-fit
how much is the simplest model better than the regression model
What does SSt - SSr equal?
SSm
the larger SSm the what?
the bigger the improvement in prediction using the regression model over the simplest model
What do we use to evaluate SSm relative to SSr?
F-test (ANOVA)
What values does an f-test work in?
mean sum values
What does the f-ration provide?
a measure of how much the model has improved the prediction of y (outcome) relative to the level of inaccuracy of the model