1 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Covariance The covariance of two random variables X and Y, often written  XY, is defined.

Slides:



Advertisements
Similar presentations
1 Although they are biased in finite samples if Part (2) of Assumption C.7 is violated, OLS estimators are consistent if Part (1) is valid. We will demonstrate.
Advertisements

EXPECTED VALUE RULES 1. This sequence states the rules for manipulating expected values. First, the additive rule. The expected value of the sum of two.
EC220 - Introduction to econometrics (review chapter)
EC220 - Introduction to econometrics (chapter 3)
1 This very short sequence presents an important definition, that of the independence of two random variables. Two random variables X and Y are said to.
EC220 - Introduction to econometrics (review chapter)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 10) Slideshow: introduction to maximum likelihood estimation Original citation: Dougherty,
1 THE DISTURBANCE TERM IN LOGARITHMIC MODELS Thus far, nothing has been said about the disturbance term in nonlinear regression models.
1 XX X1X1 XX X Random variable X with unknown population mean  X function of X probability density Sample of n observations X 1, X 2,..., X n : potential.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: asymptotic properties of estimators: plims and consistency Original.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 13) Slideshow: stationary processes Original citation: Dougherty, C. (2012) EC220 -
1 THE NORMAL DISTRIBUTION In the analysis so far, we have discussed the mean and the variance of a distribution of a random variable, but we have not said.
1 PROBABILITY DISTRIBUTION EXAMPLE: X IS THE SUM OF TWO DICE red This sequence provides an example of a discrete random variable. Suppose that you.
Random effects estimation RANDOM EFFECTS REGRESSIONS When the observed variables of interest are constant for each individual, a fixed effects regression.
Lecture 2 Today: Statistical Review cont’d:
MEASUREMENT ERROR 1 In this sequence we will investigate the consequences of measurement errors in the variables in a regression model. To keep the analysis.
ASYMPTOTIC PROPERTIES OF ESTIMATORS: PLIMS AND CONSISTENCY
1 ASSUMPTIONS FOR MODEL C: REGRESSIONS WITH TIME SERIES DATA Assumptions C.1, C.3, C.4, C.5, and C.8, and the consequences of their violations are the.
00  sd  0 –sd  0 –1.96sd  0 +sd 2.5% CONFIDENCE INTERVALS probability density function of X null hypothesis H 0 :  =  0 In the sequence.
EXPECTED VALUE OF A RANDOM VARIABLE 1 The expected value of a random variable, also known as its population mean, is the weighted average of its possible.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: expected value of a function of a random variable Original citation:
TESTING A HYPOTHESIS RELATING TO THE POPULATION MEAN 1 This sequence describes the testing of a hypothesis at the 5% and 1% significance levels. It also.
EC220 - Introduction to econometrics (review chapter)
1 A MONTE CARLO EXPERIMENT In the previous slideshow, we saw that the error term is responsible for the variations of b 2 around its fixed component 
Christopher Dougherty EC220 - Introduction to econometrics (chapter 3) Slideshow: prediction Original citation: Dougherty, C. (2012) EC220 - Introduction.
Cross-sectional:Observations on individuals, households, enterprises, countries, etc at one moment in time (Chapters 1–10, Models A and B). 1 During this.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 10) Slideshow: maximum likelihood estimation of regression coefficients Original citation:
DERIVING LINEAR REGRESSION COEFFICIENTS
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: the normal distribution Original citation: Dougherty, C. (2012)
1 In a second variation, we shall consider the model shown above. x is the rate of growth of productivity, assumed to be exogenous. w is now hypothesized.
1 This sequence shows why OLS is likely to yield inconsistent estimates in models composed of two or more simultaneous relationships. SIMULTANEOUS EQUATIONS.
1 PREDICTION In the previous sequence, we saw how to predict the price of a good or asset given the composition of its characteristics. In this sequence,
EC220 - Introduction to econometrics (review chapter)
1 UNBIASEDNESS AND EFFICIENCY Much of the analysis in this course will be concerned with three properties of estimators: unbiasedness, efficiency, and.
FIXED EFFECTS REGRESSIONS: WITHIN-GROUPS METHOD The two main approaches to the fitting of models using panel data are known, for reasons that will be explained.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: sampling and estimators Original citation: Dougherty, C. (2012)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 12) Slideshow: autocorrelation, partial adjustment, and adaptive expectations Original.
THE DUMMY VARIABLE TRAP 1 Suppose that you have a regression model with Y depending on a set of ordinary variables X 2,..., X k and a qualitative variable.
1 CONTINUOUS RANDOM VARIABLES A discrete random variable is one that can take only a finite set of values. The sum of the numbers when two dice are thrown.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: conflicts between unbiasedness and minimum variance Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 8) Slideshow: measurement error Original citation: Dougherty, C. (2012) EC220 - Introduction.
THE FIXED AND RANDOM COMPONENTS OF A RANDOM VARIABLE 1 In this short sequence we shall decompose a random variable X into its fixed and random components.
CONSEQUENCES OF AUTOCORRELATION
ALTERNATIVE EXPRESSION FOR POPULATION VARIANCE 1 This sequence derives an alternative expression for the population variance of a random variable. It provides.
CONFLICTS BETWEEN UNBIASEDNESS AND MINIMUM VARIANCE
EC220 - Introduction to econometrics (chapter 8)
MULTIPLE RESTRICTIONS AND ZERO RESTRICTIONS
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE 1 This sequence provides a geometrical interpretation of a multiple regression model with two.
Simple regression model: Y =  1 +  2 X + u 1 We have seen that the regression coefficients b 1 and b 2 are random variables. They provide point estimates.
A.1The model is linear in parameters and correctly specified. PROPERTIES OF THE MULTIPLE REGRESSION COEFFICIENTS 1 Moving from the simple to the multiple.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 9) Slideshow: instrumental variable estimation: variation Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 6) Slideshow: multiple restrictions and zero restrictions Original citation: Dougherty,
1 We will now look at the properties of the OLS regression estimators with the assumptions of Model B. We will do this within the context of the simple.
1 Y SIMPLE REGRESSION MODEL Suppose that a variable Y is a linear function of another variable X, with unknown parameters  1 and  2 that we wish to estimate.
1 We will continue with a variation on the basic model. We will now hypothesize that p is a function of m, the rate of growth of the money supply, as well.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: alternative expression for population variance Original citation:
Definition of, the expected value of a function of X : 1 EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE To find the expected value of a function of.
INSTRUMENTAL VARIABLES 1 Suppose that you have a model in which Y is determined by X but you have reason to believe that Assumption B.7 is invalid and.
1 INSTRUMENTAL VARIABLE ESTIMATION OF SIMULTANEOUS EQUATIONS In the previous sequence it was asserted that the reduced form equations have two important.
1 ESTIMATORS OF VARIANCE, COVARIANCE, AND CORRELATION We have seen that the variance of a random variable X is given by the expression above. Variance.
1 REPARAMETERIZATION OF A MODEL AND t TEST OF A LINEAR RESTRICTION Linear restrictions can also be tested using a t test. This involves the reparameterization.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: independence of two random variables Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 1) Slideshow: simple regression model Original citation: Dougherty, C. (2012) EC220.
FOOTNOTE: THE COCHRANE–ORCUTT ITERATIVE PROCESS 1 We saw in the previous sequence that AR(1) autocorrelation could be eliminated by a simple manipulation.
VARIABLE MISSPECIFICATION I: OMISSION OF A RELEVANT VARIABLE In this sequence and the next we will investigate the consequences of misspecifying the regression.
Introduction to Econometrics, 5th edition
Introduction to Econometrics, 5th edition
Introduction to Econometrics, 5th edition
Introduction to Econometrics, 5th edition
Presentation transcript:

1 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Covariance The covariance of two random variables X and Y, often written  XY, is defined to be the expected value of the product of their deviations from their population means.

2 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Covariance If two variables are independent, their covariance is zero. To show this, start by rewriting the covariance as the product of the expected values of its factors. If X and Y are independent,

3 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Covariance We are allowed to do this because (and only because) X and Y are independent (see the earlier sequence on independence. If X and Y are independent,

The expected values of both factors are zero because E(X) =  X and E(Y) =  Y. E(  X ) =  X and E(  Y ) =  Y because  X and  Y are constants. Thus the covariance is zero. 4 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Covariance If X and Y are independent,

5 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Covariance rules There are some rules that follow in a perfectly straightforward way from the definition of covariance, and since they are going to be used frequently in later chapters it is worthwhile establishing them immediately. First, the addition rule. 1.If Y = V + W,

2.If Y = bZ, where b is a constant, 6 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Covariance rules Next, the multiplication rule, for cases where a variable is multiplied by a constant. 1.If Y = V + W,

Finally, a primitive rule that is often useful. 7 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION 3.If Y = b, where b is a constant, 2.If Y = bZ, where b is a constant, Covariance rules 1.If Y = V + W,

8 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Covariance rules The proofs of the rules are straightforward. In each case the proof starts with the definition of cov(X, Y). 1.If Y = V + W, Since Y = V + W,  Y =  V +  W Proof

9 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Covariance rules We now substitute for Y and re-arrange. Since Y = V + W,  Y =  V +  W Proof 1.If Y = V + W,

Since Y = V + W,  Y =  V +  W 10 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Covariance rules This gives us the result. Proof 1.If Y = V + W,

Since Y = bZ,  Y = b  Z 11 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Covariance rules 2.If Y = bZ, where b is a constant, Next, the multiplication rule, for cases where a variable is multiplied by a constant. The Y terms have been replaced by the corresponding bZ terms. Proof

Since Y = bZ,  Y = b  Z 12 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Covariance rules b is a common factor and can be taken out of the expression, giving us the result that we want. Proof 2.If Y = bZ, where b is a constant,

The proof of the third rule is trivial. Since Y = b,  Y = b 13 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Covariance rules 3.If Y = b, where b is a constant, Proof

14 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Example use of covariance rules Here is an example of the use of the covariance rules. Suppose that Y is a linear function of Z and that we wish to use this to decompose cov(X, Y). We substitute for Y (first line) and then use covariance rule 1 (second line). Suppose Y = b 1 + b 2 Z

cov(X, b 1 ) = 0, using covariance rule 3. The multiplicative factor b 2 may be taken out of the second term, using covariance rule 2. Suppose Y = b 1 + b 2 Z 15 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Example use of covariance rules

16 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Variance rules Corresponding to the covariance rules, there are parallel rules for variances. First the addition rule. 1.If Y = V + W,

17 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Variance rules Next, the multiplication rule, for cases where a variable is multiplied by a constant. 1.If Y = V + W, 2.If Y = bZ, where b is a constant,

18 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Variance rules A third rule to cover the special case where Y is a constant. 1.If Y = V + W, 2.If Y = bZ, where b is a constant, 3.If Y = b, where b is a constant,

Finally, it is useful to state a fourth rule. It depends on the first three, but it is so often of practical value that it is worth keeping it in mind separately. 19 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Variance rules 1.If Y = V + W, 2.If Y = bZ, where b is a constant, 3.If Y = b, where b is a constant, 4.If Y = V + b, where b is a constant,

20 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Variance rules The proofs of these rules can be derived from the results for covariances, noting that the variance of Y is equivalent to the covariance of Y with itself. 1.If Y = V + W, Proof

21 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Variance rules We start by replacing one of the Y arguments by V + W. 1.If Y = V + W, Proof

22 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Variance rules We then use covariance rule 1. 1.If Y = V + W, Proof

23 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Variance rules We now substitute for the other Y argument in both terms and use covariance rule 1 a second time. 1.If Y = V + W, Proof

24 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Variance rules This gives us the result. Note that the order of the arguments does not affect a covariance expression and hence cov(W, V) is the same as cov(V, W). 1.If Y = V + W, Proof

25 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Variance rules The proof of the variance rule 2 is even more straightforward. We start by writing var(Y) as cov(Y, Y). We then substitute for both of the iYi arguments and take the b terms outside as common factors. Proof 2.If Y = bZ, where b is a constant,

3.If Y = b, where b is a constant, 26 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Variance rules The third rule is trivial. We make use of covariance rule 3. Obviously if a variable is constant, it has zero variance. Proof

4.If Y = V + b, where b is a constant, 27 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Variance rules The fourth variance rule starts by using the first. The second term on the right side is zero by variance rule 3. The third is also zero by covariance rule 3. Proof

The intuitive reason for this result is easy to understand. If you add a constant to a variable, you shift its entire distribution by that constant. The expected value of the squared deviation from the mean is unaffected. 0 0V + b V VV  V + b 28 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Variance rules Proof 4.If Y = V + b, where b is a constant,

cov(X, Y) is unsatisfactory as a measure of association between two variables X and Y because it depends on the units of measurement of X and Y. 29 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Correlation population correlation coefficient

A better measure of association is the population correlation coefficient because it is dimensionless. The numerator possesses the units of measurement of both X and Y. 30 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Correlation population correlation coefficient

The variances of X and Y in the denominator possess the squared units of measurement of those variables. 31 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Correlation population correlation coefficient

However, once the square root has been taken into account, the units of measurement are the same as those of the numerator, and the expression as a whole is unit free. 32 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Correlation population correlation coefficient

If X and Y are independent,  XY will be equal to zero because  XY will be zero. 33 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Correlation population correlation coefficient

If there is a positive association between them,  XY, and hence  XY, will be positive. If there is an exact positive linear relationship,  XY will assume its maximum value of 1. Similarly, if there is a negative relationship,  XY will be negative, with minimum value of –1. 34 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Correlation population correlation coefficient

If X and Y are independent,  XY will be equal to zero because  XY will be zero. 35 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Correlation population correlation coefficient

If there is a positive association between them,  XY, and hence  XY, will be positive. If there is an exact positive linear relationship,  XY will assume its maximum value of COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Correlation population correlation coefficient

Similarly, if there is a negative relationship,  XY will be negative, with minimum value of –1. 37 COVARIANCE, COVARIANCE AND VARIANCE RULES, AND CORRELATION Correlation population correlation coefficient

Copyright Christopher Dougherty These slideshows may be downloaded by anyone, anywhere for personal use. Subject to respect for copyright and, where appropriate, attribution, they may be used as a resource for teaching an econometrics course. There is no need to refer to the author. The content of this slideshow comes from Section R.4 of C. Dougherty, Introduction to Econometrics, fourth edition 2011, Oxford University Press. Additional (free) resources for both students and instructors may be downloaded from the OUP Online Resource Centre Individuals studying econometrics on their own who feel that they might benefit from participation in a formal course should consider the London School of Economics summer school course EC212 Introduction to Econometrics or the University of London International Programmes distance learning course EC2020 Elements of Econometrics