Lectura Oblig
Lectura Oblig
Lectura Oblig
Returns: A Bayesian
Approximation*
Willy Alanya1
Gabriel Rodríguez1
Abstract
This study is one of the first to utilize the stochastic volatility (SV)
model to modelling the Peruvian financial times series. We estimate and
compare this model with generalized autoregressive conditional heter-
oscedasticity (GARCH) models with normal and t-student errors. The
analysis in this study corresponds to Peru’s stock market and exchange
rate returns. The importance of this methodology is that the adjustment
of the data is better than the GARCH models, using the assumptions of
normality in both models. In the case of the SV model, three Bayesian
algorithms have been employed where we evaluate their respective
inefficiencies in the estimation of the model’s parameters—the most
* This article is drawn from the thesis of Willy Alanya (2014) at the Department of
Economics, Pontificia Universidad Católica del Perú (PUCP). We thank useful comments
of Paul Castillo B. (Central Reserve Bank of Peru and PUCP), Rodolfo Cermeño
(CIDE-Mexico), Luis García (PUCP), Pierre Perron and Z. Qu (Boston University).
We also appreciate comments from one anonymous referee and the editor of the journal.
Any remaining errors are our responsibility.
1
Pontificia Universidad Católica del Perú, Lima, Peru.
Corresponding author:
Gabriel Rodríguez, Department of Economics, Pontificia Universidad Católica del Perú,
Av. Universitaria 1801, Lima 32, Lima, Peru.
E-mail: gabriel.rodriguez@pucp.edu.pe
2 Journal of Emerging Market Finance 17(3s)
Keywords
Stochastic volatility model, Bayesian estimation, Gibbs sampler, mixture
sampler, integration, stock market, forex market, GARCH models, Peru
1. Introduction
Many financial series, especially stock market and exchange rate market
returns, are characterised by their volatile behaviour, where periods
of major stability and times of high uncertainty can be appreciated—a
phenomenon known in the literature as clustering. These clusters of
volatility can be caused by economic or political factors that affect the
perception of investors about the stock market and the agents of the
economy with regard to the exchange rate. Stock markets offer to investors
a more liquid alternative of investment relative to other instruments in
the financial system (Levine, 1996). Moreover, stock markets contribute
to the economic growth in emerging market economies; see Enisan and
Olufisayo (2009). However, in the short run, stock markets can amplify
external shocks as shareholders reallocate their investment portfolios,
for instance, they may opt to sell their shares. Hence, it is important to
study this market. With respect to the forex market, since 2002, the
Central Bank of Peru has aimed to smoothen the exchange rate volatility
in line with the inflation-targeting scheme. A greater exchange rate
volatility implies a higher risk in a dollarised Peruvian economy as
individuals may take loans or save in the foreign currency and are
vulnerable to exchange rate depreciations (Grippa & Gondo, 2006).
Despite that the stock and forex market are crucial for the dynamics of
the Peruvian economy, there is a paucity of studies dedicated to stock and
Alanya and Rodríguez 3
the empirical results for the series studied, and the performance of the
SV model is compared with the traditional N-GARCH and t-GARCH
models. The conclusions are set out in Section 5.
2. Literature Review
An initial model for conditional variance was developed by Engle
(1982), called autoregressive conditional heteroscedasticity (ARCH),
which was applied to inflation in the United Kingdom, showing high
persistence of the variance. Bollerslev (1986) presents the GARCH
model whose conditional variance groups together the extensive lags of
Engle’s ARCH model (1982), developing an autoregressive moving
averages (ARMA) structure for the variance. Along these lines, the
model proposed by Nelson (1991), known as exponential GARCH
(EGARCH), allows the leverage effect to be studied, that is, the asym-
metrical relationship between returns and variance, which occurs, for
example, when there is bad news in the stock market, thus generating
volatility that is more than proportional to the shock that originally
occurred. Another model along the same lines is that put forward by
Glosten, Jagannathan and Runkle (1993), which analyses the leverage
effect. When the variance is included in the equation for the mean, the
model is denoted by GARCH-M.
Further contributions to the literature include those by Baillie,
Bollerslev and Mikkelsen (1996) consisting of GARCH models with
fractional integration, which allow the long-term dependencies of the
conditional variances to be modelled. The authors apply these models to
the US stock market returns and present results that are highly significant
for the integration parameter by rejecting the extreme cases of GARCH
and IGARCH.2
Another strand developed in the literature is provided by the SV models
that also establish the mean equation, a stochastic process inherent to the
volatility or variance that determines the values realised from the vari-
ance conditioned to the data. It is an unobservable process and one that
changes over time.3 These models arise in the modelling of share prices.
In a continuous version, Hull and White (1987) and Wiggins (1987) model
option pricing where variance follows a stochastic process. Hull and White
(1987) find that the Black-Scholes model overestimates the price of an
option in relation to the SV model and that this problem worsens if the
option’s time to maturity is greater.4 In Wiggins (1987), this relationship
Alanya and Rodríguez 5
3. Methodology
The SV models assume that financial series is generated under a stochastic
process, both for the mean equation and for the variance. Moreover, at
each point in time this process determines the volatilities realised, which
follow a latent process, that is, they are not observable. For a yt financial
series corrected by the mean of each of the observations {t = 1, …, T},
the representation of a general canonical SV model has the following
structure:
h t + 1 = n + z (h t - n) + v n h t,
b = exp (n/2),
h 0 ~ N e n, o,
v2
1 - z2
Alanya and Rodríguez 7
e t ~ N (0, 1),
h t ~ N (0, 1),
log ( y 2t ) = n + h t + log (e 2t ),
h t + 1 = n + z (h t - n) + v nh t.
xt = n + ht + e
*t ,
h t + 1 = n + z (h t - n) + v n h t.
4. Empirical Results
In this section, we present the results of the SV model estimations: the
parameters and the volatilities. Moreover, we describe the efficiency
gain in the estimation of parameters in utilising the three algorithms
presented in the previous section, as well as the filtered and smoothed
estimations of the SV model. Finally, we compare the adjustment to the
SV model data, with which the N-GARCH and t-GARCH models are
obtained.
Stock Forex
Returns Volatility Returns Volatility
Values (1992:01–2010:12) (1994:01–2010:12)
Mean 0.001 –4.890 0.000 –6.189
Median 0.006 –4.863 0.000 –6.287
Maximum 0.128 –2.046 0.022 –3.728
Minimum –0.114 –6.907 –0.023 –6.907
Standard 0.015 0.911 0.002 0.554
deviation
Skewness 0.012 –0.015 0.243 0.926
Kurtosis 10.179 2.591 15.820 3.648
Jarque–Bera 9831.276 31.960 23205.82 543.796
Observations 4577 3384
Source: Authors’ calculation.
(1 + z) z - 1 (1 + z) z - 1
(1) (2)
MCMC
Mean Standard Error Inefficiency Var–Cov Matrix
Gibbs Sampler
Stock Returns
z|y 0.957 6.7652e-005 97.655 4.4523e-005 −0.00010263 1.8442e-005
vh|y 0.322 0.00029937 183.86 −0.00010263 0.00046308 −8.6000e-005
Figure 2. Estimation by Gibbs Sampler. Stock Markets (top panel) and Forex
Market (bottom panel). Inside of Each Panel (from left to right): (a) Iterations for
z|y, (b) Iterations for vh|y, (c) Iterations for b|y, (d) Density of z|y, (e) Density
of vh|y, (f) Density of b|y, (g) Correlogram of z|y, (h) Correlogram of vh|y and
(i) Correlogram of b|y
Source: Authors’ estimation.
Disclaimer: T
his image is for representational purposes only. It may not appear well in
print.
Alanya and Rodríguez 17
The estimates imply a mean of 0.957 for z; moreover, the scale factor b
has a mean of 1.086. Finally, the mean for the volatility of the equation for
the variance is 0.315. The efficiency continues to improve and this time
posts 11.398, 17.351 and 5.885 for c, vh and b, respectively. Nonetheless,
a degree of efficiency is lost for the parameter b with relation to the results
by way of the Gibbs sampler and mixture sampler, but the level of inef-
ficiency for this and the other parameters is low. Moreover, in Figure 4
(top panel), the improvement in the autocorrelation of the iterations is
evident; thus, for the persistence z and the scale factor b, the correlation
decays rapidly in delay 50 in both cases and in delay 25, approximately
for vh, unlike the previous autocorrelations where these decay with a
delay of 200 and 250 for b and vh, respectively.
For the case of exchange rate returns, the mean of persistence z is
0.976, for the factor b it is of 0.152 and for vh it is 0.293. Efficiencies also
improve significantly and are 8.613, 14.964 and 5.236 for the parameters
z, b and vh, respectively. Equivalently, in the case of the stock market,
there is also an improvement of the efficiency of the two first estimates
with relation to the Gibbs and mixture sampler algorithms. In Figure 4
(bottom panel), the autocorrelations of the parameters improve and decay
rapidly in lag 40 for the parameters z and vh, which previously, for the
mixture sampler, were prolonged up to 100, approximately.
Based on the estimates of the z parameter, we can say that the mean
life of a shock (or the persistence of the volatility) in the stock market
has a duration of 16 days. In the case of the exchange rate market, the
duration of these shocks rises to 28 days.
Figure 3. Estimation by Mixture Sampler. Stock Markets (top panel) and Forex
Market (bottom panel). Inside of Each Panel (from left to right): (a) Iiterations
for z|y, (b) Iterations for vh|y, (c) Iterations for b|y, (d) Density of z|y,
(e) Density of vh|y, (f) Density of b|y, (g) Correlogram of z|y, (h) Correlogram
of vh|y and (i) Correlogram of b|y
Source: Authors’ estimation.
Disclaimer: T
his image is for representational purposes only. It may not appear well in
print.
Alanya and Rodríguez 21
Figure 7. Filtered and Smoothed Stochastic Volatility. Stock Market (top panel)
and Forex Market (bottom panel)
Source: Authors’ estimation.
Disclaimer: T
his image is for representational purposes only. It may not appear well in
print.
Alanya and Rodríguez 25
Models a0 a1 + a2 o Log-likelihood
Stock Returns
SV – – – −7305.667
N-GARCH 0.077 0.987 – −7410.133
t-GARCH 0.078 0.985 5.890 −7271.558
Forex Returns
SV – – – 1469.234
N-GARCH 0.0003 1.043 – 1291.822
t-GARCH 0.0003 1.053 4.523 1495.733
Source: Authors’ calculation.
Note: The GARCH models have been estimated using E-views while the SV models
used the integration sampler.
a0 a2 Log-
Models 1 - a1 - a2 a1 + a2 a1 + a2 o likelihood
Stock Returns
N-GARCH 0.982 0.953 0.847 – −7462.4
t-GARCH 0.975 0.953 0.847 7.335 −7299.8
Forex Returns
N-GARCH 0.169 0.997 0.809 – 1274.1
t-GARCH 0.108 0.997 0.821 5.375 1484
Source: Authors’ calculation.
factor is −4.164 and −13.23 for the stock and exchange rate markets,
respectively. Note that the differences between the SV and t-GARCH
model are not high, which suggests that an SV model with t-student
innovations would overcome a t-GARCH model. This, nonetheless,
is the topic of an ongoing investigation.
5. Conclusions
The SV model is an alternative to the conditional heteroscedasticity
models for the estimation of the volatilities of the financial series. This
study is one of the first to utilise the SV model to model Peruvian
financial series, as well as estimate and compare with GARCH models
normal and t-student errors. The analysis in this study corresponds to
Peru’s stock market and exchange rate returns. The importance of this
Alanya and Rodríguez 29
methodology is that the adjustment of the data is better than the GARCH
models using the assumptions of normality in both models.
In the case of the SV model, three Bayesian algorithms have been
employed where we evaluate their respective inefficiencies in the esti-
mation of the model’s parameters. The most efficient and used algorithm
is the integration sampler. With respect to the GARCH models, they
are all estimated by Bayesian inference, with the aim of rendering them
comparable with the SV model for the marginal likelihood test of Chib
(1995). The main input for this test is the logarithm of likelihood, which
is estimated using the auxiliary estimate of Pitt and Shephard (1999),
which also determines the filtered likelihoods of our model.
The estimated parameters in the SV model under the various algo-
rithms are consistent, as they display little inefficiency. The figures of the
correlations of the iterations suggest that there are no problems at the
time of Markov chaining in all estimations.
On making a simple correlation between the stochastic volatilities in
Stock and Forex markets, this was found to be significant, though not
highly so (0.40). We therefore find that the volatilities in exchange rate and
stock market volatilities follow similar patterns over time. That is, when
economic turbulence caused by the economic circumstances occurred, for
example, the Asian crisis and the recent crisis in the USA, considerable
volatility was generated in both markets. In fact, the volatilities of stock
market and exchange rate returns are clearly affected by the international
crises between 1997 and 1999. Both volatilities reflect high volatility due
to the economic problems that occurred in the countries of Asia and in
Russia. Equally, the recent US financial crisis has had severe repercussions
in both financial markets, while in 2010 there were no major scares in the
markets; indeed, a period of stability was established. On the other hand,
internal circumstances have also been a source on uncertainty, such as
the political instability of the 1990s. In particular, the stock market of that
decade shows permanently erratic behaviour, initially because of a market
reaction to the structural reforms (since 1991) and later due to somewhat
complex electoral processes (e.g., 2001 and 2006).
Funding
The author(s) received no financial support for the research, authorship and/or
publication of this article.
30 Journal of Emerging Market Finance 17(3s)
Notes
1. To our knowledge, there is only another ongoing study conducted by Lengua
Lafosse and Rodríguez (2018), who apply an stochastic volatility (SV) model
with leverage and heavy-tailed errors to Latin-American stock returns using
a GH skew student’s t-distribution. Though the algorithm applied is also
Bayesian, the proposal is different as it modifies the structure of the distribu-
tion of the errors in the model.
2. For a more complete review of the list of models in the GARCH family, refer
Andersen and Bollerslev (1998), Bollerslev (2008), Bollerslev, Chou and
Kroner (1992), Engle and Bollerslev (1986), Bollerslev, Engle and Nelson
(1994), De Arce (2004), Degiannakis and Xekalaqki (2004), Engle (2001),
Laurent et al. (2010) and Taylor (1994, 2005).
3. For more details in the definition, refer Taylor (1994).
4. Wiggins (1987), on the other hand, finds that the estimators for the SV model
parameters do not differ from the Black-Scholes model.
5. Other assumptions in the terms of error can also be assumed; refer Kim et al.
(1998). On the other hand, ht can take more complex structures as a general
autoregressive moving averages (ARMA) process.
6. It is also known as a transition equation, if we consider the structure of
a state-space model.
7. The data on the Lima stock market is provided by Bloomberg, while that for
the exchange rate comes from the Central Reserve Bank of Peru (BCRP).
8. This may be due to the frequent interventions in the exchange rate market by
the BCRP.
9. In the results reported, we have used the bias in the generation of random
numbers by default in Oxmetrics 6.0.
10. Though the results are similar when the parameters are estimated by the
Gibbs sampler and mixture sampler.
11. For the auxiliary filter, 62,500 auxiliary components were employed.
12. The estimated GARCH (1,1) model has the following structure: rt | rt - 1 ~N
(0, v 2t ), v 2t = a 0 + a 1 rt - 1 + a 2 v 2t - 1 with v 2t as the conditional variance, a1 as
a parameter related to the past values of the returns and a2 as the persistence
of variance. When a t-student specification rt|rt–1 is considered, it is distrib-
uted with a t (0, v 2t ).
13. Note that the mean life of the shocks to the variance of stock market returns
is between 53 and 46 days, according to the N-GARCH and t-GARCH
model, respectively. In the case of the volatility of exchange rate returns,
the sum of the parameters is slightly greater than one, giving evidence of an
IGARCH process where the mean life of the shocks to volatility is infinite.
14. Note, nonetheless, that unlike the difference in the estimation due to maxi-
mum likelihood (Table 3), now the mean life of shocks to the volatility of
stock market returns is approximately 15 days. In the case of the volatility
of exchange rate returns, the mean life is almost 231 days. This is evidence
of greater persistence in the exchange rate market.
Alanya and Rodríguez 31
References
Andersen, T. G., & Bollerslev, T. (1998). ARCH and GARCH models. In S. Kotz,
C. B. Read, and D. L. Banks (Eds.), Encyclopedia of statistical sciences
(Vol. 2), Chapter 49, 6-16. New York, NY: John Wiley and Sons.
Atkinson, A. C. (1986). Monte-Carlo test of separate families of hypothesis
(Unpublished paper). London, UK: Imperial College.
Baillie, R. T., Bollerslev, T., & Mikkelsen, H. O. (1996). Fractionally inte-
grated generalized autoregressive conditional heteroskedasticity. Journal of
Econometrics, 74(1), 3–30.
Bollerslev, T. (1986). Generalized autoregressive conditional heteroskedasticity.
Journal of Econometrics, 31(3), 307–327.
———. (2008). Glossary to ARCH (GARCH) (CREATES Research Paper 2008-
49). Aarhus: School of Economics and Management, University of Aarhus.
Bollerslev, T., Chou, R., & Kroner, K. (1992). ARCH modeling in finance:
A review of the theory and empirical evidence. Journal of Econometrics,
52(5), 5–59.
Bollerslev, T., Engle, R. F., & Nelson, D. B. (1994). ARCH models. In
R. F. Engle, and D. McFadden (Eds.), Handbook of econometrics (Vol. 4,
pp. 2959 –3038). Amsterdam: North-Holland.
Chib, S. (1995). Marginal likelihood from Gibbs output. Journal of the
American Statistical Association, 90(432), 1313–1321.
De Arce, R. (2004). 20 años de modelos ARCH: una visión en conjunto de las
distintas variantes de la familia,” Estudios de Economía Aplicada, 22(1), 1–27.
Degiannakis, S., & Xekalaki, E. (2004). Autoregressive conditional heteroske-
dasticity (ARCH) models: A review. Quality Technology and Quantitative
Management, 1(2), 271–324.
Engle, R. F. (1982). Autoregressive conditional heteroskedasticity with
estimates of the variance of United Kingdom inflation. Econometrica,
50(4),987–1008.
———. (2001). GARCH 101: The use of ARCH/GARCH models in applied
econometrics. Journal of Economic Perspectives, 15(4), 157–168.
Engle, R., & Bollerslev, T. (1986). Modelling the persistence of conditional
variances. Econometrics Reviews, 5(1), 1–50.
Enisan, A. A., & Olufisayo, A. O. (2009). Stock market development and
economic growth: Evidence from seven sub-Sahara African countries.
Journal of Economics and Business, 61(2), 162–171.
Gilks, W. R., & Wild, P. (1992). Adaptive rejection sampling for Gibbs sampling.
Applied Statistics, 41(2), 337–348.
Glosten, L., Jagannathan, R., & Runkle, D. (1993). On the relation between the
expected value and the volatility of the nominal excess return on stocks.
Journal of Finance, American Finance Association, 48(5), 1779–1801.
Gordon, N. J., Salmond, D. J., & Smith, A. F. M. (1993). A novel approach to
non-linear and non-Gaussian Bayesian state estimation. IEE−Proceedings
F, 140(2), 107–133.
32 Journal of Emerging Market Finance 17(3s)
Grippa, F., & Gondo, R. (2006). Exchange rate interventions, are consistent with
an inflation targeting scheme? Revista Moneda, 133, 5–12.
Harvey, A. C., Ruiz, E., & Shephard, N. (1994). Multivariate stochastic variance
models. Review of Economic Studies, 61(2), 247–264.
Hull, J. C., & White, A. (1987). The pricing of options on assets with stochastic
volatilities. Journal of Finance, 42(2), 281–300.
Humala, A., & Rodríguez, G. (2013). Some stylized facts of returns in the foreign
exchange and stock markets in Peru. Studies in Economics and Finance,
30(2), 139–158.
Jaquier, E., Polson, N., & Rossi, P. (1994). Bayesian analysis of stochastic
volatility models. Journal of Business & Economic Statistics, 12(4), 371–389.
Kim, S., Shephard, N., & Chib, S. (1998). Stochastic volatility: Likelihood
inference and comparison with ARCH models. The Review of Economic
Studies, 65(3), 361–393.
Laurent, S., Boudt, K., Lahaye, J., Peters, J.-P., Rombouts, J., & Violante, F.
(2010). G@RCH 6.1. United Kingdom, London: Timberlake Co.
Lengua Lafosse, P. & Rodríguez, G. (2018). An empirical application of a
stochastic volatility model with GH skew Student's t-distribution to the
volatility of Latin-American stock returns. The Quarterly Review of
Economics and Finance, 69, 155–173.
Levine, R. (1996). Stock markets: A spur to economic growth (Finance and
Development Division). Washington, DC: The World Bank’s Policy
Research Department.
Melino, A., & Turnbull, S. M. (1990). Pricing foreign currency options with
stochastic volatility. Journal of Econometrics, 45(1), 239–265.
Nelson, D. B. (1991). Conditional heteroskedasticity in asset returns: A new
approach. Econometrica, 59(2), 347–370.
Pitt, M., & Shephard, N. (1999). Filtering via simulation: Auxiliary particle
filters. Journal of the American Statistical Association, 94(446), 590–599.
Taylor, S. J. (1994). Modeling stochastic volatility: A review and comparative
study. Mathematical Finance, 4(2), 183–204.
———. (2005). Asset price dynamics, volatility and prediction. Princeton, NJ:
Princeton University Press.
Wiggins, J. B. (1987). Option values under stochastic volatilities. Journal of
Financial Economics, 19(2), 351–372.