1/59
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Role of u
Captures all unobserved factors other than x that affect y
Cross-sectional data
Observations on one or more variables for different units at a single point in time
Time-series data
Observations on one or more variables collected at multiple points in time
Panel data
A time series for each cross-sectional unit in the dataset
Combines cross-sectional and time-series dimensions
3 types of random variables
Bernoulli: can take only value of 0 or 1
Discrete: takes only a finite number of values
Continuous: takes infinitely many values
Probability Distribution Function
Shows the probability of each possible score
Probabilities of each score can be defined as:
pj = P(X=j)
0 < pj < 1 and total sum equals 1
Probability Density Function
Describes the relative likelihood/density of possible values of a random variable
For a continuous variable, probabilities correspond to areas under the PDF
Cumulative Distribution Function
Used to know the probability that a random variable is below or above a certain value
Gives the cumulative probability up to x:
F(x) = P (X<x)
Independence
X and Y are independent if knowing the outcome of one does not change the probabilities of the possible outcomes of the other
P(X=x, Y=y) = P(X=x)P(Y=y)
Conditional distribution
Distribution of Y given X:
fY|X(y|x) = fX,Y(x,y) / fX(x)
If X,Y are independent, then fY|X(y|x) = fY(y)
Measures of Central Tendency
E(X) = muX, the expected value, the mean of a random variable X
The median of a random variable X
Measures of Dispersion
Var(X) = sigmaX2 , the variance, measure of how far a random variable X is from its mean
sd(X) = sigmaX , the standard deviation, positive square root of the variance
Measures of Association
Cov(X,Y) = sigmaXY
Corr(X,Y) = rhoXY
Variance
Var(X) = E[(X-mu)2]
Covariance
Cov(X,Y) = E[(X-muX)(Y-muY)]
Measures linear dependence between two random variables
Positive, X and Y tend to move together
Negative, X and Y tend to move in opposite directions.
Covariance depends on the unit of measurement
Correlation
Corr(X,Y) = Cov(X,Y) / sd(X)sd(Y)
Measures how X,Y vary with each other regardless of their units of measurement
Standard normal distribution
Special case of the normal distribution where mu=0, and sigma=1
If X ~ N(mu, sigma2), then Z = X-mu / sigma ~ N(0, 1)
Chi-square distribution
X has a chi-square distribution with n degrees of freedom, denoted X ~ Xn2
If X = SUM Zi2 , where Zi ~ N(0, 1), i = 1, …, n are independent of each other
t Distribution
T has a t distribution with n degrees of freedom, denoted T ~ tn
If T = Z / sqrt(X/n), where Z ~ N(0,1), X ~ Xn2 and they are independent of each other
F distribution
F has an f distribution with (k1, k2) degrees of freedom, denoted F ~ Fk1,k2
If F = (X1/k1) / (X2/k2), where X1 ~ Xk12 , X2 ~ Xk22 and they are independent of each other
Symmetric matrix
Square matrix that is symmetric along the leading diagonal
Diagonal matrix
Square matrix with non-zero elements only on the leading diagonal
Identity matrix
Diagonal matrix with 1 on the leading diagonal
Transpose
The transpose of a matrix A’ is obtained by switching the rows and columns of a matrix
Full rank matrix
Has a rank equal to its dimension
The rank of a matrix is the maximum number of linear independent rows or columns contained in the matrix
Singular matrix has a rank smaller than its dimension
Matrix algebra
Addition and subtraction requires the matrices to have the same number of rows and columns
Multiplication and division by a scalar s implies that all elements of the matrix are multiplied or divided by that scalar
Two matrices can be multiplied when the number of columns of the 1st matrix = number of rows of the 2nd matrix
Multiplication is performed along the rows of the 1st matrix and down the columns of the 2nd matrix
Inverse matrix
Inverse of a matrix A-1 is the matrix that when pre- or post- multiplied by A results in the identity matrix
A-1 = 1 / ad - bc ((d, -b) (-c, a))
Bivariate Linear Regression Model
yi = a + Bxi + ui
a is the constant coefficient
B is the slope coefficient
x the explanatory variable
y the dependent variable
u contains all unobserved factors affecting y
Process of finding a and B is called Ordinary Least Squares
OLS
Take the vertical distances defined as ui^ between each point in the graph and each candidate fitted line
Takes the squares of each distance and sums them: SUM ui^2
Finds the estimated coefficients that minimize the sum of the squared residuals
OLS estimators
a^ = y - B^ x
B^ = SUM(yi-y-)(xi-x-) / SUM(xi-x-)2 = Cov(y,x)/Var(x)
Standardized coefficient
B^ sigmax / sigmay
it expresses the effect in std units
A one std increase in x changes the predicted y by B^ sigmax / sigmay std
Quadratic model
Using the derivative
The effect of a one-unit increase in x is different at starting values of x
dy/dx = B1 + 2B2xi
Logarithmic transformation
Can reduce the influence of outliers
Can help to make a positively skewed distribution closer to a normal distribution
Allows for nonlinear relationship with a constant percentage increase
Permits interpretation through elasticities
Level-Log
dy = (B/100)% dx
log-level
%dy = 100B dx
log-log
%dy = B %dx
Assumption 1
Linear in parameters
The population model is linear in parameters: yi = a + Bxi + ui
OLS cannot be used for a model that is nonlinear in parameters
such as yi = 1/ (a + Bxi) + ui
Assumption 2
Random sample
We have a random sample from the population
Systematically selecting particular observations can make the OLS results unreliable
Assumption 3
Sample variation
There must be sample variation in the explanatory variable
x cannot have a variance of zero in the sample
Assumption 4
Zero conditional mean
The error u has an expected value of zero given any value of x
E(u | x) = E(u) = 0
Thus, the average value of the unobserved factors is the same for every value of x
Assumption 5
Homoscedasticity
The variance of u is constant and finite for any value of x
Var(u | x) = sigma2 < inf
If Var(ui | xi) = sigmai2 we have heteroscedasticity
BLUE
Best Linear Unbiased Estimator
Under the CLRM assumptions, OLS estimators have the desirable properties of unbiasedness and efficiency
Best means minimum variance among linear unbiased estimators
P1 Unbiasedness
An estimator is unbiased when its expected value equals the true population value
E(a^) = a, E(B^) = B
Requires A1 to A4 to hold
The difference between E(B^) and B is bias
Efficiency
OLS estimators have the minimum variance among the class of linear unbiased estimators
No other linear unbiased estimators have a smaller variance
OLS SE
SE measure the precision of the estimated coefficients
A smaller SE means a more precise estimate
RSS
Residual Sum of Squares
Variation in y not explained by the model
RSS = SUM (yi - yi^)2
TSS
Total Sum of Squares
Measures the total variation in y around its mean
TSS = SUM (yi - y-)2
ESS
Explained Sum of Squares
Measures the variation in y explained by the model
ESS = SUM (yi^ - y-)2
TSS decomposition
TSS = ESS + RSS
R-squared
Standard goodness of fit measure
R2 = ESS/TSS = 1 - RSS/TSS
Measures the proportion of the sample variation in y explained by x
Assumption 6
Normality
The population error u is independent of the explanatory variables x and normally distributed
u ~ N(0, sigma2)
t-Test
Used to test a hypothesis about one population parameter
H0: B = B0
tB = B^ - B0 / se(B^)
Interpretation t statistic
Measures how many standard errors B^ is away from the hypothesized value B0
A larger tB provides stronger evidence against null hypothesis
Significance level
The probability of rejecting H0 when H0 is actually true
P(reject H0 | H0 true)
Type 1 error
p-Value
The smallest significance level at which H0 would be rejected
For a two-sided t-test
p-val = P(TB > tB | H0)
It is the probability, assuming H0 is true, of obtaining a t statistic at least as extreme as the observed one
p-Value decision rule
Compare the p-value with the chosen significance level
p-value < significance value => reject H0
Confidence Interval
Provides a range of likely values for the true parameter B
A 95% CI is defined by
B^ ± 1.96 se(B^)
Interpret regression results
Check the statistical significance of each variable
Only if statistically significant, interpret its economic significance
Interpret the overall goodness of fit of the model