# A New Algorithm to Accelerate Harmonic Analysis of Time Series

Authors: Pedro A. Martínez-Ortiz; José M. Ferrándiz
Journal: ISRN Applied Mathematics
 (2013)

---

## Abstract

The Lomb periodogram has been traditionally a tool that allows us to elucidate if a frequency turns out to be important for explaining the behaviour of a given time series. Many linear and nonlinear reiterative harmonic processes that are used for studying the spectral content of a time series take into account this periodogram in order to avoid including spurious frequencies in their models due to the leakage problem of energy from one frequency to others. However, the estimation of the periodogram requires long computation time that makes the harmonic analysis slower when we deal with certain time series. Here we propose an algorithm that accelerates the extraction of the most remarkable frequencies from the periodogram, avoiding its whole estimation of the harmonic process at each iteration. This algorithm allows the user to perform a specific analysis of a given scalar time series. As a result, we obtain a functional model made of (1) a trend component, (2) a linear combination of Fourier terms, and (3) the so-called mixed secular terms by reducing the computation time of the estimation of the periodogram.


---

## Body

## 1. Introduction

The Lomb periodogram is a mathematical tool that allows us to carry out a spectral analysis of a time series looking for unknown periodicities. It is based on the least-squares technique and was developed by Lomb [1] and Scargle [2] by following different ways. This tool overcomes the main problems of the classic periodogram among which we have to emphasize the fact that the Lomb periodogram can be used for analyzing unequally spaced time series.The Lomb periodogram is a function that depends on the frequency in a continuous manner. Its maximums or peaks point out the harmonics that explain the largest variance of the data. However, it is unpractical to compute the Lomb periodogram for a time series in an infinite set of frequencies. Therefore, we have to confine ourselves to a discrete approximation of it. One of the problems that we have to deal with when we compute the Lomb periodogram is to fix a step size for the frequency domain. If the time series is evenly spaced, it suffices taking a step size that allows us to detect the maximum period of time. However, we have to be more cautious when we cope with oddly spaced time series. In this case, the shorter the step size we choose, the better and safer approximation we get. However, when the step size for the frequency domain is considerably small or the length of the time series is large, the computation time of the Lomb periodogram increases.The discretization of the Lomb periodogram implies other problems such as the creation of spurious spectral lines. To avoid including those false peaks in a harmonic model, the Lomb periodogram is considered in a process where the frequencies that better explain the data are extracted one by one. As a frequency is pulled out, the information kept in it is removed from the data. After that, the Lomb periodogram is calculated once again for the residuals and another frequency is extracted. As we could guess, the computation time of the analysis rises. Some of those recurrent processes are the frequency analysis mapping on usual sampling (FAMOUS) proposed by Mignard [3] and the nonlinear harmonic analysis (NLHA) created by Harada [4].Some authors, such as Mignard [3], have developed techniques in order to accelerate the computation of the periodogram by looking for the larger step size that allows us to detect the harmonic content of the data. Here we suggest another method to remove the significant spectral lines of a time series in a faster manner by patching the Lomb periodogram.Herein, we describe the NLHA algorithm and the modification applied in order to get a quicker analysis. As an adding, we provide a couple of examples where this technique is compared with the traditional computation of the Lomb periodogram.The paper is structured as follows. In Section2, we present and describe the NLHA method along with its mathematical basis. In Section 3, the suggested modification of the NLHA method is explained. Section 4 contains a couple of different time series which are analyzed as an example. Finally, Section 5 provides a brief summary.


## 2. Nonlinear Harmonic Analysis

Let us consider a time series withN observations (N in naturals, N∈N), represented by {(tn,dn)}n=1,…,N, where tn is the time at which the observation is carried out and dn is the measurement of the phenomenon we are interested in at epoch tn. Henceforth, in order to facilitate subsequent calculations, given a time series, we will consider its temporal translation {(τn,dn)}n=1,…,N, where
(1)τn=tn-t1+tN2.For the construction of the NLHA model, we have used the technique introduced by Harada [4] that has been successfully applied to different problems [5]. This technique, which we will describe briefly, is about fitting a time series using the least-squares method to a function of the form
(2)φ(τn)=∑l=1Lalψl(τn),
where L∈N represents the number of basic functions {ψl,l=1,…,L} and {al,l=1,…,L} are the linear coefficients to solve for. This set of basic functions consists of(1)
three polynomial functions which set up the trend of the series:(3)ψ1(τn)=1,ψ2(τn)=4Tτn,ψ3(τn)=[3(N-1)4(N+1)]ψ22(τn)-1,
where T=tN-t1 is the temporal range of the data;(2)
two Fourier terms for the angular frequencyωk, denoted by
(4)ψ2k+2(τn)=sin(ωkτn),ψ2k+3(τn)=cos(ωkτn),(3)
a couple of the so-called mixed secular terms for the frequencyωkv:
(5)ψ2K+2v+2(τn)=τn·sin(ωkvτn),ψ2K+2v+3(τn)=τn·cos(ωkvτn).
This last kind of base functions does not have to appear necessary in the model for each frequency.Suppose thatK angular frequencies have already been included in the functional model, the set of them being denoted by W={ωk,k=1,…,K} and assume that the subset {ωkv,v=1,…,S}⊆W contains the frequencies associated with mixed secular terms. Next, we search additional frequencies that could be added to the functional model by studying the Lomb periodogram of the residuals en obtained from the least-squares fit of the temporary functional model.A criterion is needed to guess which frequencies are linked to mixed secular terms and which are not, just to construct our model functionφ in (2). The procedure that allows us to elucidate such an association is based on the Lomb periodogram and an extension of it. The algorithm increases the number of frequencies one by one and adds them to the model. First, we have to compute the spectrum of the Lomb periodogram, which is given by the formula [4]:
(6)P(ω)=XV2+YU2-2ZUVXY-Z2,
where
(7)X=∑n=1Nμnsin2(ωτn),Y=∑n=1Nμncos2(ωτn),Z=∑n=1Nμnsin(ωτn)cos(ωτn),U=∑n=1Nμnensin(ωτn),V=∑n=1Nμnencos(ωτn),
and μn is the weight assigned to the observation dn.The peak of this spectrum will point out a significant angular frequency to be included in the model. In the next stage, when the Fourier term of the frequency is already selected as a basic function, we compute the extended periodogram [4]:
(8)Q(ω)=X~V~2+Y~U~2-2Z~U~V~X~Y~-Z~2,
where
(9)X~=∑n=1Nμnτn2sin2(ωτn),Y~=∑n=1Nμnτn2cos2(ωτn),Z~=∑n=1Nμnτn2sin(ωtn)cos(ωtn),U~=∑n=1Nμnenτnsin(ωτn),V~=∑n=1Nμnenτncos(ωτn).If this maximum of the extended periodogram is larger than the maximum of the Lomb periodogram, mixed secular terms will be linked to this frequency as well. In other cases we will only select classic Fourier terms.Let us denote bywk=(ω1,ω2,…,ωK) the vector of angular frequencies. As we compute each frequency, an adjustment to the data is made by the least-squares method just to solve for the value of the linear coefficients {al,l=1,…,L}. After each estimation of these coefficients that we denote by a^={a^l,l=1,…,L}, and before adding a new angular frequency, we can regard the objective function of the least-squares problem for our model φ as a function on the space of frequencies, that is:
(10)ϕ(a^,w)=∑n=1N[{∑l=1La^lψl(τn,w)}-dn]2,ϕ(a^,w)=ϕ^(w)
with w∈RK. Therefore, our problem is reduced to a minimization problem that depends nonlinearly on the parameters, namely:
(11)minw∈RKϕ^(w).To carry out this task we have used the Broyden-Fletcher-Goldfarb-Shanno (BFGS) algorithm [6] where we have considered wk as a seed point. Let us denote by ws the solution of (11). Next stage deals with the adjustment of the model φ to the data by considering ws as a vector of frequencies and by using the least-squares method again. This cycle recurs until the difference between the seed point and the solution of (11) becomes small. After that, we can continue extracting another frequency or we can stop the process if the residual root mean square (RMS) becomes smaller than a fixed level. We can also stop the algorithm by reaching a preset number of frequencies given by the user.


## 3. Corrected Patched Periodogram

The Lomb periodogram is one of the most used spectral tools when we are interested in looking for the harmonic behaviour of a certain set of data. However, its estimation takes long time sometimes, especially when the time series is large enough. Moreover, when the periodogram is included as a part of an iterative nonlinear harmonic process, such as the one described in previous section, we find out that the computation time is considerably increased due to the estimation of a periodogram each time a frequency is removed from the harmonic contents of the data. Now imagine that the time series is multidimensional; therefore the time the algorithm needs to provide us a result will be huge. Thus, it would be interesting to modify the estimation of the periodogram in some way just to reduce the computation time of the analysis. There are several ways to deal with this problem and get a quicker analysis of a given time series.On one hand, we can accelerate the calculation of the periodogram by reducing the number of frequencies in the frequency domain. In this case, you take the risk of skipping harmonics that explain the data better than any other one. To cope with this problem Mignard [3] suggests an algorithm that is able to estimate a fixed step size for the frequency domain such that the harmonics that may explain the data are taken into account. However, this procedure needs you to provide a previous set of frequencies that may have something to do with the time series we want to analyze.On the other hand, instead of reducing the number of frequencies, we can keep the frequency domain and patch the periodogram in a surrounding range of the higher peaks. Once we have estimated the Lomb periodogram for the first time, we will focus on modifying the spectrum by patching it. Herein the algorithm we suggest is described. Here we explain the process for the Lomb periodogram, but it can be applied to the extended periodogram as well.Step 1.
Let us denote byDf=[f1,f2,…,fr] the discrete frequency domain where the periodogram will be estimated. Set up i=0.Step 2.
By using (6), get the Lomb periodogram for the time series {(tn,dn)}n=1,…,N:
(12)P0=[P(f1),P(f2),…,P(fr)].Step 3.
Doi=i+1. Select the frequency where the maximum of the periodogram, P0, is achieved, namely, fi=fp. Then, remove the harmonic information from the data by following the nonlinear harmonic algorithm:
(13)eni=dn-d~ni=dn-∑l=1L(i)a^lψl(τn).Step 4.
If the stop condition of the non-linear harmonic process is reached, then stop. Otherwise, the process continues extracting another frequency. Now, instead of estimating the whole periodogram for the residuals, we patch the spectrum of the original data. First of all, consider a frequency range surrounding the previous extracted peak with2h+1 frequencies,
(14)Dfi=[fp-h,fp-h+1,…,fi,…,fp+h-1,fp+h].Step 5.
Let us denote byPi=[Pp-hi,Pp-h+1i,…,Pp+hi]=[P(fp-h),P(fp-h+1),…,P(fp+h)] the periodogram of the residuals eni for the harmonics in Dfi.Step 6.
Scale and patch the periodogramP0 by doing
(15)Pj0={Pj0Riiffj∉DfiPjiiffj∈Dfi,
where Ri is the rate between the median of the values in P0 and the median of the values in the patch Pi. Then, return to Step 3.To run the algorithm it is necessary to set the length of the range in Step4. The value may depend on the data, but usually taking h=200 is good enough. If you expect your data to be noisy, then choosing a larger value of h would be safer. As we have seen, at Step 6 we carry out a scaling of the values of the periodogram that are not patched. The reason why we scale the periodogram is because as a frequency is extracted from the data, the power of the periodogram for the residuals is compressed. Therefore, if we want to avoid creating spurious peaks, we have to reduce the power of the periodogram. A way to do that task is calculating the rate Ri that will give us an idea of the manner the power spectra are reduced. Nevertheless, this scaling process does not assure us not to detect spurious frequencies, so in addition, we have included a correction stage, that is to say, the user has the possibility to order the algorithm to estimate the whole periodogram of the residuals after a specific number of patches. For the following steps, this periodogram will be the new P0 to be patched.


## 4. Examples

### 4.1. Synthetic Time Series

In this section the capabilities of the method are shown by using a synthetic time series as input. The number of data is set to 5000, and the time domain goes from −2499.5 to 2499.5, regularly spaced. The harmonic content of the data is detailed in Table1. Apart from those frequencies, the data are affected by a white noise component with unit amplitude. For the analysis, it has been considered the use of the patched periodogram with h=100, and, besides, no correction stage is ruled out. Figures 1, 2, 3, 4, 5, and 6 show the graphical display of the Lomb periodogram as a patch is performed.Table 1
Harmonic content of the synthetic time series.
f
a
S
b
C
c
S
S
d
C
C
e
0.001
1.000
3.000
0.000
0.000
0.200
2.000
1.000
0.000
0.000
0.003
2.000
2.000
0.000
0.000
0.040
0.000
5.000
0.000
0.000
0.005
−3.000
1.000
−0.005
0.002
aFrequencies included in the functional model (in cycles per unit of time).
bLinear coefficient of the sinus Fourier term for the frequency that appears at the same row.
cLinear coefficient of the cosinus Fourier term for the frequency that appears at the same row.
dLinear coefficient of the sinus mixed secular term for the frequency appearing at the same row.
eLinear coefficient of the cosinus mixed secular term for the frequency that appears at the same row.Figure 1
Log-log scale representation of the Lomb periodogram of the data. Patching process of the synthetic time series whose harmonic content is detailed in Table1.Figure 2
Log-log scale representation of the Lomb periodogram after the first patch. Patching process of the synthetic time series whose harmonic content is detailed in Table1.Figure 3
Log-log scale representation of the Lomb periodogram after the second patch. Patching process of the synthetic time series whose harmonic content is detailed in Table1.Figure 4
Log-log scale representation of the Lomb periodogram after the third patch. Patching process of the synthetic time series whose harmonic content is detailed in Table1.Figure 5
Log-log scale representation of the Lomb periodogram after the fourth patch. Patching process of the synthetic time series whose harmonic content is detailed in Table1.Figure 6
Log-log scale representation of the Lomb periodogram after the fifth patch. Patching process of the synthetic time series whose harmonic content is detailed in Table1.The results are shown in Table2. As we can observe, the non-linear harmonic method together with the patched periodogram is able to detect properly the frequencies that describe the data. In fact, there are scarcely differences between those estimations and the ones got by using the standard non-linear harmonic method—without the patched periodogram. In fact, the final RMS is the same for both methods (1.037 units). However, the time needed to perform the analysis with the patched periodogram (80.69 seconds) is almost three times shorter than the time required by the common analysis (233.38 seconds). The overhead has been reduced drastically while achieving the same goodness of the analysis results.Table 2
Estimated harmonic content by using the nonlinear harmonic method with the patched periodogram.
f
a
S
b
C
c
S
S
d
C
C
e
0.001
±
0.000
0.996
±
0.015
3.030
±
0.015
0.000
0.000
0.200
±
0.000
1.960
±
0.015
1.007
±
0.015
0.000
0.000
0.003
±
0.000
1.996
±
0.015
1.986
±
0.015
0.000
0.000
0.040
±
0.000
-
0.008
±
0.015
4.998
±
0.015
0.000
0.000
0.005
±
0.000
-
3.014
±
0.015
1.028
±
0.015
-
0.005
±
0.000
0.002
±
0.000
aEstimated value of the frequencies included in the functional model (in cycles per unit of time).
bLinear coefficient of the sinus Fourier term for the frequency that appears at the same row.
cLinear coefficient of the cosinus Fourier term for the frequency that appears at the same row.
dLinear coefficient of the sinus mixed secular term for the frequency appearing at the same row.
eLinear coefficient of the cosinus mixed secular term for the frequency that appears at the same row.


### 4.2. IAU2000A Pole Offsets Time Series

As a real application, the IAU2000A pole offsets time series have been analyzed. The data (available at the IERS web site) refer to thedX and dY parameters which represent small changes in the unit vector components of the celestial pole position with regard to the IAU2000A precession-nutation model [7]. The time domain (in Julian days) ranges from September 23rd, 2000, to September 23rd, 2010, and is regularly spaced. As we were interested in including the same harmonic content for dX and dY models, the data were treated as a complex time series, (dX,dY). In order to assess the estimations of the harmonics and the computation time by using the patched periodogram, we have also carried out an analysis with the original non-linear harmonic method. In both cases, 20 frequencies have been extracted from the data after removing a linear trend component. The range of the patched periodogram was set to h=200, and a correction stage is applied after the extraction of each four frequencies.The numerical results are shown in Tables3, 4, 5, and 6. Considering the uncertainties for the estimated parameters we can see a good agreement between the model obtained by using the Lomb periodogram and the model estimated by using the patched periodogram. There are six spectral lines linked to mixed secular terms. Those frequencies are also the same for both models, and the estimations of the linear coefficients are quite similar. There are subtle differences between certain periods and their associated coefficients, and we also observe differences in the extracting frequency order but, in general, we can state that the models contain basically the same spectral lines. Moreover, both models provide similar values of the final weighted RMS: 0.09358 milliarcseconds (mas) and 0.12653 mas for dX and dY, respectively, by using the common method and 0.09356 mas and 0.12651 mas by using the patched periodogram. Nevertheless, the analysis carried out with the patched periodogram turns out to be faster (1968.73 seconds) than the analysis with the traditional Lomb periodogram (2618.69 seconds). The differences can be reduced by applying the correction stage less often, although we prefer following a conservative strategy in this example.Table 3
Estimated harmonic content of the IAU2000A series by using the non-linear harmonic method with the Lomb periodogram. Fourier terms.
No.
P
a (days)
S
b (mas)
C
c (mas)
S
d (mas)
C
e (mas)
1
446.89
±
0.67
0.1150
±
0.0025
0.0896
±
0.0024
-
0.0843
±
0.0040
0.1293
±
0.0038
2
3265.6
±
88.54
0.0241
±
0.0040
0.0600
±
0.0022
-
0.0358
±
0.0053
-
0.0438
±
0.0042
3
13.66
±
0.00
0.0305
±
0.0021
-
0.0159
±
0.0020
0.0070
±
0.0035
0.0432
±
0.0034
4
6.99
±
0.00
0.0249
±
0.0022
0.0155
±
0.0022
0.0139
±
0.0036
0.0013
±
0.0036
5
268.96
±
1.27
-
0.0140
±
0.0025
0.0130
±
0.0024
-
0.0340
±
0.0036
-
0.0142
±
0.0034
6
650.44
±
5.51
0.0113
±
0.0026
0.0131
±
0.0026
0.0014
±
0.0042
-
0.0034
±
0.0040
7
17.75
±
0.00
-
0.0036
±
0.0020
-
0.0035
±
0.0021
-
0.0059
±
0.0040
0.0060
±
0.0041
8
92.91
±
0.29
0.0204
±
0.0021
-
0.0086
±
0.0020
-
0.0055
±
0.0035
0.0073
±
0.0035
9
182.16
±
0.79
-
0.0007
±
0.0022
0.0079
±
0.0021
0.0405
±
0.0035
0.0030
±
0.0034
10
54.53
±
0.13
-
0.0083
±
0.0021
-
0.0223
±
0.0020
0.0038
±
0.0035
-
0.0012
±
0.0034
11
379.19
±
2.20
0.0012
±
0.0024
0.0045
±
0.0024
0.0237
±
0.0042
0.0140
±
0.0043
12
11.47
±
0.00
0.0081
±
0.0021
0.0079
±
0.0021
0.0059
±
0.0040
-
0.0060
±
0.0040
13
25.16
±
0.02
0.0158
±
0.0020
0.0119
±
0.0020
-
0.0015
±
0.0035
-
0.0021
±
0.0034
14
66.03
±
0.11
0.0065
±
0.0021
-
0.0186
±
0.0020
0.0055
±
0.0035
0.0110
±
0.0034
15
11.75
±
0.00
-
0.0106
±
0.0021
0.0154
±
0.0021
-
0.0113
±
0.0034
-
0.0013
±
0.0034
16
8.18
±
0.00
-
0.0041
±
0.0020
0.0188
±
0.0020
-
0.0120
±
0.0034
-
0.0021
±
0.0034
17
7.02
±
0.00
0.0164
±
0.0022
-
0.0041
±
0.0022
-
0.0237
±
0.0036
0.0045
±
0.0036
18
7.77
±
0.00
-
0.0176
±
0.0020
-
0.0035
±
0.0020
-
0.0076
±
0.0034
-
0.0111
±
0.0034
19
46.79
±
0.06
0.0045
±
0.0021
0.0082
±
0.0021
-
0.0121
±
0.0041
0.0003
±
0.0040
20
12.22
±
0.00
-
0.0047
±
0.0020
-
0.0053
±
0.0021
-
0.0080
±
0.0041
-
0.0055
±
0.0040
aEstimated value of the periods included in the functional model.
bLinear coefficient of the sinus Fourier term for dX and for the period that appears at the same row.
cLinear coefficient of the cosinus Fourier term for dX and for the period that appears at the same row.
dLinear coefficient of the sinus Fourier term for dY and for the period that appears at the same row.
eLinear coefficient of the cosinus Fourier term for dY and for the period that appears at the same row.Table 4
Estimated harmonic content of the IAU2000A series by using the non-linear harmonic method with the Lomb periodogram. Mixed secular terms.
No.
P
a (days)
S
S
b (μ as)
C
C
c (μ as)
S
S
d (μ as)
C
C
e (μ as)
6
650.44
±
5.51
0.0142
±
0.0028
-
0.0324
±
0.0028
0.0379
±
0.0040
0.0123
±
0.0040
7
17.75
±
0.00
0.0000
±
0.0027
0.0027
±
0.0028
0.0327
±
0.0037
-
0.0069
±
0.0039
11
379.19
±
2.20
-
0.0249
±
0.0027
-
0.0037
±
0.0029
-
0.0064
±
0.0039
-
0.0259
±
0.0042
12
11.47
±
0.00
-
0.0068
±
0.0027
0.0006
±
0.0028
-
0.0111
±
0.0038
0.0275
±
0.0038
19
46.79
±
0.06
0.0076
±
0.0027
-
0.0010
±
0.0027
0.0205
±
0.0038
-
0.0082
±
0.0038
20
12.22
±
0.00
0.0007
±
0.0028
0.0221
±
0.0027
-
0.0115
±
0.0039
0.0063
±
0.0037
aEstimated value of the periods included in the functional model.
bLinear coefficient of the sinus Fourier term for dX and for the period that appears at the same row.
cLinear coefficient of the cosinus Fourier term for dX and for the period that appears at the same row.
dLinear coefficient of the sinus Fourier term for dY and for the period that appears at the same row.
eLinear coefficient of the cosinus Fourier term for dY and for the period that appears at the same row.Table 5
Estimated harmonic content of the IAU2000A series by using the non-linear harmonic method with the patched periodogram. Fourier terms.
No.
P
a (days)
S
b (mas)
C
c (mas)
S
d (mas)
C
e (mas)
1
446.77
±
0.67
0.1150
±
0.0025
0.0897
±
0.0024
-
0.0845
±
0.0040
0.1291
±
0.0038
2
3313.89
±
89.57
0.0247
±
0.0041
0.0607
±
0.0023
-
0.0375
±
0.0054
-
0.0439
±
0.0042
3
13.66
±
0.00
0.0305
±
0.0021
-
0.0159
±
0.0020
0.0071
±
0.0035
0.0433
±
0.0034
4
6.99
±
0.00
0.0250
±
0.0022
0.0154
±
0.0022
0.0138
±
0.0036
0.0011
±
0.0036
5
268.99
±
1.27
-
0.0140
±
0.0025
0.0129
±
0.0024
-
0.0341
±
0.0036
-
0.0142
±
0.0034
6
651.80
±
5.49
0.0118
±
0.0026
0.0133
±
0.0026
0.0013
±
0.0042
-
0.0027
±
0.0040
7
92.83
±
0.28
0.0207
±
0.0021
-
0.0081
±
0.0020
-
0.0060
±
0.0035
0.0077
±
0.0034
8
17.75
±
0.00
-
0.0036
±
0.0020
-
0.0036
±
0.0021
-
0.0059
±
0.0040
0.0055
±
0.0041
9
182.15
±
0.79
-
0.0007
±
0.0022
0.0078
±
0.0021
0.0406
±
0.0035
0.0031
±
0.0034
10
54.53
±
0.13
-
0.0082
±
0.0021
-
0.0221
±
0.0020
0.0039
±
0.0035
-
0.0012
±
0.0034
11
378.99
±
2.18
0.0011
±
0.0024
0.0044
±
0.0024
0.0233
±
0.0042
0.0140
±
0.0043
12
66.03
±
0.11
0.0064
±
0.0021
-
0.0186
±
0.0020
0.0056
±
0.0035
0.0110
±
0.0034
13
11.47
±
0.00
0.0082
±
0.0021
0.0079
±
0.0021
0.0059
±
0.0040
-
0.0060
±
0.0040
14
11.75
±
0.00
-
0.0105
±
0.0021
0.0154
±
0.0021
-
0.0113
±
0.0034
-
0.0011
±
0.0034
15
12.22
±
0.00
-
0.0064
±
0.0020
-
0.0051
±
0.0021
-
0.0086
±
0.0041
-
0.0073
±
0.0040
16
25.16
±
0.02
0.0159
±
0.0020
0.0117
±
0.0020
-
0.0017
±
0.0035
-
0.0021
±
0.0034
17
8.18
±
0.00
-
0.0041
±
0.0020
0.0188
±
0.0020
-
0.0118
±
0.0034
-
0.0021
±
0.0034
18
7.77
±
0.00
-
0.0176
±
0.0020
-
0.0031
±
0.0020
-
0.0078
±
0.0034
-
0.0107
±
0.0034
19
7.02
±
0.00
0.0164
±
0.0022
-
0.0041
±
0.0022
-
0.0238
±
0.0036
0.0042
±
0.0036
20
46.84
±
0.06
0.0046
±
0.0021
0.0086
±
0.0021
-
0.0109
±
0.0041
0.0026
±
0.0040
aEstimated value of the periods included in the functional model.
bLinear coefficient of the sinus Fourier term for dX and for the period that appears at the same row.
cLinear coefficient of the cosinus Fourier term for dX and for the period that appears at the same row.
dLinear coefficient of the sinus Fourier term for dY and for the period that appears at the same row.
eLinear coefficient of the cosinus Fourier term for dY and for the period that appears at the same row.Table 6
Estimated harmonic content of the IAU2000A series by using the non-linear harmonic method with the patched periodogram. Mixed secular terms.
No.
P
a (days)
S
S
b (μ as)
C
C
c (μ as)
S
S
d (μ as)
C
C
e (μ as)
6
651.80
±
5.49
0.0142
±
0.0028
-
0.0321
±
0.0028
0.0387
±
0.0041
0.0122
±
0.0040
8
17.75
±
0.00
-
0.0002
±
0.0027
0.0026
±
0.0028
0.0328
±
0.0037
-
0.0062
±
0.0039
11
378.99
±
2.18
-
0.0251
±
0.0027
-
0.0033
±
0.0029
-
0.0064
±
0.0039
-
0.0265
±
0.0042
13
11.47
±
0.00
-
0.0069
±
0.0027
0.0005
±
0.0028
-
0.0110
±
0.0038
0.0275
±
0.0038
15
12.22
±
0.00
0.0035
±
0.0028
0.0217
±
0.0027
-
0.0096
±
0.0038
0.0053
±
0.0037
20
46.84
±
0.06
-
0.0061
±
0.0027
-
0.0019
±
0.0028
0.0195
±
0.0038
-
0.0115
±
0.0038
aEstimated value of the periods included in the functional model.
bLinear coefficient of the sinus Fourier term for dX and for the period that appears at the same row.
cLinear coefficient of the cosinus Fourier term for dX and for the period that appears at the same row.
dLinear coefficient of the sinus Fourier term for dY and for the period that appears at the same row.
eLinear coefficient of the cosinus Fourier term for dY and for the period that appears at the same row.


## 4.1. Synthetic Time Series

In this section the capabilities of the method are shown by using a synthetic time series as input. The number of data is set to 5000, and the time domain goes from −2499.5 to 2499.5, regularly spaced. The harmonic content of the data is detailed in Table1. Apart from those frequencies, the data are affected by a white noise component with unit amplitude. For the analysis, it has been considered the use of the patched periodogram with h=100, and, besides, no correction stage is ruled out. Figures 1, 2, 3, 4, 5, and 6 show the graphical display of the Lomb periodogram as a patch is performed.Table 1
Harmonic content of the synthetic time series.
f
a
S
b
C
c
S
S
d
C
C
e
0.001
1.000
3.000
0.000
0.000
0.200
2.000
1.000
0.000
0.000
0.003
2.000
2.000
0.000
0.000
0.040
0.000
5.000
0.000
0.000
0.005
−3.000
1.000
−0.005
0.002
aFrequencies included in the functional model (in cycles per unit of time).
bLinear coefficient of the sinus Fourier term for the frequency that appears at the same row.
cLinear coefficient of the cosinus Fourier term for the frequency that appears at the same row.
dLinear coefficient of the sinus mixed secular term for the frequency appearing at the same row.
eLinear coefficient of the cosinus mixed secular term for the frequency that appears at the same row.Figure 1
Log-log scale representation of the Lomb periodogram of the data. Patching process of the synthetic time series whose harmonic content is detailed in Table1.Figure 2
Log-log scale representation of the Lomb periodogram after the first patch. Patching process of the synthetic time series whose harmonic content is detailed in Table1.Figure 3
Log-log scale representation of the Lomb periodogram after the second patch. Patching process of the synthetic time series whose harmonic content is detailed in Table1.Figure 4
Log-log scale representation of the Lomb periodogram after the third patch. Patching process of the synthetic time series whose harmonic content is detailed in Table1.Figure 5
Log-log scale representation of the Lomb periodogram after the fourth patch. Patching process of the synthetic time series whose harmonic content is detailed in Table1.Figure 6
Log-log scale representation of the Lomb periodogram after the fifth patch. Patching process of the synthetic time series whose harmonic content is detailed in Table1.The results are shown in Table2. As we can observe, the non-linear harmonic method together with the patched periodogram is able to detect properly the frequencies that describe the data. In fact, there are scarcely differences between those estimations and the ones got by using the standard non-linear harmonic method—without the patched periodogram. In fact, the final RMS is the same for both methods (1.037 units). However, the time needed to perform the analysis with the patched periodogram (80.69 seconds) is almost three times shorter than the time required by the common analysis (233.38 seconds). The overhead has been reduced drastically while achieving the same goodness of the analysis results.Table 2
Estimated harmonic content by using the nonlinear harmonic method with the patched periodogram.
f
a
S
b
C
c
S
S
d
C
C
e
0.001
±
0.000
0.996
±
0.015
3.030
±
0.015
0.000
0.000
0.200
±
0.000
1.960
±
0.015
1.007
±
0.015
0.000
0.000
0.003
±
0.000
1.996
±
0.015
1.986
±
0.015
0.000
0.000
0.040
±
0.000
-
0.008
±
0.015
4.998
±
0.015
0.000
0.000
0.005
±
0.000
-
3.014
±
0.015
1.028
±
0.015
-
0.005
±
0.000
0.002
±
0.000
aEstimated value of the frequencies included in the functional model (in cycles per unit of time).
bLinear coefficient of the sinus Fourier term for the frequency that appears at the same row.
cLinear coefficient of the cosinus Fourier term for the frequency that appears at the same row.
dLinear coefficient of the sinus mixed secular term for the frequency appearing at the same row.
eLinear coefficient of the cosinus mixed secular term for the frequency that appears at the same row.


## 4.2. IAU2000A Pole Offsets Time Series

As a real application, the IAU2000A pole offsets time series have been analyzed. The data (available at the IERS web site) refer to thedX and dY parameters which represent small changes in the unit vector components of the celestial pole position with regard to the IAU2000A precession-nutation model [7]. The time domain (in Julian days) ranges from September 23rd, 2000, to September 23rd, 2010, and is regularly spaced. As we were interested in including the same harmonic content for dX and dY models, the data were treated as a complex time series, (dX,dY). In order to assess the estimations of the harmonics and the computation time by using the patched periodogram, we have also carried out an analysis with the original non-linear harmonic method. In both cases, 20 frequencies have been extracted from the data after removing a linear trend component. The range of the patched periodogram was set to h=200, and a correction stage is applied after the extraction of each four frequencies.The numerical results are shown in Tables3, 4, 5, and 6. Considering the uncertainties for the estimated parameters we can see a good agreement between the model obtained by using the Lomb periodogram and the model estimated by using the patched periodogram. There are six spectral lines linked to mixed secular terms. Those frequencies are also the same for both models, and the estimations of the linear coefficients are quite similar. There are subtle differences between certain periods and their associated coefficients, and we also observe differences in the extracting frequency order but, in general, we can state that the models contain basically the same spectral lines. Moreover, both models provide similar values of the final weighted RMS: 0.09358 milliarcseconds (mas) and 0.12653 mas for dX and dY, respectively, by using the common method and 0.09356 mas and 0.12651 mas by using the patched periodogram. Nevertheless, the analysis carried out with the patched periodogram turns out to be faster (1968.73 seconds) than the analysis with the traditional Lomb periodogram (2618.69 seconds). The differences can be reduced by applying the correction stage less often, although we prefer following a conservative strategy in this example.Table 3
Estimated harmonic content of the IAU2000A series by using the non-linear harmonic method with the Lomb periodogram. Fourier terms.
No.
P
a (days)
S
b (mas)
C
c (mas)
S
d (mas)
C
e (mas)
1
446.89
±
0.67
0.1150
±
0.0025
0.0896
±
0.0024
-
0.0843
±
0.0040
0.1293
±
0.0038
2
3265.6
±
88.54
0.0241
±
0.0040
0.0600
±
0.0022
-
0.0358
±
0.0053
-
0.0438
±
0.0042
3
13.66
±
0.00
0.0305
±
0.0021
-
0.0159
±
0.0020
0.0070
±
0.0035
0.0432
±
0.0034
4
6.99
±
0.00
0.0249
±
0.0022
0.0155
±
0.0022
0.0139
±
0.0036
0.0013
±
0.0036
5
268.96
±
1.27
-
0.0140
±
0.0025
0.0130
±
0.0024
-
0.0340
±
0.0036
-
0.0142
±
0.0034
6
650.44
±
5.51
0.0113
±
0.0026
0.0131
±
0.0026
0.0014
±
0.0042
-
0.0034
±
0.0040
7
17.75
±
0.00
-
0.0036
±
0.0020
-
0.0035
±
0.0021
-
0.0059
±
0.0040
0.0060
±
0.0041
8
92.91
±
0.29
0.0204
±
0.0021
-
0.0086
±
0.0020
-
0.0055
±
0.0035
0.0073
±
0.0035
9
182.16
±
0.79
-
0.0007
±
0.0022
0.0079
±
0.0021
0.0405
±
0.0035
0.0030
±
0.0034
10
54.53
±
0.13
-
0.0083
±
0.0021
-
0.0223
±
0.0020
0.0038
±
0.0035
-
0.0012
±
0.0034
11
379.19
±
2.20
0.0012
±
0.0024
0.0045
±
0.0024
0.0237
±
0.0042
0.0140
±
0.0043
12
11.47
±
0.00
0.0081
±
0.0021
0.0079
±
0.0021
0.0059
±
0.0040
-
0.0060
±
0.0040
13
25.16
±
0.02
0.0158
±
0.0020
0.0119
±
0.0020
-
0.0015
±
0.0035
-
0.0021
±
0.0034
14
66.03
±
0.11
0.0065
±
0.0021
-
0.0186
±
0.0020
0.0055
±
0.0035
0.0110
±
0.0034
15
11.75
±
0.00
-
0.0106
±
0.0021
0.0154
±
0.0021
-
0.0113
±
0.0034
-
0.0013
±
0.0034
16
8.18
±
0.00
-
0.0041
±
0.0020
0.0188
±
0.0020
-
0.0120
±
0.0034
-
0.0021
±
0.0034
17
7.02
±
0.00
0.0164
±
0.0022
-
0.0041
±
0.0022
-
0.0237
±
0.0036
0.0045
±
0.0036
18
7.77
±
0.00
-
0.0176
±
0.0020
-
0.0035
±
0.0020
-
0.0076
±
0.0034
-
0.0111
±
0.0034
19
46.79
±
0.06
0.0045
±
0.0021
0.0082
±
0.0021
-
0.0121
±
0.0041
0.0003
±
0.0040
20
12.22
±
0.00
-
0.0047
±
0.0020
-
0.0053
±
0.0021
-
0.0080
±
0.0041
-
0.0055
±
0.0040
aEstimated value of the periods included in the functional model.
bLinear coefficient of the sinus Fourier term for dX and for the period that appears at the same row.
cLinear coefficient of the cosinus Fourier term for dX and for the period that appears at the same row.
dLinear coefficient of the sinus Fourier term for dY and for the period that appears at the same row.
eLinear coefficient of the cosinus Fourier term for dY and for the period that appears at the same row.Table 4
Estimated harmonic content of the IAU2000A series by using the non-linear harmonic method with the Lomb periodogram. Mixed secular terms.
No.
P
a (days)
S
S
b (μ as)
C
C
c (μ as)
S
S
d (μ as)
C
C
e (μ as)
6
650.44
±
5.51
0.0142
±
0.0028
-
0.0324
±
0.0028
0.0379
±
0.0040
0.0123
±
0.0040
7
17.75
±
0.00
0.0000
±
0.0027
0.0027
±
0.0028
0.0327
±
0.0037
-
0.0069
±
0.0039
11
379.19
±
2.20
-
0.0249
±
0.0027
-
0.0037
±
0.0029
-
0.0064
±
0.0039
-
0.0259
±
0.0042
12
11.47
±
0.00
-
0.0068
±
0.0027
0.0006
±
0.0028
-
0.0111
±
0.0038
0.0275
±
0.0038
19
46.79
±
0.06
0.0076
±
0.0027
-
0.0010
±
0.0027
0.0205
±
0.0038
-
0.0082
±
0.0038
20
12.22
±
0.00
0.0007
±
0.0028
0.0221
±
0.0027
-
0.0115
±
0.0039
0.0063
±
0.0037
aEstimated value of the periods included in the functional model.
bLinear coefficient of the sinus Fourier term for dX and for the period that appears at the same row.
cLinear coefficient of the cosinus Fourier term for dX and for the period that appears at the same row.
dLinear coefficient of the sinus Fourier term for dY and for the period that appears at the same row.
eLinear coefficient of the cosinus Fourier term for dY and for the period that appears at the same row.Table 5
Estimated harmonic content of the IAU2000A series by using the non-linear harmonic method with the patched periodogram. Fourier terms.
No.
P
a (days)
S
b (mas)
C
c (mas)
S
d (mas)
C
e (mas)
1
446.77
±
0.67
0.1150
±
0.0025
0.0897
±
0.0024
-
0.0845
±
0.0040
0.1291
±
0.0038
2
3313.89
±
89.57
0.0247
±
0.0041
0.0607
±
0.0023
-
0.0375
±
0.0054
-
0.0439
±
0.0042
3
13.66
±
0.00
0.0305
±
0.0021
-
0.0159
±
0.0020
0.0071
±
0.0035
0.0433
±
0.0034
4
6.99
±
0.00
0.0250
±
0.0022
0.0154
±
0.0022
0.0138
±
0.0036
0.0011
±
0.0036
5
268.99
±
1.27
-
0.0140
±
0.0025
0.0129
±
0.0024
-
0.0341
±
0.0036
-
0.0142
±
0.0034
6
651.80
±
5.49
0.0118
±
0.0026
0.0133
±
0.0026
0.0013
±
0.0042
-
0.0027
±
0.0040
7
92.83
±
0.28
0.0207
±
0.0021
-
0.0081
±
0.0020
-
0.0060
±
0.0035
0.0077
±
0.0034
8
17.75
±
0.00
-
0.0036
±
0.0020
-
0.0036
±
0.0021
-
0.0059
±
0.0040
0.0055
±
0.0041
9
182.15
±
0.79
-
0.0007
±
0.0022
0.0078
±
0.0021
0.0406
±
0.0035
0.0031
±
0.0034
10
54.53
±
0.13
-
0.0082
±
0.0021
-
0.0221
±
0.0020
0.0039
±
0.0035
-
0.0012
±
0.0034
11
378.99
±
2.18
0.0011
±
0.0024
0.0044
±
0.0024
0.0233
±
0.0042
0.0140
±
0.0043
12
66.03
±
0.11
0.0064
±
0.0021
-
0.0186
±
0.0020
0.0056
±
0.0035
0.0110
±
0.0034
13
11.47
±
0.00
0.0082
±
0.0021
0.0079
±
0.0021
0.0059
±
0.0040
-
0.0060
±
0.0040
14
11.75
±
0.00
-
0.0105
±
0.0021
0.0154
±
0.0021
-
0.0113
±
0.0034
-
0.0011
±
0.0034
15
12.22
±
0.00
-
0.0064
±
0.0020
-
0.0051
±
0.0021
-
0.0086
±
0.0041
-
0.0073
±
0.0040
16
25.16
±
0.02
0.0159
±
0.0020
0.0117
±
0.0020
-
0.0017
±
0.0035
-
0.0021
±
0.0034
17
8.18
±
0.00
-
0.0041
±
0.0020
0.0188
±
0.0020
-
0.0118
±
0.0034
-
0.0021
±
0.0034
18
7.77
±
0.00
-
0.0176
±
0.0020
-
0.0031
±
0.0020
-
0.0078
±
0.0034
-
0.0107
±
0.0034
19
7.02
±
0.00
0.0164
±
0.0022
-
0.0041
±
0.0022
-
0.0238
±
0.0036
0.0042
±
0.0036
20
46.84
±
0.06
0.0046
±
0.0021
0.0086
±
0.0021
-
0.0109
±
0.0041
0.0026
±
0.0040
aEstimated value of the periods included in the functional model.
bLinear coefficient of the sinus Fourier term for dX and for the period that appears at the same row.
cLinear coefficient of the cosinus Fourier term for dX and for the period that appears at the same row.
dLinear coefficient of the sinus Fourier term for dY and for the period that appears at the same row.
eLinear coefficient of the cosinus Fourier term for dY and for the period that appears at the same row.Table 6
Estimated harmonic content of the IAU2000A series by using the non-linear harmonic method with the patched periodogram. Mixed secular terms.
No.
P
a (days)
S
S
b (μ as)
C
C
c (μ as)
S
S
d (μ as)
C
C
e (μ as)
6
651.80
±
5.49
0.0142
±
0.0028
-
0.0321
±
0.0028
0.0387
±
0.0041
0.0122
±
0.0040
8
17.75
±
0.00
-
0.0002
±
0.0027
0.0026
±
0.0028
0.0328
±
0.0037
-
0.0062
±
0.0039
11
378.99
±
2.18
-
0.0251
±
0.0027
-
0.0033
±
0.0029
-
0.0064
±
0.0039
-
0.0265
±
0.0042
13
11.47
±
0.00
-
0.0069
±
0.0027
0.0005
±
0.0028
-
0.0110
±
0.0038
0.0275
±
0.0038
15
12.22
±
0.00
0.0035
±
0.0028
0.0217
±
0.0027
-
0.0096
±
0.0038
0.0053
±
0.0037
20
46.84
±
0.06
-
0.0061
±
0.0027
-
0.0019
±
0.0028
0.0195
±
0.0038
-
0.0115
±
0.0038
aEstimated value of the periods included in the functional model.
bLinear coefficient of the sinus Fourier term for dX and for the period that appears at the same row.
cLinear coefficient of the cosinus Fourier term for dX and for the period that appears at the same row.
dLinear coefficient of the sinus Fourier term for dY and for the period that appears at the same row.
eLinear coefficient of the cosinus Fourier term for dY and for the period that appears at the same row.


## 5. Conclusions

Describing the behaviour of a time series has been an important issue during many years, and it is still currently. The harmonic analysis is one of the most common techniques used for studying those time series. Here we propose a variation of the non-linear harmonic method developed by Harada [4]. The original algorithm extracts the frequencies one by one from the data by using the Lomb and extended periodogram which are computed each time before considering the next frequency. The suggested modification affects mainly the computation of the periodogram which usually requires a considerable computation time, especially when the time series is large, and, besides, a dense frequency domain is considered. The patched periodogram is based on the idea of computing the Lomb periodogram in the surrounding frequencies of the peak instead of calculating the spectrum for the whole frequency domain. The computation time can be reduced considerably with the patched periodogram, up to three times approximately (by considering 100 frequencies in both sides of the main peak). The wider the surrounding set of frequencies is, the more time the process needs to perform the analysis.Those aforementioned methods, the original non-linear harmonic method and its modification, were implemented in order to check out how the patched periodogram works. Synthetic and real data have been analyzed with those routines obtaining satisfactory results.



---

*Source: 916731-2013-02-11.xml*