Lecture 31- Fitting Simple linear Regression Models Flashcards

1
Q

Write down the equation for a fitted model? What does a fitted model allow us to do? How does this model change when we are wanting to predict y?

A
  • Equation at the bottom of slide 579
  • The fitted model allows us to calculate an estimate of the mean response (mean of Y) given any value of x.
  • Equation at bottom of slide 580, the best we can do to predict y is to predict the mean value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the data for a similar linear regression consist of?

A

Pairs of values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What notation in stats denotes a random variable?

A

Upper case roman letter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the estimated error or residual term in a linear regression model given by?

A

The difference between the observed value Yi and the the value of Y predicted by the fitted line estimate (triangle yi)- it’s the variation from the average/ line of best fit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A line that best describes the relationship between the two random variables X and Y will… How do we do this?

A
  • Minimize the residual terms over all observations
  • We can’t just take the absolute values of residuals and sum them to give an accurate representation of whether the line is good or not because the points above the line (positive values) and below the line (negative values) will cancel each other out.
  • Instead we take the square of the residuals: the line of best fit minimizes the sum of the squares of residuals (method of least squares)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Estimate B1 (slope) and B0 (intercept) based on example data on slide 593…

A

Answers on slide 594 and 595

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

For interpretation of intercept what is needed for it to be sensible?

A

-If close to range of data: regression line may not hold at this point if far from data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What function in R is used to fit a linear regression model?

A

model1= lm(y-x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly