Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: expected value of a function of a random variable Original citation:

Slides:



Advertisements
Similar presentations
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.
Advertisements

Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: probability distribution example: x is the sum of two dice Original.
EC220 - Introduction to econometrics (review chapter)
EC220 - Introduction to econometrics (chapter 11)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 9) Slideshow: two-stage least squares Original citation: Dougherty, C. (2012) EC220.
EC220 - Introduction to econometrics (chapter 3)
To find the expected value of a function of a random variable, you calculate all the possible values of the function, weight them by the corresponding.
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.
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 (review chapter) Slideshow: asymptotic properties of estimators: the use of simulation Original.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: expected value of a random variable Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: population variance of a discreet random variable Original citation:
EC220 - Introduction to econometrics (chapter 10)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 2) Slideshow: a Monte Carlo experiment Original citation: Dougherty, C. (2012) EC220.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 10) Slideshow: introduction to maximum likelihood estimation Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 11) Slideshow: adaptive expectations Original citation: Dougherty, C. (2012) EC220.
EC220 - Introduction to econometrics (chapter 7)
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: tests of nonstationarity: introduction Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 12) Slideshow: dynamic model specification Original citation: Dougherty, C. (2012)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 2) Slideshow: testing a hypothesis relating to a regression coefficient Original citation:
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.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 4) Slideshow: interactive explanatory variables Original citation: Dougherty, C. (2012)
EC220 - Introduction to econometrics (chapter 7)
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.
EC220 - Introduction to econometrics (chapter 2)
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 (chapter 6) Slideshow: variable misspecification iii: consequences for diagnostics Original.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: confidence intervals Original citation: Dougherty, C. (2012) EC220.
EC220 - Introduction to econometrics (chapter 1)
EC220 - Introduction to econometrics (review chapter)
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: continuous random variables Original citation: Dougherty, C. (2012)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 3) Slideshow: prediction Original citation: Dougherty, C. (2012) EC220 - Introduction.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 3) Slideshow: precision of the multiple regression coefficients Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 4) Slideshow: semilogarithmic models Original citation: Dougherty, C. (2012) EC220.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 4) Slideshow: nonlinear regression Original citation: Dougherty, C. (2012) EC220 -
Christopher Dougherty EC220 - Introduction to econometrics (chapter 10) Slideshow: maximum likelihood estimation of regression coefficients Original citation:
EC220 - Introduction to econometrics (chapter 12)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: Chow test Original citation: Dougherty, C. (2012) EC220 - Introduction.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: the normal distribution Original citation: Dougherty, C. (2012)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: dummy variable classification with two categories Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: two sets of dummy variables Original citation: Dougherty, C. (2012) EC220.
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.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: sampling and estimators Original citation: Dougherty, C. (2012)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: the effects of changing the reference category Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 12) Slideshow: autocorrelation, partial adjustment, and adaptive expectations Original.
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.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 11) Slideshow: Friedman Original citation: Dougherty, C. (2012) EC220 - Introduction.
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)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 12) Slideshow: footnote: the Cochrane-Orcutt iterative process Original citation: Dougherty,
TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the.
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 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.
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.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 2) Slideshow: confidence intervals Original citation: Dougherty, C. (2012) EC220 -
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.
Introduction to Econometrics, 5th edition
Presentation transcript:

Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: expected value of a function of a random variable Original citation: Dougherty, C. (2012) EC220 - Introduction to econometrics (review chapter). [Teaching Resource] © 2012 The Author This version available at: Available in LSE Learning Resources Online: May 2012 This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. This license allows the user to remix, tweak, and build upon the work even for commercial purposes, as long as the user credits the author and licenses their new creations under the identical terms

To find the expected value of a function of a random variable, you calculate all the possible values of the function, weight them by the corresponding probabilities, and sum the results. EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE Definition of E[g(X)], the expected value of a function of X : 1

Example: For example, the expected value of X 2 is found by calculating all its possible values, multiplying them by the corresponding probabilities, and summing. EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE 2

xipix1p1x2p2x3p3……………………………………xnpn xipix1p1x2p2x3p3……………………………………xnpn ………………… The calculation of the expected value of a function of a random variable will be outlined in general and then illustrated with an example. EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE 3

xipix1p1x2p2x3p3……………………………………xnpn xipix1p1x2p2x3p3……………………………………xnpn ………………… First you list the possible values of X and the corresponding probabilities. EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE 4

x i p i g(x i ) x 1 p 1 g(x 1 ) x 2 p 2 g(x 2 ) x 3 p 3 g(x 3 ) ………... x n p n g(x n ) Next you calculate the function of X for each possible value of X. EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE 5

x i p i g(x i ) g(x i ) p i x 1 p 1 g(x 1 )g(x 1 ) p 1 x 2 p 2 g(x 2 ) x 3 p 3 g(x 3 ) ………... x n p n g(x n ) Then, one at a time, you weight the value of the function by its corresponding probability. EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE 6

x i p i g(x i ) g(x i ) p i x 1 p 1 g(x 1 )g(x 1 ) p 1 x 2 p 2 g(x 2 ) g(x 2 ) p 2 x 3 p 3 g(x 3 ) g(x 3 ) p 3 ………...……... x n p n g(x n ) g(x n ) p n You do this individually for each possible value of X. EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE 7

x i p i g(x i ) g(x i ) p i x 1 p 1 g(x 1 )g(x 1 ) p 1 x 2 p 2 g(x 2 ) g(x 2 ) p 2 x 3 p 3 g(x 3 ) g(x 3 ) p 3 ………...……... x n p n g(x n ) g(x n ) p n   g(x i ) p i The sum of the weighted values is the expected value of the function of X. EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE 8

x i p i g(x i ) g(x i ) p i x i p i x 1 p 1 g(x 1 )g(x 1 ) p 1 21/36 x 2 p 2 g(x 2 ) g(x 2 ) p 2 32/36 x 3 p 3 g(x 3 ) g(x 3 ) p 3 43/36 ………...……... 54/36 ………...……... 65/36 ………...……... 76/36 ………...……... 85/36 ………...……... 94/36 ………...…… /36 ………...…… /36 x n p n g(x n ) g(x n ) p n 121/36   g(x i ) p i The process will be illustrated for X 2, where X is the random variable defined in the first sequence. The 11 possible values of X and the corresponding probabilities are listed. EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE 9

x i p i g(x i ) g(x i ) p i x i p i x i 2 x 1 p 1 g(x 1 )g(x 1 ) p 1 21/364 x 2 p 2 g(x 2 ) g(x 2 ) p 2 32/369 x 3 p 3 g(x 3 ) g(x 3 ) p 3 43/3616 ………...……... 54/3625 ………...……... 65/3636 ………...……... 76/3649 ………...……... 85/3664 ………...……... 94/3681 ………...…… /36100 ………...…… /36121 x n p n g(x n ) g(x n ) p n 121/36144   g(x i ) p i First you calculate the possible values of X 2. EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE 10

x i p i g(x i ) g(x i ) p i x i p i x i 2 x i 2 p i x 1 p 1 g(x 1 )g(x 1 ) p 1 21/ x 2 p 2 g(x 2 ) g(x 2 ) p 2 32/369 x 3 p 3 g(x 3 ) g(x 3 ) p 3 43/3616 ………...……... 54/3625 ………...……... 65/3636 ………...……... 76/3649 ………...……... 85/3664 ………...……... 94/3681 ………...…… /36100 ………...…… /36121 x n p n g(x n ) g(x n ) p n 121/36144   g(x i ) p i The first value is 4, which arises when X is equal to 2. The probability of X being equal to 2 is 1/36, so the weighted function is 4/36, which we shall write in decimal form as EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE 11

x i p i g(x i ) g(x i ) p i x i p i x i 2 x i 2 p i x 1 p 1 g(x 1 )g(x 1 ) p 1 21/ x 2 p 2 g(x 2 ) g(x 2 ) p 2 32/ x 3 p 3 g(x 3 ) g(x 3 ) p 3 43/ ………...……... 54/ ………...……... 65/ ………...……... 76/ ………...……... 85/ ………...……... 94/ ………...…… / ………...…… / x n p n g(x n ) g(x n ) p n 121/   g(x i ) p i Similarly for all the other possible values of X. EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE 12

x i p i g(x i ) g(x i ) p i x i p i x i 2 x i 2 p i x 1 p 1 g(x 1 )g(x 1 ) p 1 21/ x 2 p 2 g(x 2 ) g(x 2 ) p 2 32/ x 3 p 3 g(x 3 ) g(x 3 ) p 3 43/ ………...……... 54/ ………...……... 65/ ………...……... 76/ ………...……... 85/ ………...……... 94/ ………...…… / ………...…… / x n p n g(x n ) g(x n ) p n 121/   g(x i ) p i The expected value of X 2 is the sum of its weighted values in the final column. It is equal to It is the average value of the figures in the previous column, taking the differing probabilities into account. EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE 13

x i p i g(x i ) g(x i ) p i x i p i x i 2 x i 2 p i x 1 p 1 g(x 1 )g(x 1 ) p 1 21/ x 2 p 2 g(x 2 ) g(x 2 ) p 2 32/ x 3 p 3 g(x 3 ) g(x 3 ) p 3 43/ ………...……... 54/ ………...……... 65/ ………...……... 76/ ………...……... 85/ ………...……... 94/ ………...…… / ………...…… / x n p n g(x n ) g(x n ) p n 121/   g(x i ) p i Note that E(X 2 ) is not the same thing as E(X), squared. In the previous sequence we saw that E(X) for this example was 7. Its square is 49. EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE 14

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.2 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 and 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 20 Elements of Econometrics