1/13
Looks like no tags are added yet.
winsorization
reducing the influence of extreme values (outliers) by replacing them with less extreme values at specified percentiles
Demeaning
subtracting the mean of a variable from each observation
xi = Xi - Xbari
Expected value
The expected value of a random variable is the probability-weighted average of all possible values that the random variable can take.
Conditional expectation
the probability-weighted average of all possible values that the random variable can take, conditional on some other random variable
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

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
fitted residual/error term
ε^i ≡ yi - y^i
how do we find the slope for simple linear regression
by minimising the sum of squared residuals - it is a least squares estimator
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
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
Variance
Var(A) = Cov(A,A) = E[ (A - E[A])² ]
measures how spread out a variable's values are around its mean
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²)
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.
what is the simple linear regression estimator equal to (2 definitions)
∑xiyi / ∑xi² = Cov^(x,y) / Var^(x)