ORIGINAL RESEARCH article

Front. Genet., 26 April 2022

Sec. Statistical Genetics and Methodology

Volume 13 - 2022 | https://doi.org/10.3389/fgene.2022.729011

Efficient Approximation of Statistical Significance in Local Trend Analysis of Dependent Time Series

  • 1. Research Center for Mathematics and Interdisciplinary Sciences, Shandong University, Qingdao, China

  • 2. Postdoctoral Programme of Zhongtai Securities Co. Ltd, Jinan, China

Article metrics

View details

1

Citations

1,7k

Views

567

Downloads

Abstract

Biological time series data plays an important role in exploring the dynamic changes of biological systems, while the determinate patterns of association between various biological factors can further deepen the understanding of biological system functions and the interactions between them. At present, local trend analysis (LTA) has been commonly conducted in many biological fields, where the biological time series data can be the sequence at either the level of gene expression or OTU abundance, etc., A local trend score can be obtained by taking the similarity degree of the upward, constant or downward trend of time series data as an indicator of the correlation between different biological factors. However, a major limitation facing local trend analysis is that the permutation test conducted to calculate its statistical significance requires a time-consuming process. Therefore, the problem attracting much attention from bioinformatics scientists is to develop a method of evaluating the statistical significance of local trend scores quickly and effectively. In this paper, a new approach is proposed to evaluate the efficient approximation of statistical significance in the local trend analysis of dependent time series, and the effectiveness of the new method is demonstrated through simulation and real data set analysis.

1 Introduction

Due to the rapid development of molecular biology technology and the significant reduction to sequencing cost, a large amount of biological time series data has been generated in molecular biological research over the past decade. Among the statistical methods used for time series, local similarity analysis (LSA) has been extensively carried out to identify the correlation between various factors, which can be the genes used in gene expression analysis or operational taxonomic units (OTUs) in metagenomics (Qian et al., 2001; Ruan et al., 2006). Extending the LSA method to the study on the local correlation of repeated time series data, Xia et al. (2011) proposed the extended Local Similarity Analysis method(eLSA), where the confidence interval of LSA was constructed by bootstrap. Due to the ease to use allowed by LSA, it has been widely applied in various fields, for example gene expression profiling (Ji and Tan, 2004; Balasubramaniyan et al., 2005), gene regulatory network construction (Madeira et al. (2010)), symbiotic relationship pattern recognition (Beman et al., 2011; Steele et al.. 2011; Goncalves and Madeira, 2014; Cram et al., 2015) etc. Initially, the permutation test is commonly performed to evaluate the statistical significance of LSA, however, both the approximations of statistical significance and permutation test require the assumption that the time series are independent identically distributed (i.i.d.), which can be violated in most time series data. In order to analyze the statistical significance of LSA for stationary time series, an approach based on moving block bootstrap was proposed by Zhang et al. (2018), and it is referred to as Moving Block Bootstrap LSA (MBBLSA). To assess statistical significance of LSA for stationary time series data, Zhang et al. (2019) developed a theoretical method, which is known as Data Driven LSA (DDLSA). According to DDLSA, long run variance estimated by a nonparametric kernel method is applied to adjust the asymptotic theory of LSA, on the basis of which the limit distribution of LS score for stationary time series can be obtained.

As suggested by Ji and Tan (2004), the degree of similarity shown by rising, unchanged, or falling trends in time series data can be taken as another indicator of the correlation among various biological factors, which is known as local trend analysis (LTA). In LTA, local similarity analysis is performed on the transformed trend sequence, and the corresponding similarity measure is referred to as the local trend score. Local trend analysis is an extension of local similarity analysis, which can better preserve the changing trend of time series. In addition, the discretization of the original sequence can transform some non-stationary time series into stationary Markov series, which is a big advantage of local trend analysis. He and Zeng (2006) applied dynamic programming algorithm to calculate this value, and then conducted permutation test to evaluate statistical significance. Currently, LTA has been widely adopted in many biological fields, including gene association network (He et al.. 2012; Goncalves et al., 2012; Seno et al., 2006; Skreti et al.. 2014) and transcription factor network (Wu et al., 2010). Nevertheless, it takes long to evaluate the statistical significance of local trend analysis through permutation test. In this case, bioinformatics scientists have shifted attention to exploring how the statistical significance of local trend scores can be evaluated quickly and effectively. By extending the statistical significance evaluation method of local similarity analysis theory to local trend analysis, Xia et al. (2015) developed the statistical significance evaluation method of local trend analysis. However, this method is effective only when the original sequence is independent and identically distributed. On the basis of this and prior studies, this paper improves the approximation method proposed by Xia et al. to develop a general method of statistical significance evaluation for local trend analysis.

This paper is organized as follows. In Section 2, an introduction is made of the concept of local trend analysis, and a general method of theoretical evaluation regarding the statistical significance of local trend scores is proposed. In Section 3, the effectiveness of the new method is demonstrated by simulation and real data analysis. Finally, the conclusions and future work are indicated in Section 4.

2 Material and Methods

2.1 Introduction to Local Trend Analysis

The first step in local trend analysis is to convert time series data into a change trend sequence. In general, if the change trend is indicated by two states, decline and rise, the change trend state set can be set as Σ = (D, U) or Σ = (−1, 1). If the change trend is indicated by three states decline, unchanged and rise, the change trend state set can be set as Σ = (D, N, U) or Σ = (−1, 0, 1). Undoubtedly, a collection with more changing trend states can be chosen, but it is rare in practice. For a given time series X1, X2, …, Xn, they can be converted into as follows:

when Xi ≠ 0,where t ≥ 0 is a threshold to determine whether there is a trend of change; when Xi = 0,

When t = 0, involves only two states, and the change trend state set is Σ = (−1, 1); when t ≠ 0, involves three states, and the change trend state set is Σ = (−1, 0, 1). It is assumed that two time series Xt and Yt are of the same length, t = 1, 2, …, n. First of all, Xt and Yt are converted into tred series and , i = 1, 2, …, n−1. Given the maximum time delay D > 0, the local similarity analysis is conducted on the transformed trend sequence and to obtain the local trend score LT(D), i.e.,

2.2 Statistical Significance Analysis of Local Trend Score

After the local trend score is obtained, it is necessary to evaluate its statistical significance which can be estimated by means of permutation test. In the permutation test, however, only the p value obtained by fully permutating the original data is regarded as an accurate estimate. Since the full permutation is a lengthy process, part permutation is usually selected on a random basis. The p value obtained at this time is limited to an approximate estimate. Besides, the p value obtained may deviate from the actual p value if the number of replacements is too small.

In case that the asymptotic distribution result of the local trend score is obtainable, then the p value of the local trend score can be obtained through the limit distribution. Probability statisticians have obtained the asymptotic distribution theory of the local similarity scores of Markov chains with a mean value of 0, finite second-order moment, and finite subset in (Feller, 1951; Daudin et al., 2003; Etienne and Vallois, 2004), as shown in the following theorem.

Theorem 1

Assume that Zi, i = 1, 2, …, n, Markov chains with a mean value of 0, finite second-order moment, and finite subset in . Assume , , where ν is the stationary distribution of Zi. Sk is the random walk process of Zi:

Let

Then is the convergence in probability of W*, where W* = max0≤v≤1|Wv|, Wt is a standard Brownian motion.

Xia et al. (2015) used the Theorem 1 to obtain a theoretical evaluation method of statistical significance for local trend analysis. Different from the theoretical evaluation method of statistical significance for local similarity analysis, in local trend analysis, even if the original sequence Xt is independent, the transformed trend sequence is not independent, because and both depend on Xi. In order to facilitate the use of Theorem 1 to calculate the p value of the local trend score, the following assumptions are proposed.

Assumption 1 and are mutually independent first-order Markov chains, and the product of and is also a first-order Markov chain, namelyUnder the Assumption 1, and are irreducible non-periodic Markov chains, so the theoretical method in Feller (1951), Daudin et al. (2003) and Etienne and Vallois (2004) can be directly applied. Xia et al. (2015) suggested a method of theoretically evaluating statistical significance for local trend analysis, with the approximate p value of the local trend score LT(D) obtained as:where sD represents the local trend score of Xt and Yt, and the definition of the tail probability distribution function is expressed as follows:It can be found out that σ2 plays a vital role in the p value approximation Eq. 5 of the local trend score, which is referred to as the variance of Markov chain. From the formula , it can be seen that when the stationary distribution of Markov chain ν and k step transition probability matrix are known, can be obtained. Thus, σ2 can be obtained easily through calculation. Xia et al. presented the display expression of σ2 when the original sequence is independent and identically distributed. In practice, however, the original sequence contradicts the assumption of independent and identical distribution. Zhang et al. (2019) proposed an asymptotic statistical significance for local similarity analysis, with the approximate p value of the local similarity score LS(D) similar to LT(D):where is referred to as the long-run variance, and is expressed as Eq. 6. Because Markov chains can be regarded as time series, they also satisfy Eq. 7. It is obvious that ω for Markov chains is σ. Therefore, we can get the statistical significance for local trend analysis of non-independent identically distributed time series if the σ2 is obtained.Next, the formula of σ2 is proposed for the local trend score of the time series in general using the spectral decomposition theory of the matrix.

2.2.1 Spectral Decomposition Theorem of Matrix

First, the definition and properties of simple matrix are given.

Definition 1Let matrix ACn×n, λi be the differential eigenvalues of A, i = 1, 2, …, s, and the characteristic polynomial of A iswhere . Call mi the algebraic multiplicity of the eigenvalues λi of the matrix A.

Definition 2The solution space of the homogeneous equation set Ax = λix (i = 1, 2, …, s) is called the eigenspace of A corresponding to the eigenvalue λi, and the dimension of is called the geometric multiplicity of the eigenvalue λi of the matrix A.

Definition 3If the algebraic multiplicity of each eigenvalue of the matrix A is equal to its geometric multiplicity, then A is called a simple matrix.

Theorem 2

(Spectral decomposition theorem) Let matrix

ACn×n, λi

be the differential eigenvalues of

A

, m

i

is the algebraic multiplicity of λ

i

, i = 1, 2, …, s, then the sufficient and necessary condition of

A

being a simple matrix is that there is a unique

EiCn×n

, i = 1, 2, …, s, so

  • 1) .

  • 2)

  • 3) .

2.2.2 Two-State Markov Chain Model

Firstly, the two-state Markov chain model is studied. When t = 0, and , i = 1, 2, …, n−1 can be obtained by discretizing the original sequence Xt and Yt. Assume that the distribution of the original sequence is symmetrical, and the mean is 0. Also assume that is a first-order stationary Markov chain. Since the original sequence distribution is symmetrical, the stationary distribution of is , . It is assumed that the transition probability matrices of and are TX and TY respectively, as expressed below.

It can be obtained by calculation, , , (Supplementary Material S1). Under the null hypothesis that Xi and Yi are uncorrelated,

thus, when t = 0, the p value of the local trend score LT(D) is written as

where sD indicates the local trend score of Xi and Yi, σ is obtained using the Eq. 9, and is defined as Eq. 6.

2.2.3 Three-State Markov Chain Model

Secondly, the three-state Markov chain model is studied. When t ≠ 0, and are three-state Markov chains. Similarly, it is assumed that the transition probability matrices of and are TX and TY respectively, as expressed below.

It can be obtained by calculation, , , , (Supplementary Material S2). Under the null hypothesis that Xi and Yi are uncorrelated,

Thus, when t ≠ 0, the p value of the local trend score LT(D) is expressed aswhere sD represents the local trend score of Xi and Yi, σ is obtained using the Eq. 12, and is defined as Eq. 6.

2.2.4 Mixed-State Markov Chain Model

Thirdly, the mixed-state Markov chain model is studied. When t ≠ 0, or is potentially a two-state Markov chain as well. At this time, if and are both two-state Markov chains, σ2 can be estimated using the two-state Markov chain model. The circumstance where only or is a two-state Markov chain is defined as a mixed-state Markov chain model. Without any compromise on generality, it is supposed that is a two-state Markov chain while is a three-state Markov chain.

It can obtained by the previous derivation that

So,

Thus, when t ≠ 0 and the circumstance arises that and are not both three-state Markov chains, the p value of the local trend score LT(D) is expressed aswhere sD represents the local trend score of Xi and Yi, σ is obtained using the Eq. 14, and is defined as Eq. 6.

In summary, the p value approximation formula has been obtained for the local trend score of a two-state, three-state or mixed-state Markov chain. Despite a lack of rigorous mathematical proof for the aforementioned p value approximation method, it is still discovered that the p value obtained using this algorithm is approximately equal to the given significance level by simulation, especially when the sample size is large. Therefore, the results obtained using this method are deemed approximately valid.

2.2.5 Estimation of Markov Chain Transition Probability Matrix

In order to calculate the p value of the local trend score, it is essential to estimate the variance σ2, and the estimation of the variance depends only on the transition probability matrix of the Markov chain. With the original sequence considered as independent and identically distributed, Xia et al. (2015) deduced the value of parameter in transition probability matrix of the two-state (t = 0) and three-state (t = 0.5) Markov chain. When the original series are non-independent and identically distributed, however, the estimate is inaccurate. It is detailed below how to estimate the transition probability matrix of a two-state or three-state Markov chain under normal circumstances.

For a two-state Markov chain, since both T−1,−1 and T1,1 are equal to a, the mean of n−1,−1/n−1,⋅ and n1,1/n1,⋅ is taken as the final estimate of a, that is, , where n−1,⋅ = n−1,−1 + n−1,1, n1,⋅ = n1,−1 + n1,1, nu,v represents the number of (di, di+1) = (u, v), u, v ∈ (−1, 1), i = 1, 2, …, n − 2.

Likewise, for a three-state Markov chain, since both T−1,−1 and T1,1 are equal to b, the mean of n−1,−1/n−1,⋅ and n1,1/n1,⋅ is treated as the final estimate of b, that is, , where n−1,⋅ = n−1,−1 + n−1,0 + n−1,1, n1,⋅ = n1,−1 + n1,0 + n1,1, and nu,v represents the number of (di, di+1) = (u, v), u, v ∈ (−1, 0, 1), i = 1, 2, …, n−2. Similarly, the estimate of c is , and the estimate of d is , where n0,⋅ = n0,−1 + n0,0 + n0,1.

In this article, the method put forward by Xia et al. is denoted as TLTA (Theoretical Local Trend Analysis), while the method proposed in this paper is referred to as STLTA (Stationary Theoretical Local Trend Analysis).

3 Results and Discussion

3.1 Simulation

The effects on the correlation test of time series data are explored by conducting Permutation test, TLTA and STLTA respectively. The following three models are commonly used and familiar to researchers, which can better reflect the correlation between two time series, especially the correlation of two time series can be adjusted by changing the coefficient values. In order to study the difference in type I error rate and significance level among different methods under the original hypothesis, simulation data is generated using the following three models: The effects on the correlation test of time series data are explored by conducting Permutation test, TLTA and STLTA respectively. In order to study the difference in type I error rate and significance level among different methods under the original hypothesis, simulation data is generated using the following three models:

  • 1) AR(1) model:

  • 2) ARMA(1,1) model:

  • 3) ARMA(1,1)-TAR(1) model:

Where 0 < |

ρ1

|, |

ρ2

| < 1,

and

are independent standard normal random variables. All the three models are stationary. For each model, it starts by generating

X1

and

Y1

through the standard normal distribution, before the generation of

Xt

and

Yt

,

i

= 2, …, 100, + ,

n

using the above-mentioned model. Finally, the first 100 samples are discarded, and the remaining

n

samples are treated as real

Xt

and

Yt

. This data generation process is effective in ensuring the stationarity of the time series.

With consideration given to the impact of autoregressive coefficients ρ1, ρ2 and sample size n on the type I error rate for the different methods with the three models, we choose six different combinations of autoregressive coefficients ρ1, ρ2, and respectively take the values of −0.5, −0.5; 0, 0; 0.3, 0.3; 0.3, 0.5; 0.5, 0.5; 0.5, 0.8. For each combination of autoregressive coefficients, the sample size n is set to 20, 40, 60, 80, 100, 200. For simplicity, we select the time delay D = 0. In all simulations, the significance level is set to 0.05.

When t = 0, the original sequence is converted into a two-state Markov chain, and the type I error rates in the AR(1) model of different methods are presented in Table 1. The results show that when ρ1 = −0.5, ρ2 = −0.5, neither Permutation test nor TLTA can control the type I error rate even if the sample size n is small, and their type I error rates are getting bigger as the sample size increases. At this time, the type I error rate of STLTA gradually approaches the significance level 0.05 with the increase of sample size. When ρ1 = 0, ρ2 = 0, Xt and Yt are all independent and identically distributed sequences, the type I error rates of the three methods are very close to the given significance level, and are getting closer as the sample size increases. When ρ1 > 0, ρ2 > 0, the type I error rate of Permutation test decreases with the increase of sample size n, and gradually deviates from the significance level 0.05, while the type I error rate of STLTA is closer to the significance level than that of TLTA. For different autocorrelation coefficients, the type I error rates of Permutation test and TLTA show a declining trend with the increase of ρ, and they are increasingly deviant from the significance level. By contrast, STLTA shows an upward trend with the rise of ρ, and it gradually approaches the significance level, suggesting that STLTA is more suitable for stationary time series data. The performances of these three methods in ARMA(1,1) and ARMA(1,1)-TAR(1) models are shown in the Tables 2, 3 respectively, which are similar to that in the AR(1) model. Under these two models, when ρ1 = −0.5, ρ2 = −0.5, Xt is an independent and identically distributed sequence, so the type I error rates of Permutation test, TLTA and STLTA are close to the significance level. In other cases, the type I error rate of STLTA is closer to the significance level than that of TLTA, while the type I error rate of Permutation test gradually gets away from the significance level as the sample size increases.

TABLE 1

ρ1, ρ2nPermutation testTLTASTLTA
−0.5, −0.5200.14130.04700.0040
400.14440.07640.0128
600.13780.08800.0169
800.14720.10400.0213
1000.13800.10460.0238
2000.14650.10590.0283
0, 0200.06100.01700.0119
400.06130.02700.0209
600.06050.03110.0257
800.05450.03630.0282
1000.05510.03600.0300
2000.05810.03670.0357
0.3, 0.3200.05180.01090.0136
400.04510.01770.0272
600.04750.01790.0285
800.04080.02380.0310
1000.04350.02600.0349
2000.04280.02540.0371
0.3, 0.5200.04590.00920.0135
400.03970.01650.0288
600.03790.01810.0314
800.04070.02330.0334
1000.03590.02370.0354
2000.03450.02210.0424
0.5, 0.5200.03980.00910.0159
400.04140.01590.0284
600.03650.01760.0314
800.03690.01990.0343
1000.03550.02130.0374
2000.03440.02150.0428
0.5, 0.8200.04120.00880.0161
400.03880.01340.0277
600.03380.01450.0342
800.03190.01650.0357
1000.03370.02140.0411
2000.03140.01700.0402

Type I error rate for different methods (the third to fifth columns) in the AR(1) model whent = 0. The first and second columns represent different combinations of autoregressive coefficients and sample sizes. The number of permutation tests is 1,000, the number of repeated simulations is 10,000, and the significance level is α = 0.05.

TABLE 2

ρ1, ρ2nPermutation testTLTASTLTA
−0.5, −0.5200.06170.01660.0112
400.06090.02620.0219
600.05570.03230.0289
800.05620.03330.0267
1000.05380.03540.0311
2000.05720.03380.0329
0, 0200.04440.01090.0210
400.04630.01700.0380
600.04550.02130.0404
800.04220.02700.0464
1000.03970.02420.0444
2000.04280.02600.0539
0.3, 0.3200.04720.01090.0240
400.04970.01680.0426
600.04130.01870.0404
800.03950.02220.0421
1000.04210.02610.0545
2000.04180.02500.0559
0.3, 0.5200.04830.00950.0218
400.04470.01720.0410
600.04380.01980.0427
800.04530.02300.0432
1000.03990.02400.0515
2000.04200.02310.0505
0.5, 0.5200.05030.00970.0220
400.04090.01860.0403
600.04550.01910.0417
800.04450.02350.0460
1000.03990.02710.0509
2000.03420.02570.0591
0.5, 0.8200.04920.00930.0202
400.04300.01580.0337
600.03990.01930.0372
800.04350.02060.0366
1000.03590.02040.0418
2000.03810.01990.0462

Type I error rate for different methods (the third to fifth columns) in the ARMA(1,1) model whent = 0. The first and second columns represent different combinations of autoregressive coefficients and sample sizes. The number of permutation tests is 1,000, the number of repeated simulations is 10,000, and the significance level is α = 0.05.

TABLE 3

ρ1, ρ2nPermutation testTLTASTLTA
−0.5, −0.5200.05630.01270.0119
400.05270.01940.0220
600.04630.02470.0282
800.04810.02790.0285
1000.04810.02640.0291
2000.04370.02770.0341
0, 0200.04370.00830.0147
400.04360.01500.0270
600.03930.01770.0350
800.04120.02120.0377
1000.03540.02100.0382
2000.03620.02210.0435
0.3, 0.3200.03950.00760.0172
400.03820.01260.0332
600.03930.01360.0349
800.03630.01830.0385
1000.03530.01950.0411
2000.02960.01860.0470
0.3, 0.5200.03720.00680.0199
400.03450.01280.0328
600.03560.01370.0336
800.03280.01740.0382
1000.03150.02080.0437
2000.03540.01840.0448
0.5, 0.5200.03430.00670.0170
400.03380.01300.0337
600.03050.01300.0367
800.03190.01960.0400
1000.03090.01600.0399
2000.02510.01630.0463
0.5, 0.8200.04100.00610.0176
400.03160.01270.0322
600.03300.01420.0354
800.03230.01700.0377
1000.02730.01810.0414
2000.02940.01890.0466

Type I error rate for different methods (the third to fifth columns) in the ARMA(1,1)-TAR(1) model whent = 0. The first and second columns represent different combinations of autoregressive coefficients and sample sizes. The number of permutation tests is 1,000, the number of repeated simulations is 10,000, and the significance level is α = 0.05.

When t = 0.5, the original sequence is converted into a three-state Markov chain, and the type I error rates in the AR(1) model of different methods are presented in Table 4. In the AR(1) model, when ρ1 = −0.5, ρ2 = −0.5, the type I error rate of Permutation test still far exceeds the given significance level 0.05 even if the sample size is very small (n = 20), and TLTA cannot control the type I error rate even when the sample size is large. When ρ1 = 0, ρ2 = 0, the type I error rate of Permutation test is closer to the significance level than that of TLTA and STLTA, and the type I error rate of TLTA is far less than the significance level. When ρ1 > 0, ρ2 > 0, similar to the case of t = 0, the type I error rate of Permutation test also decreases with the increase of sample size n, and gradually deviates from the significance level. The type I error rate of TLTA is much smaller than the significance level, while that of STLTA shows an upward trend with the rise of the sample size n and gradually approaches the significance level. For different combinations of autocorrelation coefficients, the type I error rates of permutation test and TLTA decline with the increase of ρ, with a gradual deviation from the significance level, with TLTA in particular. Even though the autocorrelation is extremely weak, the type I error rate is far less than 0.05, even below 0.01. While STLTA performs well in controlling the type I error rate across all autocorrelation coefficient combinations. The performances of these three methods in ARMA(1,1) and ARMA(1,1)-TAR(1) models are shown in the Tables 5, 6. In these two models, the type I error rate of TLTA is always far less than the significance level. When ρ1 = −0.5, ρ2 = −0.5, the type I error rate of Permutation test is closer to the significance level than that of STLTA. But in other cases, the type I error rate of Permutation test is much smaller than the significance level, and it increasingly deviants from the significance level with the increase of sample size and autocorrelation, while the type I error rate of STLTA gradually approaches the significance level as the sample size increases.

TABLE 4

ρ1, ρ2nPermutation testTLTASTLTA
−0.5, −0.5200.22360.02750.0400
400.21550.05200.0134
600.22100.05080.0119
800.21580.06650.0166
1000.21590.06820.0178
2000.22130.07020.0226
0, 0200.07370.00390.0263
400.06280.00590.0188
600.05940.00750.0220
800.05720.00890.0247
1000.05520.00840.0246
2000.05800.01070.0325
0.3, 0.3200.03790.00090.0276
400.02960.00120.0216
600.02960.00110.0277
800.02290.00250.0304
1000.02700.00170.0324
2000.02410.00210.0398
0.3, 0.5200.02430.00060.0229
400.01740.00100.0246
600.01700.00130.0263
800.01840.00180.0337
1000.01840.00120.0334
2000.01520.00110.0355
0.5, 0.5200.01960.00020.0175
400.01490.00050.0221
600.01020.00060.0282
800.01050.00030.0311
1000.01240.00050.0350
2000.01040.00030.0430
0.5, 0.8200.00990.00010.0159
400.00520.00010.0194
600.00360.00020.0286
800.00320.00010.0303
1000.00330.00000.0325
2000.00170.00000.0377

Type I error rate for different methods (the third to fifth columns) in the AR(1) model whent = 0.5. The first and second columns represent different combinations of autoregressive coefficients and sample sizes. The number of permutation tests is 1,000, the number of repeated simulations is 10,000, and the significance level is α = 0.05.

TABLE 5

ρ1, ρ2nPermutation testTLTASTLTA
−0.5, −0.5200.07670.00330.0269
400.06090.00470.0166
600.05950.00700.0212
800.05660.00820.0229
1000.05420.00940.0284
2000.05520.01040.0343
0, 0200.03000.00080.0251
400.02110.00080.0354
600.01870.00130.0429
800.02010.00120.0442
1000.01850.00180.0456
2000.01900.00160.0533
0.3, 0.3200.01370.00010.0239
400.01120.00040.0395
600.01150.00080.0424
800.00830.00040.0453
1000.01000.00030.0489
2000.00730.00070.0579
0.3, 0.5200.01090.00010.0208
400.00730.00020.0306
600.00440.00010.0431
800.00440.00030.0456
1000.00480.00040.0473
2000.00370.00030.0565
0.5, 0.5200.00760.00000.0206
400.00500.00000.0360
600.00520.00020.0406
800.00410.00000.0442
1000.00410.00020.0511
2000.00280.00010.0509
0.5, 0.8200.00200.00000.0148
400.00100.00000.0249
600.00110.00000.0288
800.00080.00000.0333
1000.00070.00000.0333
2000.00030.00000.0470

Type I error rate for different methods (the third to fifth columns) in the ARMA(1,1) model whent = 0.5. The first and second columns represent different combinations of autoregressive coefficients and sample sizes. The number of permutation tests is 1,000, the number of repeated simulations is 10,000, and the significance level is α = 0.05.

TABLE 6

ρ1, ρ2nPermutation testTLTASTLTA
−0.5, −0.5200.05210.00130.0241
400.04210.00340.0201
600.03750.00400.0257
800.03640.00490.0264
1000.03700.00490.0282
2000.03300.00490.0338
0, 0200.02760.00050.0234
400.01890.00090.0245
600.01860.00090.0311
800.01880.00090.0360
1000.01740.00110.0340
2000.01500.00160.0440
0.3, 0.3200.01690.00030.0207
400.01130.00050.0294
600.00970.00070.0301
800.01080.00060.0351
1000.00910.00070.0386
2000.00720.00040.0440
0.3, 0.5200.01400.00000.0209
400.00890.00050.0283
600.00770.00000.0317
800.00720.00060.0340
1000.00790.00030.0375
2000.00670.00040.0439
0.5, 0.5200.00900.00010.0198
400.00470.00010.0271
600.00540.00000.0296
800.00390.00020.0360
1000.00380.00020.0370
2000.00450.00000.0450
0.5, 0.8200.00720.00000.0184
400.00450.00010.0251
600.00240.00010.0328
800.00240.00010.0323
1000.00160.00000.0338
2000.00130.00000.0440

Type I error rate for different methods (the third to fifth columns) in the ARMA(1,1)-TAR(1) model whent = 0.5. The first and second columns represent different combinations of autoregressive coefficients and sample sizes. The number of permutation tests is 1,000, the number of repeated simulations is 10,000, and the significance level is α = 0.05.

According to the analysis of the results, it can be figured out that STLTA is capable to control the type I error rate under different models, while the permutation test and TLTA are ineffective in this respect, which evidences that STLTA is more effective in utilizing the internal properties of time series than the other two methods, and that it can achieve a more accurate approximation of the local trend score p value.

3.2 Empirical Analysis

3.2.1 Data set of Moving Pictures of Human Microbiome

The STLTA method is applied to the Moving Pictures of Human Microbiome (MPHM) data set, for comparison with the results as obtained from DDLSA, TLTA and Permutation test. The data set of MPHM was collected from two healthy subjects, one male (“M3”) and one female (“F4”). Both individuals were sampled daily at three body sites: gut (feces), mouth(tongue), and skin (left and right palms) (Caporaso et al. (2011)). The data set consists of 130, 135 and 133 daily samples from “F4”, and 332, 372 and 357 samples from “M3”. There are 335, 373 and 1,295 operational taxonomic units (OTUs) from feces, tongue and palm (both left and right) sites of “F4” and “M3”, where the taxonomic level is Genus. We selected 59 “core” OTUs that were observed in at least 60% samples from the feces of “M3” and analyzed their relationships. Then, metagenomic analysis is conducted to obtain a time series of OTU abundance. As shown in Figure 1, there are two OTUs chosen to display their time series graphs and autocorrelation graphs. It can be found that the abundance sequence of Parabacteroides shows more significant autocorrelation compared to Bifidobacterium, and that their Box-Ljung test p values are all very close to 0, indicating that their autocorrelation relationship is of much significance.

FIGURE 1

FIGURE 1

Standardized abundance map of Parabacteroides(A) and Bifidobacterium(B) in MPHM “M3” sample fecal data set. The autocorrelation graph (C,D) shows the autocorrelation coefficient of the time series at different delays.

The significance level is set to 0.05 and 0.01, based on which a comparison is drawn in the significant relationship between the OTUs found by permutation test, TLTA, STLTA and DDLSA with the time delay of D = 3. The results are presented in Table 7. When t = 0.5 and the significance level p = 0.05, Q = 0.05, in all 1711 pairs of OTU relationships in the “M3” feces sample, it was found that 589, 165, 739 and 685 pairs of significant relationships by Permutation test, TLTA, STLTA and DDLSA respectively, which were 34.4, 9.6, 43.2 and 40% of the total. STLTA found the most significant relationship, followed by DDLSA, and TLTA the least. This is very similar to the simulation results obtained earlier: when t = 0.5 and the sample time point is 300, if the samples have autocorrelation relationship, the simulation results show that the type I error rates of Permutation test and TLTA are far less than the given significance level, while the type I error rate of STLTA is close to the given significance level. Therefore when there is correlation between autocorrelation samples, it is possible that permutation test and TLTA fail to identify many significant relationships that actually exist, but STLTA can do this. Although the permutation test can also find many significant relationships, most of them are between samples without autocorrelation. In addition, the numbers of significant correlations between OTUs found by STLTA and DDLSA are approximate, shown that STLSA can discover most significant relationships found by DDLSA.

TABLE 7

t = 0.5t = 0
DatasetMPHMPMLMPHMPML
# of factors59755975
p ≤ 0.05 q ≤ 0.05Permutation5898772729
TLTA1657553213
STLTA7395066713
DDLSA685371685371
p ≤ 0.01 q ≤ 0.01Permutation4898454929
TLTA867443611
STLTA621165144
DDLSA549227549227

The numbers of significant correlations between OTUs found by permutation tests, TLTA, STLTA and DDLSA for different data sets and significance levels.

Venn diagram (Figure 2) shows the relationship among the results obtained using different methods in the “M3” stool sample. All of the significant relationships identified by TLTA are discovered by permutation test, and all of the significant relationships identified by permutation test are discovered by STLTA. For more stringent standards p = 0.01 and Q = 0.01 as well as different thresholds, the results are listed in Table 7. By comparing the results of t = 0 and t = 0.5, it can be found out that the permutation test and TLTA can identify more significant relationships at t = 0 then at t = 0.5, especially for TLTA. However, STLTA is just the opposite, with the significant relationship found at t = 0 less then at t = 0.5.

FIGURE 2

FIGURE 2

The Venn diagram of the significant relationships found in permutation test, TLTA and STLTA for the MPHM “M3” fecal data set. Green, blue, and red indicate the number of significant relationships found by permutation test, TLTA, and STLTA, respectively.

3.2.2 Data set of Plymouth Marine Laboratory

The STLTA method is applied to the Plymouth Marine Laboratory (PML) data set, for comparison with the results as obtained from DDLSA, TLTA and Permutation test. The PML data set is one of the longest microbial time series consisting of monthly samples taken over 6 years at a temperate marine coastal site off Plymouth, United Kingdom (Gilbert et al. (2012)). These samples were sequenced using high-resolution 16S rRNA tag NGS sequencing. A total of 155 bacterial OTUs were identified with the taxonomic level of Order. Among them, we chose 62 abundant OTUs that were present in at least 50% of the time points, and 13 environment factors to analyze their association network. We filled the missing values in the environment data using linear interpolation.

Given time delay D = 3 and significance level p = 0.05, Q = 0.05, when t = 0.5 among all the relationships between OTUs and between OTU and environmental factors, permutation test, TLTA, STLTA and DDLSA identified 87, 75, 50 and 371 pairs of significant relationships, as shown in Table 7. Venn diagram (Figure 3) reveals the relationships among the results as obtained using different methods in the PML samples. All of the significant relationships identified by TLTA are discovered by permutation tests. Among all these significant relationships, however, only 11 pairs of relationships are found out by both permutation test and STLTA. This is because there are only 33 (∼44%) factors showing autocorrelation, with more than half of the factors bearing no autocorrelation. Therefore, permutation test can be conducted to find out about the significant relationships between many time series without autocorrelation. However, there are as few as 72 sample time points, since STLTA is conservative to some extent when there are a small number of time points. Among the significant relationships discovered by the permutation test, there are 76 pairs not identified by STLTA. In addition, it is suspected that 39 pairs of significant relationships which are found out by STLTA but fail to be detected by permutation test are between autocorrelation sequences, and these relationships can be discovered by neither permutation test nor TLTA. For more stringent standards p = 0.01 and Q = 0.01 as well as different thresholds, the results are shown in Table 7. It can be found out from the table that when t = 0, the number of significant relationships identified by all methods is smaller than that of relationships discovered when t = 0.5. As the PML data set has only 72 time points, there is a massive information loss in STLTA. Thus, the number of significant correlations between OTUs found by STLTA is far from that by DDLSA.

FIGURE 3

FIGURE 3

The Venn diagram of the significant relationships found in permutation test, TLTA and STLTA for the PML data set. Green, blue, and red indicate the number of significant relationships found by permutation test, TLTA, and STLTA, respectively.

4 Conclusion

In this paper, a theoretical evaluation method was proposed for the statistical significance of local trend scores, STLTA. First of all, the original sequence was discretized into a changing trend sequence and the local trend score was calculated. Then, according to the spectral decomposition theory of the matrix, the variance of the trend sequence was estimated for different state spaces. Finally, in combination with the limit theory of Markov chain local similarity analysis, the limit distribution of the local trend score was obtained, and the approximate p value of the local trend score was calculated. By means of simulation, it was discovered in a given stationary time series model that the type I error rate of STLTA can be made significantly closer to the given significance level, with the type I error rates of permutation test and TLTA increasingly deviant from the given significance level over time, especially when t = 0.5. It is suggested that STLTA method is more effective than permutation test and TLTA method. Then, these three methods were applied to the MPHM and PML data sets. In the relatively long data set MPHM “M3” fecal data set, STLTA detected the most significant relationships, and all of the significant relationships discovered by permutation tests and TLTA were identified by STLTA. In the PML data set with relatively short time points, STLTA discovered some relationships that cannot be found out by permutation tests and TLTA, with these relationships resulting from the autocorrelation of the sequence.

Compared with local similarity analysis, however, local trend analysis converts a continuous original time series into a discrete trend series, which may cause the loss of some information from the original series, thus limiting the practical application of local trend analysis. Nonetheless, the discretization of the original sequence may lead to the transformation of some non-stationary time series into a stationary Markov sequence, which is a major advantage of local trend analysis. In addition, the DDLSA based on non-parametric kernel estimation and the MBBLSA based on moving block bootstrap can be applied to the statistical significance analysis as part of local trend analysis, which provides another direction of further research.

Statements

Data availability statement

Publicly available datasets were analyzed in this study. The "MPHM" datasets used during the current study are publicly available in the supplementary of Gilbert et al. (2012), whose link is https://genomebiology.biomedcentral.com/articles/10.1186/gb-2011-12-5-r50#additional-information. The "PML" data can be found here: https://vamps2.mbl.edu/.

Author contributions

AS gave the main writing of the manuscript. FZ gave the main data analysis program of the manuscript. YL gave some idea and proofreading of the manuscript.

Funding

This work was supported by the National Science Foundation of China (Grant Number: 11971264) and the National Key R&D program of China (Grant Number: 2018YFA0703900).

Conflict of interest

Author AG is employed by Postdoctoral Programme of Zhongtai Securities Co. Ltd, Jinan, China

The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fgene.2022.729011/full#supplementary-material

References

  • 1

    BalasubramaniyanR.HüllermeierE.WeskampN.KämperJ. (2005). Clustering of Gene Expression Data Using a Local Shape-Based Similarity Measure. Bioinformatics21 (7), 10691077. 10.1093/bioinformatics/bti095

  • 2

    BemanJ. M.SteeleJ. A.FuhrmanJ. A. (2011). Co-occurrence Patterns for Abundant marine Archaeal and Bacterial Lineages in the Deep Chlorophyll Maximum of Coastal California. ISME J.5 (7), 10771085. 10.1038/ismej.2010.204

  • 3

    CaporasoJ. G.LauberC. L.CostelloE. K.Berg-LyonsD.GonzalezA.StombaughJ.et al (2011). Moving Pictures of the Human Microbiome. Genome Biol.12 (5), R50. 10.1186/gb-2011-12-5-r50

  • 4

    CramJ. A.XiaL. C.NeedhamD. M.SachdevaR.SunF.FuhrmanJ. A. (2015). Cross-depth Analysis of marine Bacterial Networks Suggests Downward Propagation of Temporal Changes. ISME J.9 (12), 25732586. 10.1038/ismej.2015.76

  • 5

    DaudinJ.-J.EtienneM. P.ValloisP. (2003). Asymptotic Behavior of the Local Score of Independent and Identically Distributed Random Sequences. Stochastic Process. their Appl.107 (1), 128. 10.1016/s0304-4149(03)00061-9

  • 6

    EtienneM. P.ValloisP. (2004). Approximation of the Distribution of the Supremum of a Centered Random Walk. Application to the Local Score. Methodol. Comput. Appl. Probab.6 (3), 255275. 10.1023/b:mcap.0000026559.87023.ec

  • 7

    FellerW. (1951). The Asymptotic Distribution of the Range of Sums of Independent Random Variables. Ann. Math. Statist.22 (3), 427432. 10.1214/aoms/1177729589

  • 8

    GilbertJ. A.SteeleJ. A.CaporasoJ. G.SteinbrückL.ReederJ.TempertonB.et al (2012). Defining Seasonal marine Microbial Community Dynamics. Isme J.6 (2), 298308. 10.1038/ismej.2011.107

  • 9

    GoncalvesJ. P.MadeiraS. C. (2014). LateBiclustering: Efficient Heuristic Algorithm for Time-Lagged Bicluster Identification. Ieee/acm Trans. Comput. Biol. Bioinf.11 (5), 801813. 10.1109/tcbb.2014.2312007

  • 10

    GonçalvesJ. P.AiresR. S.FranciscoA. P.MadeiraS. C. (2012). Regulatory Snapshots: Integrative Mining of Regulatory Modules from Expression Time Series and Regulatory Networks. Plos One7 (5), e35977. 10.1371/journal.pone.0035977

  • 11

    HeF.ChenH.Probst‐KepperM.GeffersR.EifesS.del SolA.et al (2012). PLAU Inferred from a Correlation Network Is Critical for Suppressor Function of Regulatory T Cells. Mol. Syst. Biol.8 (1), 624. 10.1038/msb.2012.56

  • 12

    HeF.ZengA.-P. (2006). In Search of Functional Association from Time-Series Microarray Data Based on the Change Trend and Level of Gene Expression. BMC Bioinformatics7, 69. 10.1186/1471-2105-7-69

  • 13

    JiL.TanK.-L. (2004). Mining Gene Expression Data for Positive and Negative Co-regulated Gene Clusters. Bioinformatics20 (16), 27112718. 10.1093/bioinformatics/bth312

  • 14

    MadeiraS. C.TeixeiraM. C.Sá-CorreiaI.OliveiraA. L. (2010). Identification of Regulatory Modules in Time Series Gene Expression Data Using a Linear Time Biclustering Algorithm. Ieee/acm Trans. Comput. Biol. Bioinform7 (1), 153165. 10.1109/TCBB.2008.34

  • 15

    QianJ.Dolled-FilhartM.LinJ.YuH.GersteinM. (2001). Beyond Synexpression Relationships: Local Clustering of Time-Shifted and Inverted Gene Expression Profiles Identifies New, Biologically Relevant Interactions. J. Mol. Biol.314 (5), 10531066. 10.1006/jmbi.2000.5219

  • 16

    RuanQ.DuttaD.SchwalbachM. S.SteeleJ. A.FuhrmanJ. A.SunF. (2006). Local Similarity Analysis Reveals Unique Associations Among marine Bacterioplankton Species and Environmental Factors. Bioinformatics22 (20), 25322538. 10.1093/bioinformatics/btl417

  • 17

    SenoS.TakenakaY.KaiC.KawaiJ.CarninciP.HayashizakiY.et al (2006). A Method for Similarity Search of Genomic Positional Expression Using CAGE. Plos Genet.2 (4), e44. 10.1371/journal.pgen.0020044

  • 18

    SkretiG.BeiE. S.KalantzakiK.ZervakisM. (2014). Temporal and Spatial Patterns of Gene Profiles during Chondrogenic Differentiation. IEEE J. Biomed. Health Inform.18 (3), 799809. 10.1109/jbhi.2014.2305770

  • 19

    SteeleJ. A.CountwayP. D.XiaL.VigilP. D.BemanJ. M.KimD. Y.et al (2011). Marine Bacterial, Archaeal and Protistan Association Networks Reveal Ecological Linkages. ISME J.5 (9), 14141425. 10.1038/ismej.2011.24

  • 20

    WuL.-C.HuangJ.-L.HorngJ.-T.HuangH.-D. (2010). An Expert System to Identify Co-regulated Gene Groups from Time-Lagged Gene Clusters Using Cell Cycle Expression Data. Expert Syst. Appl.37 (3), 22022213. 10.1016/j.eswa.2009.07.053

  • 21

    XiaL. C.SteeleJ. A.CramJ. A.CardonZ. G.SimmonsS. L.VallinoJ. J.et al (2011). Extended Local Similarity Analysis (eLSA) of Microbial Community and Other Time Series Data with Replicates. BMC Syst. Biol.5 Suppl 2, S15. 10.1186/1752-0509-5-S2-S15

  • 22

    XiaL. C.AiD.CramJ. A.LiangX.FuhrmanJ. A.SunF. (2015). Statistical Significance Approximation in Local Trend Analysis of High-Throughput Time-Series Data Using the Theory of Markov Chains. BMC Bioinformatics16, 301. 10.1186/s12859-015-0732-8

  • 23

    ZhangF.ShanA.LuanY. (2018). A Novel Method to Accurately Calculate Statistical Significance of Local Similarity Analysis for High-Throughput Time Series. Stat. Appl. Genet. Mol. Biol.17 (6), 20180019. 10.1515/sagmb-2018-0019

  • 24

    ZhangF.SunF.LuanY. (2019). Statistical Significance Approximation for Local Similarity Analysis of Dependent Time Series Data. BMC Bioinformatics20, 53. 10.1186/s12859-019-2595-x

Summary

Keywords

local trend analysis, dependent time series, statistical significance, Markov chain model, spectral decomposition theory

Citation

Shan A, Zhang F and Luan Y (2022) Efficient Approximation of Statistical Significance in Local Trend Analysis of Dependent Time Series. Front. Genet. 13:729011. doi: 10.3389/fgene.2022.729011

Received

22 June 2021

Accepted

01 March 2022

Published

26 April 2022

Volume

13 - 2022

Edited by

Jun Chen, Mayo Clinic, United States

Reviewed by

Yinglei Lai, George Washington University, United States

Guosheng Han, Xiangtan University, China

Updates

Copyright

*Correspondence: Yihui Luan,

This article was submitted to Statistical Genetics and Methodology, a section of the journal Frontiers in Genetics

Disclaimer

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics