scieee AI-readable full text Open interactive document viewer

Multiscale inference and long‐run variance estimation in non‐parametric regression with time series errors

Khismatullina, Marina,Vogt, Michael

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Khismatullina, Marina; Vogt, Michael Article — Published Version Multiscale inference and long‐run variance estimation in non‐parametric regression with time series errors Journal of the Royal Statistical Society: Series B (Statistical Methodology) Provided in Cooperation with: John Wiley & Sons Suggested Citation: Khismatullina, Marina; Vogt, Michael (2019) : Multiscale inference and longrun variance estimation in non‐parametric regression with time series errors, Journal of the Royal Statistical Society: Series B (Statistical Methodology), ISSN 1467-9868, Wiley, Hoboken, NJ, Vol. 82, Iss. 1, pp. 5-37, https://doi.org/10.1111/rssb.12347 This Version is available at: https://hdl.handle.net/10419/230027 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. http://creativecommons.org/licenses/by/4.0/ ©2019 The Authors Journal of the Royal Statistical Society: Series B (Statistical Methodology) Published by John Wiley & Sons Ltd on behalf of the Royal Statistical Society. This is an open access article under the terms of the Creative Commons Attribution License, which permits use, distribution and reproduction in any medium, provided the original work is properly cited. 1369–7412/20/82005 J. R. Statist. Soc. B (2020) 82,Part 1,pp. 5–37 Multiscale inference and long-run variance estimation in non-parametric regression with time series errors Marina Khismatullina and Michael Vogt University of Bonn, Germany [Received November 2018. Revised October 2019] Summary. We develop new multiscale methods to test qualitative hypotheses about the function min the non-parametric regression model Yt,TDm.t=T/C"twith time series errors "t. In time series applications, mrepresents a non-parametric time trend. Practitioners are often interested in whether the trend mhas certain shape properties. For example, they would like to know whether mis constant or whether it is increasing or decreasing in certain time intervals. Our multiscale methods enable us to test for such shape properties of the trend m. To perform the methods, we require an estimator of the long-run error variance σ2DΣ1 lD1cov."0,"l/.We propose a new difference-based estimator of σ2for the case that {"t}belongs to the class of auto-regressive AR(1) processes. In the technical part of the paper, we derive asymptotic theory for the proposed multiscale test and the estimator of the long-run error variance. The theory is complemented by a simulation study and an empirical application to climate data. Keywords: Anticoncentration bounds; Long-run variance; Multiscale statistics; Nonparametric regression; Shape constraints; Strong approximations; Time series errors 1. Introduction The analysis of time trends is an important aspect of many time series applications. In a wide range of situations, practitioners are particularly interested in certain shape properties of the trend. They raise questions such as the following: does the observed time series have a trend at all? If so, is the trend increasing or decreasing in certain time intervals? Can one identify the intervals of increase and decrease? As an example, consider the time series plotted in Fig. 1 which shows the yearly mean temperature in central England from 1659 to 2017. Climatologists are very much interested in learning about the trending behaviour of temperature time series like this; see for example Benner (1999) and Rahmstorf et al. (2017). Among other things, they would like to know whether there is an upward trend in the central England mean temperature towards the end of the sample as visual inspection might suggest. In this paper, we develop new methods to test for certain shape properties of a non-parametric time trend. We in particular construct a multiscale test which enables us to identify local increases and decreases of the trend function. We develop our test in the context of the following model setting: we observe a time series {Yt,T:1⩽t⩽T}of the form Yt,T=mt T+"t.1:1/ Address for correspondence: Michael Vogt, Department of Economics and Hausdorff Center for Mathematics, University of Bonn, 53113 Bonn, Germany. E-mail: [email protected] 6M. Khismatullina and M. Vogt 1675 1725 1775 1825 1875 1925 1975 2025 7891011 Fig. 1. Yearly mean temperature in central England from 1659 to 2017 measured in degrees centigrade for 1 ⩽t⩽T, where m: [0, 1] →Ris an unknown non-parametric regression function and the error terms "tform a stationary time series process with E["t]=0. In a time series context, the design points t=T represent the time points of observation and mis a non-parametric time trend. As usual in non-parametric regression, we let the function mdepend on rescaled time t=T rather than on realtime t. A detailed description of model (1.1) is provided in Section 2. Our multiscale test is developed step by step in Section 3. Roughly speaking, the procedure can be outlined as follows: let H0.u,h/ be the hypothesis that mis constant in the time window [u−h,u+h]⊆[0, 1], where uis the midpoint and 2hthe size of the window. In a first step, we set up a test statistic ˆϕT.u,h/ for the hypothesis H0.u,h/. In a second step, we aggregate the statistics ˆϕT.u,h/ for a large number of time windows [u−h,u+h]. We thereby construct a multiscale statistic which enables us to test the hypothesis H0.u,h/ simultaneously for many time windows [u−h,u+h]. In the technical part of the paper, we derive the theoretical properties of the resulting multiscale test. To do so, we come up with a proof strategy which combines strong approximation results for dependent processes with anticoncentration bounds for Gaussian random vectors. This strategy is of interest in itself and may be applied to other multiscale test problems for dependent data. As shown by our theoretical analysis, our multiscale test is a rigorous level α test of the overall null hypothesis H0that H0.u,h/ is simultaneously fulfilled for all time windows [u−h,u+h] under consideration. Moreover, for a given level of significance α∈.0, 1/, the test enables us to make simultaneous confidence statements of the following form: we can claim, with statistical confidence 1 −α, that there is an increase or decrease in the trend mon all time windows [u−h,u+h] for which the hypothesis H0.u,h/ is rejected. Hence, the test enables us to identify, with a prespecified statistical confidence, time intervals where the trend mis increasing or decreasing. For independent data, multiscale tests have been developed in a variety of contexts in recent years. In the regression context, Chaudhuri and Marron (1999, 2000) introduced the so-called SiZer method which has been extended in various directions; see for example Hannig and Marron (2006) where a refined distribution theory for SiZer is derived. Hall and Heckman (2000) constructed a multiscale test on monotonicity of a regression function. D¨ umbgen and Spokoiny (2001) developed a multiscale approach which works with additively corrected supremum statistics and derived theoretical results in the context of a continuous Gaussian white noise model. Rank-based multiscale tests for non-parametric regression were proposed in D¨ umbgen (2002) and Rohde (2008). More recently, Proksch et al. (2018) have constructed multiscale tests for inverse regression models. In the context of density estimation, multiscale tests have been investigated in D¨ umbgen and Walther (2008), Rufibach and Walther (2010), Schmidt-Hieber et al. (2013) and Eckle et al. (2017) among others. Multiscale Inference and Long-run Variance Estimation 7 Whereas a large number of multiscale tests for independent data have been developed in recent years, multiscale tests for dependent data are much rarer. Most notably, there are some extensions of the SiZer approach to a time series context. Park et al. (2004) and Rondonotti et al. (2007) introduced SiZer methods for dependent data which can be used to find local increases or decreases of a trend and which may thus be regarded as an alternative to our multiscale test. However, these SiZer methods are mainly designed for data exploration rather than for rigorous statistical inference. Our multiscale method, in contrast, is a rigorous level αtest of the hypothesis H0which enables us to make simultaneous confidence statements about the time intervals where the trend mis increasing or decreasing. Some theoretical results for dependent SiZer methods were derived in Park et al. (2009), but only under quite a severe restriction: only time windows [u−h,u+h] with window sizes or scales hare taken into account that remain bounded away from zero as the sample size Tgrows. Scales hthat converge to 0 as Tincreases are excluded. This effectively means that only large time windows [u−h,u+h] are taken into consideration. Our theory, in contrast, enables us to consider simultaneously scales hof fixed size and scales h that converge to 0 at various rates. We can thus take into account time windows of many sizes. In Section 3.4, we compare our approach with SiZer methods for dependent data in more detail. Our multiscale approach is also related to wavelet-based methods: similar to the wavelet-based methods, it takes into account different locations uand resolution levels or scales hsimultaneously. However, whereas our multiscale approach is designed to test for local increases and decreases of a non-parametric trend, wavelet methods are commonly used for other purposes. Among other things, they are employed for estimating or reconstructing non-parametric regression curves (see for example Donoho et al. (1995) or Von Sachs and MacGibbon (2000)) and for change point detection (see for example Cho and Fryzlewicz (2012)). The test statistic of our multiscale method depends on the long-run error variance σ2= Σ∞ l=−∞cov."0,"l/, which is usually unknown in practice. To carry out our multiscale test, we thus require an estimator of σ2. Indeed, such an estimator is required for virtually all inferential procedures in the context of model (1.1). Hence, the problem of estimating σ2in model (1.1) is of broader interest and has received considerable attention in the literature; see M¨ uller and Stadtm¨ uller (1988), Herrmann et al. (1992) and Hall and Van Keilegom (2003) among many others. In Section 4, we introduce a new difference-based estimator of σ2for the case that {"t} belongs to the class of auto-regressive AR(∞) processes. This estimator improves on existing methods in several respects. The methodological and theoretical analysis of the paper is complemented by a simulation study in Section 5 and two empirical applications in Section 6. In the simulation study, we examine the finite sample properties of our multiscale test and compare it with the dependent SiZer methods that were introduced in Park et al. (2004) and Rondonotti et al. (2007). Moreover, we investigate the small sample performance of our estimator of σ2and compare it with the estimator of Hall and Van Keilegom (2003). In Section 6, we use our methods to analyse the temperature data from Fig. 1 as well as a sample of global temperature data. The data that are analysed in the paper and the computer code that was used for the simulations and the analysis of the empirical data can be obtained from https://rss.onlinelibrary.wiley.com/hub/journal/14679868/seriesb-datasets. 2. The model We now describe the model setting in detail which was briefly outlined in Section 1. We observe a time series {Yt,T:1⩽t⩽T}of length Twhich satisfies the non-parametric regression equation 8M. Khismatullina and M. Vogt Yt,T=mt T+"t.2:1/ for 1 ⩽t⩽T. Here, mis an unknown non-parametric function defined on [0, 1] and {"t:1⩽ t⩽T}is a zero-mean stationary error process. For simplicity, we restrict attention to equidistant design points xt=t=T . However, our methods and theory can also be carried over to non-equidistant designs. The stationary error process {"t}is assumed to have the following properties. Condition 1. The variables "tallow for the representation "t=G.:::,ηt−1,ηt,ηt+1,:::/, where ηtare independent and identically distributed (IID) random variables and G:RZ→Ris a measurable function. Condition 2. It holds that "tq<∞for some q>4, where "tq=.E|"t|q/1=q. Following Wu (2005), we impose conditions on the dependence structure of the error process {"t}in terms of the physical dependence measure dt,q="t−" tq, where " t=G.:::,η−1,η 0,η1, :::,ηt−1,ηt,ηt+1,:::/with {η t}being an IID copy of {ηt}. In particular, we make the following assumption. Condition 3. Define Θt,q=Σ|s|⩾tds,qfor t⩾0. It holds that Θt,q=O{t−τqlog.t/−A}, where A>2 3.1=q +1+τq/and τq={q2−4+.q −2/√.q2+20q+4/}=.8q/. Conditions 1–3 are fulfilled by a wide range of stationary processes {"t}. As a first example, consider linear processes of the form "t=Σ∞ i=0ciηt−iwith "tq<∞, where ciare absolutely summable coefficients and ηtare IID innovations with E[ηt]=0 and ηtq<∞. Trivially, conditions 1 and 2 are fulfilled in this case. Moreover, if |ci|=O.ρi/for some ρ∈.0, 1/, then condition 3 is easily seen to be satisfied as well. As a special case, consider an auto-regressive moving average (ARMA) process {"t}of the form "t−Σp i=1ai"t−i=ηt+Σr j=1bjηt−jwith "tq<∞, where a1,:::,apand b1,:::,brare real-valued parameters. As before, we let ηtbe IID innovations with E[ηt]=0 and ηtq<∞. Moreover, as usual, we suppose that the complex polynomials A.z/ =1−Σp j=1ajzjand B.z/ =1+Σr j=1bjzjdo not have any roots in common. If A.z/ does not have any roots inside the unit disc, then the ARMA process {"t}is stationary and causal. Specifically, it has the representation "t=Σ∞ i=0ciηt−iwith |ci|=O.ρi/for some ρ∈.0, 1/, implying that conditions 1–3 are fulfilled. The results in Wu and Shao (2004) show that condition 3 (as well as the other two conditions) is not only fulfilled for linear time series processes but also for a variety of non-linear processes. 3. The multiscale test In this section, we introduce our multiscale method to test for local increases and decreases of the trend function mand analyse its theoretical properties. We assume throughout that mis continuously differentiable on [0, 1]. The test problem under consideration can be formulated as follows: let H0.u,h/ be the hypothesis that mis constant on the interval [u−h,u+h]. Since mis continuously differentiable, H0.u,h/ can be reformulated as H0.u,h/ :m.w/=0 for all w∈[u−h,u+h], where mis the first derivative of m. We want to test the hypothesis H0.u,h/ not just for a single interval [u−h,u+h] but simultaneously for many intervals. The overall null hypothesis is thus given by H0: the hypothesis H0.u,h/ holds true for all .u,h/ ∈GT, Multiscale Inference and Long-run Variance Estimation 9 where GTis some large set of points .u,h/. The details on the set GTare discussed at the end of Section 3.1. Note that GTin general depends on the sample size T, implying that the null hypothesis H0=H0,Tdepends on Tas well. We thus consider a sequence of null hypotheses {H0,T:T=1, 2, :::}as Tincreases. For simplicity of notation, however, we suppress the dependence of H0on T. In Sections 3.1 and 3.2, we step by step construct the multiscale test of the hypothesis H0. The theoretical properties of the test are analysed in Section 3.3. 3.1. Construction of the multiscale statistic We first construct a test statistic for the hypothesis H0.u,h/,where[u−h,u+h]isagiven interval. To do so, we consider the kernel average ˆ ψT.u,h/ = T  t=1 wt,T.u,h/Yt,T, where wt,T.u,h/ is a kernel weight and his the bandwidth. To avoid boundary issues, we work with a local linear weighting scheme. We in particular set wt,T.u,h/ =Λt,T.u,h/ {T t=1Λt,T.u,h/2}1=2,.3:1/ where Λt,T.u,h/ =Kt=T −u hST,0.u,h/t=T −u h−ST,1.u,h/, ST,l.u,h/ =.Th/−1T  t=1 Kt=T −u ht=T −u hl for l=0, 1, 2 and Kis a kernel function with the following properties. Condition 4. The kernel Kis non-negative, symmetric about zero and integrates to 1. Moreover, it has compact support [−1, 1] and is Lipschitz continuous, i.e. |K.v/ −K.w/|⩽C|v−w| for any v,w∈Rand some constant C>0. The kernel average ˆ ψT.u,h/ is nothing other than a rescaled local linear estimator of the derivative m.u/ with bandwidth h. Alternatively to the local linear weights defined in equation (3.1), we could work with the weights wt,T.u,h/ =K{.t=T −u/=h}=[ΣT t=1K{.t=T −u/=h}2]1=2, where the kernel function Kis assumed to be differentiable and Kis its derivative. However, we prefer to use local linear weights as these have superior theoretical properties at the boundary. A test statistic for the hypothesis H0.u,h/ is given by the normalized kernel average ˆ ψT.u,h/= ˆσ, where ˆσ2is an estimator of the long-run variance σ2=Σ∞ l=−∞cov."0,"l/of the error process {"t}. The problem of estimating σ2is discussed in detail in Section 4. For the time being, we suppose that ˆσ2is an estimator with reasonable theoretical properties. Specifically, we assume that ˆσ2= σ2+op.ρT/with ρT=o{1=log.T/}. This is a fairly weak condition which is in particular satisfied by the estimator of σ2analysed in Section 4. The kernel weights wt,T.u,h/ are chosen such that, in the case of independent errors "t,var{ˆ ψT.u,h/}=σ2for any location uand bandwidth h, where the long-run error variance σ2simplifies to σ2=var."t/. In the more general case that the error terms satisfy the weak dependence conditions from Section 2, var{ˆ ψT.u,h/}=σ2+o.1/ for any uand hunder consideration. Hence, for sufficiently large sample sizes T, the test statistic ˆ ψT.u,h/= ˆσhas approximately unit variance. 10 M. Khismatullina and M. Vogt We now combine the test statistics ˆ ψT.u,h/= ˆσfor a wide range of locations uand bandwidths or scales h. There are different ways to do so, leading to different types of multiscale statistics. Our multiscale statistic is defined as ˆ ΨT=max .u,h/∈GT ˆ ψT.u,h/ ˆσ−λ.h/,.3:2/ where λ.h/=√[2 log{1=.2h/}] and GTis the set of points .u,h/ that are taken into consideration. The details on the set GTare given below. As can be seen, the statistic ˆ ΨTdoes not simply aggregate the individual statistics ˆ ψT.u,h/= ˆσby taking the supremum over all points .u,h/∈GT as in more traditional multiscale approaches. We rather calibrate the statistics ˆ ψT.u,h/= ˆσthat correspond to the bandwidth hby subtracting the additive correction term λ.h/. This approach was pioneered by D¨ umbgen and Spokoiny (2001) and has been used in numerous other studies since then; see for example D¨ umbgen (2002), Rohde (2008), D¨ umbgen and Walther (2008), Rufibach and Walther (2010), Schmidt-Hieber et al. (2013) and Eckle et al. (2017). To see the heuristic idea behind the additive correction λ.h/, consider for a moment the uncorrected statistic ˆ ΨT,uncorrected =max .u,h/∈GT ˆ ψT.u,h/ ˆσ.3:3/ and suppose that the hypothesis H0.u,h/ is true for all .u,h/ ∈GT. For simplicity, assume that the errors "tare IID normally distributed and neglect the estimation error in ˆσ, i.e. set ˆσ=σ. Moreover, suppose that the set GTconsists of only the points .uk,hl/=..2k−1/hl,hl/with k=1, :::,1=.2hl/and l=1, :::,L. In this case, we can write ˆ ΨT,uncorrected =max 1⩽l⩽Lmax 1⩽k⩽1=.2hl/ ˆ ψT.uk,hl/ σ: Under our simplifying assumptions, the statistics ˆ ψT.uk,hl/=σwith k=1, :::,1=.2hl/are independent and standard normal for any given bandwidth hl. Since the maximum over 1=.2h/ independent standard normal random variables is λ.h/ +op.1/as h→0, we obtain that maxkˆ ψT.uk,hl/=σis approximately of size λ.hl/for small bandwidths hl.Asλ.h/ →∞for h→0, this implies that maxkˆ ψT.uk,hl/=σtends to be much larger for small than for large bandwidths hl. As a result, the stochastic behaviour of the uncorrected statistic ˆ ΨT,uncorrected tends to be dominated by the statistics ˆ ψT.uk,hl/corresponding to small bandwidths hl. The additively corrected statistic ˆ ΨT, in contrast, puts the statistics ˆ ψT.uk,hl/corresponding to different bandwidths hlon a more equal footing, thus counteracting the dominance of small bandwidth values. The multiscale statistic ˆ ΨTsimultaneously takes into account all locations uand bandwidths hwith .u,h/ ∈GT. Throughout the paper, we suppose that GTis some subset of Gfull T={.u,h/ : u=t=T for some 1 ⩽t⩽Tand h∈[hmin,hmax]}, where hmin and hmax denote some minimal and maximal bandwidth value respectively. For our theory to work, we require the following conditions to hold. Condition 5. |GT|=O.T θ/for some arbitrarily large but fixed constant θ>0, where |GT| denotes the cardinality of GT. Condition 6. hmin T−.1−2=q/ log.T/, i.e. hmin={T−.1−2=q/ log.T/}→∞with q>4 defined in condition 2 and hmax <1 2. According to condition 5, the number of points .u,h/ in GTshould not grow faster than Tθfor some arbitrarily large but fixed θ>0. This is a fairly weak restriction as it allows the set GTto be Multiscale Inference and Long-run Variance Estimation 11 extremely large compared with the sample size T. For example, we may work with the set GT= {.u,h/ :u=t=T for some 1 ⩽t⩽Tand h∈[hmin,hmax] with h=t=T for some 1 ⩽t⩽T}, which contains more than enough points .u,h/ for most practical applications. Condition 6 imposes some restrictions on the minimal and maximal bandwidths hmin and hmax. These conditions are fairly weak, allowing us to choose the bandwidth window [hmin,hmax] extremely large. The lower bound on hmin depends on the parameter qdefined in condition 2 which specifies the number of existing moments for the error terms "t. As we can see, we can choose hmin to be of the order T−1=2for any q>4. Hence, we can let hmin converge to 0 very quickly even if only the first few moments of the error terms "texist. If all moments exist (i.e. q=∞), hmin may converge to 0 almost as quickly as T−1log.T/. Furthermore, the maximal bandwidth hmax is not even required to converge to 0, which implies that we can pick it very large. Remark 1. The above construction of the multiscale statistic can be easily adapted to hypotheses other than H0. To do so, we simply need to replace the kernel weights wt,T.u,h/ that are defined in equation (3.1) by appropriate versions which are suited to test the hypothesis of interest. For example, if we want to test for local convexity or concavity of m, we may define the kernel weights wt,T.u,h/ such that the kernel average ˆ ψT.u,h/ is a (rescaled) estimator of the second derivative of mat the location uwith bandwidth h. 3.2. The test procedure To formulate a test for the null hypothesis H0, we still need to specify a critical value. To do so, we define the statistic ΦT=max .u,h/∈GTφT.u,h/ σ−λ.h/,.3:4/ where φT.u,h/=ΣT t=1wt,T.u,h/σZtand Ztare independent standard normal random variables. The statistic ΦTcan be regarded as a Gaussian version of the test statistic ˆ ΨTunder the null hypothesis H0. Let qT.α/be the .1−α/-quantile of ΦT. Importantly, the quantile qT.α/can be computed by Monte Carlo simulations and can thus be regarded as known. Our multiscale test is now defined as follows: for a given level of significance α∈.0, 1/, we reject the overall null hypothesis H0if ˆ ΨT>q T.α/. In particular, for any .u,h/ ∈GT, we reject H0.u,h/ if the (corrected) test statistic |ˆ ψT.u,h/= ˆσ|−λ.h/ lies above the critical value qT.α/, i.e. if |ˆ ψT.u,h/= ˆσ|> qT.α/+λ.h/. 3.3. Theoretical properties of the test To examine the theoretical properties of our multiscale test, we introduce the auxiliary multiscale statistic ˆ ΦT=max .u,h/∈GT ˆ φT.u,h/ ˆσ−λ.h/.3:5/ with ˆ φT.u,h/ =ˆ ψT.u,h/ −E[ˆ ψT.u,h/]=ΣT t=1wt,T.u,h/"t. The following result is central to the theoretical analysis of our multiscale test. According to it, the (known) quantile qT.α/of the Gaussian statistic ΦTthat was defined in Section 3.2 can be used as a proxy for the .1−α/- quantile of the multiscale statistic ˆ ΦT. Theorem 1. Let conditions 1–6 be fulfilled and assume that ˆσ2=σ2+op.ρT/with ρT= o{1=log.T/}. Then P{ˆ ΦT⩽qT.α/}=1−α+o.1/: 12 M. Khismatullina and M. Vogt A full proof of theorem 1 is given in the on-line supplementary material. Here we briefly outline the proof strategy, which splits up into two main steps. In the first, we replace the statistic ˆ ΦT for each T⩾1 by a statistic ˜ ΦTwith the same distribution as ˆ ΦTand the property that |˜ ΦT−ΦT=op.δT/,.3:6/ where δT=o.1/and the Gaussian statistic ΦTis defined in Section 3.2. We thus replace the statistic ˆ ΦTby an identically distributed version which is close to a Gaussian statistic whose distribution is known. To do so, we make use of strong approximation theory for dependent processes as derived in Berkes et al. (2014). In the second step, we show that sup x∈R|P.˜ ΦT⩽x/ −P.ΦT⩽x/|=o.1/,.3:7/ which immediately implies the statement of theorem 1. Importantly, the convergence result (3.6) is not sufficient for establishing the result in equation (3.7). Put differently, the fact that ˜ ΦTcan be approximated by ΦTin the sense that ˜ ΦT−ΦT=op.δT/does not imply that the distribution of ˜ ΦTis close to that of ΦTin the sense of equation (3.7). For equation (3.7) to hold, we additionally require that the distribution of ΦThas some sort of continuity property. Specifically, we prove that sup x∈R P.|ΦT−x|⩽δT/=o.1/,.3:8/ which says that ΦTdoes not concentrate too strongly in small regions of the form [x−δT,x+δT]. Anticoncentration bounds for Gaussian random vectors as derived in Chernozhukov et al. (2015) are the main tool for verifying the result in equation (3.8). The claim (3.7) can be proved by using equation (3.6) together with equation (3.8), which in turn yields theorem 1. The main idea of our proof strategy is to combine strong approximation theory with anticoncentration bounds for Gaussian random vectors to show that the quantiles of the multiscale statistic ˆ ΦTcan be proxied by those of a Gaussian analogue. This strategy is quite general in nature and may be applied to other multiscale problems for dependent data. Strong approximation theory has also been used to investigate multiscale tests for independent data; see for example Schmidt-Hieber et al. (2013). However, it has not been combined with anticoncentration results to approximate the quantiles of the multiscale statistic. As an alternative to strong approximation theory, Eckle et al. (2017) and Proksch et al. (2018) have recently used Gaussian approximation results that were derived in Chernozhukov et al. (2014, 2017) to analyse multiscale tests for independent data. Even though it might be possible to adapt these techniques to the case of dependent data, this is not trivial at all as part of the technical arguments and the Gaussian approximation tools strongly rely on the assumption of independence. We now investigate the theoretical properties of our multiscale test with the help of theorem 1. The first result is an immediate consequence of theorem 1. It says that the test has the correct (asymptotic) size. Proposition 1. Let the conditions of theorem 1 be satisfied. Under the null hypothesis H0,it holds that P{ˆ ΨT⩽qT.α/}=1−α+o.1/: The second result characterizes the power of the multiscale test against local alternatives. To formulate it, we consider any sequence of functions m=mTwith the following property: there exists .u,h/ ∈GTwith [u−h,u+h]⊆[0, 1] such that Multiscale Inference and Long-run Variance Estimation 19 When the trend mis very pronounced, in contrast, even moderate values of qmay be too large to eliminate the trend appropriately. As a result, the estimator ˜ aqwill have a strong bias. To reduce this bias, we refine our estimation procedure as follows: by solving the recursive equations (4.2) with areplaced by ˜ aq, we can compute estimators ˜ckof the coefficients ckand thus estimators ˜ crof the vectors crfor any r⩾1. Moreover, the innovation variance ν2can be estimated by ˜ν2=.2T/−1ΣT t=p+2˜r2 t,T, where ˜rt,T=Δ1Yt,T−Σp j=1˜ajΔ1Yt−j,Tand ˜ajis the jth entry of the vector ˜ aq. Plugging the expressions ˆ Γr,ˆγr,˜ crand ˜ν2into equation (4.7), we can estimate aby ˆ ar=ˆ Γ−1 r.ˆγr+˜ν2˜ cr/,.4:9/ where ris a much smaller differencing order than q. Specifically, in case A, we can choose rto be any fixed number r⩾1. Unlike q, the parameter rthus remains bounded as Tincreases. In case B, our theory enables us to choose any number rwith r⩾.1+δ/p for some small δ>0. Since q=p →∞, it holds that q=r →∞as well, which means that ris of smaller order than q. Hence, in both case A and case B, the estimator ˆ aris based on a differencing order rthat is much smaller than q; only the pilot estimator ˜ aqrelies on differences of the larger order q.Asa consequence, ˆ arshould eliminate the trend mmore appropriately and should thus be less biased than the pilot estimator ˜ aq. To make the method more robust against estimation errors in ˜ cr, we finally average the estimators ˆ arfor a few values of r. In particular, we define ˆ a=1 ¯r−r+1 ¯r  r=r ˆ ar,.4:10/ where rand ¯rare chosen as follows: in case A, we let rand ¯rbe small natural numbers. In case B, we set r=.1−δ/p for some small δ>0 and choose ¯rsuch that ¯r−rremains bounded. For ease of notation, we suppress the dependence of ˆ aon the parameters rand ¯r. Once ˆ a=.ˆa1,:::,ˆap/T has been computed, the long-run variance σ2can be estimated by ˆσ2=ˆν2 .1−p j=1ˆaj/2,.4:11/ where ˆν2=.2T/−1ΣT t=p+2ˆr2 t,Twith ˆrt,T=Δ1Yt,T−Σp j=1ˆajΔ1Yt−j,Tis an estimator of the innovation variance ν2and we make use of the fact that σ2=ν2=.1−ΣpÅ j=1aj/2for the AR(pÅ) process {"t}. We briefly compare the estimator ˆ awith competing methods. Presumably closest to our approach is that of Hall and Van Keilegom (2003) which was designed for AR(pÅ) processes of known finite order pÅ. For comparing the two methods, we thus assume that pÅis known and set p=pÅ. The two main advantages of our method are as follows. (a) Our estimator produces accurate estimation results even when the AR process {"t}is quite persistent, i.e. even when the AR polynomial A.z/ =1−ΣpÅ j=1ajzjhas a root that is close to the unit circle. The estimator of Hall and Van Keilegom (2003), in contrast, may have very high variance and may thus produce unreliable results when the AR polynomial A.z/ is close to having a unit root. This difference in behaviour can be explained as follows: our pilot estimator ˜ aq=.˜a1,:::,˜apÅ/Thas the property that the estimated AR polynomial ˜ A.z/=1−ΣpÅ j=1˜ajzjhas no root inside the unit disc, i.e. ˜ A.z/=0 for all complex numbers zwith |z|⩽1. (More precisely, ˜ A.z/ =0 for all zwith |z|⩽1, whenever the covariance matrix .ˆγq.i−j/:1⩽i,j⩽pÅ+1/is non-singular. Moreover, .ˆγq.i−j/:1⩽i,j⩽pÅ+1/ is non-singular whenever ˆγq.0/>0, which is the generic case.) Hence, the fitted AR model 20 M. Khismatullina and M. Vogt with the coefficients ˜ aqis ensured to be stationary and causal. Even though this may seem to be a minor technical detail, it has a huge effect on the performance of the estimator ˜ aq: it keeps the estimator stable even when the AR process is very persistent and the AR polynomial A.z/ has almost a unit root. This in turn results in reliable behaviour of the estimator ˆ ain the case of high persistence. The estimator of Hall and Van Keilegom (2003), in contrast, may produce non-causal results when the AR polynomial A.z/ is close to having a unit root. As a consequence, it may have unnecessarily high variance in the case of high persistence. We illustrate this difference between the estimators by the simulation exercises in Section 5.2. A striking example is Fig. 6 there, which presents the simulation results for the case of an AR(1) process "t=a1"t−1+ηtwith a1=−0:95 and clearly shows the much better performance of our method. (b) Both our pilot estimator ˜ aqand the estimator of Hall and Van Keilegom (2003) tend to have a substantial bias when the trend mis pronounced. Our estimator ˆ areduces this bias considerably as demonstrated in the simulations of Section 5.2. Unlike the estimator of Hall and Van Keilegom (2003), it thus produces accurate results even in the presence of a very strong trend. We close this section by deriving some basic asymptotic properties of the estimators ˜ aq,ˆ a and ˆσ2. To formulate the following result, we use the shorthand vTwTwhich means that vT=wT→0asT→∞. Proposition 4. Let mbe Lipschitz continuous and suppose that {"t}is an AR(pÅ) process of the form (4.3) with the following properties: A.z/ =0 for all |z|⩽1+δwith some small δ>0 and the innovations ηthave a finite fourth moment. Assume that p,q,rand ¯rsatisfy the following conditions. In case A, p,rand ¯rare fixed natural numbers and log.T/ q√T.In case B, Clog.T/ ⩽pmin{T1=5,q}for some sufficiently large C,q√T,r=.1+δ/p for some small δ>0 and ¯r−rremains bounded. Under these conditions, ˜ aq−a=Op{√.p=T/}as well as ˆ a−a=Op{√.p3=T/}and ˆσ2−σ2=Op{√.p4=T/}. The proof is provided in the on-line supplementary material. As we can see, the convergence rate of the second-step estimator ˆ ais somewhat slower than that of the pilot estimator ˜ aq. Hence, from an asymptotic perspective, there is no gain from using the second-step estimator. Nevertheless, in finite samples, the estimator ˆ avastly outperforms ˜ aqsince it considerably reduces the bias of the latter. 5. Simulations 5.1. Small sample properties of the multiscale test In what follows, we investigate the performance of our multiscale test and compare it with the dependent SiZer methods from Park et al. (2004, 2009) and Rondonotti et al. (2007). We consider the following versions of our multiscale test and SiZer. (a) TMS is our multiscale test with the statistic ˆ ΨT=maxh∈HT{ˆ ΨT.h/−λ.h/}, where ˆ ΨT.h/= maxu∈UT|ˆ ψT.u,h/= ˆσ|. Here and in what follows, we write GT=UT×HT, where UTis the set of locations and HTthe set of bandwidths. (b) TUC is the uncorrected version of our multiscale test with the test statistic ˆ ΨT,uncorrected = maxh∈HTˆ ΨT.h/, which has already been introduced in equation (3.3). The uncorrected test is carried out in exactly the same way as TMS. The only difference is that the correction terms λ.h/ are removed. Multiscale Inference and Long-run Variance Estimation 21 (c) TRW is a rowwise (or scalewise) version of our multiscale test as briefly mentioned in Section 3.4. This version carries out a test scalewise, i.e. separately for each scale h∈HT based on the statistic ˆ ΨT.h/. Note the following. (i) For each h∈HT, the test based on ˆ ΨT.h/ can be performed in the same way as the multiscale test TMS, since it is a degenerate version of the latter with the set of scales HTreplaced by the singleton {h}. (ii) It does not matter whether we correct the statistic ˆ ΨT.h/ by subtracting λ.h/ or not, since λ.h/ acts as a fixed constant when only one bandwidth his taken into account. (d) TSiZer is the rowwise version of dependent SiZer from Park et al. (2004, 2009) and Rondonotti et al. (2007). We do not consider a global version of dependent SiZer as such a version was not fully developed in Park et al. (2004, 2009) and Rondonotti et al. (2007). The simulation set-up is as follows: we generate data from the model Yt,T=m.t=T/ +"tfor different trends m, error processes {"t}and sample sizes T. The error terms are supposed to have the AR(1) structure "t=a1"t−1+ηt, where a1∈{−0:9, −0:5, −0:25, 0:25, 0:5, 0:9},ηtare IID standard normal and the AR order pÅ=1 is treated as known. To simulate data under the null, we let mbe a constant function. In particular, we set m=0 without loss of generality. To generate data under the alternative, we consider different non-constant trend functions which are specified below. For each model specification, we simulate S=1000 data samples and carry out the tests TMS,TUC,TRW and TSiZer for each simulated sample. To implement our multiscale test TMS, we choose Kto be an Epanechnikov kernel and let GT=UT×HTwith UT=u∈[0,1]:u=5t=T for some t∈N, HT={h∈[log.T/=T ,1 4]:h=5l=T for some l∈N}: We thus take into account all locations uon an equidistant grid UTwith step length 5=T and all bandwidths h=5=T ,10=T ,15=T ,:::with log.T/=T ⩽h⩽1 4. Note that the lower bound log.T/=T is motivated by condition 6 which requires that log.T/=T hmin (given that all moments of "t exist). As a robustness check, we have rerun the simulations for other grids. As the results are very similar, we do not, however, report them here. To estimate the long-run error variance σ2, we apply the procedure from Section 4 with r=1 and ¯r=10 and the following choices of q:for a1∈{−0:5, −0:25, 0:25, 0:5},wesetq=25. As already discussed in Section 4, this should be an appropriate choice for AR(1) errors that are not too strongly correlated, in particular, for a1∈{−0:5, −0:25, 0:25, 0:5}. When the errors are very strongly correlated, larger values of qare required to produce precise estimates of σ2. In the case of AR(1) errors with a1∈{−0:9, 0:9},we thus set q=50. The dependence of our long-run variance estimator on the tuning parameters q,rand ¯ris explored more systematically in Section 5.2. To compute the critical values of the multiscale test TMS, we simulate 5000 values of the statistic ΦTdefined in Section 3.2 and compute their empirical .1−α/-quantile qT.α/. The uncorrected and rowwise versions TUC and TRW of our multiscale test are implemented analogously. The SiZer test is implemented as described in Park et al. (2009). The details are summarized in section S.3 of the on-line supplementary material. 5.1.1. Size simulations The first part of our simulation study investigates the size properties of the four tests TMS, TUC,TRW and TSiZer under the null that the trend mis constant. To start with, we focus on 22 M. Khismatullina and M. Vogt the multiscale test TMS. Table 1 reports the actual size of TMS for the AR parameters a1∈ {−0:5, −0:25, 0:25, 0:5}, which is computed as the number of simulations in which TMS rejects the null divided by the total number of simulations. As can be seen, the actual size of the multiscale test TMS is fairly close to the nominal target αfor all the AR parameters and sample sizes considered. Hence, the test has approximately the correct size. In Table 1, we have explored the size of TMS when the errors are moderately auto-correlated. The case of strongly auto-correlated errors is investigated in Table 2, where we consider AR(1) errors with a1∈{−0:9, 0:9}. We first discuss the results for the positive AR parameter a1= 0:9. As can be seen, the size numbers are substantially downwardly biased for small sample sizes, in particular, for T=250 and T=500. As the sample size increases, this downward bias diminishes and the size numbers stabilize around their target α. In particular, for T⩾1000, the size numbers give a decent approximation to α. An analogous picture arises for the negative AR parameter a1=−0:9. The size numbers, however, are upwardly rather than downwardly biased for small sample sizes Tand the size distortions appear to vanish a little more slowly as Tincreases. To summarize, in the case of strongly auto-correlated errors, our multiscale test has good size properties only for sufficiently large sample sizes. This is not very surprising: statistical inference in the presence of strongly auto-correlated data is a very difficult problem in general and satisfying results can only be expected for fairly large sample sizes. We next compare our multiscale test TMS with TUC,TRW and TSiZer in terms of size. There is an important difference between TMS and TUC on the one hand and TRW and TSiZer on the other. TMS and its uncorrected version TUC are global test procedures: they test H0.u,h/ simultaneously for all locations u∈UTand scales h∈HT. Hence, they control the size simultaneously over both locations uand scales h. The methods TRW and TSiZer, in contrast, are rowwise (or scalewise)in nature: they test the hypothesis H0.u,h/ simultaneously for all u∈UTbut separately for each scale h∈HT. Hence, they control the size for each scale h∈HTseparately. Table 1. Size of TMS for the AR parameters a12{0.5, 0.25, 0.25, 0.5} T Results for a1=−0.5 Results for a1=−0.25 Results for a1=0.25 Results for a1=0.5 and the following and the following and the following and the following nominal sizes α: nominal sizes α: nominal sizes α: nominal sizes α: 0.01 0.05 0.1 0.01 0.05 0.1 0.01 0.05 0.1 0.01 0.05 0.1 250 0.013 0.040 0.086 0.016 0.054 0.106 0.009 0.045 0.094 0.014 0.058 0.106 500 0.013 0.044 0.102 0.008 0.041 0.089 0.013 0.057 0.107 0.014 0.056 0.101 1000 0.011 0.052 0.090 0.007 0.057 0.114 0.011 0.049 0.106 0.007 0.050 0.098 Table 2. Size of TMS for the AR parameters a12{0.9, 0.9} αResults for a1=−0.9 and Results for a1=0.9 and the following sample sizes T: the following sample sizes T: 250 500 1000 2000 3000 250 500 1000 2000 3000 0.01 0.040 0.032 0.017 0.009 0.012 0.003 0.016 0.015 0.021 0.017 0.05 0.137 0.093 0.067 0.061 0.047 0.017 0.038 0.055 0.059 0.057 0.1 0.218 0.160 0.124 0.108 0.098 0.040 0.054 0.095 0.096 0.106 Multiscale Inference and Long-run Variance Estimation 23 Table 3. Global size comparisons for the level of significance αD0.05 T Results for a1=−0.5 Results for a1=0.5 TMS TUC TRW TSiZer TMS TUC TRW TSiZer 250 0.069 0.065 0.230 0.333 0.049 0.048 0.143 0.289 500 0.054 0.065 0.288 0.448 0.042 0.026 0.187 0.397 1000 0.046 0.051 0.318 0.522 0.052 0.049 0.276 0.509 We conduct some simulation exercises to illustrate this important distinction. To keep the simulation study to a reasonable length, we restrict attention to the level of significance α=0:05 and the AR parameters a1∈{−0:5, 0:5}. To simplify the implementation of TSiZer, we assume that the autocovariance function of the error process and thus the long-run error variance σ2are known. To keep the comparison fair, we treat σ2as known also when implementing TMS,TUC and TRW . Moreover, we use exactly the same location–scale grid for all four methods. To achieve this, we start off with the grid GT=UT×HTwith UTand HTdefined above. We then follow Rondonotti et al. (2007) and restrict attention to those points .u,h/ ∈GTfor which the effective sample size ESSÅ.u,h/ for correlated data is not smaller than 5. This yields the grid GÅ T={.u,h/∈ GT:ESSÅ.u,h/⩾5}. A definition of ESSÅ.u,h/ is given in section S.3 of the on-line supplement. For our simulation exercises, we distinguish between global and rowwise (or scalewise) size: global size is defined as the percentage of simulations in which the test under consideration rejects H0.u,h/ for some .u,h/ ∈GÅ T. Hence, it is identical to the size as computed in Tables 1 and 2. Rowwise size for scale hÅ∈HT, in contrast, is the percentage of simulations in which the test rejects H0.u,hÅ/for some .u,hÅ/∈GÅ T. Table 3 reports the global size of the four tests. As can be seen, the size numbers of our multiscale test TMS and its uncorrected version TUC are reasonably close to the target α=0:05. The global size numbers of the rowwise methods TRW and TSiZer, in contrast, are much larger than the target α=0:05. Since the number of scales h in the grid GÅ Tincreases with T, they even move away from αas the sample size Tincreases. To summarize, as expected, the global tests TMS and TUC hold the size reasonably well, whereas the rowwise methods TRW and TSiZer are much too liberal. Fig. 2 reports the rowwise size of the four tests by so-called parallel co-ordinate plots (Inselberg, 1985) for the sample size T=1000. Each curve in Fig. 2 specifies the rowwise size of one of the tests for the scales hunder consideration. As can be seen, the rowwise version TRW of our multiscale test holds the size quite accurately across scales. The rowwise size of TSiZer also gives an acceptable approximation to the target α=5%, even though the size numbers are upwardly biased quite considerably. The global tests TMS and TUC, in contrast, have a rowwise size that is much smaller than the target α=5%, which reflects the fact that they control global rather than rowwise size. 5.1.2 Power comparisons In the second part of our simulation study, we compare the tests TMS,TUC,TRW and TSiZer in terms of power. As above, we use the location–scale grid GÅ Tand treat the autocovariance function of the error terms as known when implementing the tests. Moreover, we restrict attention to the level of significance α=0:05 and the AR parameters a1∈{−0:5, 0:5}. Our simulation exercises investigate the ability of the four tests to detect local increases in the trend m. (The same could of 24 M. Khismatullina and M. Vogt 051015 bandwidth h Size (in %) 0.05 0.10 0.15 0.20 0.25 0 5 10 15 bandwidth h Size (in %) 0.05 0.10 0.15 0.20 0.25 (a) (b) Fig. 2. Rowwise size comparisons for level of significance αD5% and sample size TD1000 (each curve shows the rowwise size as a function of the bandwidth hfor one of the four tests TMS ( ), TUC ( ), TRW ( ) and TSiZer ( )): (a) a1D0.5; (b) a1D0.5 course be done for decreases.) The tests indicate a local increase in maccording to the following decision rules: for each .u,h/ ∈GÅ T, TMS indicates an increase on [u−h,u+h]⇔ˆ ψT.u,h/= ˆσ>q T.α/+λ.h/, TUC indicates an increase on [u−h,u+h]⇔ˆ ψT.u,h/= ˆσ>qUC T.α/, TRW indicates an increase on [u−h,u+h]⇔ˆ ψT.u,h/= ˆσ>qRW T.α,h/, TSiZer indicates an increase on [u−h,u+h]⇔ˆsT.u,h/>qSiZer T.α,h/, where qUC T.α/,qRW T.α,h/ and qSiZer T.α,h/ are the critical values of TUC,TRW and TSiZer respectively. Note that the critical values of TRW and TSiZer depend on the scale has these are rowwise procedures. Multiscale Inference and Long-run Variance Estimation 25 To be able to make systematic power comparisons, we consider a very simple trend function m. More complicated signals mare analysed in section S.3 of the on-line supplementary material. The trend function that we are considering here is defined as m.u/ =c1.u ∈[0:45, 0:55]/[1 − {.u −0:5/=0:05}2]2, where c=0:45 in the AR case with a1=−0:5 and c=1:3 in the case with a1=0:5. The function mis increasing on I+=.0:45, 0:5/, decreasing on I−=.0:5, 0:55/and constant elsewhere. Figs 3(a) and 3(d) give a graphical illustration of m, where the grey line in the background is the time series path of a representative simulated data sample. As can be seen, mis a small bump around u=0:5, where cdetermines the height of the bump. The constant cis chosen such that the bump is difficult but not impossible to detect for the four tests. We distinguish between the following types of power for the tests Tjwith j∈{MS, UC, RW, SiZer}, where we restrict attention to increases in m: 0.0 0.2 0.4 0.6 0.8 1.0 −3 −2 −1 0 1 2 3 0 15304560 bandwidth h Power (in %) ●●●●● ● ● ● ● ● ● ● ●●●●●●●●●●●●●●●●●●●●● ● ●●●●●●●●●●● ● ●●● 0.05 0.10 0.15 0.20 0.25 02468 bandwidth h Spurious power (in %) ●●● ● ● ● ●● ● ●● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●●● ● ● ●●●● ● ● ● ●●●●● ● ●●● 0.05 0.10 0.15 0.20 0.25 0.0 0.2 0.4 0.6 0.8 1.0 −4 −3 −2 −1 0 1 2 30 15304560 bandwidth h Rescaled time Rescaled time Power (in %) ● ● ●●● ● ●● ● ● ● ●●●●●●●● ● ● ●●●●●●●●●●● ● ●●● ● ●●●●●●●●●●● 0.05 0.10 0.15 0.20 0.25 02468 bandwidth h Spurious power (in %) ● ● ●● ● ● ● ●●●●●●●●●●●● ● ● ● ● ● ● ● ● ●●●●●● ● ●●● ● ● ●●● ● ● ● ● ● ● 0.05 0.10 0.15 0.20 0.25 (a) (d) (b) (e) (c) (f) Fig. 3. Rowwise power and rowwise spurious power comparisons for αD5% and TD1000: (a)–(c) a1D0:5; (d)–(f) a1D0:5; (a), (d) bump function mwith a representative data sample in the background; (b), (e) parallel co-ordinate plot reporting rowwise power (in particular, each curve shows the rowwise power as a function of the bandwidth hfor one of the four tests TMS ( ), TUC ( ), TRW ( ) and TSiZer ( )); (c), (f) parallel co-ordinate plot reporting rowwise spurious power in an analogous fashion 26 M. Khismatullina and M. Vogt (a) global power; the percentage of simulation runs in which the test Tjindicates an increase on some interval Iu,h=[u−h,u+h] where mis indeed increasing, i.e. on some Iu,hwith Iu,h∩I+=∅; (b) spurious global power; the percentage of simulation runs in which the test Tjindicates an increase on some interval Iu,h=[u−h,u+h] where mis not increasing, i.e. on some Iu,h with Iu,h∩I+=∅; (c) rowwise power on scale hÅ; the percentage of simulation runs in which the test Tjindicates an increase on some interval Iu,hÆ=[u−hÅ,u+hÅ] where mis indeed increasing, i.e. on some Iu,hÆwith Iu,hÆ∩I+=∅; (d) spurious rowwise power on scale hÅ; the percentage of simulation runs in which the test Tjindicates an increase on some interval Iu,hÆ=[u−hÅ,u+hÅ] where mis not increasing, i.e. on some Iu,hÆwith Iu,hÆ∩I+=∅. Table 4 reports the global power and global spurious power of the four tests. As can be seen, our multiscale test TMS has higher power than the uncorrected version TUC. This confirms the theoretical optimality theory in D¨ umbgen and Spokoiny (2001) (see also D¨ umbgen and Walther (2008) and Rufibach and Walther (2010)) according to which the aggregation scheme of TMS with its additive correction term should yield better power properties than the simpler scheme of TUC. As expected, the rowwise methods TRW and TSiZer have substantially more power than the global tests. Indeed, TSiZer is even a little more powerful than TRW , which is presumably because it is somewhat too liberal in terms of rowwise size as observed in Fig. 2. The higher power of the rowwise procedures comes at some cost: their spurious global power is much higher than that of the global tests. For the sample size T=1000 and the AR parameter a1=−0:5, for example, TSiZer spuriously finds an increase in the trend min more than 28% of the simulations, and TRW in more than 15%. The multiscale test TMS (as well as its uncorrected version TUC), in contrast, controls the probability of finding a spurious increase. In particular, as implied by proposition 3, its spurious global power is below 100α%=5%. Fig. 3 gives a more detailed picture of the power properties of the four tests for the sample size T=1000. The parallel co-ordinate plots of Fig. 3 show how power and spurious power are distributed across scales h. Let us first have a look at the rowwise methods. As can be seen, TSiZer is more powerful than TRW on all scales under consideration. As already mentioned when discussing the global power results, this is presumably because TSiZer is a little too liberal in terms of rowwise size. Comparing the power curves of the two global methods gives an interesting insight: our multiscale test TMS has substantially more power than the uncorrected version TUC on medium and large scales. On small scales, in contrast, it is slightly less powerful than TUC. Table 4. Global power and global spurious power comparisons for αD0.05 T Results for a1=−0.5 Results for a1=0.5 TMS TUC TRW TSiZer TMS TUC TRW TSiZer 250 Power 0.102 0.086 0.228 0.328 0.096 0.079 0.190 0.295 Spurious power 0.021 0.032 0.109 0.166 0.012 0.017 0.054 0.131 500 Power 0.212 0.166 0.464 0.617 0.186 0.160 0.406 0.587 Spurious power 0.020 0.024 0.137 0.212 0.016 0.016 0.082 0.192 1000 Power 0.575 0.425 0.817 0.901 0.526 0.394 0.780 0.884 Spurious power 0.023 0.024 0.158 0.283 0.020 0.019 0.123 0.252 Multiscale Inference and Long-run Variance Estimation 27 This again illustrates the theoretical optimality theory in D¨ umbgen and Spokoiny (2001) which suggests that, asymptotically, the multiscale test TMS should be as powerful as TUC on small scales but more powerful on large scales. This is essentially what we see in Figs 3(b) and 3(e). Of course, TMS does not have exactly as much power as TUC on fine scales. However, the loss of power on fine scales is very small compared with the gain of power on larger scales (which is also reflected by the fact that TMS has more global power than TUC). The main findings of our simulation exercises can be summarized as follows: if we are interested in an exploratory data tool for finding local increases or decreases of a trend, the rowwise methods TRW and TSiZer both do a good job. However, if we want to make rigorous statistical inference simultaneously across locations and scales, we need to opt for a global method. Our simulation exercises have demonstrated that our multiscale test TMS is a global method which enjoys good size and power properties. In particular, as predicted by the theory, it is a more effective test than the uncorrected version TUC. 5.2. Small sample properties of the long-run variance estimator In the final part of our simulation study, we analyse the estimators of the AR parameters and of the long-run error variance from Section 4 and compare them with the estimators of Hall and Van Keilegom (2003). We simulate data from the model Yt,T=m.t=T/ +"t, where {"t}is an AR(1) process of the form "t=a1"t−1+ηt. We consider the AR parameters a1∈ {−0:95, −0:75, −0:5, −0:25, 0:25, 0:5, 0:75, 0:95}and let ηtbe IID standard normal innovation terms. Throughout the simulation study, the AR order pÅ=1 is treated as known. We report our findings for the sample size T=500; the results for other sample sizes are very similar. For simplicity, mis chosen to be a linear function of the form m.u/ =βuwith the slope parameter β. For each value of a1, we consider two slopes β: one corresponding to a moderate and one to a pronounced trend m. In particular, we let β=sβ√var."t/with sβ∈{1, 10}. When sβ=1, the slope βis equal to the standard deviation √var."t/of the error process, which yields a moderate trend m. When sβ=10, in contrast, the slope βis 10 times as large as √var."t/, which results in quite a pronounced trend m. For each model specification, we generate S=1000 data samples and compute the following quantities for each simulated sample: (a) the pilot estimator ˜aqfrom equation (4.8) with the tuning parameter q, the estimator ˆa from equation (4.10) with the tuning parameters .r,¯r/ and the long-run variance estimator ˆσ2from equation (4.11); (b) the estimators of a1and σ2from Hall and Van Keilegom (2003), which are denoted by ˆaHvK and ˆσ2 HvK (the estimator ˆaHvK is computed as described in Section 2.2 of Hall and Van Keilegom (2003) and ˆσ2 HvK as defined at the bottom of page 447 in section 2.3 there; the estimator ˆaHvK (as well as ˆσ2 HvK) depends on two tuning parameters which we denote by m1and m2as in Hall and Van Keilegom (2003)); (c) oracle estimators ˆaoracle and ˆσ2 oracle of a1and σ2, which are constructed under the assumption that the error process {"t}is observed (for each simulation run, we compute ˆaoracle as the maximum likelihood estimator of a1from the time series of simulated error terms "1,:::,"T. We then calculate the residuals rt="t−ˆaoracle"t−1and estimate the innovation variance ν2=E[η2 t]by ˆν2 oracle =.T −1/−1ΣT t=2r2 t. Finally, we set ˆσ2 oracle = ˆν2 oracle=.1−ˆaoracle/2. Throughout this section, we set q=25, .r,¯r/=.1, 10/and .m1,m2/=.20, 30/. We in particular choose qto be in the middle of m1and m2to make the tuning parameters of the estimators ˜aq and ˆaHvK comparable. To assess how sensitive our estimators are to the choice of qand .r,¯r/, 28 M. Khismatullina and M. Vogt 0.000 0.002 0.004 0.006 1 MSE −0.95 −0.75 −0.5 −0.25 0.25 0.5 0.75 0.95 a (a) −5 0 5 10 a 1 log(MSE) −0.95 −0.75 −0.5 −0.25 0.25 0.5 0.75 0.95 (b) Fig. 4. MSE values for the estimators (a) ˆa( ), ˆaHvK ( ) and ˆaoracle ( ) and (b) ˆσ2( ), ˆσ2 HvK ( ) and ˆσ2 oracle ( ) in the simulation scenarios with a moderate trend (sβD1) we carry out robustness checks, considering a range of values for qand .r,¯r/. In addition, we vary the tuning parameters m1and m2of the estimators from Hall and Van Keilegom (2003) to make sure that the results of our comparison study are not driven by the particular choice of any of the tuning parameters involved. The results of our robustness checks are reported in section S.3 of the on-line supplement. They show that the results of our comparison study are robust to different choices of the parameters q,.r,¯r/ and .m1,m2/. For each estimator ˆa,ˆaHvK,ˆaoracle,ˆσ2,ˆσ2 HvK and ˆσ2 oracle, and for each model specification, the simulation output consists of a vector of length S=1000 which contains the 1000 simulated values of the respective estimator. Figs 4 and 5 report the mean-squared error (MSE) of these 1000 simulated values for each estimator. On the x-axis of each plot, the various values of the AR parameter a1are listed which are considered. The full curve in each plot gives the MSE values of our estimators. The broken and dotted curves specify the MSE values of the Hall and Van Keilegom and the oracle estimators respectively. Note that, for the long-run variance estimators, the plots report the logarithm of the MSE rather than the MSE itself since the MSE values are too Multiscale Inference and Long-run Variance Estimation 35 1875 1925 1975 −0.4 0.0 0.4 (a) (b) −1.2 −0.9 −0.6 (c) 1875 1925 1975 log10(h) Fig. 9. Summary of the results for the global temperature anomalies: (a) observed temperature time series (in degrees centigrade); (b) minimal intervals in the set ΠC Tproduced by the multiscale test (these are [1905, 1935], [1915, 1945], [1920, 1950] and [1965, 1995]); (c) SiZer map of our test Fig. 9(b) and Fig. 9(c), the test indicates an increase in the trend mduring the first half of the 20th century followed by another increase during the second half. These findings are in line with those in Wu et al. (2001) who rejected the null hypothesis that mis constant. In contrast with the test of Wu et al. (2001), however, our multiscale method not only enables us to test whether the null is violated. It also enables us to make formal confidence statements about where violations occur, i.e. about where the trend mis increasing. In particular, we can claim, with confidence of about 95%, that the trend has an increase on each interval plotted in Fig. 9(b). Acknowledgements We thank the Joint Editor, the Associate Editor and two referees for their constructive and helpful comments on an earlier version of the paper. Michael Vogt was funded by the Deutsche Forschungsgemeinschaft (German Research Foundation) under Germany’s ‘Excellence strategy’—GZ 2047/1, project 390685813. References Benner, T. C. (1999) Central England temperatures: long-term variability and teleconnections. Int. J. Clim.,19, 391–403. Berkes, I., Liu, W. and Wu, W. B. (2014) Koml´ os-Major-Tusn´ ady approximation under dependence. Ann. Probab., 42, 794–817. Chaudhuri, P. and Marron, J. S. (1999) SiZer for the exploration of structures in curves. J. Am. Statist. Ass.,94, 807–823. 36 M. Khismatullina and M. Vogt Chaudhuri, P. and Marron, J. S. (2000) Scale space view of curve estimation. Ann. Statist.,28 408–428. Chernozhukov, V., Chetverikov, D. and Kato, K. (2014) Gaussian approximation of suprema of empirical processes. Ann. Statist.,42, 1564–1597. Chernozhukov, V., Chetverikov, D. and Kato, K. (2015) Comparison and anti-concentration bounds for maxima of Gaussian random vectors. Probab. Theory Reltd Flds,162, 47–70. Chernozhukov, V., Chetverikov, D. and Kato, K. (2017) Central limit theorems and bootstrap in high dimensions. Ann. Probab.,45, 2309–2352. Cho, H. and Fryzlewicz, P. (2012) Multiscale and multilevel technique for consistent segmentation of nonstationary time series. Statist. Sin.,22, 207–229. Donoho, D. L., Johnstone, I. M., Kerkyacharian, G. and Picard, D. (1995) Wavelet shrinkage: asymptopia (with discussion)? J. R. Statist. Soc. B, 57, 301–369. D¨ umbgen, L. (2002) Application of local rank tests to nonparametric regression. J. Nonparam. Statist.,14, 511– 537. D¨ umbgen, L. and Spokoiny, V. G. (2001) Multiscale testing of qualitative hypotheses. Ann. Statist.,29, 124– 152. D¨ umbgen, L. and Walther, G. (2008) Multiscale inference about a density. Ann. Statist.,36, 1758–1785. Eckle, K., Bissantz, N. and Dette, H. (2017) Multiscale inference for multivariate deconvolution. Electron. J. Statist.,11, 4179–4219. Hall, P. and Heckman, N. E. (2000) Testing for monotonicity of a regression mean by calibrating for linear functions. Ann. Statist.,28, 20–39. Hall, P. and Van Keilegom, I. (2003) Using difference-based methods for inference in nonparametric regression with time series errors. J. R. Statist. Soc. B, 65, 443–456. Hannig, J. and Marron, J. S. (2006) Advanced distribution theory for SiZer. J. Am. Statist. Ass.,101, 484– 499. Herrmann, E., Gasser, T. and Kneip, A. (1992) Choice of bandwidth for kernel regression when residuals are correlated. Biometrika,79, 783–795. Inselberg, A. (1985) The plane with parallel coordinates. Visl Comput.,1, 69–91. Morice, C. P., Kennedy, J. J., Rayner, N. A. and Jones, P. D. (2012) Quantifying uncertainties in global and regional temperature change using an ensemble of observational estimates: the HadCRUT4 data set. J. Geophys. Res., 117. Mudelsee, M. (2010) Climate Time Series Analysis: Classical Statistical and Bootstrap Methods. New York: Springer. M¨ uller, H.-G. and Stadtm¨ uller, U. (1988) Detecting dependencies in smooth regression models. Biometrika,75, 639–650. Park, C., Hannig, J. and Kang, K.-H. (2009) Improved SiZer for time series. Statist. Sin.,19, 1511– 1530. Park, C., Marron, J. S. and Rondonotti, V. (2004) Dependent SiZer: goodness-of-fit tests for time series models. J. Appl. Statist.,31, 999–1017. Parker, D. E., Legg, T. P. and Folland, C. K. (1992) A new daily central England temperature series, 1772-1991. Int. J. Clim.,12, 317–342. Proksch, K., Werner, F. and Munk, A. (2018) Multiscale scanning in inverse problems. Ann. Statist.,46, 3569– 3602. Qiu, D., Shao, Q. and Yang, L. (2013) Efficient inference for autoregressive coefficients in the presence of trends. J. Multiv. Anal.,114, 40–53. Rahmstorf, S., Foster, G. and Cahill, N. (2017) Global temperature evolution: recent trends and some pitfalls. Environ. Res. Lett.,12, article 054001. Rohde, A. (2008) Adaptive goodness-of-fit tests based on signed ranks. Ann. Statist.,36, 1346–1374. Rondonotti, V., Marron, J. S. and Park, C. (2007) SiZer for time series: a new approach to the analysis of trends. Electron. J. Statist.,1, 268–289. Rufibach, K. and Walther, G. (2010) The block criterion for multiscale inference about a density, with applications to other multiscale problems. J. Computnl Graph. Statist.,19, 175–190. Schmidt-Hieber, J., Munk, A. and D¨ umbgen, L. (2013) Multiscale methods for shape constraints in deconvolution: confidence statements for qualitative features. Ann. Statist.,41, 1299–1328. Shao, Q. and Yang, L. J. (2011) Autoregressive coefficient estimation in nonparametric analysis. J. Time Ser. Anal., 32, 587–597. Tecuapetla-G´ omez, I. and Munk, A. (2017) Autocovariance estimation in regression with a discontinuous signal and m-dependent errors: a difference-based approach. Scand. J. Statist.,44, 346–368. Truong, Y. K. (1991) Nonparametric curve estimation with time series errors. J. Statist. Planng Inf.,28, 167– 183. Von Sachs, R. and MacGibbon, B. (2000) Non-parametric curve estimation by Wavelet thresholding with locally stationary errors. Scand. J. Statist.,27, 475–499. Wu, W. B. (2005) Nonlinear system theory: another look at dependence. Proc. Natn. Acad. Sci. USA,102, 14150– 14154. Multiscale Inference and Long-run Variance Estimation 37 Wu, W. B. and Shao, X. (2004) Limit theorems for iterated random functions. J. Appl. Probab.,41, 425–436. Wu, W. B., Woodroofe, M. and Mentz, G. (2001) Isotonic regression: another look at the changepoint problem. Biometrika,88, 793–804. Supporting information Additional ‘supporting information’ may be found in the on-line version of this article: ‘Supplement to “Multiscale inference and long-run variance estimation in nonparametric regression with time series errors”’.