Power 8 - UCSB Economics

advertisement
Economics 240A
Power Eight
1
Outline
Maximum Likelihood Estimation
 The UC Budget Again
 Regression Models
 The Income Generating Process for an
Asset

2
How to Find a-hat and b-hat?

Methodology
– grid search
– differential calculus
– likelihood function

motivation: the likelihood function connects the
topics of probability (especially independence),
the practical application of random sampling,
the normal distribution, and the derivation of
estimators
3
Likelihood function

The joint density of the estimated
residuals can be written as:
g (eˆ0  eˆ1  eˆ2 .....  eˆn1 )

If the sample of observations on the
dependent variable, y, and the
independent variable, x, is random,
then the observations are independent
of one another. If the errors are also
identically distributed, f, i.e. i.i.d, then
4
Likelihood function

Continued: If i.i.d., then
g (eˆ0  eˆ1...  eˆn1 )  f (eˆ0 ) * f (eˆ1 )... f (eˆn1 )

If the residuals are normally distributed:
f (eˆi ) ~ N (0,  )  (1 /  2 )e
2
1/ 2[( eˆi 0 ) /  ]2
Thi is one of the assumptions of linear
regression: errors are i.i.d normal
 then the joint distribution or likelihood
function, L, can be written as:

5
Likelihood function
n 1
L  g (eˆ0  eˆ1...  eˆn 1 )   (1 /  2 )e
1/ 2[( eˆi  0 ) /  ]2
i 0
 (1 / 2 )
2
L  (1 /  )
2 n/2

* (1 / 2 )
n/2
*e
n1
[ eˆi
]2
i 0
and taking natural logarithms of both
sides, where the logarithm is a
monotonically increasing function so
that if lnL is maximized, so is L:
6
The Natural Logarithm Function
2
1.5
1
0.5
lnx
0
-0.5
0
1
2
3
4
5
6
-1
-1.5
-2
-2.5
-3
x
7
Log-Likelihood
n 1
ln L  (n / 2) * ln[  ]  (n / 2) * ln( 2 )  (1 / 2 ) eˆi
2
2
2
i 0
n 1
ln L  (n / 2) * ln[  ]  (n / 2) * ln( 2 )  (1 / 2 ) [ yi  aˆ  bˆ * xi ]2
2
2
i 0

Taking the derivative of lnL with respect
to either a-hat or b-hat yields the same
estimators for the parameters a and b
as with ordinary least squares, except
now we know the errors are normally
distributed.
8
Log-Likelihood

Taking the derivative of lnL with respect
to sigma squared, we obtain an
estimate for the variance of the errors:
n 1
 ln L /   (n / 2) * (1 /  )  (1 / 2) * (1 /  ) eˆi2
2
2
4
i 0

and
n 1
2
2
ˆ
ˆ
  [ ei ] / n
i 0

in practice we divide by n-2 since we
used up two degrees of freedom in
estimating a-hat and b-hat.
9

The sum of squared residuals
(estimated)
 eˆ
2
i
10
Regress CA State General Fund Expenditures
on CA Personal Income, Lab Four
SUMMARY OUTPUT
Regression Statistics
Multiple R
0.98873218
R Square
0.97759133
Adjusted R Square 0.97693225
Standard Error
3.38354883
Observations
36
df
Intercept
X Variable 1
2
ˆ
e
 /( n  2)
n
ANOVA
Regression
Residual
Total
Goodness of fit
SS
MS
1 16981.07081 16981.07
34 389.2456906 11.4484
35 17370.3165
F Significance F
1483.27 1.24E-29
2
ˆ
e
i
Coefficients Standard Error t Stat
P-value Lower 95% Upper 95% Lower 95.0% Upper 95.0%
-0.2916205 1.014023514 -0.28759 0.775408 -2.35236 1.769122 -2.3523629 1.76912184
0.06329191 0.001643381 38.51324 1.24E-29 0.059952 0.066632 0.0599522 0.06663166
11
The Intuition Behind the Table of
Analysis of Variance (ANOVA)

y = a + b*x + e
– the variation in the dependent variable, y,
is explained by either the regression, a +
b*x, or by the error, e

The sample sum of deviations in y:
n 1
[ y
i 0
i
 y ]2
12
ANOVA
Table of ANOVA
df
Regression
Residual
Total
SS
MS
1 16981.07081 16981.07
34 389.2456906 11.4484
35 17370.3165
F
Significance F
1483.27 1.24373E-29
Source
Degrees of Sum of Mean
Freedom
Squares Square
By
Regression 1
difference
(a + b*x
Error (e)
n-2
{ eˆ } /( n  2)
 eˆ
2
i
Total (y)
n-1
n 1
[ y
i 0
i
2
i
 y ]2
13
Test of the Significance of the
Regression: F-test
F1,n-2 = explained mean square/unexplained
mean square
 example: F1, 34 = 16981.07 /11.8444 = 1483.27

14
The UC Budget
15
The UC Budget
The UC Budget can be written as an
identity:
 UCBUD(t)= UC’s Gen. Fnd. Share(t)*
The Relative Size of CA Govt.(t)*CA
Personal Income(t)

– where UC’s Gen. Fnd. Share=UCBUD/CA
Gen. Fnd. Expenditures
– where the Relative Size of CA Govt.= CA
Gen. Fnd. Expenditures/CA Personal
Income
16
Long Run Political Trends

UC’s Share of CA General Fund
Expenditures
17
UC's Share of the California General Fund Budget
8.00%
7.00%
6.00%
4.00%
3.00%
2.00%
1.00%
03
02
-
01
00
-
99
98
-
97
96
-
95
94
-
93
92
-
91
90
-
89
88
-
87
86
-
85
84
-
83
82
-
81
80
-
79
78
-
77
76
-
75
74
-
73
72
-
71
70
-
69
0.00%
68
-
Percent
5.00%
Fiscal Year
18
UC’s Budget Share

UC’s share of California General Fund
expenditure shows a long run
downward trend. Like other public
universities across the country, UC is
becoming less public and more private.
Perhaps the most “private” of the public
universities is the University of
Michigan. Increasingly, public
universities are looking to build up their
endowments like private universities.
19
Long Run Political Trends

The Relative size of California
Government
– The Gann Iniative passed on the ballot in
1979. The purpose was to limit the size of
state government so that it would not grow
in real terms per capita.
– Have expenditures on public goods by the
California state government grown faster
than personal income?
20
The Size of California Government Relative to the Economy
8.00%
7.00%
6.00%
4.00%
3.00%
2.00%
1.00%
03
02
-
01
00
-
99
98
-
97
96
-
95
94
-
93
92
-
91
90
-
89
88
-
87
86
-
85
84
-
83
82
-
81
80
-
79
78
-
77
76
-
75
74
-
73
72
-
71
70
-
69
0.00%
68
-
Percent
5.00%
Fiscal Year
21
The Relative Size of CA State Govt.

California General Fund Expenditure
was growing relative to personal income
until the Gann initiative passed in 1979.
Since then this ratio has declined,
especially in the eighties and early
nineties. After recovery from the last
recession, this ratio recovered, but took
a dive in 2003-04.
22
Guessing the UC Budget for
2004-05
UC’s Budget Share: 0.045
 Relative Size of CA State Govt.: 0.055
 Forecast of CA Personal Income for
2004-05

23
02
00
98
96
94
92
90
88
86
84
82
80
78
76
74
72
70
68
-0
3
-0
1
-9
9
-9
7
-9
5
-9
3
-9
1
-8
9
-8
7
-8
5
-8
3
-8
1
-7
9
-7
7
-7
5
-7
3
-7
1
-6
9
Billions $
California Personal Income in Billions
1400
1200
1000
800
600
400
200
0
Fiscal Year
24
25
26
27
28
$1,173.7(2003)B compares to $1,176.4(2003-04)B 29
Guessing the UC Budget for
2004-05
UC’s Budget Share: 0.045
 Relative Size of CA State Govt.: 0.055
 Forecast of CA Personal Income for 200405: $ 1,231.5 B
 UCBUD(04-05) = 0.045*0.055*$1,231.5B
 UCBUD(04-05) = $ 3.048 B
 compares to UCBUD(03-04) = $ 3.039 B

30
The Relative Size of CA Govt.
Is it determined politically or by economic
factors?
 Economic Perspective: Engle Curve- the
variation of expenditure on a good or
service with income
 lnCAGenFndExp = a + b lnCAPersInc +e
 b is the elasticity of expenditure with
income

 ln CAGenFndExp /  ln CAPersInc  b
31
The elasticity of expenditures
with respect to income
Note:
 ln CAGenFndExp / CAPersInc 
(1 / CAGenFndExp ) * (CAGenFndExp / CAPersInc) 
b * (1 / CAPersInc)
 So, in the log-log regression,
lny = a + b*lnx + e,
the coefficient b is the elasticity of y
with respect to x.

32
CA State Govt Expenditures Vs. Personal Income
90
CA Gen. Fund $ B
80
70
2003=04
60
50
40
30
1993-94
20
10
0
0
500
1000
1500
Personal Income, $ B
Linear Regression
33
CA State Govt Expenditures Vs. Personal Income
100
CA Gen. Fund $ B
2003=04
1993-94
10
1
10
100
1000
10000
Personal Income, $ B
Log-Log Regression
34
Dependent Variable: LNGENFX
Method: Least Squares
EVIEWS Output
Sample: 1968 2003
Included observations: 36
Variable
Coefficient
C
-3.153898
LNPERSINC 1.060468
Std. Error
t-Statistic
Prob.
0.124239
0.020691
-25.38577
51.25176
0.0000
0.0000
R-squared
0.987222
Mean dependent var
Adjusted R-squared 0.986846 S.D. dependent var
S.E. of regression 0.103437 Akaike info criterion
Sum squared resid
0.363772 Schwarz criterion
Log likelihood
31.62368 F-statistic
Durbin-Watson stat 0.446230 Prob(F-statistic)
3.1519
0.9018
-1.645
-1.557
2626.7
0.000000
35
Is the Income Elasticity of CA
State Public Goods >1?

Step # 1: Formulate the Hypotheses
– H0 : b = 1
– Ha : b > 1

Step # 2: choose the test statistic
t  stat  [bˆ  E (bˆ)] /  bˆ  (1.06  1) / 0.0207  2.92

Step # 3: If the null hypothesis were
true, what is the probability of getting a
t-statistic this big?
36
Appendix B
Table 4
p. B-9
5.0 % in the
upper tail
37
Regression of ln CA Gen. Fund Expenditures On
ln CA Personal Income, 1968-69 through 2003-04
5
4
Eviews
Output
3
0.3
2
0.2
0.1
1
0.0
-0.1
-0.2
-0.3
70
75
80
Residual
85
90
Actual
95
00
Fitted
38
Regression Models

Trend Analysis
– linear: y(t) = a + b*t + e(t)
– exponential: lny(t) = a + b*t + e(t)

Engle Curves
– ln y = a + b*lnx + e

Income Generating Process
39
Returns Generating Process
How does the rate of return on an asset
vary with the market rate of return?
 ri(t): rate of return on asset i
 rf(t): risk free rate, assumed known for the
period ahead
 rM(t): rate of return on the market
 [ri(t) - rf0(t)] = a +b*[rM(t) - rf0(t)] + e(t)

40
 ri(t):
Example
monthly rate of return on UC stock
index fund, Sept., 1995 - Sept. 2003
 rf(t): risk free rate, assumed known for the
period ahead. Usually use Treasury Bill Rate.
I used monthly rate of return on UC Money
Market Fund
http://atyourservice.ucop.edu/employees/ret
irement/performance.html
 rM(t): rate of return on the market. I used
the monthly change in the logarithm of the
total return (dividends reinvested)*100.
41
http://research.stlouisfed.org/fred2/
Returns Generating Process Time Series Data
15
5
Sep-03
Sep-02
Sep-01
Sep-00
Sep-99
Sep-98
Sep-97
-5
Sep-96
0
Sep-95
Mothly Rate of Return
10
-10
-15
UC Equity Fund
Standard & Poors 500
UC Money Market Fund
-20
Date
42
Returns Generating Process, Sept. 95-Sept. 03
15.00
UC Stock Index Fund, Net
10.00
5.00
0.00
-15
-10
-5
0
5
10
-5.00
-10.00
-15.00
-20.00
Standard & Poors 500, Net
43
Watch Excel on xy plots!
15.00
10.00
y = 1.0601x - 0.106
2
R = 0.9136
5.00
0.00
-15
-10
-5
0
5
10
-5.00
-10.00
-13.35,
16.09;Ucnet,
S&Pnet
-15.00
-20.00
True x axis: UC Net44
45
Returns Generating Process
15.00
UC Stock Index Fund, Net
y = 1.0601x - 0.106
10.00
2
R = 0.9136
5.00
0.00
-15
-10
-5
0
5
10
-5.00
-10.00
-15.00
-20.00
Standard & Poors 500, Net
Really the Regression of S&P on UC
46
SUMMARY OUTPUT
Regression Statistics
Multiple R
0.95580613
R Square
0.91356536
Adjusted R Square 0.91265552
Standard Error
1.31011043
Observations
97
ANOVA
df
Regression
Residual
Total
Intercept
X Variable 1
SS
MS
F
Significance F
1 1723.42 1723.42 1004.096 2.65348E-52
95 163.057 1.716389
96 1886.477
CoefficientsStandard Error t Stat
P-value
Lower 95% Upper 95%Lower 95.0%
Upper 95.0%
0.12800497 0.13335 0.959915 0.339535
-0.1367287 0.392739 -0.13673 0.392739
0.86177094 0.027196 31.68748 2.65E-52 0.807780204 0.915762 0.80778 0.915762
47
10
EViews
Chart
Returns Generating Process
UCSTOCKNET
5
0
-5
-10
-15
-20
-10
0
10
SPNET
48
Midterm 2001
49
Q. 4
1. (15 points) The following graph 4-1 shows the results of regressing California
General Fund expenditures, in billions of nominal dollars, against California Personal
Income, in billions of nominal dollars beginning in fiscal year1968-69 and ending in
fiscal year 2001-02.
a. How much of the variance in the dependent variable is explained by personal
income?
b. Interpret the estimated slope.
Table 4-1 follows with the estimated parameters and table of analysis of variance.
c. Is the slope significantly different from zero? What statistic do you use to
answer this question? What distribution do you use to answer this question?
What probability were you willing to accept for a Type I error?
d. What is the ratio of the explained mean square to the unexplained mean square?
50
Q4
Calfifornia General Fund Expenditures Vs. California Personal Income, Billions of Nominal $
90
80
Gen Fund Expenditures
70
60
50
y = 0.066x - 1.1974
2
R = 0.981
40
30
20
10
0
0
200
400
600
800
1000
1200
1400
Personal Income
Figure 4-1: California General Fund Expenditures Versus
California Personal Income, both in Billions of Nominal Dollars
51
Q4
Table 4-1: Summary Output
Regression Statistics
Multiple R
0.9904673
R Square
0.9810255
Adjusted R Square
0.9804325
Standard Error
2.9988336
Observations
34
ANOVA
df
Regression
Residual
Total
Intercept
X Variable 1
SS
1
32
33
MS
F
Significance
F
14878.68965 14878.69 1654.47398 3.98668E-29
287.7761003 8.993003
15166.46575
Coefficients Standard Error
t Stat
P-value
Lower 95% Upper 95%
-1.197411
0.927956018 -1.29037 0.20616709 -3.08759378 0.6927721
0.0659894
0.001622349 40.67523 3.9867E-29 0.062684796
0.069294
52
Download