Lecture 1: Simple Linear Regression

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

14 Terms

1
New cards

winsorization

reducing the influence of extreme values (outliers) by replacing them with less extreme values at specified percentiles

2
New cards

Demeaning

subtracting the mean of a variable from each observation

xi = Xi - Xbari

3
New cards

Expected value

The expected value of a random variable is the probability-weighted average of all possible values that the random variable can take.

4
New cards

Conditional expectation

the probability-weighted average of all possible values that the random variable can take, conditional on some other random variable

5
New cards

how does demeaning change the simple linear regression model

Demeaning both X and Y removes the intercept from the simple linear regression model so there is only one parameter because both variables now have a mean of zero, so the fitted OLS regression line passes through (0,0) with equation yi = βxi + εi

6
New cards
<p>Explain what all the terms are </p>

Explain what all the terms are

Equation 1: regression model

yi: dependent variable

xi: explanatory variable or regressor

β: parameter, coeficient or slope

ε: residual or error term

Equation 2: fitted regression equation

β^: parameter estimate

y^: predicted outcome

7
New cards

fitted residual/error term

ε^i ≡ yi - y^i

8
New cards

how do we find the slope for simple linear regression

by minimising the sum of squared residuals - it is a least squares estimator

9
New cards

How to derive the eq that minimises the sum of squared residuals

We want to choose β^ that minimises the sum of squares ∑(yi - βxi)²

differentiate wrt to β using the chain rule and set = 0: -2∑xi.(yi - β.xi) = 0

set β = β^ and solve for β^: β^ = ∑xi.yi / ∑x²

confirm minima using second derivative wrt β: 2∑xi² > 0 ∴ minima

10
New cards

Covariance

Cov(A,B) = E[(A-E[A])(B-E[B)]

measures how two variables move together, it is the expected value of the product of their deviations from their respective means

11
New cards

Variance

Var(A) = Cov(A,A) = E[ (A - E[A])² ]

measures how spread out a variable's values are around its mean

12
New cards

How does sample variance simplify in our simple linear regression model

We demeaned both X and Y

So E(x) = E(y) = 0

Cov(x,y) = E(xy)

Var(x) = E(x²)

13
New cards

How to get an estimate of Covariance and Variance

Cov^ = 1/N ∑xiyi

Var^ = 1/N ∑xi²
using sample averages calculated using the observations in a sample, rather than the entire population.

14
New cards

what is the simple linear regression estimator equal to (2 definitions)

∑xiyi / ∑xi² = Cov^(x,y) / Var^(x)