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.

Slides:



Advertisements
Similar presentations
EC220 - Introduction to econometrics (chapter 2)
Advertisements

EC220 - Introduction to econometrics (chapter 1)
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.
EC220 - Introduction to econometrics (chapter 13)
ADAPTIVE EXPECTATIONS 1 The dynamics in the partial adjustment model are attributable to inertia, the drag of the past. Another, completely opposite, source.
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.
ADAPTIVE EXPECTATIONS: FRIEDMAN'S PERMANENT INCOME HYPOTHESIS
EC220 - Introduction to econometrics (chapter 14)
EC220 - Introduction to econometrics (chapter 11)
1 SIMULTANEOUS EQUATIONS MODELS Most of the issues relating to the fitting of simultaneous equations models with time series data are similar to those.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: the central limit theorem Original citation: Dougherty, C. (2012)
EC220 - Introduction to econometrics (chapter 2)
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: probability distribution example: x is the sum of two dice Original.
EC220 - Introduction to econometrics (chapter 14)
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 (review chapter)
EC220 - Introduction to econometrics (chapter 8)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 12) Slideshow: consequences of autocorrelation Original citation: Dougherty, C. (2012)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 11) Slideshow: model c assumptions Original citation: Dougherty, C. (2012) EC220 -
EC220 - Introduction to econometrics (chapter 8)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 8) Slideshow: model b: properties of the regression coefficients Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 2) Slideshow: one-sided t tests Original citation: Dougherty, C. (2012) EC220 - Introduction.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: one-sided t tests Original citation: Dougherty, C. (2012) EC220.
EC220 - Introduction to econometrics (chapter 1)
THE ERROR CORRECTION MODEL 1 The error correction model is a variant of the partial adjustment model. As with the partial adjustment model, we assume a.
1 MAXIMUM LIKELIHOOD ESTIMATION OF REGRESSION COEFFICIENTS X Y XiXi 11  1  +  2 X i Y =  1  +  2 X We will now apply the maximum likelihood principle.
MODELS WITH A LAGGED DEPENDENT VARIABLE
1 INTRODUCTION TO MAXIMUM LIKELIHOOD ESTIMATION This sequence introduces the principle of maximum likelihood estimation and illustrates it with some simple.
EC220 - Introduction to econometrics (chapter 3)
EC220 - Introduction to econometrics (chapter 4)
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.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: exercise r.7 Original citation: Dougherty, C. (2012) EC220 - Introduction.
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 5)
The third sequence defined the expected value of a function of a random variable X. There is only one function that is of much interest to us, at least.
CHOW TEST AND DUMMY VARIABLE GROUP TEST
EC220 - Introduction to econometrics (chapter 5)
EC220 - Introduction to econometrics (chapter 10)
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.
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.
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:
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: the normal distribution Original citation: Dougherty, C. (2012)
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)
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:
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.
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
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.
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:
1 ASYMPTOTIC PROPERTIES OF ESTIMATORS: THE USE OF SIMULATION In practice we deal with finite samples, not infinite ones. So why should we be interested.
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 (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:

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