Next Article in Journal
Comparative Study of Markov Chain Filtering Schemas for Stabilization of Stochastic Systems under Incomplete Information
Next Article in Special Issue
Analysis of the Public Opinion Evolution on the Normative Policies for the Live Streaming E-Commerce Industry Based on Online Comment Mining under COVID-19 Epidemic in China
Previous Article in Journal
Equivalence of Competitive Equilibria, Fuzzy Cores, and Fuzzy Bargaining Sets in Finite Production Economies
Previous Article in Special Issue
Dimensionality Analysis of Entrepreneurial Resilience amid the COVID-19 Pandemic: Comparative Models with Confirmatory Factor Analysis and Structural Equation Modeling
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Bayesian Change Point Analysis of the USD/CLP Series in Chile from 2018 to 2020: Understanding the Impact of Social Protests and the COVID-19 Pandemic

1
Faculty of Engineering and Sciences, Universidad Adolfo Ibáñez, Diagonal Las Torres 2640, Peñalolén, Santiago 7941169, Chile
2
Instituto de Ingeniería Matemática—Centro de Investigación y Modelamiento de Fenómenos Aleatorios (CIMFAV), Facultad de Ingeniería, Universidad de Valparaíso, General Cruz 222, Valparaíso 2362905, Chile
3
Instituto de Estadística, Pontificia Universidad Católica de Valparaíso, Av. Errázuriz 2734, Valparaíso 2340023, Chile
4
Department of Statistics, Oregon State University, Corvallis, OR 97331, USA
*
Authors to whom correspondence should be addressed.
Mathematics 2022, 10(18), 3380; https://doi.org/10.3390/math10183380
Submission received: 15 August 2022 / Revised: 11 September 2022 / Accepted: 14 September 2022 / Published: 17 September 2022

Abstract

:
Exchange rates are determined by factors such as interest rates, political stability, confidence, the current account on balance of payments, government intervention, economic growth and relative inflation rates, among other variables. In October 2019, an increased climate of citizen discontent with current social policies resulted in a series of massive protests that ignited important political changes in Chile. This event along with the global COVID-19 pandemic were two major factors that affected the value of the US dollar and produced sudden changes in the typically stable USD/CLP (Chilean Peso) exchange rate. In this paper, we use a Bayesian approach to detect and locate change points in the currency exchange rate process in order to identify and relate these points with the important dates related to the events described above. The implemented method can successfully detect the onset of the social protests, the beginning of the COVID-19 pandemic in Chile and the economic reactivation in the US and Europe. In addition, we evaluate the performance of the proposed MCMC algorithms using a simulation study implemented in Python and R.
MSC:
62G08; 62P05; 62P25; 65C40; 91B82; 91G80

1. Introduction

In the analysis of time series, change points are typically defined as those time points where we observe sudden changes in the data. These changes are often produced by events that can be internal or external to the nature of the process, and therefore, in order to properly understand the impact and nature of such events, it is important to accurately identify the time points where changes occur in the time series of interest. For this reason, change point detection (CPD) methods have been applied in different fields, including speech recognition [1], climate change [2], medicine [3] and finance [4], to name a few.
Multiple algorithms have been proposed to identify change points, including binary segmentation, mixture models and some Bayesian methods; see [5]. In this work, we apply a semiparametric model that consists of two components: a parametric component that aims to detect “jumps” in the mean of the series and a second component that incorporates a functional additive effect to differentiate abrupt changes from medium-term changes, as described in [6]. These types of functional effects have been used, for example, in comparative genomic hybridization (CGH) data, where genetic and chromosomal alterations are detected through the wave pattern derived from the measurement instrument, and are modeled with smooth functions. A nonparametric approach to model these type of effects can be found in [6,7,8]. A few comprehensive surveys discussing CPD methods have appeared more recently in the literature. See for example [9,10,11,12,13,14,15].
In this work, we use a Bayesian approach to fit the model, which allows us to incorporate prior knowledge and obtain posterior probabilities that facilitate the interpretation of results and decisions related to the presence of change points and functional effects. Since Bayesian estimation is generally difficult, Markov Chain Monte Carlo (MCMC) methods are typically considered. In this context, some methods for the detection of multiple change points without functional effect have been proposed in [16,17,18]. Here, we propose an alternative MCMC algorithm and evaluate its performance using a simulation study implemented in R [19] and Python [20].
Finally, we apply the method to study the USD/CLP exchange rate, for a range of dates that included the social protests that occurred in Chile between October and November 2019 (triggered by social discontent) and the start of the COVID-19 pandemic, with September 2020 as the deadline.
The reminder of the paper is structured as follows: Section 2 describes the Bayesian methodology used to detect change points, the model formulation and estimation procedure. Section 3, shows the results of a simulation study implemented in Python and R, used to compare the performance of the proposed MCMC algorithm. In Section 4, we apply the methodology to identify change points in the USD/CLP series in the context of social protests and COVID-19. We conclude with a short discussion in Section 5.

2. Methodology

For the model formulation, we consider the segmentation approach introduced in [6], in which the different portions of the sequence are represented by its mean value and a functional component that aims to capture the effect that a certain phenomenon can have in the series. Specifically, given a sequence of observations Y 1 , , Y n , we assume
Y t = μ k + f ( x t ) + ϵ t , for t [ τ k , τ k + 1 ] ,
where the τ k and τ k + 1 represent the change points at the end points of the segment and μ k is the mean value within the segment. Here, x t denotes any covariate of interest and f ( x t ) corresponds to the unknown functional component evaluated at x t . The error terms ϵ t are assumed to be white noise, that is, they are independent with ϵ t Normal ( 0 , σ 2 ) for all t.
Note that from this model formulation, we need to estimate the set of parameters θ = ( τ , μ , K , f , σ 2 ) , where τ = ( τ 1 , , τ K , τ K + 1 ) are the change points, μ = ( μ 1 , , μ K ) correspond to the segments’ means and K is the (unknown) number of segments. To estimate f, we follow a nonparametric approach similar to the one described in [8] and assume
f ( x t ) = i = 1 M λ j ϕ j ( x t ) ,
where ϕ j is a function chosen from a set of functions known as dictionary. This set can have as many functions as desired to improve the estimation of f. Therefore, if M denotes the number of functions that makes up the dictionary and λ j determines the coordinates of the n × M matrix of functions F = [ ϕ j ( x t ) ] t , j obtained from the dictionary, we can write
( f ( x 1 ) , , f ( x n ) ) = F λ .
In general, the size M of the dictionary can be large and the matrix representation allows for a flexible framework to estimate functions with both smooth components and local irregularities. In practice, M varies between 200 and 300 functions due to its impact on computation time.
To identify the change points, we follow the variable selection approach proposed in [21]. We define X to be the lower triangular matrix filled with 1’s
X = 1 1 , 1 0 0 1 2 , 1 1 2 , 2 1 3 , 1 1 3 , 2 0 1 n , 1 1 n , 2 1 n , n 1 1 n , n ,
and the n × 1 vector β to contain the values of the difference between the means of the segment k + 1 and the previous segment k, where μ 0 = 0 . This way, we can rewrite Equation (3) in matrix form as
Y = X β + F λ + ϵ .
Note that the product X β gives a vector in which the mean of each segment is repeated for all the coordinates corresponding to the segment, which allows us to determine both the positions of the change points and the mean value of each segment. As a result, the coordinates of the estimated vector β ^ correspond to estimates of the change points μ ^ k . It follows that the vectors β and λ only have nonzero values either when change points occur or the functional component f is nonzero.

Bayesian Estimation

To estimate the parameters in Equation (5), we follow [22] and consider two instrumental variables, γ = ( γ 1 , , γ n ) and r = ( r 1 , , r M ) . These variables are associated with the parameters β and λ , respectively, so that γ i = I ( β i 0 ) for i = 1 , , n and r j = I ( λ j 0 ) for j = 1 , , M , where I ( · ) denotes the indicator function over the corresponding set. This way, we can learn whether the coefficients β i and λ j are present or not. If d γ represents the number of coefficients β i 0 , and d r the number of coefficients λ i 0 , we can consider subarrays X γ , β γ , F r and λ r so that we can establish the correspondence
X β X γ β γ F λ F r λ r ,
reducing the dimensionality of the problem and therefore simplifying the parametrization of the model to
Y = X γ β γ + F r λ r + ϵ .
From here, the set of parameters that need to be estimated is θ = ( β γ , γ , λ r , r , σ 2 ) , which can be accomplished using a Bayesian approach, by drawing values from the posterior distribution π ( θ | y ) associated with Equation (7).
From Bayes’s theorem, we have
π ( θ | y ) = L ( y | θ ) π ( θ ) L ( y | θ ) π ( θ ) d θ ,
where L ( y | θ ) is the likelihood of the sampling model and π ( θ ) is the prior distribution of the parameter θ . More specifically, we seek to determine the posterior joint distribution
π ( β γ , γ , λ r , r , σ 2 | Y ) .
In order to generate observations from the posterior distribution, we use Markov Chain Monte Carlo (MCMC) methods incorporating a Metropolis–Hastings (M-H) algorithm and a Gibbs sampler; see [23].
To complete the specification of the model, we assume:
(i)
γ i iid Bernoulli ( π i ) 0 π i 1 ; i = 2 , , n ; π 1 = 1 .
(ii)
r j iid Bernoulli ( ν j ) 0 ν j 1 ; j = 1 , , M .
(iii)
σ 2 follows a Jeffreys prior distribution.
(iv)
β γ | γ , σ 2 follows a Zellner g-prior distribution.
β γ | γ , σ 2 N d γ ( 0 , c 1 σ 2 ( X γ X γ ) 1 )
(v)
λ r | r , σ 2 follows a Zellner g-prior distribution.
λ r | r , σ 2 N d r ( 0 , c 2 σ 2 ( F r F r ) 1 ) .
Then, the posterior distribution of θ can be written as
π ( θ | Y ) = π ( Y | θ ) π ( β γ | γ , σ 2 ) π ( λ r | r , σ 2 ) π ( γ ) π ( r ) π ( σ 2 ) π ( Y ) ,
where the likelihood is of the form
π ( Y | θ ) 1 2 π σ 2 n 2 exp 1 2 σ 2 ( Y X γ β γ F r λ r ) ( Y X γ β γ F r λ r ) .
Finally, we estimate θ using the following two-stage approach:
Stage 1:
The estimation of γ and r conditionally to ( Y ; β ^ γ , λ ^ r , σ ^ 2 ) using the Metropolis–Hastings algorithm; see [6,24].
Stage 2:
The estimation of β γ , λ r and σ 2 given γ ^ , r ^ and Y using the Gibbs sampler algorithm:
  • β γ | λ r , σ 2 , r ^ , γ ^ , Y N d γ T γ X γ ( Y F r λ r ) σ 2 , T γ
    T γ = σ 2 1 + c 1 c 1 X γ X γ 1
  • λ r | β γ , σ 2 , r ^ , γ ^ , Y N d r W r F r ( Y X γ β γ ) σ 2 , W r
    W r = σ 2 1 + c 2 c 2 F r F r 1
  • σ 2 | β γ , λ r , r ^ , γ ^ , Y I G a , b 2
    a = n 2 + d γ 2 + d r 2
    b = ( Y X γ β γ F r λ r ) ( Y X γ β γ F r λ r ) + β γ X γ X γ c 1 β γ + λ r F r F r c 2 λ r .
There are many types of prior distributions that can be considered on the residual variance σ 2 and the vector parameters β γ and λ r . We adopt the popular and convenient g-prior [25] for β γ and λ r . It preserves correlation structure among predictors in its prior covariance and yields closed-form marginal likelihoods, which leads to huge computational savings by avoiding sampling in the parameter space, leading to the preference of these priors over many other conventional prior distributions [26]. For σ 2 , we adopt a Jeffreys prior, which can be viewed as the limit of an inverse-gamma density. When combined with (iv) and (v), the prior (iii) results in an inverse-gamma posterior for σ 2 (see the last distribution of Stage 2) and as such it behaves as a conjugate prior. For information on the use of the g and Jeffreys priors in regression models, see [27,28] and references therein.

3. Simulation Study

We simulated 100 series, each with n = 100 values in the scale of [ 0 , 1 ] , where the functional part of the model was determined according to
f ( t ) = 0.3 × sin 2 π t 20 + 1.5 I 0.1 ( t ) 2 I 0.5 ( t ) + 3 I 0.6 ( t ) ,
that is, a sinusoidal curve with jumps at t = 0.1 , t = 0.5 and t = 0.6 .
The left panel of Figure 1 shows the functional part with the three peaks described above and the right panel depicts randomly simulated mean values for the four segments.
For each series, K = 4 segments were simulated, and each of them took a random value to simulate its mean value μ k of the set {0,1,2,3,4,5}, so that they did not repeat at adjacent intervals. The positions of the change points were randomly selected, where the minimum size in each segment was of five, and the position with respect to the peaks was at a distance of at least three. In each simulation, the value of the standard deviation σ was constant. To evaluate the performance of the model at different noise levels, we considered the values σ = 0.1 , 0.5 , 1.0 , 1.5 .
For the algorithm, we considered a dictionary of over 120 functions, including Haar functions [29] of the form t 2 7 / 2 ϕ 2 7 t n k , k = 0 , , 2 7 1 , where
ϕ ( t ) = 1 , if 0 t 1 0 , otherwise .
and Fourier functions of the form t sin 2 π j t n and t cos 2 π j t n , with j = 1 , , 10 , and polynomial functions of the form t, t 2 and constant.
The hyperparameters c 1 and c 2 were set to 50. In each iteration, it was proposed to change two change points and two in the selection of functions. To start the algorithm, we started with three segments and functions from the dictionary. The threshold for the cutoff probability in the decision to consider or not as a change point was set to 0.5 , as for the selection of the dictionary functions.
To evaluate the performance of the algorithm in the simulated series, the root mean square error RMSE ( μ ) was calculated for the detected change points:
RMSE ( μ ) = 1 n t = 1 n ( μ ( t ) μ ^ ( t ) ) 2 , with μ ( t ) = μ k .
For the functional part, we obtained the RMSE of the distance between the true function and the estimated one:
RMSE ( f ) = 1 n t = 1 n ( f ( t ) f ^ ( t ) ) 2 .
Figure 2 shows a simulated series of the 100 generated for each variance. Simulated change points were included in each image as red lines and fitted curve as segmented lines. Figure A1 and Figure A2 of Appendix A show two additional simulated series for each noise level used ( σ in { 0.1 , 0.5 , 1.0 , 1.5 }) with the adjusted model.
The average RMSE values for the change points and the functions are shown in Figure 3. As expected, we observe how the error increases as the series has greater variability, which occurs in both cases.
To analyze how far our estimates are from the true simulated values for the 100 series, standard deviations were averaged for each level of σ used. Here, it is noteworthy that for σ in { 0.1 , 0.5 } we had σ reasonable average estimates of 0.17 and 0.35 , respectively; however, for σ 1.0 the estimates were too high, with averages of 0.79 and 1.23 , respectively (see Figure 4).

Metropolis–Hastings Performance

The results for the simulations of the 100 series for each variance value were run on a Desktop Macbook Pro with a 2.5 GHz Dual-Core Intel Core i5 processor, 12 GB of 1333 MHz DDR3 main memory, with 256 KB and 3 MB cache in L2 by core and L3, respectively. For each simulation, the execution times for the implementation of the Metropolis–Hastings algorithm were measured.
The execution time (in seconds) for the implementation in Python applied to the simulated series showed a decrease with an average time of 13.8 s vs. 45.6 in R for the simulated series with σ = 0.1 (see the first two boxplots from left to right in Figure 5). In addition, using the Wilcoxon test for differences of means with t R t P y t h o n in independent samples at 95 % confidence, we obtained an interval of [ 31.98 ; 32.80 ] seconds; that is, the execution in R took between 31.98 and 32.80 s longer than in Python. In Figure 5, it can be seen that the times in Python for all levels of simulated noise were less than the times in R, where the smallest difference was reached for the simulated series with σ = 1.5 , obtaining a difference of means for t R t P y t h o n using Wilcoxon’s test at 95 % confidence, where R was between 26.54 and 27.01 s slower than Python. The difference evidenced that when we have a lower dispersion of the series, obtaining higher execution times in both R and Python (although this was more noticeable in R) can be explained because when the sparse matrices have less variance they will have more nonzero values; therefore, matrix multiplication will be more computationally expensive than when there are more zeros in them.

4. Application to the USD/CLP Dataset

The USD/CLP series under study considers the dates included between January 2018 and September 2020 (available in http://www.bcentral.cl, accessed on 23 January 2021) with daily frequency, with a total of n = 655 records. This series is shown in Figure 6, highlighting the important dates that refer to the onset of the social crisis and COVID-19 pandemic events.
For the implementation of the model, we considered a dictionary with M = 248 functions, including Haar functions [29], Fourier functions, second-degree polynomials and B-Splines [30]. The order of the dictionary is detailed in Table 1. In Table 2, we summarize the constants used to analyze the USD/CLP dataset.
The methodology considered first the detection of change points without prior knowledge, expressed with a uniform probability of 0.001 for each point in the series and also using different values of prior probabilities ( π i ) to suggest that 14 October 2019 (the onset of the social protests in Chile) and 3 March 2020 (when the first COVID-19 case was detected in Chile) should be identified as change points.

4.1. USD/CLP without Prior Knowledge

Figure 7 shows results obtained using the same prior probability π ( γ ) = 0.001 for all the points of the series, where π ( r ) = 0.01 for all M functions, and considering a threshold of 0.6 and 0.5 for the posterior probabilities of the selection of the change points and functions of the dictionary.
From Figure 7, we considered five selected change points and 12 functions. The change points were on the following dates:
3 May 2018:
The curve shows an increase in the dollar value that differs from its previous trend. We must mention that during March 2018, the president of the United States Donald Trump announced the imposition of tariffs for USD 50 mil to products of Chinese origin, under the assumption of “unfair trade practices” and “theft of intellectual property”. After this announcement, China informed that tariffs would be applied to 128 products from the United States. Given these facts, we associate this change point with a consequence of the trade war started between China and the United States.
1 August 2019:
This date could be related by the beginning of the economic war between the USA and China since President Trump unveiled the 10% tariff plan on 1 August 2018, blaming China for not following through on promises to buy more American agricultural products.
13 November 2019:
The abrupt rise in the value of the dollar is clearly appreciated on this date. We know that on 18 October 2019 the social protests began in Chile, with the dollar reaching an observed value of 713.23 Chilean pesos, and then on 29 November 2019 reaching a historical maximum of 828.25 pesos. One day before the date of this change point was detected, Tuesday 12 November 2019, there was a national strike in Chile, being the day with the greatest violence registered. This day of great violence motivated the agreement for social peace and the new constitution on 15 November 2019, which is focused on the creation of a new Magna Carta, to replace the one of 1980. Consequently, this change point can be explained given the particular situation that occurred in Chile in this period.
2 June 2020:
At this point on the curve, we see a sharp fall in the dollar both in Chile and globally. In the Chilean case, it is mainly due to the fact that during June 2020 copper presented a significant rise due to the reopening of the US and European economies.
18 June 2020:
This date could be associated with the reopening of the economy in the US and Europe after going through the peak period of the COVID-19 pandemic.

4.2. Changing Prior Probabilities

To explore the prior effect, we considered two dates: 18 October 2019, the start of the protest in Chile, and 11 March 2020, when the World Health Organization (WHO) declared the COVID-19 pandemic. For each of these dates, the prior π ( γ ) = 0.3 was set. Figure 8 shows the results.
The change points detected corresponded to the following dates:
2 May 2018
We detected again this point, which is associated with the trade war between the USA and China.
12 November 2019
As in the case without prior knowledge, the model detected this change point, which was expected both visually and by known facts, as it corresponds to the social crisis. This time, the date on which the change point was detected is closer to the date set with prior knowledge than to the date set without prior knowledge.
3 June 2020
At this point, it can be seen how the model fits well to the fall in the value of the dollar, which did not occur without applying prior knowledge. This date coincides with the reopening of the economy in the US and Europe after going through the peak period of the COVID-19 pandemic.
18 June 2020
This date could be associated with the reopening of the economy in the US and Europe after going through the peak period of the COVID-19 pandemic.
8 July 2020
This date could be associated with the reopening of the economy in the US and Europe after going through the peak period of the COVID-19 pandemic.
It is important to note that two dates selected with higher probabilities, with and without prior knowledge, are related to the social crisis in Chile, 12 October 2019, and the COVID-19 pandemic, 3 June 2020.
The model which considers prior knowledge yielded an estimated variance σ 2 = 0.0331 less than that without prior knowledge on the proposed dates.
For the functional part, the model selected one Fourier function, c o s 2 π × 13 t 655 , one Haar function, the function t t , and finally four B-splines of second order and three B-splines of third order. These results are consistent in that models with splines are widely used to approximate these types of functions. In [31], the authors showed a model with splines to adjust the interest rate structure.

5. Discussion

The main concern of the change point problem is the complexity of building a flexible and effective model to estimate the unknown number and locations of break points in time series. In this paper, we have proposed to apply a flexible methodology in order to detect change points in the USD/CLP series in the context of social crisis and COVID-19.
For the dollar/Chilean peso time series, the model managed to detect the change points corresponding to the social protests and the start of the COVID-19 pandemic in Chile. It also suggested change points for the year 2018, dates that represented a certain beginning of the trade war between the US and China as it entered phase 2 with new tariff measures. The change points in the period of June–July 2020 coincided with the reopening of the economy in the US and Europe, after going through the first peak of COVID-19 infections.
The applied model was well adjusted for time series with small variances 0.5 , which is disclosed in the simulation study. As the variance grew, we had greater errors in the detection of change points, and this was reflected in the absence of the detection of these.
For the model, we used MCMC methods, which require long processing times. By implementing these in the Python programming language, a decrease in the average execution time of between 31.98 and 32.80 seconds was obtained with respect to R for the Metropolis–Hastings algorithm in simulated series with σ = 0.1 . We recommend using Python for iterative models over R.
The advantage of the Bayesian model used is that it allows us to introduce prior knowledge, which helped direct the model in the appropriate case. Another advantage is that we have the flexibility to decide the cutoff threshold to be applied, both to define what a change point will be or which dictionary function will be present.
The results suggest that the events that affected the large economies of the US and Europe affected the dollar/Chilean peso exchange rate, as the trade war between the US and China and the start of the COVID-19 pandemic led to the devaluation of the Chilean peso with respect to the dollar. When economic reactivation occurred in the US and Europe, there was also a drop in the dollar value. On the other hand, the social outburst in Chile seems to have caused a sharp rise in the value of the dollar, due to higher country risk.

Author Contributions

Conceptualization, R.d.l.C., C.M. and C.F.; methodology, C.M. and N.N.; software, N.N.; validation, R.d.l.C., C.M., N.N. and C.F.; formal analysis, C.M. and N.N.; investigation, C.M. and N.N.; resources, R.d.l.C. and C.M.; data curation, N.N.; writing—original draft preparation, R.d.l.C., C.M. and N.N.; writing—review and editing, R.d.l.C., C.M., N.N. and C.F.; visualization, C.M. and N.N.; supervision, R.d.l.C., C.M., N.N. and C.F.; project administration, C.M.; funding acquisition, R.d.l.C. and C.M. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Agencia Nacional de Investigación y Desarrollo, Chile, ANID/FONDECYT/1181662 and ANID/FONDECYT/1190801.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The source code developed for this research work is hosted in the GitHub repository at: https://github.com/nnarria/breakpointbayesian (accessed on 15 August 2022), where the methodology is applied to a simulated series. The USD/CLP series under study is available at http://www.bcentral.cl (accessed on 23 January 2022).

Acknowledgments

The authors would like to thank the reviewers for their valuable comments.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Settings for Some Simulated Series

Figure A1 and Figure A2 show two simulated series for each noise level used ( σ in { 0.1 , 0.5 , 1.0 , 1.5 }) with the adjusted model.
Figure A1. In (a,b), simulated series and adjusted model for standard deviation σ = 0.1 .
Figure A1. In (a,b), simulated series and adjusted model for standard deviation σ = 0.1 .
Mathematics 10 03380 g0a1
Figure A2. In (af), simulated series with σ in { 0.5 , 1.0 , 1.5 }.
Figure A2. In (af), simulated series with σ in { 0.5 , 1.0 , 1.5 }.
Mathematics 10 03380 g0a2

References

  1. Chowdhury, M.F.; Selouani, S.A.; O’Shaughnessy, D. Bayesian on-line spectral change point detection: A soft computing approach for on-line asr. Int. J. Speech Technol. 2012, 15, 5–23. [Google Scholar] [CrossRef]
  2. Ducré-Robitaille, J.-F.; Vincent, L.A.; Boulet, G. Comparison of techniques for detection of discontinuities in temperature series. Int. J. Climatol. 2003, 23, 1087–1101. [Google Scholar] [CrossRef]
  3. Bosc, M.; Heitz, F.; Armspach, J.-P.; Namer, I.; Gounot, D.; Rumbach, L. Automatic change detection in multimodal serial mri: Application to multiple sclerosis lesion evolution. NeuroImage 2003, 20, 643–656. [Google Scholar] [CrossRef]
  4. Thies, S.; Molnár, P. Bayesian change point analysis of bitcoin returns. Financ. Res. Lett. 2018, 27, 223–227. [Google Scholar] [CrossRef]
  5. van den Burg, G.J.; Williams, C.K. An evaluation of change point detection algorithms. arXiv 2020, arXiv:2003.06222. [Google Scholar]
  6. Baragatti, M.; Bertin, K.; Lebarbier, E.; Meza, C. A Bayesian approach for the segmentation of series with a functional effect. Stat. Model. 2019, 19, 194–220. [Google Scholar] [CrossRef]
  7. Picard, F.; Lebarbier, E.; Hoebeke, M.; Rigaill, G.; Thiam, B.; Robin, S. Joint segmentation, calling, and normalization of multiple CGH profiles. Biostatistics 2011, 12, 413–428. [Google Scholar] [CrossRef]
  8. Bertin, K.; Collilieux, X.; Lebarbier, E.; Meza, C. Semi-parametric segmentation of multiple series using a dp-lasso strategy. J. Stat. Comput. Simul. 2017, 87, 1255–1268. [Google Scholar] [CrossRef]
  9. Sharma, S.; Swayne, D.A.; Obimbo, C. Trend analysis and change point techniques: A survey. Energy Ecol. Environ. 2016, 1, 123–130. [Google Scholar] [CrossRef]
  10. Ruggieri, E.; Antonellis, M. An exact approach to bayesian sequential change point detection. Comput. Stat. Data Anal. 2016, 97, 71–86. [Google Scholar] [CrossRef]
  11. Aminikhanghahi, S.; Cook, D.J. A survey of methods for time series change point detection. Knowl. Inf. Syst. 2017, 51, 339–367. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  12. Truong, C.; Oudre, L.; Vayatis, N. Selective review of offline change point detection methods. Signal Process. 2020, 167, 107299. [Google Scholar] [CrossRef]
  13. Jiang, F.; Zhao, Z.; Shao, X. Time series analysis of covid-19 infection curve: A change-point perspective. J. Econom. 2020. [Google Scholar] [CrossRef] [PubMed]
  14. Zhang, S.; Xu, Z.; Peng, H. Change point modeling of COVID-19 data in the united states. Stat. Appl. 2021, 18, 307–318. [Google Scholar]
  15. Jegede, S.L.; Szajowski, K.J. Change-point detection in homogeneous segments of COVID-19 daily infection. Axioms 2022, 11, 213. [Google Scholar] [CrossRef]
  16. Lavielle, M.; Lebarbier, E. An application of MCMC methods for the multiple change-points problem. Signal Process. 2001, 81, 39–53. [Google Scholar] [CrossRef]
  17. Boys, R.J.; Henderson, D.A. A bayesian approach to dna sequence segmentation. Biometrics 2004, 60, 573–581. [Google Scholar] [CrossRef]
  18. Erdman, C.; Emerson, J.W. A fast Bayesian change point analysis for the segmentation of microarray data. Bioinformatics 2008, 24, 2143–2148. [Google Scholar] [CrossRef]
  19. R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2020. [Google Scholar]
  20. Rossum, G.V.; Drake, F.L. Python 3 Reference Manual; CreateSpace: Scotts Valley, CA, USA, 2009. [Google Scholar]
  21. Harchaoui, Z.; Lévy-Leduc, C. Multiple change-point estimation with a total variation penalty. J. Am. Stat. Assoc. 2010, 105, 1480–1493. [Google Scholar] [CrossRef]
  22. Edward, G.; McCulloch, R. Variable selection via gibbs sampling. J. Am. Stat. Assoc. 1993, 88, 881–889. [Google Scholar]
  23. Casella, G.; George, E.I. Explaining the gibbs sampler. Am. Stat. 1992, 46, 167–174. [Google Scholar]
  24. Chib, S.; Greenberg, E. Understanding the metropolis-hastings algorithm. Am. Stat. 1995, 49, 327–335. [Google Scholar]
  25. Zellner, A. On assessing prior distributions and bayesian regression analysis with g-prior distributions. Bayesian Inference Decis. Tech. 1986, 6, 233–243. [Google Scholar]
  26. Garcia-Donato, G.; Forte, A.; Steel, M. Methods and tools for bayesian variable selection and model averaging in normal linear regression. Int. Stat. Rev. 2018, 86, 237–258. [Google Scholar]
  27. Ley, E.; Fernández, C.; Steel, M.F.J. Benchmark priors for bayesian model averaging. J. Econom. 2001, 100, 381–427. [Google Scholar]
  28. Christensen, M.G.; Cemgil, A.T.; Nielsen, J.K.; Jensen, S.H. Bayesian model comparison with the g-prior. IEEE Trans. Signal Process. 2014, 62, 225–238. [Google Scholar]
  29. Härdle, W.; Kerkyacharian, G.; Picard, D.; Tsybakov, A. Wavelets; Springer: New York, NY, USA, 1998; pp. 1–16. [Google Scholar]
  30. Eilers, P.H.C.; Marx, B.D. Flexible smoothing with b-splines and penalties. Stat. Sci. 1996, 11, 89–102. [Google Scholar] [CrossRef]
  31. Rodriguez, F.F. Interest rate term structure modeling using free knot splines. J. Bus. 2006, 79, 3083–3099. [Google Scholar] [CrossRef]
Figure 1. Left panel: simulated functional part for the peaks 0.1 , 0.5 and 0.6 . Right panel: example for K = 4 randomly simulated means, considering the constraints of distance of at least three to the peaks and a minimum length of five.
Figure 1. Left panel: simulated functional part for the peaks 0.1 , 0.5 and 0.6 . Right panel: example for K = 4 randomly simulated means, considering the constraints of distance of at least three to the peaks and a minimum length of five.
Mathematics 10 03380 g001
Figure 2. In (ad), one of the 100 series is shown for each σ standard deviation in { 0.1 , 0.5 , 1.0 , 1.5 } including the adjusted curve.
Figure 2. In (ad), one of the 100 series is shown for each σ standard deviation in { 0.1 , 0.5 , 1.0 , 1.5 } including the adjusted curve.
Mathematics 10 03380 g002
Figure 3. RMSE for σ in { 0.1 , 0.5 , 1.0 , 1.5 } . Left panel: RMSE( μ ). Right panel: RMSE for the functions.
Figure 3. RMSE for σ in { 0.1 , 0.5 , 1.0 , 1.5 } . Left panel: RMSE( μ ). Right panel: RMSE for the functions.
Mathematics 10 03380 g003
Figure 4. Average of the estimates σ ^ (“+” symbol) for different levels of standard deviations σ in { 0.1 , 0.5 , 1.0 , 1.5 } used in the simulation of the 100 series. The true value is represented by the “x” symbol.
Figure 4. Average of the estimates σ ^ (“+” symbol) for different levels of standard deviations σ in { 0.1 , 0.5 , 1.0 , 1.5 } used in the simulation of the 100 series. The true value is represented by the “x” symbol.
Mathematics 10 03380 g004
Figure 5. Execution times in seconds (in the y axis), using R (in light gray) and Python (dark gray), for standard deviations σ in { 0.1 , 0.5 , 1.0 , 1.5 } for the 100 simulated series.
Figure 5. Execution times in seconds (in the y axis), using R (in light gray) and Python (dark gray), for standard deviations σ in { 0.1 , 0.5 , 1.0 , 1.5 } for the 100 simulated series.
Mathematics 10 03380 g005
Figure 6. Dollar/Chilean peso series. The start dates of the social outburst and COVID-19 pandemic are indicated in vertical dashed lines.
Figure 6. Dollar/Chilean peso series. The start dates of the social outburst and COVID-19 pandemic are indicated in vertical dashed lines.
Mathematics 10 03380 g006
Figure 7. Top: Posterior probabilities for selection of change points (a) and functions (b) without prior knowledge. Bottom: (c) Estimated expectation and change points.
Figure 7. Top: Posterior probabilities for selection of change points (a) and functions (b) without prior knowledge. Bottom: (c) Estimated expectation and change points.
Mathematics 10 03380 g007
Figure 8. Top: Posterior probabilities for selection of change points (a) and functions (b) with a prior probability of 0.3 for the onset of social protests and the declaration of COVID-19 as world pandemic by the World Health Organization, for the segmentation part. Bottom: (c) Estimated expectation and change points.
Figure 8. Top: Posterior probabilities for selection of change points (a) and functions (b) with a prior probability of 0.3 for the onset of social protests and the declaration of COVID-19 as world pandemic by the World Health Organization, for the segmentation part. Bottom: (c) Estimated expectation and change points.
Mathematics 10 03380 g008
Table 1. Details of the 248-function dictionary applied to the dollar/Chilean peso series.
Table 1. Details of the 248-function dictionary applied to the dollar/Chilean peso series.
IndexFunction
1 C o n s t a n t = 1
2Haar function in t = 1
65Haar function in t = 64
66 s i n 2 π × 1 × t 100
67 c o s 2 π × 1 × t 100
90 s i n 2 π × 13 × t 100
91 c o s 2 π × 13 × t 100
92t
93 t 2
94B-Splines order 1, with 1 node
124B-Splines order 1, with 30 nodes
125B-Splines order 2, with 1 node
154B-Splines order 2, with 31 nodes
155B-Splines order 3, with 1 node
186B-Splines order 3, with 32 nodes
187B-Splines order 4, with 1 node
248B-Splines order 4, with 62 nodes
Table 2. Constants used for model execution.
Table 2. Constants used for model execution.
ConstantsValue
Iteration number160,000
First simulated values (burn-in)40,000
c 1 and c 2 50
Number of initial segments5
Number of initial dictionary functions5
Number of proposed change points in each iteration1
Number of dictionary functions proposed in each iteration1
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

de la Cruz, R.; Meza, C.; Narria, N.; Fuentes, C. A Bayesian Change Point Analysis of the USD/CLP Series in Chile from 2018 to 2020: Understanding the Impact of Social Protests and the COVID-19 Pandemic. Mathematics 2022, 10, 3380. https://doi.org/10.3390/math10183380

AMA Style

de la Cruz R, Meza C, Narria N, Fuentes C. A Bayesian Change Point Analysis of the USD/CLP Series in Chile from 2018 to 2020: Understanding the Impact of Social Protests and the COVID-19 Pandemic. Mathematics. 2022; 10(18):3380. https://doi.org/10.3390/math10183380

Chicago/Turabian Style

de la Cruz, Rolando, Cristian Meza, Nicolás Narria, and Claudio Fuentes. 2022. "A Bayesian Change Point Analysis of the USD/CLP Series in Chile from 2018 to 2020: Understanding the Impact of Social Protests and the COVID-19 Pandemic" Mathematics 10, no. 18: 3380. https://doi.org/10.3390/math10183380

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop