Docsity

Econometrics Survival Kit, Sintesi del corso di Econometria

Anteprima parziale del testo

Scarica Econometrics Survival Kit e più Sintesi del corso in PDF di Econometria solo su Docsity!

ECONOMETRICS

SURVIVAL KIT

OLS, slope, intercept, residuals, R-squared, assumptions, testing and exam

interpretation

A practical, exam-oriented guide for studying and creating a digital study product

Version 1 - built as a structured study pack

How to use this kit

This kit is designed for exam preparation. The goal is not to memorize disconnected formulas,

but to understand what each object means, how to compute it, and how to explain it in words

under exam pressure.

Study method

For each topic, learn the idea first, then the formula, then the interpretation. In econometrics, most exam mistakes happen because students can compute something but cannot explain what it means.

 First pass: read the blue definitions and green formula boxes.

 Second pass: redo the worked example without looking at the solution.

 Third pass: answer the exam-style questions at the end of each chapter.

 Final pass: use the flashcards and the one-page checklist.

Table of contents

1. 1. The basic idea of regression

2. 2. Population regression vs sample regression

3. 3. Ordinary Least Squares (OLS)

4. 4. Slope and intercept

5. 5. Fitted values and residuals

6. 6. Worked example: estimating a simple regression by hand

7. 7. Goodness of fit: TSS, ESS, RSS and R-squared

8. 8. OLS assumptions and what they mean

9. 9. Sampling variability, standard errors and t-statistics

10. 10. Hypothesis testing and confidence intervals

11. 11. Multiple regression and ceteris paribus interpretation

12. 12. Dummy variables and categorical regressors

13. 13. Log models and percentage interpretation

14. 14. Bias, omitted variables and causality warnings

15. 15. Heteroskedasticity and robust standard errors

16. 16. How to read a regression output

17. 17. Exam question bank

18. 18. Flashcards and content bank

Do not confuse the error term u with the residual e. The error term is theoretical and unobserved. The residual is observed after estimation: e = y - y_hat.

Why the error term matters

The error term contains omitted factors, measurement errors, random shocks and anything else

not captured by X. The key problem in econometrics is whether X is correlated with the error

term. If it is, OLS may be biased.

Core assumption preview

For OLS to be unbiased, we need zero conditional mean: E(u | X) = 0. This means the unobserved factors in u are not systematically related to X.

3. Ordinary Least Squares (OLS)

OLS stands for Ordinary Least Squares. It estimates the regression line by choosing the

intercept and slope that minimize the sum of squared residuals.

Residual: e_i = y_i - y_hat_i

OLS chooses b0 and b1 to minimize: sum(e_i^2)

 The residual measures how far each observation is from the fitted line.

 OLS squares residuals so positive and negative errors do not cancel out.

 Squaring gives more weight to large prediction errors.

 The OLS line passes through the point of sample means: (x_bar, y_bar).

Exam tip

If asked “what does OLS do?”, answer: it chooses the coefficients that minimize the sum of squared residuals.

OLS algebra in simple regression

b1 = sum[(x_i - x_bar)(y_i - y_bar)] / sum[(x_i - x_bar)^2]

b0 = y_bar - b1 x_bar

The slope is based on how X and Y move together. If observations with high X also tend to have

high Y, the numerator is positive and the slope is positive. If high X tends to correspond to low Y,

the slope is negative.

4. Slope and intercept

Slope

The slope b1 is the most important coefficient in a simple regression. It tells us how much the

predicted value of Y changes when X increases by one unit.

If X increases by 1, y_hat changes by b1 units.

Interpretation template

A one-unit increase in X is associated with a b1-unit increase/decrease in the predicted value of Y, holding the model fixed.

Intercept

The intercept b0 is the predicted value of Y when X equals zero. It is mathematically necessary

because it positions the regression line vertically.

When x = 0: y_hat = b

Common mistake

The intercept is not always economically meaningful. If X = 0 is impossible or outside the data range, the intercept is mainly a technical part of the fitted line. Coefficient Question it answers How to interpret b0, intercept What is predicted Y when X = 0? At X = 0, the model predicts Y = b0. b1, slope How does predicted Y change when X rises by 1? A one-unit increase in X changes predicted Y by b1 units.

5. Fitted values and residuals

Once b0 and b1 are estimated, the model can generate fitted values. The difference between

actual and fitted values is the residual.

Fitted value: y_hat_i = b0 + b1 x_i

Residual: e_i = y_i - y_hat_i

 If e_i > 0, the actual value is above the fitted line.

 If e_i < 0, the actual value is below the fitted line.

 If e_i = 0, the observation lies exactly on the fitted line.

 OLS residuals sum to zero when the model includes an intercept.

Key OLS properties with intercept

  1. sum(e_i) = 0. 2) sum(x_i e_i) = 0. 3) The fitted line passes through (x_bar, y_bar).

6. Worked example: estimating a simple regression by hand

Suppose we want to explain exam score Y using study hours X. We observe four students.

Student X: study hours Y: score A 1 50 B 2 55 C 3 65 D 4 70

TSS = ESS + RSS

R-squared = ESS / TSS = 1 - RSS / TSS

Object Full name Meaning TSS Total Sum of Squares Total variation in Y around its mean. ESS Explained Sum of Squares Variation explained by the fitted model. RSS/SSR Residual Sum of Squares Unexplained variation left in residuals. R-squared Coefficient of determination Share of total variation in Y explained by the model.

Exam-safe interpretation

An R-squared of 0.64 means that 64 percent of the sample variation in Y is explained by the regressors included in the model. It does not mean that X causes 64 percent of Y.

Common mistake

A high R-squared does not prove causality. A low R-squared does not automatically make a coefficient useless, especially in cross-sectional data.

8. OLS assumptions and what they mean

OLS has desirable properties only under assumptions. Different textbooks label them differently,

but the core ideas are usually the same.

Assumption Meaning Why it matters Linearity in parameters The model is linear in the coefficients. Allows OLS estimation using b0, b1, etc. Random sampling The sample is drawn randomly from the population. Supports external validity and sampling theory. Sample variation in X X is not constant. Without variation in X, the slope cannot be estimated. Zero conditional mean E(u | X) = 0. Needed for unbiasedness of OLS. Homoskedasticity Var(u | X) is constant. Needed for usual standard errors to be valid and for efficiency. Normality, often optional in large samples Errors are normally distributed. Useful for exact small-sample inference.

Zero conditional mean

The zero conditional mean assumption is the most important for causal interpretation. It says

that the average value of the unobserved error is the same at every value of X. In practical

terms, X must not be systematically related to omitted factors in the error term.

Simple intuition

If students who study more are also more motivated, and motivation is not included in the model, the study- hours coefficient may partly capture motivation. That is omitted variable bias.

Homoskedasticity vs heteroskedasticity

Homoskedasticity means the variance of the error term is constant across values of X.

Heteroskedasticity means the variance changes with X.

 If heteroskedasticity is present, OLS coefficients can still be unbiased under zero conditional

mean.

 However, the usual standard errors may be wrong.

 Robust standard errors are often used to make inference more reliable.

9. Sampling variability, standard errors and t- statistics

The estimated coefficient b1 changes from sample to sample. The standard error measures the

sampling uncertainty around the estimate.

t = (estimate - hypothesized value) / standard error

Interpretation

A large absolute t-statistic means the estimate is many standard errors away from the null value. This provides evidence against the null hypothesis. Term Meaning Coefficient estimate The estimated slope or intercept from the sample. Standard error The estimated standard deviation of the sampling distribution of the coefficient. t-statistic How many standard errors the estimate is away from the null value. p-value The probability of observing evidence at least this extreme if the null hypothesis is true.

Common mistake

The p-value is not the probability that the null hypothesis is true. It is a probability computed under the assumption that the null is true.

10. Hypothesis testing and confidence intervals

Hypothesis testing is used to decide whether the data provide enough evidence against a null

hypothesis. In regression, the most common test is whether a coefficient equals zero.

H0: beta1 = 0

H1: beta1 != 0

Testing procedure

19. State the null and alternative hypotheses.

20. Compute the t-statistic.

21. Compare the p-value with the significance level, or compare the t-statistic with the critical

value.

 b1 is the difference in predicted Y between the category coded 1 and the base category

coded 0.

Dummy interpretation

If b1 = -2 in a wage regression with female = 1 for women and 0 for men, then women are predicted to earn 2 units less than men on average, according to this model.

Dummy variable trap

If a categorical variable has m categories, include only m - 1 dummy variables when the model

has an intercept. The omitted category becomes the base group.

Common mistake

Do not include a dummy for every category plus an intercept. This creates perfect multicollinearity.

13. Log models and percentage interpretation

Logarithms are often used when relationships are proportional or when variables are skewed.

Interpretation depends on which variables are in logs.

Model type Example Approximate interpretation Level-level Y = b0 + b1 X A one-unit increase in X changes Y by b1 units. Log-level log(Y) = b0 + b1 X A one-unit increase in X changes Y by about 100*b1 percent. Level-log Y = b0 + b1 log(X) A 1 percent increase in X changes Y by about b1/100 units. Log-log log(Y) = b0 + b1 log(X) A 1 percent increase in X changes Y by about b1 percent.

Exam tip

For log-level models, say “approximately 100 times the coefficient percent”. For log-log models, the coefficient is an elasticity.

14. Bias, omitted variables and causality warnings

A coefficient is biased if its expected value is not equal to the true population parameter. The

most common source in basic econometrics is omitted variable bias.

Omitted variable bias

Omitted variable bias occurs when an omitted factor affects Y and is correlated with an included

regressor X.

Bias requires: omitted variable affects Y AND omitted variable is correlated with

X

Condition Question

Relevance Does the omitted variable affect Y? Correlation Is the omitted variable correlated with X?

Example

If ability affects wages and is correlated with education, then a regression of wages on education may overstate the causal return to education if ability is omitted.

Causality warning

A significant coefficient is not automatically causal. Causality requires credible assumptions or design, such as random assignment, natural experiments, instrumental variables, difference-in-differences, or other identification strategies.

15. Heteroskedasticity and robust standard errors

Heteroskedasticity means that the variance of the error term changes with the regressors. It is

common in cross-sectional data.

Homoskedasticity: Var(u | X) = constant

Heteroskedasticity: Var(u | X) changes with X

 OLS estimates can remain unbiased if E(u | X) = 0.

 The usual standard errors can be invalid.

 This affects t-tests, p-values and confidence intervals.

 Robust standard errors help correct inference.

Exam answer

If heteroskedasticity is present, OLS coefficients are still unbiased under zero conditional mean, but the usual standard errors are generally wrong. Therefore, inference should use heteroskedasticity-robust standard errors.

16. How to read a regression output

Most econometrics exams ask you to interpret a regression table. The following template works

for Stata, R and most statistical software outputs.

Output element What it tells you What to say in the exam Coefficient Estimated association/effect Interpret the sign, size and units. Standard error Uncertainty of the estimate Used to build t-statistics and confidence intervals. t-statistic Estimate divided by standard error Evidence against the null that the coefficient equals zero. p-value Significance measure If below alpha, reject the null. R-squared Goodness of fit Share of sample variation in Y explained by the model. Number of observations Sample size More observations often improve precision, all else equal.

 What is a 95 percent confidence interval?

 What does statistical significance mean? What does it not mean?

Multiple regression

 How does interpretation change when there are multiple regressors?

 What does ceteris paribus mean?

 Why can adding a control variable change the coefficient on X?

 What is multicollinearity?

Model answers to common short questions

Question Model answer What is OLS? OLS is an estimation method that chooses the regression coefficients minimizing the sum of squared residuals, where residuals are the differences between observed and fitted values. Interpret the slope. The slope measures the change in predicted Y associated with a one-unit increase in X. In multiple regression, this interpretation holds other regressors constant. Interpret R-squared. R-squared is the proportion of sample variation in Y explained by the model. It is a goodness-of-fit measure, not proof of causality. What is omitted variable bias? Omitted variable bias occurs when a relevant omitted variable affects Y and is correlated with an included regressor, causing the OLS coefficient to capture more than the intended relationship. What does a p-value tell us? A p-value measures how likely it would be to observe evidence at least as extreme as the sample result if the null hypothesis were true.

18. Flashcards and content bank

One-page formula cheat sheet

Concept Formula / key expression Regression line y_hat = b0 + b1 x Residual e_i = y_i - y_hat_i Slope b1 = sum[(x_i - x_bar)(y_i - y_bar)] / sum[(x_i - x_bar)^2] Intercept b0 = y_bar - b1 x_bar R-squared R2 = 1 - RSS/TSS t-statistic t = (estimate - null value) / SE Confidence interval estimate +/- critical value x SE Zero conditional mean E(u | X) = 0 Homoskedasticity Var(u | X) = constant Multiple regression y_hat = b0 + b1 x1 + ... + bk xk

Flashcards

Front Back What does OLS minimize? The sum of squared residuals. What is a residual? The difference between the actual value and fitted value: e = y - y_hat. What is a fitted value? The predicted value of Y from the estimated regression line. How do you interpret the slope? A one-unit increase in X is associated with a b1-unit change in predicted Y. How do you interpret the intercept? It is predicted Y when X equals zero.

When is the intercept not meaningful? When X = 0 is impossible or outside the relevant data range. What is R-squared? The share of sample variation in Y explained by the model. Does high R-squared prove causality? No. It measures fit, not causation. What is zero conditional mean? The assumption that the expected error is zero for every value of X. Why does zero conditional mean matter? It is needed for OLS to be unbiased. Front Back What is omitted variable bias? Bias caused by leaving out a variable that affects Y and is correlated with X. What is heteroskedasticity? Non-constant error variance across values of the regressors. Does heteroskedasticity bias OLS coefficients? Not necessarily, if zero conditional mean holds. What problem does heteroskedasticity create? Usual standard errors may be invalid. What are robust standard errors for? To make inference more reliable under heteroskedasticity. What is a t-statistic? Estimate minus null value divided by standard error. What is a p-value? Probability of evidence at least as extreme if the null is true. Decision rule with p-values? Reject H0 if p-value is less than alpha. What is a confidence interval? A range of plausible values for the population parameter. What does ceteris paribus mean? Holding other variables constant. Front Back How do you interpret b1 in multiple regression? Effect of X1 on predicted Y, holding other regressors constant. What is the dummy variable trap? Including all category dummies plus an intercept, causing perfect multicollinearity. How do you interpret a dummy coefficient? Difference in predicted Y between the category coded 1 and the base group. What is a log-log coefficient? An elasticity: percent change in Y for a 1 percent change in X. What is adjusted R-squared? A fit measure penalizing for adding regressors. What is multicollinearity? Strong linear relationship among regressors. What happens with perfect multicollinearity? OLS cannot estimate the model. What is the dependent variable? The outcome variable being explained. What is an explanatory variable? A variable used to explain variation in the dependent variable. What is the error term? Unobserved factors affecting Y not included in the model.

Content bank for a side hustle page

These short scripts can be used for faceless videos, carousels or posts. They turn the study

material into simple content.

OLS in 30 seconds: OLS is the method that finds the regression line that best fits the data. It

minimizes the sum of squared residuals. A residual is the gap between the actual value and the

predicted value.

Slope vs intercept: The slope tells you how predicted Y changes when X increases by one

unit. The intercept tells you predicted Y when X equals zero.

R-squared mistake: R-squared does not prove causality. It only tells you how much of the

variation in Y is explained by the model.