Practical Panel-Data CMI
Practical Panel-Data CMI
Practical Panel-Data CMI
Ugandan Data
by
Charles Augustine Abuka
Director, Financial Stability Department
BANK OF UGANDA
2
Outline
• Applications in modelling the financial sector
• Introduction to Panel Data Models
• Practical Applications Using Ugandan Data
• Further Topics
• Concluding Remarks
3
APPLICATIONS IN MODELLING
SOURCES OF SYSTEMIC RISK IN THE
BANKING SECTOR
4
The empirical literature overview
5
The empirical literature overview
Gerlach et al, [2005] The author relied on regression analysis (for the case of The analysis indicates that the NPL ratio
Hong Kong) and employed nominal interest rates, the rises with increasing nominal interest
CPI, property prices, equity prices, and number of rates and an increasing number of
bankruptcies, the unemployment rate and real GDP as bankruptcies, but decreases with higher
explanatory variables. CPI inflation, economic growth, and
property price inflation. Deflation
squeezes out corporate profitability and
adversely affects borrowers ability to pay.
Quagliariello [2003] The authour presents a regression between the The authour concluded that decreasing
evolution of NPLs as a dependent variable and a set of real GDP growth and increasing
explanatory variables for the case of Italy: the real GDP unemployment have a significantly
growth rate, the growth of real gross fixed investment adverse effect on loan portfolio quality,
and consumption, changes in the unemployment rate, while the real exchange rate and consumer
the CPI, the real exchange rate and the M2 growth rate. price index fail to significantly affect it.
6
The empirical literature overview
7
The empirical literature overview
8
The empirical literature overview
Author (s) Methodology and Economies Results
Jakubik [2007] The authour employed the regression The default rate for the corporate sector is
method for NPL inflow estimation (in determined by the appreciation of the real
the case of the Czech Republic) using effective exchange rate and by the increase
real GDP, real effective exchange rates, in the loan to GDP ratio; meanwhile, the
the CPI, the loan to GDP ratio, default rate for households deteriorates via
unemployment, and the real interest rate unemployment and interest-rate increases.
as explanatory variables.
Zeman and Jurca The authors applied the multivariate Real GDP, the nominal exchange rate and
[2008] regression method using real GDP, the nominal interest rate are the most
output gap, exports, industrial important variable influencing NPL
production, oil prices, the CPI, M1, dynamics. A slow down in GDP growth is
nominal interest rates, and nominal not expected to substantially threaten the
exchange rates as explanatory variables banking system. Exposure to interest rate
for NPL dynamics in the case of slovakia. growth through direct channels and
foreign currency risk through indirect
channels was shown to be due to the high
level of openness of the economy.
9
The empirical literature overview
Author (s) Methodology and Economies Results
Uhde and Heimeshoff The authours provided empirical The authours reveal that Eastern
[2009] evidence in the case of the EU-25, European Banking markets exhibit a lower
that the national banking market level of competitive pressure, fewer
concentration has a negative impact diversification opportunities and a higher
on European Banks’ financial fraction of government-owned banks,
soundness as measured by the Z which are more prone to financial fragility.
score technique (while controlling
for macroeconomic, bank-specific
regulatory and institutional factors.
10
PANEL DATA REGRESSION MODELS
11
Time Series Example
Year = t System NPLs=Yi LAR=X1 Inflation rate=x2
2009 3.8 55.0 7.0
2010 5.0 60.8 10.0
2011 8.5 66.5 12.0
2012 10.6 70.5 15.0
12
Panel Data Example
Year=t Bank = I NPL=Y LAR=X1 Inflation=X2
2009 CITI 3.4 48.0 7.0
2010 CITI 3.5 50.0 10.0
2011 CITI 3.6 60.0 12.0
2012 CITI 4.0 65.0 15.0
2009 BOB 3.2 60.0 7.0
2010 BOB 3.4 64.0 10.0
2011 BOB 3.7 66.0 12.0
2012 BOB 4.0 70.4 15.0
2009 KCB 4.0 30.4 7.0
2010 KCB 4.6 35.6 10.0
2011 KCB 4.4 40.5 12.0
2012 KCB 5.0 50.6 15.0
13
Panel Data Regression Models
• Same cross-section unit (family or firm or a state) is surveyed over
time.
• Panel data have space as well as time
Advantages
1. Panel data estimation takes into account heterogeneity in individuals,
firms states, countries, etc. This is done by allowing for individual
specific variables.
2. By combining time series of cross-section observations, panel data
gives “more informative data, more variability, less collinearity among
variables, more degrees of freedom and more efficiency”
14
Panel Data Regression Models
3. Panel is suited to study dynamics of change because it studies
repeated cross sections of observations.
4. Panel data can better detect and measure effects that simply
cannot be observed in pure-cross-section or pure time series
data.
5. Enables study of more complicated behavioural modes than
purely time series or cross section data e.g. economies of scale
and technological change.
6. Panel data can minimize bias that might result if we aggregate
individuals or firms into broad aggregates.
15
Panel Data Regression Models
• Limitations of Panel data include:
– Design and data collection problems – problems of
coverage, non response, recall etc,
– Distortions of measurement errors – faulty responses
due to unclear questions, memory errors etc.
– Selectivity problems
• Self selectivity
• Non response
• Attrition
• Short time series dimension
16
Panel Data Regression Models
EXAMPLE
• Non performing loans depend on loan to
asset ratio and macroeconomic variables .
For four banks BOB, BOA, CITI and DFCU.
1993-2013.
17
Estimation of Panel Data Regression Models
i 1,2,3,4 t 1,2,................20
18
Estimation of Panel Data Regression Models
• Estimation depends on the assumptions we make about the
intercept, the slope coefficients and the error term unit.
There are several possibilities:
1. Assume the intercept and slope coefficients are constant across
time and space and the error term captures differences over
time and individuals i.e. a pooled regression.
2. The slope coefficients are constant but the intercept varies
over individuals.
3. The slope coefficients are constant but the intercept varies
over individuals and time.
4. All coefficients (the intercept as well as slope coefficient) vary
over individuals.
19
Estimation of Panel Data Regression Models
1. All coefficients constant across time and individuals.
• Simplest & naïve approach, disregards space and time
dimensions of data
• Pooled regression
• Note significance of coefficients as well as the signs
• Comment on the value of Durbin-Watson-if low suggest
autocorrelation in data or specification errors
• Model assumes intercepts of BOB, BOA, CITI and DFCU are the
same
• It assumes slope coefficients of X2 and X3 are the same for
all the banks.
• Highly restrictive assumptions.
20
Estimation of Panel Data Regression Models
21
Estimation of Panel Data Regression Models
D 1
2i
if the observation belongs to BOA, 0 other wise
D 1
3i if the observation belongs to CITI, 0 other wise
D 1
4i if the observation belongs to DFCU, 0 other wise
22
Estimation of Panel Data Regression Models
23
Estimation of Panel Data Regression Models
i. Significance of coefficients
ii. Differences in intercepts are due to features that
are unique to each bank.
iii. R squared tends to increase may be due to more
variables.
iv. Note what happens to the Durbin Watson
statistic.
• To test model 1 (the restricted which imposes a
common slope to all banks) and model 2 (the
unrestricted) we use an F test.
24
Estimation of Panel Data Regression Models
• The time effect – Time effect allows the NPL function to
shift over time because of factors such as:
Technological changes
Changes in government regulatory and/or tax policies
External effects such as wars or other conflicts
• These are handled by use of time dummies, one for each year.
Since we have 20 years from 1993 to 2013 we can introduce 19
time dummies as:
• Yit 0 1Dum1993 2 Dum1994....... 19 Dum20124i 2 X 2it 3 X 3it it
4
• Dum1993 takes a value 1 for observation in year 1993 and 0
otherwise, etc.
• Year 2013 is the base year and intercept will be given by 0
25
Estimation of Panel Data Regression Models
• THINGS TO NOTE
• Significance of time dummies
• Any change in R2
• Look at the F test – if it is not significant, it suggests that
the credit function has not changed over time.
3. Slope coefficients constant but the intercept varies over
individuals as well as time.
• We combine 3 and 4 to get:
Yit 1 2 DBOAi 3 DCITI i 4 DDFCU i 0 1Dum1993 2 Dum1994.......
26
Estimation of Panel Data Regression Models
27
Estimation of Panel Data Regression Models
28
Problems of LSDV Model
1. Introduces to many dummy variables and you run into the
degrees of freedom problem. Given 80 observations:
55 d.f = 80 -3 d.f for three banks
-19 d.f for year dummies
-2 d.f for two slope coefficients
-1 d.f for the common intercept.
2. Possibility of multicollinearity because of so many variables in
the model – precise estimation of parameters is difficult.
3. May not be able to identify impact of time-invariant variables
such as sex, colour or ethnicity (these do not change over
time).
4. Assume the error term follows the classical assumptions of
normality. However, the error term may need to be modified.
29
Estimation of Panel Data Regression Models
30
Estimation of Panel Data Regression Models
31
Estimation of Panel Data Regression Models
32
Estimation of Panel Data Regression Models
33
Estimation of Panel Data Regression Models
34
Estimation of Panel Data Regression
Models
• The Random Effects Model
– There too many parameters in the fixed effects
model and the loss of degrees of freedom can be
avoided if i is assumed to be random. In this
case:
i IID(0, 2 )
i IID (0, )
2
35
Estimation of Panel Data Regression
Models
– In addition, theX are independent of the
i and it for all i and t.
it
36
Estimation of Panel Data Regression
Models
• Two Way Error Component Regression
Model
– In this case the regression model in equation
(7) above has two-way error component
disturbances i.e.:
it i t it
i 1,....., N ; t 1,....T ......................................8
37
Estimation of Panel Data Regression
Models
– t = the unobservable time effect
– it = is the remainder stochastic disturbance term.
– Note that t is individual – invariant and accounts for
any time specific effect not included in the regression.
– These include strike year effects that disrupt, oil
embargo effects that disrupt supply of oil and affect its
price, government laws that affect consumption e.t.c.
38
Estimation of Panel Data Regression
Models
• The Fixed Effects Model
– The i and t are assumed to be fixed
parameters to be estimated and the remainder
of the disturbances are stochastic with
it IID (0, 2 )
39
Estimation of Panel Data Regression
Models
– The X it are assumed independent of all
the it for all i and t .
– However, inference is conditional on the
particular N Individuals and over the specific
time periods observed.
40
Estimation of Panel Data Regression
Models
• The Random Effects Model
– If i IID(0, 2 ), IID0, 2 and it IID(0,2 )
41
SOME PRACTICAL APPLICATIONS WITH
UGANDAN DATA
42
III. Practical Applications
• The Data:
• Quarterly bank and macro level data from Uganda
from 2000q1 to 2013q1. This dataset is found in
a file (bank_data.WF1).
• Contains quarterly macroeconomic variables real
GDP, exchange rate change, inflation and interest
rates 2000q1-2013q1.
• Contains bank level data on non performing loans,
market share of banks assets, total loans loans to
total assets. There are twelve banks.
43
III. Practical Applications
Macroeconomic variables
No. Variable Measures Identification
1 Real GDP Real GDP rgdp
Growth Rate of Real GDP rgdpg
2 Exchange Rate Real effective exchange reer
rate
Nominal exchange ner
3 Inflation Headline consumer price hcpi
index
Annual Inflation rate infla
4 Interest rates Average Lending Rate lr
Real lending rate rir
Treasury securities tb364, tb91
44
III. Practical Applications
Bank level variables
No. Variable Measures Identification
1 Nonperforming loans Nonperforming loans npl
ratio
45
III. Practical Applications: Static Model
46
Estimating a Panel Least Squares Equation: One way error -
fixed
• Using: bank_data.WF1
• Quick/Estimate Equation
• Type equation in the command window
– i.e. lnpl c rgdpg rir dlner infla lsize llota
• Panel options:
– Cross section – Fixed
– Period - None
47
Estimating a Panel Least Squares Equation: One way error -
fixed
48
Estimating a Panel Least Squares Equation: One way error -
Random
49
Estimating a Panel Least Squares Equation: One way error -
Random
50
Estimating a Panel Least Squares Equation: Two way error -
Fixed
51
Estimating a Panel Least Squares Equation: Two way error -
Random
52
Estimating a Panel Least Squares Equation: Two way error -
Random
53
III. Practical Applications: Dynamic Model
54
III. Practical Applications: Dynamic Model
55
III. Practical Applications: Dynamic Model
One way error fixed
56
III. Practical Applications: Dynamic Model
One way error random
57
III. Practical Applications: Dynamic Model
Two way error random
58
FURTHER TOPICS
59
Further Topics
• Further Topics
– Non Stationary Panel Data Models
– Panel Cointegration
– GMM estimation etc, etc
60
REFERENCES
61
REFERENCES
62