Chapter 8 - Granger - Causality - Among - Graphs - 4
Chapter 8 - Granger - Causality - Among - Graphs - 4
Chapter 8 - Granger - Causality - Among - Graphs - 4
In time-series analysis one assumption that one can make is that given a time-series
𝑌 a possible estimator for value of 𝑌 at the time-step 𝑡, denoted by 𝑦 𝑡 , is by analysing
the values at previous steps {𝑦 𝑡 −1 , 𝑦 𝑡 −2 , ..., 𝑦 𝑡 −𝑛 } transformed by some function 𝑓 (.),
we can write this problem in the following form:
3
4 Lucas Ribeiro da Silva
𝑓 (.) is linear and 𝑛 is a finite number. Using these bounds we can write the equation
1.1 in the following form:
In the last section (1.1.1) we assume the prediction of one time-series, if multiple
time-series is considered we can rewrite the equation 1.3 considering K time-series:
𝑦 𝑘,𝑡 = 𝛼 𝑘,1 𝑦 𝑘,𝑡 −1 + 𝛼 𝑘,2 𝑦 𝑘,𝑡 −2 + ... + 𝛼 𝑘,𝑛 𝑦 𝑘,𝑛 + 𝑒𝑟𝑟𝑜𝑟 𝑘 , 𝑘 = 1, ..., 𝐾 (1.4)
𝛼11,𝑖 . . . 𝛼1𝐾 ,𝑖
Ai = ... . . . .. (1.6)
.
𝛼𝐾1,𝑖 . . . 𝛼𝐾 𝐾 ,𝑖
𝑇
errort = 𝑒𝑟𝑟𝑜𝑟 1𝑡 . . . 𝑒𝑟𝑟𝑜𝑟 𝐾𝑡 (1.7)
Then the equation 1.4 can be formulated as
In classical Granger causality we use the auto regressive model equation defined
above to determine if a time series temporarily correlates with another, Granger’s
main ideia is that, if there is a causality relation between two time series then the
caused time series should improve its predictions if is considered the information of
the cause time series.
The mathematical formulation is the following:
Let 𝑡 be time steps and 𝑋 and 𝑌 stationary time series, we can estimate 𝑌𝑡 through
a VAR model such as equation 1.4:
1 Granger Causality Among Graphs 5
Given 𝑛 steps of the 𝑌 and 𝑝 steps of the 𝑋 time series we say that X Granger
causes Y if we can fit a VAR model as:
To use the concept of Granger Causality in Graphs we must define a numeric repre-
sentation of a graph at a given time 𝑡, such as betweenness, closeness, eigenvectors,
degree and so on. Ribeiro, et al [1] propose the use of the spectral radius (highest
eigenvalue) of the Graph as a representation that best captures the features of random
graphs models to check for Granger causality and that is the property we are going
to adopt in this chapter as coefficients to the VAR model.
In that way, given a random model graph G with a spectral radius 𝐺 (.) we define
a random variable Θ which we can draw samples 𝜃˜ as parameters for 𝐺 . To analyse
the graph time series of length 𝑇 we calculate the spectral radius 𝐺 ( 𝜃) ˜ for each
time step resulting in a set of parameters 𝜃˜ = {𝜃 1 , 𝜃 2 , 𝜃 3 , ..., 𝜃 𝑇 } and the respective
spectral radius 𝐺˜ ( 𝜃) ˜ = {𝐺 (𝜃 1 ), 𝐺 (𝜃 2 ), 𝐺 (𝜃 3 ), ..., 𝐺 (𝜃 𝑇 )}
For example, let 𝐺 1𝑡 and 𝐺 2𝑡 be a time series of Erdös-Rényi random graphs
with length 𝑇 and parameters 𝜃 1𝑡 and 𝜃 2𝑡 drown from the random variables Θ1
and Θ2 , we calculate the respective spectral radius at each time step 𝐺 [˜1] ( 𝜃˜1 ) =
{𝐺 1 (𝜃 11 ), 𝐺 1 (𝜃 12 ), 𝐺 1 (𝜃 13 ), ..., 𝐺 1 (𝜃 1𝑇 )} and 𝐺˜2 ( 𝜃˜2 ) = {𝐺 2 (𝜃 21 ), 𝐺 2 (𝜃 22 ), 𝐺 2 (𝜃 23 ), ..., 𝐺 2 (𝜃 2𝑇 )}
and then we can calculate the Granger causality between 𝐺 1 and 𝐺 2 based on sam-
ples of 𝐺˜1 ( 𝜃˜1 ) and 𝐺˜2 ( 𝜃˜2 ), applying a statistical test on the graph time series (more
on that on section 1.4)
Here we present the Wald Test and the Bootstrap Procedure to evaluate if given two
time series 𝐴 and 𝐵 one Granger causes another (Reject 𝐻0 ) or not (Accept 𝐻0 ),
through a hypothesis test.
Let 𝛽 be the matrix of autoregressive coefficients of the VAR model and C is a
matrix of contrasts, we can write the hypothesis test as:
(
𝐻0 : C𝛽 = 0
(1.11)
𝐻1 : C𝛽¬0
6 Lucas Ribeiro da Silva
Which means that we reject 𝐻0 if there is Granger causality among time series or
accept 𝐻0 otherwise.
As proposed in [1], to test if a 𝑦 𝑖,𝑡 Granger causes 𝑦 𝑗,𝑡 , we can look into the
coefficients of the VAR and test if it have zero constraints, that is the proposal of the
Wald test.
First we define a c matrix of dimension (1 × 𝑘) with one in 𝑖th position and zero
otherwise and 0 a matrix of zeros of dimension (1 × 𝑘), then we can define our
matrix of contrasts as:
𝑐
0 0
...
0 𝑐 0
...
C = . (1.12)
.. ..
.. . .
0 0 . . . 𝑐
Let be 𝛽ˆ𝑗 be vector of coefficients for the VAR model of 𝑦 𝑗,𝑡 of dimension (𝑘 𝑝×1)
and Σ̂ 𝑗, 𝑗 be the 𝑗th column of the 𝑗th row of the covariance matrix Σ̂, then we can
define the Wald test as:
The bootstrap procedure is used mainly when the time series number of steps is short
and the Wald’s assumption of the number of time steps going to infinite does not
hold true. Then [1] suggests the use of bootstrap with the exactly following steps: