Use the simplest model that describes the relationship well.
6
New cards
What is the simple linear regression model?
Yi=β0+β1xi+εi, i=1,…,n. β0 = intercept, β1 = slope, εi = random error. X is known (not random); Y is random.
7
New cards
What are the three standard assumptions on the errors εi?
(1) E(εi)=0; (2) var(εi)=σ2 (constant); (3) cov(εi,εj)=0 for i=j.
8
New cards
What do the three error assumptions mean in words?
Y depends linearly on X, the variance of Y is the same at every x, and the Yi are uncorrelated.
9
New cards
What is the normal simple linear regression model?
yi∼N(β0+β1xi,σ2) independently, i.e. εi∼iidN(0,σ2). Under normality, zero covariance means the Yi are independent.
10
New cards
What is the centred form of the model, and how are its parameters interpreted?
yi=α+β(xi−xˉ)+εi with α=β0+β1xˉ, β=β1. Same slope; α is the mean response at x=xˉ.
11
New cards
What does least squares minimise?
S(β0,β1)=∑[yi−(β0+β1xi)]2.
12
New cards
What are the normal equations?
nβ^0+β^1∑xi=∑yi and β^0∑xi+β^1∑xi2=∑xiyi (from setting ∂β0∂S=∂β1∂S=0).
13
New cards
What is the least squares estimator of the intercept β0?
β^0=yˉ−β^1xˉ.
14
New cards
What is the least squares estimator of the slope β1?
β^1=SxxSxy.
15
New cards
What is the difference between an estimator and an estimate?
An estimator is a function of the random Yi (so a random variable). An estimate is its value calculated from the observed data.
16
New cards
Why should you not predict outside the observed range of x?
The relationship may not stay linear outside the range used to fit the model (extrapolation).
17
New cards
How do you interpret the intercept estimate β^0?
The predicted value of y when x=0.
18
New cards
How do you interpret the slope estimate β^1?
The average change in y for a one-unit increase in x.
19
New cards
What is the no-intercept model, and what is its least squares estimator?
yi=β1xi+εi, so E(Y∣X=0)=0. LSE: β^1=∑xi2∑xiyi.
20
New cards
What is the constant model?
yi=β0+εi: Y does not depend on X. Fitted value y^i=yˉ.
21
New cards
When is an estimator θ^ unbiased for θ?
When E[θ^]=θ.
22
New cards
How can β^1 be written as a linear combination of the Yi, and why is it normal?
β^1=∑ciYi with ci=Sxxxi−xˉ, where ∑ci=0 and ∑cixi=1. It is normal because it is a linear combination of normals.
23
New cards
What is the distribution of a linear combination of independent normals (Theorem 2.1)?
If Yi∼N(μi,σi2) independently, then ∑aiYi∼N(∑aiμi,∑ai2σi2).
24
New cards
What is the sampling distribution of β^1?
β^1∼N(β1,Sxxσ2). Unbiased.
25
New cards
What is the sampling distribution of β^0?
β^0∼N(β0,σ2(n1+Sxxxˉ2)). Unbiased.
26
New cards
What does it mean that the LS estimators are BLUE, and under what assumptions?
Best Linear Unbiased Estimators: smallest variance among all linear unbiased estimators. Holds under linearity, exogeneity, homoskedasticity and no autocorrelation (Gauss-Markov).
27
New cards
When are β^0 and β^1 consistent?
If n1Sxx→σx2>0, then β^1pβ1 and β^0pβ0 (law of large numbers + continuous mapping theorem).