Docsity

Econometrics: part 1, Appunti di Econometria

Toggle sidebar
bg1
ADVANCED ECONOMETRICS
LECTURE 1: INTRODUCTION TO ADVANCED ECONOMETRICS
LUNEDÌ 4 OTTOBRE 2021
Econometrics is essentially based on 3 concepts: causation, identification and estimation. The most used tool
is represented by the randomised experiments.
It often focuses on policy questions. Applied researchers today look for credible strategies to answer such
questions. Econometrics is a unique combination of economic theory and statistical data analysis aimed at
answering these questions.
The type of data used distinguishes micro econometrics from time series econometrics. A time series data set
consists of observations on a variable or several variables over time.
In micro econometrics, we use cross-sectional data (taken at a given point in time) or panel data (a time
series for each cross-sectional unit in the data set).
When we talk about causation we are asking ourselves what the causation relation of interest is. Whereas, we
refer to identification when we wonder if data can be informative about the causal relation of interest.
A causal relationship is useful for making predictions about the consequences of changing circumstances or
policies: it tells us what would happen in alternative worlds. For example, the causal effect of schooling on
wages is useful for predicting the earning consequences of changing the costs of attending college or
strengthening compulsory attendance laws. A randomised experiment would allow us to capture the causal
effect of interest. It is instructive to think about hypothetical experiments to understand which type of
exogenous variation we would need to identify the causal effect of interest and which factors we need to hold
constant. In the case of schooling and wages, we can imagine offering potential dropouts a reward for
finishing school and then studying the consequences.
Generally, we use observational data and we need to understand how to approximate a real experiment with
these. It means we need an identification strategy. It will be typically achieved by imposing restrictions,
based on the economic theory and not always testable.
After having identified the causal effect of interest and the identification strategy to be used, the last step is to
estimate the effect of interest. This is where statistically inference kicks in.
Randomised experiments allow to clearly uncover causal effects.
Example: do hospitals make people healthier?
By comparing the health status of those who have been to the hospital and those who haven’t, the face values
suggest us that going to the hospital makes people sicker. Actually, a more likely explanation is that people
that go to the hospital are probably less healthy. This is called selection problem.
An experiment answering this question would randomly select among people in need of care those who get
hospitalised. Then, comparing treatment and control tells us if hospitalisation makes people healthier or not.
In other words, it would eliminate the selection bias.
SIMPLE REGRESSION
Let’s consider the following linear structural
equation for wages.
Notation: y refers to (log)wages, x to the years of education and the error term e represents the factors
affecting wages that are not observed by the econometrician.
A structural model is a model representing a causal relationship as opposed to a relationship that simply
captures statistical associations. Sometimes it’s directly estimable, other times we must combine auxiliary
assumptions about other variables to arrive at an estimable/feasible model.
Let’s consider the conditional expectation function.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31

Anteprima parziale del testo

Scarica Econometrics: part 1 e più Appunti in PDF di Econometria solo su Docsity!

ADVANCED ECONOMETRICS

LECTURE 1: INTRODUCTION TO ADVANCED ECONOMETRICS

LUNEDÌ 4 OTTOBRE 2021

Econometrics is essentially based on 3 concepts: causation, identification and estimation. The most used tool is represented by the randomised experiments. It often focuses on policy questions. Applied researchers today look for credible strategies to answer such questions. Econometrics is a unique combination of economic theory and statistical data analysis aimed at answering these questions. The type of data used distinguishes micro econometrics from time series econometrics. A time series data set consists of observations on a variable or several variables over time. In micro econometrics, we use cross-sectional data (taken at a given point in time) or panel data (a time series for each cross-sectional unit in the data set). When we talk about causation we are asking ourselves what the causation relation of interest is. Whereas, we refer to identification when we wonder if data can be informative about the causal relation of interest. A causal relationship is useful for making predictions about the consequences of changing circumstances or policies: it tells us what would happen in alternative worlds. For example, the causal effect of schooling on wages is useful for predicting the earning consequences of changing the costs of attending college or strengthening compulsory attendance laws. A randomised experiment would allow us to capture the causal effect of interest. It is instructive to think about hypothetical experiments to understand which type of exogenous variation we would need to identify the causal effect of interest and which factors we need to hold constant. In the case of schooling and wages, we can imagine offering potential dropouts a reward for finishing school and then studying the consequences. Generally, we use observational data and we need to understand how to approximate a real experiment with these. It means we need an identification strategy. It will be typically achieved by imposing restrictions, based on the economic theory and not always testable. After having identified the causal effect of interest and the identification strategy to be used, the last step is to estimate the effect of interest. This is where statistically inference kicks in. Randomised experiments allow to clearly uncover causal effects. Example: do hospitals make people healthier? By comparing the health status of those who have been to the hospital and those who haven’t, the face values suggest us that going to the hospital makes people sicker. Actually, a more likely explanation is that people that go to the hospital are probably less healthy. This is called selection problem. An experiment answering this question would randomly select among people in need of care those who get hospitalised. Then, comparing treatment and control tells us if hospitalisation makes people healthier or not. In other words, it would eliminate the selection bias.

SIMPLE REGRESSION

Let’s consider the following linear structural equation for wages. Notation: y refers to (log)wages, x to the years of education and the error term e represents the factors affecting wages that are not observed by the econometrician. A structural model is a model representing a causal relationship as opposed to a relationship that simply captures statistical associations. Sometimes it’s directly estimable, other times we must combine auxiliary assumptions about other variables to arrive at an estimable/feasible model. Let’s consider the conditional expectation function.

A convenient assumption that identifies β 1 requires the conditional expectation of the error term given x to be zero (known as population orthogonality condition ).

LECTURE 2: SIMPLE REGRESSION

MARTEDÌ 5 OTTOBRE 2021

At this stage, we assume that the population of interest is sufficiently homogenous with respect to ability and other unobservables for condition to hold. In a more general setting, we can control for a set of characteristics relevant to schooling decisions and wages. This is also known as selection on observables. In this case, the parameter β 1 can be interpreted as the return to every additional year of schooling net of compositional differences across individuals with respect to the set of characteristics aforementioned. If the population orthogonality condition is met, then the parameter of interest β 1 is identified: its value can be retrieved uniquely from the data on y and x if there is variability in x. If we observe individuals who completed primary school (x̄ 1 =5) and lower secondary school (x̄ 2 =8), we can already identify and estimate β 1. If individuals achieve more than two levels of education, how can we efficiently combine them? By using the law of iterated expectations. This implies two moments conditions :

  • E(xe)=E[xE(e|x)]=
  • E(e)=E[E(e|x)]=

The second factor is equal to 0 because we have a number we can take out of the summation which is equal to zero; the first factor is different: we don’t observe a scalar, since ei is variable. From the law of iterated expectations, we know that ei=E(ei|x) and we know this last one is equal to 0. Therefore, we conclude that β 1 ^=β 1 and the OLS estimator is unbiased. To derive the asymptotic properties of the OLS estimator, some concepts must be introduced: convergence in probability , convergence in quadratic mean , convergence in distribution and central limit theorem. Every time we refer to S, we can apply the example to β 1 as well. If S is a random variable, for large n the realisations of Sn and S have an high probability to be equal. If S is a constant, as n increases, the realisations of Sn become more concentrated on a single point (S). When n increases, the difference between the distribution in probability of Sn and distribution of S reduces. As n increases, the realisations of Sn converge to the true value S. Here we see how we can replace β 1 when consideration are made referring to S.

With the convergence in distribution, the probabilities of the same event (Pr(Sn<=s) and Pr(S<=s)) are similar when n is large. With the convergence in probability, Sn tends to take on the same values of S for large n. If we take the outcomes under 1, the probabilities get more similar as n increases. For instance, the red line (F 200 ) approximates the distribution in better way compared to the blue line (F 10 ). In general, the reverse implications aren’t true. Before dealing with asymptotic normality, we must introduce the concept behind the Central Limit Theorem. The estimator Sn converges to a normal distribution with mean equal to μ and variance equal to δ^2 /n. We deal now with the asymptotic distribution property. This refers to the expression of the OLS estimator. The Slutsky Theorem says that if Sn (the numerator) converges in distribution to s and an (the denominator) converges in probability to a, then sn/an converges in distribution to s/a. We also have to recall that if Y has a normal distribution with mean equal to μ and variance equal to δ^2 and Z is defined as ay+b, then Z has a normal distribution with mean equal to aμ+b and variance equal to aδ^2.

LECTURE 3: SIMPLE REGRESSION

MERCOLEDÌ 6 OTTOBRE 2021

So far, we’ve established that OLS is unbiased , consistent and asymptotically normal. If the error term is IID, OLS is BLUE (Best Linear Unbiased Estimator). This is known as the Gauss-Markov theorem. In the second step, E[(x-E(x)e]^2 is omitted from the numerator because it’s equal to zero. In the third step, the law of iterated expectations is applied. The fourth step is computed relying on the assumption of homoskedasticity. Here the two measures are computed by referring the data. Within the intervals of confidence, the expression after 1.96 recalls the standard deviation of β 1. If the error term is not IID (heteroskedastic or serially correlated), then OLS is no longer the best linear estimator. Inference on β 1 may lead to incorrect conclusions about the significance of the parameter.

The assumption of homoskedasticity may not be realistic. Variance in wages could actually change with education. In the graph we observe that as education increases, the variance increases as well. This is observable by giving a look to the longer tails in correspondence of many years of education. Even if OLS is still unbiased and consistent, it may have relevant standard error. A more efficient estimator can be implemented: Generalised Least Squares (GLS). A solution may be provided. by the specification of a model for the variance for the error term, but this is often rather complex. If we supposed to draw a simple model of it, we could adopt the model of Weighted Least Squares (WLS). If we knew the parameter γ 0 and γ 1 , the OLS estimation of the last equation would be BLUE. In practice, we derive ei^, we estimate δi and we use the feasible GLS (FSGLS) estimator.

In this case, the answer is affirmative, because the decision on where to put the incinerator deaden from many things, which affect the price as well. Thus, the simple regression doesn’t provide an unbiased estimator. OUTPUT 4

  • Dummy variables: female=1 and male=0.
  • y= β 0 +xβ 1 +e.
  • E(y|x=0)= β 0
  • E(y|x=1)=β 0 +xβ 1
  • β 1 =E(y|x=1)-(y|x=0). OUTPUT 5
  • Dummy variables: Northcenter, West, South. East is left out.
  • The coefficient correlated with N, W and S reflects the respective difference in wages of each of them compared to the wage of E, whose average wage is expressed by the constant β 0.

LECTURE 4: MULTIPLE REGRESSION

LUNEDÌ 11 OTTOBRE 2021

When we add a further regressor to the model, we try to add one more control in order to get a better understanding of the casual relation between the variables. Set up of the model (1). We assume that the conditional expectation of the error term given x 1 and x 2 is zero: E(e|x 1 ,x 2 )=0. This is also known as selection on observables conditions. This assumption allows us to identify the parameter of interest ß 1. The law of iterated expectations and the population orthogonality condition allows us to get rid of the last term of the equation E(e|x 2 ). The selection of observables condition allows us to estimate ß 1. In this equation, we remove from y and from x 1 the part explained by x 2. The correlation between wages and education can be analysed conditional on the effect go the observable characteristic x 2. We can analyse the correlation after ruling out the effect of an additional variable which as the role of control. Again, the OLS estimator that uses the selection of observables to identify ß 1 can be seen as the regression of the part of the dependent variable (y) that is not explained by x 2 on the part of x 1 that is not explained by x 2.

SPECIAL CASE: x 2 is the constant term. The regression involves deviations from the sample means. y=ß 1 x 1 +ß 2 x 2 +e x 2 is a constant term equal to 1. Therefore, ß 2 is the constant. E(y|x 2 )=ß 1 E(x 1 |x 2 )+ß 2 x 2 +E(e|x 2 ) In case of population orthogonality condition, the last term is equal to zero. Subtracting y and E(y|x 2 ), we get y-E(y|x 2 )=ß 1 (x 1 -E(x 1 |x 2 ))+e. Since x 2 is constant y-E(y)=ß 1 (x 1 -E(x 1 ))+e. The first term is the deviation from the sample mean of y , while the second term represents the deviation from the sample mean of x 1. An example clarifies how the additional controls help us to give a casual interpretation to ß 1. We may find a casual relation if students attended different type of schools randomly. Potential earnings of private students are higher on average because of personal features which don’t depend on the type of school they attend. pi is a dummy which is equal to 1 in case of private school and equal to 0 in case of public school.

LECTURE 5: MULTIPLE REGRESSION

MARTEDÌ 12 OTTOBRE 2021

Let’s assume we draw a sample of n individuals from the population, getting n records of values of the variables y, x 1 and x 2. We see how matrix algebra allows to sum everything up in a rather compact way. In the last row, capital X refers to the population and so to all x1i and x2i (individuals of the sample). We put in vector notation the same thing we derived within the simple regression. Simple regression: E(e|x 1 )=0, which brings to E(ex 1 )=0 and E(e)=0, through the law of iterated expectations. Two conditions for two parameters ß 0 and ß1. Multiple regression: E(e|x)=0, which brings to E(x’e)=0, which is equal to E(e)=0, E(x 1 e)=0 and E(x 2 e)=0. Three conditions for three parameters ß 0 , ß 1 and ß 2. E(x’x)-1^ must be invertible in order to exist. This is true only if the rank of E(x’x)=k. Indeed, if the rank is not full k, the matrix can’t be inverted. The assumption is violated if regressors are redundant (meaning one can be written as linear combination of the others). Again we take the same steps as we did within the simple regression, replacing population moments with sample moments, written in matrix notation.

We proved that matrix notation is equal to vector notation.

PROPERTIES OF OLS

As we showed in the simple regression, the OLS estimator is unbiased. We apply an extension of the Central Limit Theorem to vectors of random variables. The distribution will be a multivariate normal (instead of a univariate normal). The procedure is going to be described.

We need to estimate the variance by replacing population moments with sample moments. We end up with an estimator for the variance of the parameter. With heteroskedasticity, formulae are more complex. We still need to replace population moments with sample moments. No need to remember it! GLS used if we know the type of heteroskedasticity (so we know in which way the regressor x affects the variance of the dependent variable).

EXERCISE

  1. The price is positively correlated with sqrft and bdrms. The impact of bdrms on price is much more relevant than the impact of sqrft on price. sqrft is significant since its p-value is smaller than 0.05 and the confidence interval doesn’t entail 0. bdrms isn’t significant since its p-value is larger than 0.05 and the confidence interval entails 0.
  2. The marginal effect of x 2 is equal to ß 2. So, an increase of an additional bedroom implies an increase of $15,000.
  3. Holding square feet constant, the increase of an additional bedroom in the price of the house is constant, equal to ß 2.
  4. The percentage of variation in price explained by square footage and number of bedrooms is explained by the coefficient R^2 equal to 0.6319. It means that the regression explains at 63% the variability in the model.
  5. y=-19.315+0.1284362 x 2,438+15.19819 x 4=354.
  6. 300=354.605+e. e=54.605, meaning the house was underpaid.

LECTURE 6: MULTIPLE REGRESSION

MERCOLEDÌ 13 OTTOBRE 2021

  1. An additional year of education implies an increase of 8.44% in wage.
  2. The effect of increasing experience by 10 years on wages is computed as ∂y / ∂exp=ß 2 +2ß 3 exp. Assuming we’re going from experience=0 to experience=10, the effect is 2.67%. If we put the first derivative equal to zero, we find the value of experience (49.94) for which a little increase in experience doesn’t imply any increase in wage.

This is a bridge towards the instrumental variables. We estimate ßs=20,000 and ßl=10,000. The difference among them is the OVB due to the omission of Ai. Inclusion of the group A dummy in the long regression controls for this difference. The first component is π 1 in the following regression: Ai=π 0 +π 1 pi+ui The second component is the regression coefficient γ. OVB = ßs-ßl^ = π 1 x γ The omitted variable is the size of the family. We know that as family size increases, the probability of going to a private school decreases. That is, negative relationship between the omitted variable and the regressor of interest (π). We know that as family size increases, the investment in education per child decreases. That is, negative relationship between the omitted variable and the outcome variable. The bias (being a product of the previous) is positive: the coefficients in column 6 (ßs^ =0.013) is overestimated, but in this case it is very slightly effected.

INSTRUMENTAL VARIABLE (IV) ESTIMATOR

Inconsistency of OLS with the absence of the population orthogonality condition.

First case: simultaneity. Building the variance-covariance matrix, we retrieve that variance of e 1 and e 2 is equal to 1 (respectively, term 11 and term 22 ) and their covariance is equal to zero (term 12 or term 21 ). We already know that E(e 1 ,e 2 )=0. The objective is to show that the OLS is inconsistent. We know that Cov(p,e 1 )=E(pe 1 )-E(p)E(e 1 )=E(pe 1 ). E(pe 1 )=E((e 1 -e 2 ) / (ß 2 -ß 1 )e 1 ) = 1/(ß 2 -ß 1 ) E(e 12 -e 1 e 2 ) = 1/(ß 2 -ß 1 ). This mean that the covariant between the variable p and the error term e 1 is different from zero, so we have endogeneity. Variance is computed as E(p p) = E((e 1 -e 2 ) / (ß 2 -ß 1 ) (e 1 -e 2 ) / (ß 2 -ß 1 ))= E((e 1 -e 2 )^2 / (ß 2 -ß 1 )^2 )=2/(ß 2 -ß 1 )^2 Second case: measurement error. If we develop last row, we get: E(xe-xuß+ue- u^2 ß). The first three terms are equal to zero: e is uncorrelated with x and u is uncorrelated with e and x. The fourth term, though, allows us to observe that the covariance among x and v is different from zero, causing an endogeneity problem. Two things to notice: the attenuation bias and the positive relation between the bias and the variability of u with respect to the variability of x*.