<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Clustering of exchange rates and their dynamics under di erent dependence measures</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Mart Renedo</string-name>
          <email>marti.renedo@estudiant.upc.edu</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Argimiro Arratia</string-name>
          <email>argimiro@cs.upc.edu</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Universitat Politecnica de Catalunya</institution>
          ,
          <addr-line>Barcelona</addr-line>
          ,
          <country country="ES">SPAIN</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper proposes an improvement to the method for clustering exchange rates given by D. J. Fenn et al, in Quantitative Finance, 12 (10) 2012, pp.1493-1520. To deal with the potentially non linear nature of currency time series dependence, we propose two alternative similarity metrics to use instead of the one used in the aforementioned paper based on Pearson correlation. Our proposed similarity metrics are based upon Kendall and distance correlations. We observe how each of the newly adapted clustering methods respond over several years of currency exchange data and nd signi cant di erences in the resulting clusters.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        The foreign exchange market (Forex, or FX) is a decentralized worldwide
market for the trading of currencies. With a global activity of $5:3 trillion per day
in 2013, it is the largest market in the world by a signi cant margin, and
consequently the most liquid. As opposed to other markets, the foreign exchange
market operates 24 hours a day, ve days per week (from Sunday 22:00 GMT
to Friday 22:00 GMT). This is due to the location of market centres in di erent
time zones. It is worth noting, though, that the largest nancial centres (United
Kingdom, United States, Singapore and Japan) account for most of the trade
(71% in April 2013 [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]). The most traded currency in the foreign exchange market
is the US dollar, which was in one side of 87% of trades in April 2013, followed
by the euro (33% in April 2013, but having lost share compared to the previous
years) and Japanese yen (23% share). Currencies from emerging economies, like
the Mexican peso or the Chinese yuan have signi cantly increased their activity.
      </p>
      <p>
        In this paper we summarise our study and implementation of the clustering
algorithm proposed in [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] together with two variants which show potential for
improvement on the accuracy of clustering exchange rates series. The clustering
method consists of applying generalised modularity minimisation techniques to
a weighted similarity graph obtained from the Pearson correlation between the
time series of returns of the exchange rates. However, this method will fail to
detect similarities between exchange rate returns that are not linearly correlated,
which is more often than not the case for nancial time series. We apply the
clustering algorithm to similarity graphs built upon the Kendall ranks and the
distance correlations, which do detect non linear dependence, and analyse the
di erences in the results.
      </p>
    </sec>
    <sec id="sec-2">
      <title>The Forex network</title>
      <p>Given the price time series of a currency exchange rate, we consider its log
returns series to analyse its behaviour.</p>
      <p>De nition 1. The log return (or continuously compounded return) rt of an
asset of price Pt over a time step [t 1; t] is de ned as:
rt = ln</p>
      <p>Pt
Pt 1</p>
      <p>= ln Pt ln Pt 1</p>
      <p>Once all time series of returns have been obtained, for each pair of
currencies a measure of similarity between them is calculated. The Forex network
will be built with every exchange rate return series as a node, and edges
between exchange-nodes weighted accordingly to their similarity. This results in a
weighted undirected complete graph.
2.1</p>
      <sec id="sec-2-1">
        <title>Choice of Currencies</title>
        <p>
          The currencies included in our study will be the 13 of the most traded as of
April 2013 [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ], and for which data is available from the U.S. Federal Reserve
Economic Data. These are: US dollar (USD), euro (EUR), yen (JPY), pound
sterling (GBP), Australian dollar (AUD), Swiss franc (CHF), Canadian dollar
(CAD), Mexican peso (MXN), Chinese yuan (CNY), New Zealand dollar (NZD),
Swedish krona (SEK), Hong Kong dollar (HKD) and Singapore dollar (SGD).
        </p>
        <p>
          Thus, our Forex network consists of n = 78 nodes, each node representing a
pairwise exchange rate taken from our selected set of currencies. While it would
be possible to just use one base currency and assign one node to every other
currency corresponding to its exchange rate over the base, this could overlook
interactions between some of the currencies. Moreover, the resulting network
would strongly depend on the choice of base currency. Our construction (which
follows [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]) prevents those issues and introduces all the interactions between
every pair of the selected currencies into the analysis.
        </p>
        <p>
          However, since it is di cult to nd data for the exchange rate of every pair
of currencies, we downloaded all exchange rates with the US dollar, and the
other exchange rates are obtained by converting through the US dollar as an
auxiliary step. That is, to obtain the exchange rate between currencies XXX
and Y Y Y where neither of them are U SD, we de ne XXX=Y Y Y = XY XYYX==UUSSDD .
This procedure is also implemented in [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. While it is possible to obtain data
for the exchange rates of most currency pairs, the fact that markets around the
world have di erent opening hours and holidays would mean that the times at
which data was taken would most likely present mismatches between all pairs.
Taking only data from the US Federal Reserve limits the study to the New York
opening hours but eliminates any potential inconsistencies and makes calculating
correlations between pairs more accurate.
2.2
        </p>
      </sec>
      <sec id="sec-2-2">
        <title>Similarity Metrics</title>
        <p>
          To be able to form clusters of similar exchange rates, the edges of the network
will have weights assigned according to a similarity measure. In this context,
similarity is a metric built from a statistic measure of dependence, and which
veri es the properties described in [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. We analyse three measures of dependence
from which we can construct a similarity metric.
        </p>
        <p>
          Pearson correlation. The approach used in [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] is based on the Pearson
correlation (ri; rj ) = Cov(ri; rj )=pVar(ri)Var(rj ) of returns of exchange rates ri
and rj over the given time interval. Then, the weighted similarity matrix among
the exchange rate returns A is given by
        </p>
        <p>
          1
Aij = 2
( (ri; rj ) + 1)
ij
which scales the Pearson correlation from [ 1; 1] to [0; 1], while the Kronecker
delta ij removes self-edges. In the graph with adjacency matrix A exchange
rates with positively linearly correlated returns will be connected by edges of
weight close to 1, and weight near 0 if the correlation is negative. Edges
connecting non correlated exchanges will have weights closer to the center of [0; 1].
Kendall rank correlation. A correlation measure alternative to Pearson's is
the Kendall correlation (or rank correlation) [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ], which measures concordance
of the variables instead of linear relations between them:
De nition 2. Given two random variables X and Y, their Kendall correlation
coe cient is (X; Y ) = pc pd; where for any two independent pairs of values
(Xi; Yi), (Xj ; Yj ), pc = P ((Xj Xi)(Yj Yi) &gt; 0) and pd = P ((Xj Xi)(Yj
Yi) &lt; 0), are the probabilities of these pairs being concordant and discordant
respectively.
        </p>
        <p>De nition 3. For two series of returns ri, rj over m time steps, the Kendall
correlation is estimated by
m(ri; rj ) =</p>
        <p>X
1 s&lt;t m
sgn(rti
rsi)
n(n
sgn(rtj
1)
rsj )</p>
        <p>The Kendall correlation coe cient (ri; rj ) takes values in [ 1; 1] (equalling
1 and 1 when ri and rj are completely discordant or concordant, respectively)
so, as before, we can de ne the adjacency matrix A :</p>
        <p>1
Aij = 2
( (ri; rj ) + 1)
ij</p>
        <p>For both the networks de ned by Aij and Aij and given two of their exchange
rates XXX=Y Y Y and ZZZ=T T T , the following equality holds
so if XXX=Y Y Y is similar to ZZZ=T T T (their mutually adjacent edge has a
high -close to 1- weight), it will be considered dissimilar to its inverse T T T =ZZZ
(their mutually adjacent edge will have a low weight, close to 0). This means
that, since we cannot a priori determine whether two exchange rates will be
correlated directly or with one of them inverted, we have to include all inverses
in the network.</p>
        <p>
          Distance correlation. Another possible choice is the distance correlation R,
introduced in [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ], and which presents several advantages. For all X,Y R satis es
0 R(X; Y ) 1, being only equal to 0 when X and Y are independent (this is
not satis ed by most correlation measures, like Pearson's, for which a correlation
of 0 doesn't necessarily imply independence). The distance correlation can detect
both linear and nonlinear correlations, which is relevant for this study because
while many exchange rates tend to in uence each other's prices, this relation
doesn't necessarily have to be linear.
        </p>
        <p>k;l=1
De nition 4. The empirical distance covariance between two samples X,Y is
de ned by Vn2(X; Y ) = n12 Xn BklCkl:, where
bkl = jXk</p>
        <p>Xlj;</p>
        <p>n
bk = 21 X bkl;
l=1</p>
        <p>n
b l = n1 X bkl;
k=1
b =
n12 Xn bkl;
k;l=1
and Bkl = bkl
Ckl = ckl ck
bk b l + b . Analogously de ne ckl = jYk
c l + c for Y .</p>
        <p>Ylj, ck , c l, c and
Vn2(X) is de ned by</p>
        <p>V2(X) = V2(X; X) =
R2n(X; Y ) =</p>
        <p>0;
(
pVVn2n2((XX);VYn2)(Y ) ;
n12 Xn Bk2l:</p>
        <p>k;l=1
Vn2(X)Vn2(Y ) &gt; 0
Vn2(X)Vn2(Y ) = 0
De nition 5. The empirical distance correlation Rn(X; Y ), between two
samples X and Y , is the square root of
Remark 1. It should be observed that the distance correlation is not a distance
in the metric sense. It is by de nition a correlation among all distances of the
samples, and one can easily see that R(X; X) = 1, violating the identity of
indiscernibles of a distance. The distance correlation is in fact a similarity metric.</p>
        <p>Using R for studying currency exchange rates the following property is
satis ed: Given XXX=Y Y Y , ZZZ=T T T exchange rates,</p>
        <p>R</p>
        <p>XXX
Y Y Y
;</p>
        <p>ZZZ
T T T
= R</p>
        <p>XXX
Y Y Y
;</p>
        <p>
          T T T
ZZZ
:
This implies that there is no need to include the inverses of the exchange rates
(as in [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ], where it is needed or else some correlations could be overlooked), since
the correlations detected will be the same for XXX=Y Y Y and Y Y Y =XXX.
        </p>
        <p>Since R already has the properties of a similarity metric, the exchange rate
network is simply built from the matrix of distance correlations, AR, removing
self edges; that is, for each pair of exchange rate returns ri, rj ,</p>
        <p>AiRj = R(ri; rj )
ij
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Community detection</title>
      <p>
        To partition the graph into communities we implemented Potts method. This
partition method consists on minimising an objective function, the Potts
Hamiltonian, which evaluates the strength of a partition of the graph. (Considering a
strong partition as one that has strong links -heavy weighted- inside the
communities and weak links between communities.) This can be seen as a generalisation
of the modularity function [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
      <p>De nition 6. (i) The modularity of the partition P of a weighted undirected
graph with adjacency matrix A is given by</p>
      <p>Q(P) =
1
2m</p>
      <p>X[Aij
ij</p>
      <p>Pij ] (ci; cj )
where ci is the community of the node i in the partition P (so (ci; cj ) is 1 when
i and j are in the same community and 0 otherwise), Pij is the expected weight
of the edge ij in a null model and m is the sum of the weights of all edges in the
graph.
(ii) The Hamiltonian of the Potts system of the partition P of a weighted
undirected graph with adjacency matrix A is given by</p>
      <p>H(P) =</p>
      <p>X[Aij
ij</p>
      <p>Pij ] (ci; cj )
where</p>
      <p>is a parameter.</p>
      <p>Note that when = 1, Q(P) = 21m H(P), so in this case the problem
of minimising the Potts Hamiltonian is equivalent to the maximisation of the
modularity. This means the Potts method is a generalisation of the modularity
maximisation method. The advantage of this generalisation is that by varying
the value of the partition that minimises the Hamiltonian will contain
bigger or smaller communities (corresponding with lower and higher values of
respectively).
3.1</p>
      <sec id="sec-3-1">
        <title>Selecting the null model P</title>
        <p>
          The modularity and Potts Hamiltonian functions depend on null models to
estimate the expected edge weight, and then form communities where the actual
weight is signi cantly larger. In the context of community identi cation in
networks, a popular choice of null model is the Newman-Girvan model [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ]. For the
networks Aij and Aij , the Newman-Girvan null model results in
Pij =
(Pl Ail)(Pl Ajl)
        </p>
        <p>Pi;j Aij
=
n</p>
        <p>2
2n
a constant value for all edges. This happens because, for a given node, the two
edges connecting it to any other exchange rate and its inverse will have sum 1.
Then, the weight of a node (i.e., the sum of the weights of its incident edges)
will depend only on the size of the network and not on the correlations between
exchange rates at a given time step. However, this property is generally not
satis ed by the Newman-Girvan null model of the network AiRj . For simplicity,
we can use the average edge weight as a uniform null model:</p>
        <p>P R = Pi;j Aij</p>
        <p>n(n 1)
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Selecting the value of</title>
        <p>To select an appropriate value of for the study, we use a sample network built
from daily data of January 2010 at a single time step for each of the similarity
metrics. The minimisation algorithm is applied for values of ranging from 0:4
(all nodes are in a single community) to 2:2 (each node forms its own community)
in 0:01 steps. The total number of communities for each value of , with respect
to each of the three dependence measures considered, are shown in Figure 1.</p>
        <p>
          We can expect to obtain more robust communities by selecting a value of
gamma inside an interval where the number of communities stabilizes (refered
to as plateaus in [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]). Excluding the trivial cases at the extremes of the plot with
just one community containing all nodes and every node in a single community,
the widest non trivial plateaus are the intervals (1:48; 1:51), (1:27; 1:33) and
(1:44; 1:52) for the Pearson, Kendall and distance correlations respectively. We
then select values of gamma = 1:495, = 1:3 and R = 1:48.
3.3
        </p>
      </sec>
      <sec id="sec-3-3">
        <title>Potts Hamiltonian minimisation algorithm</title>
        <p>
          The algorithm used to minimise the Potts Hamiltonian is an adapted version
of the modularity maximisation algorithm in [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. For a given node, we want to
see if moving it to another community would give an overall decrease in the
Hamiltonian. The change in the Hamiltonian caused by moving the node i to a
community C is given by the expression:
        </p>
        <p>H =</p>
        <p>2
which adds the contribution of the new edges ij and subtracts the contribution
of the old edges ik.</p>
        <p>We begin with each node of the network in a separate community and then we
start the following iterative procedure: for each node i, we compare the variation
of the Hamiltonian (Eq. (1)) caused by moving it to each community in the
graph, and then move it to the one with the smallest negative value. If all
computed values are positive, then the node remains in its community. When all
nodes have been checked, the algorithm starts again at the rst node, and stops
when one iteration is completed without any nodes switching communities.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Results</title>
      <p>In this section we brie y report results from the application of the clustering
method, with each of the three proposed similarity metrics. First a comparison
of the variance of size of clusters through time, and then their performance
through a past nancial crisis.
4.1</p>
      <sec id="sec-4-1">
        <title>Comparison of similarity measures</title>
        <p>After choosing appropriate values of (see section 3), the algorithm has been
applied to each of the networks obtained with daily data from the period
20092015 at monthly time steps (that is, for each month a network is built using daily
returns of the currency exchanges). One variable that presents signi cant changes
between the networks is the number of nodes within communities. While in the
distance correlation network the resulting communities have similar sizes among
them, those of the Pearson and Kendall correlation present bigger di erences.
This can be easily seen by calculating the variances of the number of elements
in communities for each of the three networks at every time step (Figure 2).</p>
      </sec>
      <sec id="sec-4-2">
        <title>Exploring short-term community dynamics</title>
        <p>
          We brie y report results from the application of the clustering method, with
each of the three proposed similarity metrics, to one of the events studied in
[
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]: the 2005{2008 credit and liquidity crisis, leading to a major reorganization
of communities in the FX network throughout 2007, due to its impact on the
carry trade. The carry trade consists of selling low interest rate currencies (aka
\funding currencies"), such as JPY and CHF, and investing in high interest
rate currencies (or \investment currencies"), such as AUD and NZD. A pro t
is made when the interest rate di erentials between funding and investment
currencies are not o set by a proportional depreciation of investment currencies.
When there is a decrease in available credit, traders \unwind" their carry-trade
positions, which consist in selling their holdings in investment currencies and
buying funding currencies (cf. [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]).
        </p>
        <p>
          We pay special attention to the evolution of communities in the FX network
from the 2007/07/15 - 2007/08/15 to the 2007/08/15 - 2007/09/15 monthly
periods. Analogously to the results of [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ], in the network built from the Pearson
linear correlation, we found a big cluster of relevant carry trade currencies (JPY,
AUD, NZD) which at the second time step incorporates more exchanges with
these currencies at one side. In the Kendall correlation networks we observe a
similar behavior; a big carry trade community that gains nodes at the second
time step. In the case of the distance correlation networks, most of the carry
trade currency exchanges are split into two communities, one dominated by
Australian dollar exchanges and the other, smaller in size, by the Japanese yen.
At the second time step, the Australian dollar community looses nodes and ends
up with only AUD exchange rates, while the Japanese yen community grows
and attracts some of the nodes lost by the AUD community. We believe this
last one is a more accurate picture of the unwinding of carry trade positions
occurred in the mid of 2007. Figure 3 in the Appendix show the evolution of
Forex communities applying the distance correlation as similarity metric.
        </p>
        <p>
          For a more detailed account of the dynamics of the FX network, and pretty
full coloured plots of the communities evolution, the reader is referred to the
extended report [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ].
5
        </p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Centrality measures</title>
      <p>In this section, we try to determine the role played by individual nodes in the
network using centrality measures.</p>
      <p>
        The concept of betweenness is based on a distance between nodes and
calculating shortest paths between nodes (where the length of a path is the sum of the
node distances along it). In our network, edge weights Aij represent similarity
between nodes, so the distance dij can be taken as [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]:
dij =
0
1=Aij
if i = j
otherwise
We de ne Gst as the number of shortest paths from node s to node t, and gsit
as the number of shortest paths from s to t passing through i.
      </p>
      <p>De nition 7. The betweenness centrality bi of a node i is:
bi = X X gsit :</p>
      <p>s6=i t6=s;i Gst
The betweenness centrality measures how often a given node is in the middle of
shortest paths connecting other nodes, and as a consequence its role in
communications between the network. This makes it relevant when studying how nodes
in uence each other and which ones are the most in uential.</p>
      <p>
        Consider Jij = Aij Pij and its spectral decomposition1 J = U DU T ,
where D is the diagonal matrix of eigenvalues i and U the corresponding matrix
of eigenvectors. De ne q as the number of positive eigenvalues of D.
De nition 8 (cf. [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]). The community centrality of node i is given by the
magnitude jxij, where xi is a node vector of dimension q with j-th element given by
[xi]j = p j Uij ; j 2 f1; 2; :::; qg:
Note that the community centrality measures the connection of a node to all its
neighbours regardless of their community membership.
1 We consider the decomposition in which the eigenvalues appear in D in decreasing
order, so if there are q positive eigenvalues, they will have indices 1; :::; q in D
Results for the 2009-2015 period. We calculate the betweenness and the
community centrality for every node, at every monthly time step over the
20092015 period, and for each of the three networks. Results are shown in Table 1.The
nodes are listed in descending order with respect to their mean betweenness and
to their mean community centrality over the period. To compensate for the fact
that the dimension q implicit in the community centrality of a node can vary
between time steps, we normalize jxij by its maximum at each time step. For
the Kendall and Pearson networks, betweenness of a currency exchange is equal
to the betweenness of its inverse (because of the symmetry in the networks,
see section 2.2), so for each pair only one representative has been included.
Exchanges with AUD or NZD at one side occupy the highest positions in the
Kendall and Pearson rankings for both centrality measures, while in the distance
correlation network JPY exchanges dominate.
The proposed similarity metrics, based on Kendall and distance correlations,
applied to the community detection algorithm give some di erences in the
resulting clusters obtained in [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], which could be explained by their ability to
detect non linear dependences between currency exchange rates. In the case of
the distance correlation the di erences are more conspicuous showing clearer
separations (and classi cation) of investment currencies from funding
currencies. On the algorithmic aspect, the clustering method with distance correlation
being able to work with a network of half the size (due to not needing to add the
inverses of exchange rates) greatly reduces the computational cost of running
the algorithm. Indeed, given that the graph is complete, halving the number of
nodes divides the number of edges approximately by four. Since the algorithm
used to minimise the Potts Hamiltonian is roughly linear on the number of edges,
the total computational cost of clustering the distance correlation network is
approximately one fourth compared to that of the Pearson and Kendall correlation
networks. This reduction in computational complexity can be signi cant when
working with large sets of currencies.
      </p>
      <sec id="sec-5-1">
        <title>Software used for the data analysis. All the algorithms in this project</title>
        <p>
          were implemented in R [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ] with the additional packages igraph[
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], Quandl [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ],
mcclust [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] and ggplot2 [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ].
        </p>
        <p>Acknowledgments. A. Arratia acknowledge support of MINECO project
APCOM (TIN2014-57226-P), and Gen. Cat. SGR2014-890 (MACDA).</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Appendix</title>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Arratia</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Computational Finance, An Introductory Course with R</article-title>
          . Atlantis Press (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2. Bank for International Settlements, Monetary and Economic Department:
          <article-title>Triennal Central Bank Survey</article-title>
          .
          <article-title>Foreign exchange turnover in 2013: preliminary global results (</article-title>
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Blondel</surname>
            ,
            <given-names>V.D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Guillaume</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lambiotte</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lefebvre</surname>
          </string-name>
          , E.:
          <article-title>Fast unfolding of communities in large networks</article-title>
          .
          <source>Journal of Statistical Mechanics: Theory and Experiment</source>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Brunnermeier</surname>
            ,
            <given-names>M.K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nagel</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pedersen</surname>
            ,
            <given-names>L.H.</given-names>
          </string-name>
          :
          <article-title>Carry trades and currency crashes</article-title>
          .
          <source>Tech. rep., National Bureau of Economic Research</source>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ma</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          :
          <article-title>On the similarity metric and the distance metric</article-title>
          .
          <source>Theoretical Computer Science</source>
          <volume>410</volume>
          (
          <issue>24</issue>
          ),
          <volume>2365</volume>
          {
          <fpage>2376</fpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Csardi</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nepusz</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>The igraph software package for complex network research</article-title>
          .
          <source>InterJournal Complex Systems</source>
          ,
          <volume>1695</volume>
          (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Fenn</surname>
            ,
            <given-names>D.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Porter</surname>
            ,
            <given-names>M.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mucha</surname>
            ,
            <given-names>P.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McDonald</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Williams</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          , Johnson,
          <string-name>
            <given-names>N.F.</given-names>
            ,
            <surname>Jones</surname>
          </string-name>
          ,
          <string-name>
            <surname>N.S.:</surname>
          </string-name>
          <article-title>Dynamical clustering of exchange rates</article-title>
          .
          <source>Quantitative Finance</source>
          <volume>12</volume>
          (
          <issue>10</issue>
          ),
          <volume>1493</volume>
          {
          <fpage>1520</fpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Fritsch</surname>
          </string-name>
          , A.:
          <article-title>mcclust: Process an MCMC Sample of Clusterings (</article-title>
          <year>2012</year>
          ),
          <source>r package version 1</source>
          .
          <fpage>0</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Newman</surname>
            ,
            <given-names>M.E.J.:</given-names>
          </string-name>
          <article-title>Finding community structure in networks using the eigenvectors of matrices</article-title>
          .
          <source>Phys. Rev. E</source>
          <volume>74</volume>
          (May
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Newman</surname>
            ,
            <given-names>M.E.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Girvan</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Finding and evaluating community structure in networks</article-title>
          .
          <source>Phys. Rev. E</source>
          <volume>69</volume>
          ,
          <issue>026113</issue>
          (Feb
          <year>2004</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11. Quandl:
          <article-title>Federal reserve economic data</article-title>
          , https://www.quandl.com/data/FRED
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <given-names>R</given-names>
            <surname>Core Team: R: A Language</surname>
          </string-name>
          and
          <article-title>Environment for Statistical Computing</article-title>
          . R Foundation for Statistical Computing, Vienna, Austria (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Renedo-Mirambell</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Detecting clusters and their dynamics in the forex market</article-title>
          .
          <source>Bachelor Sc. Thesis</source>
          , Universitat Politecnica de Catalunya (Barcelona Tech)
          <article-title>(</article-title>
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Szekely</surname>
            ,
            <given-names>G.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rizzo</surname>
            ,
            <given-names>M.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bakirov</surname>
            ,
            <given-names>N.K.</given-names>
          </string-name>
          :
          <article-title>Measuring and testing dependency by correlation of distances</article-title>
          .
          <source>The Annals of Statistics</source>
          <volume>35</volume>
          (
          <issue>6</issue>
          ),
          <volume>2769</volume>
          {
          <fpage>2794</fpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Wickham</surname>
          </string-name>
          , H.:
          <article-title>ggplot2: Elegant Graphics for Data Analysis</article-title>
          . Springer-Verlag New York (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>