lecture 2. generalized linear econometric model and methods of its construction
TRANSCRIPT
LECTURELECTURE 22.. GENERALIZED GENERALIZED LINEAR LINEAR ECONOMETRIC ECONOMETRIC MODEL AND MODEL AND METHODS OF ITS METHODS OF ITS CONSTRUCTIONCONSTRUCTION
PlanPlan2.1 The Simple Linear Model
2.2 The empirical model of multidimensional linear regression.
2.3 Ordinary Least Squares.
2.4 OLS estimation operator.
2.5 Preconditions of using OLS – Gaus-Markov conditions.
2.6Nonlinear Model Construction on the Basis of Linear Models.
2.1 2.1 The Simple Linear ModelThe Simple Linear Model ,.,,..,,...,,| 2121 mm XXXaXXX
,......
,......
,......,......
22110
22110
2222221102
1112211101
nmmnjjnnn
immijjiii
mmjj
mmjj
xaxaxaxaay
xaxaxaxaay
xaxaxaxaayxaxaxaxaay
Theoretical linear multiple regression
where y – variable to be explained (dependent variable) or rehresant; х1, x2,...,хm – independent explaning variables or regressors; a1, a2,..., am – model parameters (theoretic, nonstatistic data);
Matrix form of an algebraic linear equation system
,aXY
.,
......1
......1
......1
......1
,
1
0
21
21
222221
111211
2
1
m
j
nmnjnn
imijii
mj
mj
n
i
a
a
a
a
a
xxxx
xxxx
xxxx
xxxx
X
y
y
y
y
Y
,...
,...
,...
,...
*3
*32
*21
*1
*0
33*
33*332
*231
*1
*03
22*
23*322
*221
*1
*02
11*
13*312
*211
*1
*01
nnmmnnnn
mm
mm
mm
exxxxy
exxxxy
exxxxy
exxxxy
In general terms, the empirical model is written as:
2.2 2.2 Empirical model of Empirical model of multiple linear regression.multiple linear regression.
,eXy
.,,
......1
......1
......1
......1
,
2
1
1
0
21
21
222221
111211
2
1
n
i
m
j
nmnjnn
imijii
mj
mj
n
i
e
e
e
e
e
xxxx
xxxx
xxxx
xxxx
X
y
y
y
y
Y
The empirical model, which is a prototype of a theoretical model.
where e – random component of the regression equation.
exy 10 nyyyy ,...,, 21 nxxxx ,...,, 21 neeee ,...,, 21
Pair linear regression:
where
2.3 Ordinary Least Squares. 2.3 Ordinary Least Squares.
statistic
xaay 10 theoretic
Example : relationship between the volume of bank loans and the cost of advertising
X
Y
0
1
2
3
Figure 2.1 - The relationship between the volume of bank loans and the cost of advertising
yst
i
nixaayyye oththsti ,1,1
The deviation of the theoretical values from the actual
n
iii
n
ii aafxaaye
110
210
1
2 min),()(
0),(
))((
;0),(
)(
1
10
1
1
210
0
10
0
1
2
a
aaf
a
xaay
a
aaf
a
e
n
iii
n
ii
n
iiii
n
ii
n
iii
n
ii
xaayxa
e
xaaya
e
110
1
1
2
110
0
1
2
0)(2)(
0)(2)(
n
i
n
ii
n
iiii
n
i
n
iii
xaxaxy
xanay
1 1
21
10
1 110 ;
Lets solve a system of linear algebraic equations using the Kronecker-Capelli theorem.
We obtain a system of linear algebraic equations:
n
i
n
iii
n
i
n
i
n
iii
ii
xn
x
n
yxyx
a
1
2
1
2
1
1 1
11
n
ii
n
iii
xxn
yxyxn
a
1
22
11 1
1
n
ii
n
ii y
nyx
nx
11
1;
1
where
The relation for the parameter α1 estimation:
To simplify the expression for α1 lets multiply numerator and denominator of this expression by 1 divided n. We obtain:
01
101
210
00
1
2
n
iii
n
iii
n
ii
xaayxaayaa
e
n
iiiii eexaay
110
xaya
xn
aayn
n
ii
n
ii
10
110
1
011
To determine the parameter alpha lets return to the previous formula. We have:
The expression gives us, firstly, to confirm that the amount of error is zero. In fact,
secondly, dividing it into n we have an expression for determining
xaayth 10
So we found a formula to determine the unknown parameters a0 and a1. We can write in the explicit form the regression equation y from x in which the parameters are calculated by the Ordinary least squares method, sometimes called the Ordinary least squares regression y from x. So, we have:
Pair linear regressionPair linear regression
Dependent variable Independent variable1
the volume of bank reserves
the composition of the loan portfolio
2The volume of the bank costs
The volume of deposits
3change of rating of the bank
time factor
EXAMPLE of a regression equation illustration
Table 1 - Research on effectiveness of advertising costs
n
iix
nx
1
;105
501
1010340;322
66
)var(
),cov(
;664005
23301),cov(
;5
6101)var(
101
1
1
22
xayax
yxa
yxyxn
yx
xxn
x
n
iii
n
ii
n
iiy
ny
1
;405
2001
Received linear equation will look like: 103 xyth
To calculate the unknown parameters α0,α1 we consistently have to make the following calculations:
2.2.4 OLS estimation operator4 OLS estimation operator
2.5 Preconditions of using OLS – 2.5 Preconditions of using OLS – Gaus-Markov conditionsGaus-Markov conditions
1. The mathematical expectation of random deviations must be equal to zero.2. The variance of the random deviations must be a constant.3. Random deviations should be independent each from other.4. Random vector deviations must be independent from repressors.5. Components of a random vector should have a normal distribution law.6. There is no linear (correlation) relationship between repressors of matrix X.7. Econometric models are linear relative to its parameters.
2.6 Nonlinear Model Construction on 2.6 Nonlinear Model Construction on the Basis of Linear Models.the Basis of Linear Models.
The influence of many factors on the variable to be explained can be described by a linear model:
where y –variable to be explained or rehresant;
х1, x2,...,хm – independent explanatory variables or regressors;
α1, α2,..., αm – model parameters, which waas counted using OLS
(practice, statistic data);
e – random component of the regression equation.
mm axaxaxay ln...lnlnlnln 22110
For example, a power function
after logarithmation takes the form
mam
aa xxxay ...21210
Exponential function
after logarithmation takes the linear form
mxm
xx aaaay ...21210
where lny – assessment of y; lna0 =α0– assessment of a0;
and after replacing ln хi = αi , i=1,2, …, m is linear relatively to parameters αi.
Hyperbolic function
and Quadratic function
change of variables
leads to a linear form
or
Table 2.1 - Reduction of nonlinear econometric models to the linear form
xx
1*
1*0
0*0
*
ln
ln
ln
aa
aa
yy
0*0
*
ln
ln
aa
yy
Table 2.1 - Reduction of nonlinear econometric models to the linear form
xx
yy
/1
ln*
*
yy
1*
xx
yy
ln
1
*
*
xx
yy
1
1
*
*
Thank you Thank you for your for your
attention!attention!