INTRODUCTION TO ECONOMETRICS 1. Introduction to the Simple Linear Regression Model ..................................................... 1 2. The Classical Simple Linear Regression Model ............................................................ 3 3. The Classical Multiple Linear Regression Model .......................................................... 5 4. Statistical Test and Inference ..................................................................................... 7 5. Specification and Functional Forms ........................................................................... 9 1. Introduction to the Simple Linear Regression Model Econometrics: application of statistics to social science questions. Regressions are the main methods used in economics to answer research questions. •EX: What is the effect of class size on student performance? What is the effect of education on income? -We don’t observe all aspects of human behaviours. 1. Survivorship bias โ we only observe successes/bias, we don’t observe failures. โ can lead to incorrect conclusions because of incomplete data. 2. Correlation ≠ causation โ just because two things move together it doesn’t mean one is causing the other. •Other relevant unobserved variables may affect both variables. -What part of the revenue increase is due to higher ad spending and what part is due to having more blockbusters on the platform? To measure economic relationships, we will use 4 types of data: 1. Cross-sectional data: different units (individuals, firms, countries) at a specific point in time. •The ordering of the observation is not important. 2. Time series data: same unit at different points in time. •The ordering conveys information. 3. Pooled or repeated cross sections: different units at different points in time. •It’s used for policy evaluation (have 1 before and 1 after the policy change). 4. Panel data: same units at different points in time. •Both cross-sectional and temporal dimension. In this course we will use: ๐ฒ๐ข = ๐๐ + ๐๐ ๐ฑ ๐ข •x# ; y# โ are the realization of variables X, Y; •β$ โ true intercept, predicted income for individual with 0y of education; •β% โ true slope, how much income tends to change with one additional year of education, ceteris paribus. •β*$ and β*% are the estimates. Selection bias: we don’t use information from all surveyed individuals but just a limited amount. A regression between variable Y and variable X is a way to estimate the average relationship between X and Y by fitting a line or curve using information from all data points. Ordinary Least Squares (OLS) regressions find the curve/line that minimizes the average vertical difference between the curve/line and the data points squared. •Assuming that what we don’t observe is normally distributed; •Squaring differences that can be positive or negative gives us positive numbers that we can think of as a measure of distance. OLS finds the curve/line that minimizes the squared residuals. •residuals: vertical difference between what you observe and what the model predicts, an average. The simple linear regression model ๐ฒ๐ข = ๐๐ + ๐๐ ๐ฑ ๐ข + ๐ฎ๐ข •u is the error term, or the vertical distance between the true line that generated the data and the data points. → Everything that we do not observe or include in our regression is in that term. A random variable is a variable that is uncertain: with some probability, the error term will be positive and revenue will be higher than I predicted, and with some probability, the error term will be negative and revenue will be lower than I predicted. The presence of an error term implies that ๐ is a random variable that depends on the draws of the error term โ it has a probability distribution. 1 •Discrete variables only take certain values (usually integers). •Continuous variables can take (almost) any values within a certain range. For a discrete random variable ๐, the probability function gives the probability that the ๐ &' observation, ๐( , equals a particular value ๐ฆ( . That is ๐(๐( = ๐ฆ( ), such that: → ๐(๐๐ข = ๐ฒ๐ข ) ≥ 0 i.e., probabilities are never negative → ∑๐ฒ๐ข ๐(๐๐ข = ๐ฒ๐ข ) = ๐ i.e., the probability that ๐( takes any of the possible values is 1. The expectation captures what you might expect ๐ to be if you were to draw one value at random. •For discrete random variables, the expectation, ๐ธ[๐( ], is defined as: ๐[๐๐ข ] = ∑๐ฒ๐ข ๐ฒ๐ข ๐(๐๐ข = ๐ฒ๐ข ). We will see that the mean is the sample equivalent of the expectation. The variance, which captures the spread of the data, is given by ๐๐๐ซ[๐๐ข ] = ๐>(๐๐ข − ๐[๐๐ข ])๐ @ ๐๐๐ซ[๐๐ข ] = ๐>๐๐ข๐ @ − (๐[๐๐ข ])๐ ๐๐๐ซ[๐๐ข ] = A (๐๐ข − ๐[๐๐ข ])๐ ๐(๐๐ข = ๐ฒ๐ข ) ๐ฒ๐ข Possible reasons why it’s not a good estimate: - Small sample - Selection bias (we don’t use info from all individuals) - Omitted variables bias 2 2. The Classical Simple Linear Regression Model We aim to fit the line that best represents the data. Therefore, we assume that the data is generated by a linear equation: ๐ฒ๐ข = ๐๐ + ๐๐ข ๐ฑ ๐ข + ๐ฎ๐ข B๐ / ๐ B๐ . We don’t observe the true intercept and slope, so we must find the estimates of these parameters: ๐ B๐ + ๐ B๐ข ๐ฑ ๐ข โ prediction line you estimate. โ ๐ฒC๐ข = ๐ When we say that data is generated by a linear equation, we mean linear in terms of the parameters โ a sum of parameters multiplied by variables. The variables can take any form (logarithmic, exponential, etc.), but the parameters themselves must enter linearly. Residuals: vertical difference between what you observe (data, ๐ฆ( ) and what the model predicts (๐ฆC( ), an average. B๐ − ๐ B ๐ข ๐ฑ ๐ข โ residual for individual i. ๐ฎ D ๐ข = ๐ฒ๐ข − ๐ฒC๐ข = ๐ฒ๐ข − ๐ If the data point observed is •above the prediction line โ๐ฎ D ๐ข > ๐; •below the prediction line โ๐ฎ D ๐ข < ๐. •N ~ number of observations. Average residual: 3 3 ๐ ๐ HHHHH B๐ − ๐ B๐ข ๐ฑ ๐ข = ∑(๐ฒ๐ข 1๐๐ 1๐๐ข ๐ฑ๐ข ). (๐ฎ D) = ∑๐๐ข.๐ D ๐ฎ๐ข = ∑๐๐ข.๐ ๐ฒ๐ข − ๐ ๐ ๐ ๐ The goal is to find the line that best fits the data. •To do so we will use all data, penalize really large residuals and square the residuals so positive and negative residuals don’t cancel out. •Minimize average squared residuals to find β*$ , β*% โ you obtain that with Ordinary Least Squared (Standard unweighted LS; Minimize; Squared residuals). B๐ = ๐ฒH − ๐ B ๐ ๐ฑH, โ๐ 9 (๐ฑ ,๐ฒ ) ๐๐จ๐ฏ ๐ข ๐ข B๐ = โ๐ = 9 (๐ฑ ) ๐ฏ๐๐ซ ๐ข where ๐ฆH ๐๐๐ ๐ฅฬ are the sample averages of y and x. ๐ ๐ ∑ (๐ฑ 1๐ฑ=)(๐ฒ๐ข 1๐ฒ=) ๐ ๐ข%๐ ๐ข ๐ ∑(๐ฑ ๐ข 1๐ฑ=)๐ ๐ A ๐ B ๐ = (๐ ๐๐๐๐๐ ๐๐๐๐๐๐๐๐ก๐๐๐ ๐๐๐ก๐ค๐๐๐ ๐ฅ ๐๐๐ ๐ฆ) ∗ (๐๐๐ก๐๐ ๐๐ ๐ ๐๐๐๐๐ ๐ ๐ก๐ ๐๐๐ฃ๐๐๐ก๐๐๐๐ ) = ๐ โ๐ท D ๐๐ ๐ . A๐ ๐ We assume that the average relationship between X and Y can be expressed as a linear function of the parameters: ๐ฒ๐ข = ๐๐ + ๐๐ ๐ฑ ๐ข + ๐ฎ๐ข •Where ๐ฝ$ and ๐ฝ% are the TRUE intercept and slope, with ๐ฝ% representing the true or CAUSAL effect of the explanatory variable (X) on the dependent variable (Y). •๐ข( is the error term. It represents everything we don’t observe. •A regression is a technique used to estimate this relationship with the available data. One way to do so is by minimizing the average squared residuals like we did โ ordinary Least Squared (OLS) regression. 3 •The error term (๐๐) is the difference between the observed income and the TRUE prediction line (u๐ = ๐๐− ๐ท๐− ๐ท๐๐๐). This is a theoretical concept that we do not observe. •The residual (๐ c) B of a regression is the difference between the observed B๐ − ๐ B๐ข ๐ฑ ๐ข . income and our ESTIMATED prediction line D ๐ฎ๐ข = ๐ฒ๐ข − ๐ Assumption for our estimators in order to be reliable estimators SLR.1 The true relationship between X and Y in the population is linear in the parameters. SLR.2 A sample that’s representative of the relevant population โ We have a random sample. SLR.3 X must have a variance (the values of x must vary across observations) โ ๐๐๐(๐) > 0 9 (๐ฑ ๐ข ,๐ฒ๐ข ) ๐ B๐ = ๐๐จ๐ฏ •If X has no Var, ๐ = is undefined. 9 (๐ฑ ๐ข ) ๐ฏ๐๐ซ ๐ SLR.4 The error term ๐ข( has an expected value of 0 for any given value of X (be independent form x). •๐[๐ฎ๐ข |๐] = ๐[๐ฎ๐ข ] = ๐ If an estimator is biased: we will systematically over- or underestimate the population parameters โ omitted variable bias. Unbiasedness of OLS estimator If SLR.1- SLR.4 are satisfied โ all the OLS estimators will be unbiased: i๐ j๐@ = ๐๐ ; ๐>๐ i๐ j๐@ = ๐๐ . ๐>๐ Proof 9 (F) ,G* ) 9 (F) ,J+ KJ, F* KL* ) CDE B๐ = CDE (assume SLR. 3 holds) = (assume SLR. 1 holds) = ๐ 9 (F ) 9 (F ) EHI * EHI * 9 (F) ,J+ )KCDE 9 (F) ,J, F* )KCDE 9 (F) ,L* ) 9 (F) ,F* )KCDE 9 (F) ,L* ) 9 (F* )KCDE 9 (F) ,L* ) 9 (F) ,L* ) CDE $KJ, CDE J, EHI CDE = = = β + = % (F ) (F ) (F ) 9 * 9 * 9 * 9 (F* ) EHI EHI EHI EHI , ∑= )L* *%,(F* 1F β% + - , - ∑(F* 1F=). (assume SLR. 2 holds) i% jX@ = E[β% |X] + E }∑*%,(F* 1F=.)L* |X~ = β% + ∑*%,(F* 1F=)MN.u# OXP (ass. SLR. 4 holds(E[u# |X] = 0)) = β% •E>β - - ∑(F* 1F=) ∑(F* 1F=) 3 algebraic properties of OLS: ๐ i P1. The sum of OLS residuals is 0: ๐ ∑ ๐ฎDQ = (๐ฎ D) = ๐ i (๐ฑ ๐ข ; D P2. The sample covariance between x and the residuals is 0: ๐๐จ๐ฏ ๐ฎ๐ข ) = ๐ B๐ + ๐ B๐ ๐ฑH P3. The point (๐ฅฬ , ๐ฆH) is always on the OLS regression line: ๐ฒH = ๐ Definitions: „)๐ → ๐ก๐๐ก๐๐ ๐ฃ๐๐๐๐๐ก๐๐๐ ๐๐ ๐ 1. [SST] Total Sum of Squares: ∑(๐๐ − ๐ „)๐ → ๐ฃ๐๐๐๐๐ก๐๐๐ ๐๐ฅ๐๐๐๐๐๐๐ ๐๐ฆ ๐กโ๐ ๐๐๐๐๐๐ ๐ ๐๐๐ 2. [SSE] Explained Sum of Squares: ∑(๐DB − ๐ 3. [SSR] Residual Sum of Squares: ∑ ๐ D ๐๐ → ๐ข๐๐๐ฅ๐๐๐๐๐๐๐/๐๐๐ ๐๐๐ข๐๐ ๐ฃ๐๐๐๐๐ก๐๐๐ SST = SSE + SSR Goodness-of-fit measure: R2 ๐๐ measure the proportion of the variation in Y that is explained by X. 0 โช ๐ S โช 1. We express ๐ S as follow: •๐ S = TUV(U&(WX (X WYV ZV[\(]&(WX^ TUV(U&(WX W_ &'[ \U&U ๐๐๐ ๐๐๐ •๐๐ = ๐๐๐ = ๐ − ๐๐๐ → ๐๐๐๐๐ก๐๐๐ ๐๐ ๐ก๐๐ก๐๐ ๐ฃ๐๐๐๐๐ก๐๐๐ ๐๐ฅ๐๐๐๐๐๐๐ ๐๐ฆ ๐กโ๐ ๐๐๐๐๐ โ ∑๐ (๐ฒd 1๐ฒ=)๐ A ๐๐ฒ0 ๐ ๐ข ๐ฒ ๐ข ๐๐ = ∑๐ข%๐ = ๐A๐ ๐ (๐ฒ 1๐ฒ = )๐ ๐ข%๐ 4 3. The Classical Multiple Linear Regression Model In SLR, the estimated coefficient on an explanatory variable may reflect: 1. Variation in the explanatory variable that is unrelated to other factors [what we want]. 2. Variation in the explanatory variable that is related to other observed variables in the dataset that could be included in the regression [don’t want]. 3. Variation in the explanatory variable that is related to unobserved or unmeasured factors affecting the dependent variable [don’t want]. In MLR, by including relevant observed variables as controls, we can account for source (2). However, MLR does not automatically account for source (3): if the explanatory variable is correlated with unobserved factors in the error term, the OLS estimator can still be biased. Multiple Linear Regression Model (MLR) ๐ฒ๐ข = ๐๐ + ๐๐ ๐ฑ ๐ข๐ + ๐๐ ๐ฑ ๐ข๐ + โฏ + ๐๐ค ๐ฑ ๐ข๐ค + ๐ฎ๐ข •๐ = the observation number; •๐ฆ( is a realization of the dependent variable ๐; •๐ฅ(% is a realization of the first explanatory variable ๐% (๐ &' observation of ๐% ); •๐ฅ(g is a realization of the ๐พ &' explanatory variable ๐g (๐ &' observation of ๐g ); •๐ข( is the error term of the ๐ &' observation. ๐๐ = ๐ฒ(๐ ๐ = ๐ฑ ๐ + ๐ โฃ ๐ ๐ , … , ๐_๐ค, ๐) − ๐ฒ(๐ ๐ = ๐ฑ ๐ โฃ ๐ ๐ , … , ๐ ๐ค , ๐) More generally, ๐ฝh measures how much on average ๐ tends to change when ๐h increases by one unit. Ordinary Least Squares (OLS) Estimators we choose estimators for all ๐ฝs (๐ฝ“$ , ๐ฝ“% ,…, ๐ฝ“g ) to solve the following optimization problem: Why SLR and MLR estimated coefficients differ? •In SLR, omitted variables can make the coefficient capture both the effect of the explanatory variable and the effect of omitted factors correlated with it. •In MLR, observed omitted factors are added as controls, so the coefficient measures the relationship between the explanatory variable and ๐ holding the controls constant. •If the omitted variable is positively related to both ๐ and ๐, the SLR coefficient will typically be biased upward; after controlling for it in MLR, the coefficient becomes smaller. Assumptions of the MLR Model MLR.1 The true relationship between ๐ฆ and all the explanatory variables is linear in the parameters. MLR.2 We have a random sample of size ๐. MLR.3 Every ๐h must vary and no ๐h can be a linear combination of the others. • Variables are (perfectly) collinear if they are an exact linear combination of each other. MLR.4 The error ๐ข has an expected value of zero given any values of the explanatory variables: ๐[๐ฎ๐ข |๐ฑ ๐ข๐ , ๐ฑ ๐ข๐ , … , ๐ฑ ๐ข๐ค ] = ๐[๐ฎ๐ข ] = ๐ Theorem 3.1: if MLR.1 – MLR.4 are satisfied, then the OLS estimators are unbiased: ๐[๐๐ฃ |๐ ๐ , ๐ ๐ , … , ๐ ๐ค ] = ๐๐ฃ ๐คโ๐๐๐ ๐ = 0, 1, … , ๐ต •In the exercises: under those conditions we can identify the causal link between X and Y. MLR.5 Homoskedasticity โ the error variance is constant among values of the explanatory variable: ๐๐๐ซ[๐ฎ๐ข |๐ฑ ๐ข๐ , ๐ฑ ๐ข๐ , … , ๐ฑ ๐ข๐ค ] = ๐>๐ฎ๐๐ข @ = ๐๐ 5 Variance of ๐ฝ Theorem 3.2: If MLR.1 – MLR.5 are satisfied, then ๐๐๐ซ> ๐B ๐ฃ โฃโฃ ๐ ๐ , ๐ ๐ , … , ๐ ๐ค @ = ๐๐ ๐ ∑๐๐ข.๐™๐ฑ ๐ข๐ฃ − ๐ฑH ๐ฃ š ™๐ − ๐๐๐ฃ š = ๐๐ ๐๐๐๐ฃ ™๐ − ๐๐๐ฃ š ๐ for ๐ = 0, 1, … , ๐พ, where ๐๐๐๐ฃ = ∑๐๐ข.๐™๐ฑ ๐ข๐ฃ − ๐ฑH ๐ฃ š is the total sample variation in ๐h and ๐ hS is the ๐ S from regressing ๐h on all other explanatory variables (and including an intercept). What determines the variance of OLS estimators? 1. Error variance ๐๐ : ๐ป๐๐โ๐๐ ๐ S → โ๐๐โ๐๐ ๐ฃ๐๐๐๐๐๐๐ ๐๐ ๐ฝ“h → ๐๐๐ค๐๐ ๐๐๐๐๐๐ ๐๐๐. 2. Variation in ๐ฟ๐ (๐บ๐บ๐ป๐ ): ๐๐๐๐ ๐ฃ๐๐๐๐๐ก๐๐๐ ๐๐ ๐h → ๐๐๐ค๐๐ ๐ฃ๐๐๐๐๐๐๐ ๐๐ ๐ฝ“h → โ๐๐โ๐๐ ๐๐๐๐๐๐ ๐๐๐. 3. Correlation among explanatory variables ๐น๐๐ : ๐ป๐๐โ๐๐ ๐ hS → ๐๐๐๐ ๐๐ข๐๐ก๐๐๐๐๐๐๐๐๐๐๐๐ก๐ฆ → โ๐๐โ๐๐ ๐ฃ๐๐๐๐๐๐๐ ๐๐ ๐ฝ“h → ๐๐๐ค๐๐ ๐๐๐๐๐๐ ๐๐๐. Estimator of ๐ S The estimator of ๐๐ is given by: ∑๐๐ข.๐ ๐ฎ D ๐๐ข ๐ − (๐ค + ๐) ๐คโ๐๐๐ ๐ − (๐พ + 1) ๐๐ ๐กโ๐ ๐ ๐๐๐๐๐๐ ๐๐ ๐๐๐๐๐ ๐๐ (๐๐) ๐ D๐ = Then, the variance of ๐ฝ“h can be written as: ๐๐๐ซ> ๐B ๐ฃ โฃโฃ ๐ ๐ , ๐ ๐ , … , ๐ ๐ค @ = A๐ ๐ ๐๐๐๐ฃ k๐1๐๐๐ฃ l Theorem 3.3: If MLR.1 – MLR.5 are satisfied, ๐C S is an unbiased estimator of the true error variance ๐ S : for j = 0,1, … , K → ๐[๐ D ๐ |๐ ๐ , ๐ ๐ , … , ๐ ๐ค ] = ๐๐ Theorem 3.4 (Gauss-Markov Theorem): if MLR.1 – MLR.5 are satisfied, then the OLS estimators ๐ฝ“$ , ๐ฝ“% , … , ๐ฝ“g are the Best Linear Unbiased Estimators (BLUEs) of ๐ฝ$ , ๐ฝ% , … , ๐ฝg , respectively. •Best means that our estimates are unbiased and the most precise โ they have the lowest variance. RECAP •If assumptions MLR.1 – MLR.4 (SLR.1 – SLR.4) are satisfied, then: → The OLS estimators are unbiased estimators of the population parameters. •If assumptions MLR.1 – MLR.5 (SLR.1 – SLR.5) are satisfied, then: → We can obtain the sampling variances of the OLS estimators; → We can derive an unbiased estimator for the error variance ๐ S = ๐๐๐(๐ข); → The OLS estimators are the best linear unbiased estimators (Gauss- Markow Theorem). 6 4. Statistical Test and Inference The distribution of the OLS estimators depends on the underlying distribution of the error term. MLR.6 The error ๐ is independent of the explanatory variables and is normally distributed with zero mean and variance ๐ S โ ๐ฎ๐ข ~ ๐๐จ๐ซ๐ฆ๐๐ฅ(๐, ๐๐ ) •If assumption MLR.6 is satisfied, then: −๐[๐ฎ๐ข ] = ๐ −๐๐๐ซ[๐ฎ๐ข ] = ๐๐ −๐ฒ๐ข |๐ฑ ๐ข๐ , … , ๐ฑ ๐ข๐ค ∼ ๐๐จ๐ซ๐ฆ๐๐ฅ™๐๐ + ๐๐ ๐ฑ ๐ข๐ +\๐๐๐ญ๐๐ ๐ฑ ๐ข๐ + โฏ + ๐๐ค ๐ฑ ๐ข๐ค , ๐๐ š •If we make assumption MLR.6, then we necessarily assuming MLR.4 and MLR.5 •Assumptions MLR.1 – MLR.6 are often referred to as the classical linear model (CLM) assumptions. Assuming how the error term is distributed will allow us to test hypotheses about the population parameters. ๐ผ is the random error variable: it represents all unobserved factors that affect ๐. Each ๐ข( is one realization of ๐ for observation ๐. ๐ฝ“% is a function of ๐ and ๐: if we know the distributions of ๐ and ๐, we can determine the sampling distribution of ๐ฝ“% . โ we know the distribution of ๐, but not that of ๐, so we assume ๐~๐๐จ๐ซ๐ฆ๐๐ฅ™๐, ๐๐ š, meaning that the errors are assumed to be normally distributed with mean 0 and variance ๐ S . Theorem 4.1: If assumptions MLR.1 – MLR.6 are satisfied, conditional on the sample values of the explanatory variables: B๐ฃ ∼ ๐๐จ๐ซ๐ฆ๐๐ฅ(๐๐ฃ , ๐๐๐ซ™๐๐ฃ š) ๐ 3 ๐ฃ 1๐๐ฃ ๐ 3 ๐ฃ ) ∼ ๐๐จ๐ซ๐ฆ๐๐ฅ(๐, ๐) ๐ฌ๐(๐ Implication of the theorem: where B๐ฃ š = ¾๐๐๐ซ™๐ B๐ฃ š = ๐ฌ๐™๐ ๐ o๐๐๐๐ฃ k๐1๐๐๐ฃ lp ๐⁄๐ Variance Inflator Factor (VIF) ๐๐๐ ๐ฃ = ๐ (๐ − ๐๐๐ฃ ) where ๐ hS is the ๐ S from regressing ๐h on the other explanatory variables. •๐๐ผ๐นh is determined by the correlation between ๐h and the other regressors; •The more ๐h is correlated with the other explanatory variables, the larger ๐ hS will be, and the larger the sample variance of ๐ฝ“h will be. t–distribution for OLS Estimators / Standardized OLS Estimators Theorem 4.2: If assumptions MLR.1 – MLR.6 are satisfied, then: "๐ฃ #๐๐ฃ ๐ "๐ฃ ) ∼ ๐ญ ๐#๐ค#๐ = ๐ญ ๐๐ (standardized) ๐ฌ๐(๐ •๐ + 1 is the n. of unknown parameters in the population model (๐ slope parameters and the intercept); •๐ − ๐ − 1 is the degrees of freedom; A ๐ B๐ฃ š = B •๐ฌ๐™๐ ๐⁄๐ is the standard error of ๐๐ฃ . o๐๐๐๐ฃ k๐1๐๐๐ฃ lp SD = Standard Deviation โ measures how much the data themselves are dispersed around their mean. SE = Standard Error โ measures how much an estimator varies from sample to sample. ๐๐(๐) = Å๐๐๐ซ[๐] B๐ฃ ) = ¾๐๐๐ซ>๐ B๐ฃ@ ๐๐(๐ 7 Hypotheses Tests Assuming MLR.1−MLR.6 hold, we know that the sampling distribution of β*% is centered around the true parameter ๐ฝ% . 1. Test ๐๐ : ๐๐ = ๐ ๐ฏ๐ฌ ๐๐ : ๐๐ ≠ ๐ / ๐๐ > ๐๐ < ๐ 2. Degrees of freedom (๐๐) = ๐ − ๐ค − ๐ 3 1๐ ๐ ๐ ๐ 3. Test statistic: ๐ญ ๐3๐ = ๐ฌ๐(๐ 3 ) ๐ •t J3, measures how many estimated standard deviations β*% is away from zero. 4. Critical value ๐๐ •Depends on: 1๐ป% ; 2๐ผ, which represents probability of rejecting ๐ปW when ๐ปW is in fact true; 3๐๐. 5. Decision rule: reject ๐ปW in favour of ๐ป% if j๐ญ ๐3๐ j > ๐๐ โ If we fail to reject ๐ปW : •Assuming MLR.1 – MLR.6 are satisfied. Since j๐ญ ๐3๐ j < ๐๐ , we fail to reject ๐ป$ in favour of ๐ป% . •The coefficient ๐h is not statistically different from 0 (with ๐ป$ : ๐ฝ% = 0) at the at the ๐ผ% significance level โ If we reject ๐ปW : •Assuming MLR.1 – MLR.6 are satisfied. Since j๐ญ ๐3๐ j > ๐๐ , we reject ๐ป$ in favour of ๐ป% at the ๐ผ% level. •The coefficient ๐h is statistically greater than 0 (with ๐ป% : ๐ฝ% > 0) at the at the ๐ผ% significance level. Confidence Interval Under MLR.1 – MLR.6, we can construct confidence intervals for population parameters. Using the fact that ๐ฝ“h − ๐ฝh Î๐ ๐(๐ฝ“h ) has a ๐ก distribution with ๐ − ๐ − 1 degrees of freedom, the 1 − ๐ผ% confidence interval for the unknown ๐ฝh can be written as: B๐ฃ ± ๐๐ ⋅ ๐ฌ๐(๐ B๐ฃ )] ๐๐ฃ ∈ [ ๐ We want to test ๐๐ : ๐๐ = ๐ฏ๐๐ฅ๐ฎ๐ vs ๐๐ : ๐๐ ≠ ๐ฏ๐๐ฅ๐ฎ๐ → We will fail to reject ๐ป$ if j๐ญ ๐3๐ j ≤ ๐๐ with 1 − ๐ผ% confidence interval. Link with hypotheses testing: If ๐ผ isn’t contained in the confidence interval at significance level ๐ผ, then we reject ๐๐ : ๐๐ = ๐, against ๐๐ : ๐๐ ≠ ๐ at significance level ๐ผ. F-test Unrestricted model: full model with all the explanatory variables ๐ฆ( = ๐ฝ$ + ๐ฝ% ๐ฅ(% + ๐ฝS ๐ฅ(S + ๐ฝs ๐ฅ(s + ๐ข( . The null hypothesis states that a set of explanatory variables has no effect on ๐, holding the other included variables constant: ๐ป$ : ๐ฝ% = 0 ๐๐๐ ๐ฝS = 0 ๐ฃ๐ ๐ป% : ๐ฝ% ≠ 0 ๐๐ ๐ฝS ≠ 0 •If we fail to reject ๐ป$ , then the restricted model is ๐ฆ( = ๐ฝ$ + ๐ฝs ๐ฅ(s + ๐ข( •A test of multiple restrictions is called a multiple hypotheses test or a joint hypotheses test. We can obtain a ๐ S for both ๐น๐๐๐ ๐๐๐ ๐น๐๐ . If the unrestricted model provides a statistically better fit to the data, then we reject ๐ป$ and prefer the unrestricted model. ๐ is the number of restrictions. (๐๐๐ 1๐๐๐ )/๐ช x๐๐ 1๐๐ y/๐ช ๐ซ ๐ฎ๐ซ ๐ = ๐๐๐ ๐ซ /(๐1๐ค1๐) = (๐1๐๐๐ฎ๐ซ)/(๐1๐ค1๐) ∼ ๐ ๐ช,๐1๐ค1๐ . Assuming MLR.1 – MLR.6 hold, the ๐ญ statistic is: ๐ฎ๐ซ ๐ฎ๐ซ To test that none of the explanatory variables has an effect on Y, since ๐๐๐ซ = ๐ ๐๐๐ ๐๐๐ฎ๐ซ = ๐ and there are ๐๐ /๐ค ๐ = ๐, we can write ๐ = (๐1๐๐ )/(๐1๐ค1๐) ∼ ๐ ๐ช,๐1๐ค1๐ . P-value P-value: smallest ๐ผ at which ๐ป$ would be rejected, given the observed t-statistic. Reject ๐ป$ if ๐๐ฃ๐๐๐ข๐ < ๐ผ. 8 5. Specification and Functional Forms Variables expressed as percentage: Consider the population model: ๐ฆ( = ๐ฝ$ + ๐ฝ% ๐ฅ(% + ๐ฝS ๐ฅ(S + โฏ + ๐ฝg ๐ฅ(g + ๐ข( a) Suppose ๐ ๐ is a percent between 0 and 100%. → Interpretation: If ๐% increases by one percentage point, then ๐ tends to change on average by ๐ฝ“% units, holding all else equal. b) Suppose instead that ๐ is a percent between 0 and 100%. → Interpretation: If ๐% increases by one unit, then ๐ tends to change on average by ๐ฝ“% percentage points, holding all else equal. c) Suppose both ๐ฟ๐ and ๐ are a percent between 0 and 100%. → Interpretation: If ๐๐1 increases by one percentage point, then ๐๐ tends to change on average by ๐ฝ“% percentage points, holding all else equal. Variables expressed as proportion: Consider the population model: ๐ฆ( = ๐ฝ$ + ๐ฝ% ๐ฅ(% + ๐ฝS ๐ฅ(S + โฏ + ๐ฝg ๐ฅ(g + ๐ข( a) Suppose ๐ฟ๐ is a proportion between 0 and 1. → Interpretation: If ๐% increases by one percentage point, then ๐ tends to change on average by ๐ฝ“% /100 units, holding all else equal. b) Suppose instead that ๐ is a proportion between 0 and 1. → Interpretation: If ๐% increases by one unit, then ๐ tends to change on average by ๐ฝ“% ∗ 100 percentage points, holding all else equal. c) Suppose both ๐ฟ๐ and ๐ are a proportion between 0 and 1. → Interpretation: If ๐๐1 increases by one percentage point, then ๐๐ tends to change on average by ๐ฝ“% percentage points, holding all else equal. Logarithmic Variables Main reasons for using logarithmic variables 1. Allows for nonlinear relationships between ๐ and the regressors; 2. Coefficients are easy to interpret (as %) and invariant to the units of measurement of logged variables; 3. Makes OLS estimates less sensitive to outlier; 4. Helps satisfy MLR.5 (homoskedasticity) and MLR.6 (normality). 3 possible functional forms •The level-log form: ๐ฆ( = ๐ฝ$ + ๐ฝ% ๐๐๐๐ฅ(% + โฏ + ๐ฝg ๐ฅ(g + ๐ข( •The log-level form: ๐๐๐๐ฆ( = ๐ฝ$ + ๐ฝ% ๐ฅ(% + โฏ + ๐ฝg ๐ฅ(g + ๐ข( •The log-log form: ๐๐๐๐ฆ( = ๐ฝ$ + ๐ฝ% ๐๐๐๐ฅ(% + โฏ + ๐ฝg ๐ฅ(g + ๐ข( Quadratic Variables ๐ Consider the population model: ๐ฒ๐ข = ๐๐ + ๐๐ ๐ฑ ๐ข๐ + ๐๐ ๐ฑ ๐ข๐ + โฏ + ๐๐ค ๐ฑ ๐ข๐ค + ๐ฎ๐ข What is the effect of a very small change in ๐% on ๐, holding everything else fixed? B๐ + ๐ B๐ ๐ฑ ๐ข๐ šโ๐ฑ ๐ข๐ → We have โ๐ฒC ≈ ™๐ โ๐ฒd B๐ + ๐ B๐ ๐ฑ ๐ข๐ š. It depends on the value of ๐% . → Then, the marginal effect is given by โ๐ฑd ≈ ™๐ ๐๐ Interaction Variables If explanatory variable to depend on another one, we have: ๐ฒ๐ข = ๐๐ + ๐๐ ๐ฑ ๐ข๐ + ๐๐ ๐ฑ ๐ข๐ + ๐๐ ๐ฑ ๐ข๐ ๐ฑ ๐ข๐ + โฏ + ๐ฎ๐ข . B๐ + ๐ B๐ ๐ฑ ๐ข๐ šโ๐ฑ ๐ข๐ → We have โ๐ฒC ≈ ™๐ โ๐ฒd B๐ + ๐ B๐ ๐ฑ ๐ข๐ š. It depends on the value of ๐S . → Then, the marginal effect is given by โ๐ฑd ≈ ™๐ ๐๐ 9 Adjusted R-Squared ๐๐๐/๐ − ๐ค − ๐ ๐ ๐−๐ D๐ =๐− = ๐ − (๐ − ๐๐ ) ( ) ๐๐๐/ ๐ − ๐ ๐๐๐/(๐ − ๐) ๐−๐ค−๐ ๐ HS can rise or fall when a new explanatory variable is added to a regression. The ๐น-test applies only to nested model. The ๐ HS can also help when choosing between nonnested models. โ If ๐ HS rises after adding more regressors, they improve in-sample fit enough to offset the ๐๐ penalty. • Note: Neither ๐ HS nor ๐ S can be used to compare models with different dependent variables! „๐ = ๐ − ๐ Binary Independent Variable Binary (dummy) variable: qualitative information by assigning 1 to one category and 0 to the other. ๐ ๐ฒ๐ข = ๐๐ + ๐๐ ๐๐ข + ๐๐ ๐ฑ ๐ข๐ + โฏ + ๐๐ค ๐ฑ ๐ข๐ค + ๐ฎ๐ข ๐คโ๐๐๐ ๐๐ข = Ù ๐ E.g.: − 21,781๐๐๐๐๐๐๐, where nearinc is a dummy variable equal to one if the house is near a garbage incinerator, and zero otherwise. Interpretation: On average, a house near a garbage incinerator is associated with a price $21,781 less than a house far from an incinerator, for a given house size and number of rooms, all else èixed. ê = โฏ − 0.22๐๐๐๐๐๐๐. Interpretation: On average, a house near a garbage incinerator is E.g.: ๐๐๐๐๐๐ค๐๐ associated with 22% lower price than a house far from an incinerator, holding other factors èixed. Dummy variables for multiple categories: we can include ordinal information by using dummy variables. Dummy variable trap is the issue of perfect collinearity: For ๐ groups or categories, we need to add (๐ − 1) dummies in the model along with an intercept โ ๐ − 1๐๐ข๐๐๐๐๐ + ๐๐๐ก๐๐๐๐๐๐ก. •By including as many dummies as the number of groups, we would have perfect collinearity into the model (MLR.3 would no longer be satisfied!). Testing for differences in regressions across groups •๐ป$ : ๐ก๐ค๐ ๐๐๐๐ข๐๐ ๐๐๐๐๐๐ค ๐กโ๐ ๐ ๐๐๐ ๐๐๐๐๐๐ ๐ ๐๐๐ •๐ป% : ๐๐๐ ๐๐ ๐๐๐๐ ๐๐ ๐กโ๐ ๐ ๐๐๐๐๐ ๐๐๐๐๐๐ ๐๐๐๐๐ ๐ ๐๐๐๐ข๐๐ If we estimate both regressions, we can obtain the sum of squared residuals (SS๐ ) for the unrestricted model (๐๐๐ YV ) and the restricted model (๐๐๐ V ). Assuming MLR.1 – MLR.6 hold, the ๐น ๐ ๐ก๐๐ก๐๐ ๐ก๐๐ is given by (1). Equivalently, ๐๐๐ YV can be obtained from: ๐๐๐ YV = ๐๐๐ % + ๐๐๐ S . Let ๐๐๐ } be the sum of squared residuals from pooling the two groups and estimating the restricted model on the full sample ๐๐๐ } = ๐๐๐ V . Assuming MLR.1 – MLR.6 hold, the ๐น ๐ ๐ก๐๐ก๐๐ ๐ก๐๐ (Chow statistic) is given by (2). [K=n. x in the ur model]. (๐๐๐ ๐ซ − ๐๐๐ ๐ฎ๐ซ )/๐ช (๐๐๐ ๐ − (๐๐๐ ๐ + ๐๐๐ ๐ )/๐ช (1)๐ = (2)๐ = ๐๐๐ ๐ฎ๐ซ /(๐ − ๐ค − ๐) (๐๐๐ ๐ + ๐๐๐ ๐ )/(๐ − ๐ค − ๐) Binary Dependent Variable ๐ ๐ The MLR model with a binary dependent variable is called the linear probability model (LPM): Assuming MLR.4 holds and ๐ is a dummy variable ๐(๐ = ๐|๐ฑ ๐ , … , ๐ฑ ๐ค ) = ๐๐ + ๐๐ ๐ฑ ๐ + ๐๐ ๐ฑ ๐ + โฏ + ๐๐ค ๐ฑ ๐ค . Interpretation: the slope coeff. ๐ฝ“% measures the predicted change in the P of success X% increases by one unit. ๐๐ข = ๐๐ + ๐๐ ๐ฑ ๐ข๐ + ๐๐ ๐ฑ ๐ข๐ + โฏ + ๐๐ค ๐ฑ ๐ข๐ค + ๐ฎ๐ข ๐คโ๐๐๐ ๐๐ข = Ù 10
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )