Manuscript Offprint
arXiv:2610.07430StaFIR: Convex Learning of Stationarity-Aware Causal Filters
Abstract
Reducing nonstationarity in a persistent time series entails deciding how much of its temporal dependence to remove. In finance, fractional differencing is often tuned using the Augmented Dickey–Fuller (ADF) test, limiting the search to a one-parameter family of lag profiles and addressing input preservation only indirectly. We propose StaFIR, a causal finite-impulse-response filter with a learned nonnegative mixture of exponential lag profiles. Its convex learning objective balances empirical stationarity with similarity to the input. We evaluate StaFIR on ARFIMA–GARCH controlled settings and rolling financial series, including a realized-volatility forecasting task. The experiments show that StaFIR adjusts its filtering strength to persistence while limiting unnecessary transformation in stationary regimes. In downstream forecasting, there is no clear accuracy difference from fixed half-order differencing, while StaFIR achieves higher measured similarity to the raw signal. A complementary direct forecasting experiment finds that greater input similarity is associated with smaller forecasting penalties, although the raw representation remains stronger.
1 Introduction
Financial time series are commonly transformed before model training to reduce nonstationarity and improve out-of-sample performance [Hassler and Pohle, 2023, Lopez de Prado, 2018]. However, financial markets are subject to distribution shifts and regime changes, causing the statistical properties of a time series to evolve over time. Hence, a transformation calibrated in one period can become unsuitable in another.
The choice of transformation must balance reducing nonstationarity against preserving temporal dependence that may remain useful for prediction. Forecasting methods that restore instance statistics or temporal information after stationarization highlight the value of retaining access to information altered by preprocessing [Kim et al., 2022, Liu et al., 2022]. This motivates examining input preservation alongside empirical stationarity. First-order differencing can remove stochastic trends, but may also discard persistent, low-frequency structure [Hosking, 1981]. Fractional differencing generalizes conventional differencing to non-integer orders, allowing non-stationary processes to be transformed while preserving long-term dependence [Granger and Joyeux, 1980]. A common financial application selects the smallest fractional-differencing order for which the transformed series rejects the Augmented Dickey–Fuller (ADF) unit-root null, thereby limiting the loss of temporal dependence relative to first differencing [Lopez de Prado, 2018]. However, this rule controls the balance between persistence reduction and preservation of temporal structure only indirectly, by minimizing the differencing order subject to a binary test decision. Explicitly assessing both properties would allow selection according to a continuous trade-off.
We propose StaFIR, a stationarity-aware finite-impulse-response (FIR) filter learned directly from calibration data. StaFIR is causal and preserves the sign structure of a differencing operator. The filter
40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: TS-LIMITS.
represents its lag profile using a nonnegative mixture of normalized exponential decays. Unlike a one-parameter fractional kernel, this representation separates the total weight placed on past observations from its allocation across short and long decay scales. The learning objective balances input fidelity with empirical stationarity penalties and reduces to a small convex second-order cone program (SOCP) that can be solved efficiently using standard convex solvers. The StaFIR implementation and experimental scripts are publicly available at https://github.com/LorenaEgger/StaFIR.
Contributions. We make two main contributions. First, we introduce StaFIR, a causal filter that learns filtering strength and its allocation across time scales through a convex objective balancing input fidelity with empirical stationarity penalties. A contextual validation rule selects the trade-off between empirical stationarity and input similarity. Second, we evaluate StaFIR against fixed and adaptive preprocessing baselines on synthetic and financial data. In realized-volatility forecasting with recursive reintegration, StaFIR retains higher measured input similarity than fixed fractional differencing of order 0.5, with no clear difference in forecast loss across the tested horizons. We further examine sensitivity to the forecasting model and quantify recalibration costs.
where denotes the autocovariance function at lag . Stationarity is commonly assessed using three complementary tests. The Augmented Dickey–Fuller (ADF) and Phillips–Perron (PP) tests assess unit-root null hypotheses [Said and Dickey, 1984, Phillips and Perron, 1988], whereas KPSS assesses stationarity under a short-memory calibration [Kwiatkowski et al., 1992]. KPSS can reject covariance-stationary fractionally integrated alternatives with [Lee and Schmidt, 1996]. Consequently, rejection alone does not establish failure of weak stationarity. The local Whittle estimator provides a continuous diagnostic of persistence [Robinson, 1995].
Nonstationarity mitigation Approaches to nonstationarity differ in which aspect of the series they modify or model. Preprocessing transformations include logarithms, detrending, moving averages, exponential moving averages, integer differencing, and fractional differencing. Decomposition methods such as STL [Cleveland et al., 1990], wavelets [Mallat, 1989, Nason et al., 2000], empirical mode decomposition [Huang et al., 1998], and state-space or Kalman filtering [Kalman, 1960, Durbin and Koopman, 2012] separate a signal into trend, seasonal, latent, or residual components. More recent machine-learning approaches learn representations designed to mitigate distribution shift, including reversible normalization and frequency-domain stationarity-aware representations [Kim et al., 2022, Piao et al., 2026]. We focus on causal preprocessing transformations applied directly to the observed series, particularly differencing-based approaches.
Grünwald–Letnikov (GL) fractional differencing Fractional differencing can be expressed using the Grünwald–Letnikov (GL) expansion [Podlubny, 1999]. The same formulation is used in ARFIMA models and in fractional-differencing preprocessing for financial time series [Lopez de Prado, 2018]. For , let denote the one-step backshift operator, . The fractional difference is given by the binomial expansion
The expansion is causal and reduces to ordinary first differencing when . For , the coefficients on past observations are negative for and decay slowly in magnitude according to a power law. Consequently, fractional differencing can attenuate persistent low-frequency variation more gradually than first differencing while retaining more dependence across lags. Truncation, initialization, and efficient-approximation schemes for finite-width GL filters are studied in Rosas [2025], Maitra [2025], Omay and Baleanu [2026], Jensen and Nielsen [2014].
3 Methods
The Stationarity-Aware FIR (StaFIR) filter Let denote the observed time series, and let K be the maximum lag. For , we transform it with the causal finite-impulse-response (FIR) filter
The filter coefficients weight the current observation and its previous lags. We restrict the current-observation coefficient to and the lag coefficients to for . The finite-horizon GL fractional-differencing filter of Eq. (1) belongs to this sign-constrained class and has a lag profile determined by a single fractional order. StaFIR instead combines exponentially decaying lag patterns with learned nonnegative weights. For , let denote a candidate decay scale and define . The filter coefficients are
with and . For each scale , the factor multiplying defines an exponentially decaying profile across the past lags, normalized so that the magnitudes of its coefficients sum to one. The nonnegative weight controls the contribution of that decay scale. Consequently, the aggregate magnitude of the lag coefficients satisfies
The value also controls the strength of the transformation: if it is zero, nonnegativity implies and hence , while larger values subtract more of the past from the current observation. The relative values of the determine the time scales over which this subtraction is distributed.
Over a finite FIR horizon, the GL kernel admits an exact continuous mixture of normalized exponential profiles [Leonenko and Podlubny, 2026]. StaFIR restricts this representation to a fixed finite dictionary. Appendix A proves the exact mixture identity and reports the reconstruction error using our nine-scale dictionary. The dictionary is not restricted to GL shapes: learned weights can instead concentrate on shorter decay scales and produce more rapidly decaying lag profiles.
Learning the filter by convex optimization For an unstandardized input , define , where and are estimated from the corresponding training segment. Let , let collect the valid filtered outputs, and let denote the aligned input. Split the first outputs into non-overlapping windows and write observation in window as .
For a set of positive lags , we combine these quantities into the worst-window local second-order stability penalty
The first term penalizes windows with large variation around their local mean, while the second penalizes large mean-squared differences between observations separated by time steps. Both controls are deliberately one-sided: they suppress unusually large local second-order variation but do not penalize windows for having unusually small variance or lagged differences. Consequently, may miss nonstationarity expressed through shifts toward lower-variance regimes, but this one-sided design preserves convexity.
A second penalty discourages slow drift by penalizing the cumulative sums of the filtered output, which grow when the output diverges from zero:
This partial-sum device is borrowed from the KPSS construction [Kwiatkowski et al., 1992]. We use only the raw sums, without the long-run-variance normalization of the test statistic, because the resulting term is convex quadratic in w (Appendix B).
For fixed penalty weights , we learn the filter from the convex program
The fidelity term discourages transformations stronger than necessary for our objective. The penalties weighted by and target persistent low-frequency movements and extreme local second-order behavior, respectively. Validation selects , avoiding scale-dependent hard constraints. Because is affine in , the program of Eqs. (4)–(5) is second-order cone representable for every fixed . The epigraph formulation and proof can be found in Appendix B.
Validation scores and contextual selection We combine complementary measures into two continuous scores for validation and evaluation. This captures multiple aspects of empirical stationarity and input similarity, including discrepancies during extreme episodes and nonlinear dependence that overall linear correlation can miss. The stationarity score summarizes stability in local mean, variance, and lagged dependence, while the similarity score summarizes dependence between the transformed and original series, including their tails. Higher values indicate greater empirical stability and similarity over the evaluation window. We use “empirical stationarity” operationally to describe stability of local sample moments. These moments fluctuate even under weak stationarity, and reducing temporal dependence can improve the score without correcting time variation in population moments. Appendix C.1 gives the complete definitions.
We use a contextual validation criterion that favors configurations preserving similarity to the input while penalizing shortfalls below a data-dependent stationarity target. This target is calibrated from the stationarity scores of the raw series and its first differences, with specifying the fraction of the observed improvement to require. For StaFIR, we apply this criterion to the candidate pairs and refer to the resulting validation-selected procedure as StaFIR-context. Its formal specification is provided in Appendix C.2.
4 Experiments and results
We evaluate StaFIR in three settings: controlled long-memory processes, rolling daily log prices of four financial series, and realized-volatility forecasting on the same four markets. The market series are the S&P 500, EUR/USD, a five-year crossover credit index, and Bitcoin. Across all performance experiments, methods are configured using calibration data and evaluated on held-out data. Where applicable, hyperparameters are selected on a validation subset before refitting on the full calibration period. In rolling experiments, this procedure is repeated at each origin. Data spans, splits, candidate grids, and implementation details are reported in Appendix D.
We compare StaFIR with the raw input, first differencing, an exponentially weighted moving-average residual (EWMA), a rolling z-score, and three fractional-differencing (FD) baselines. FD-adf selects the smallest d for which the ADF test rejects the unit-root null [Lopez de Prado, 2018]. FD-context applies our contextual selection rule to fractional differencing, choosing d from the candidate grid according to the validation series' stationarity and similarity scores. FD(0.5) fixes d = 0.5, a robust choice for forecasting realized volatility [Hassler and Pohle, 2023]. For the downstream task, we additionally include log-HAR, a strong classical baseline for realized-volatility forecasting [Corsi,

raw EWMA FD(0.5) FD-context
1-diff rolling-z FD-adf StaFIR-context
Figure 1: Held-out stationarity gain and similarity cost on the synthetic designs. Dashed lines indicate fixed methods and solid lines adaptive methods. The two panels left of the separator vary the fractional-integration order on both sides of the stationarity boundary , marked by the fine vertical line. The two panels to the right vary GARCH persistence over . Lines average over 30 seeds.
2009]. It predicts log realized variance from its current value and weekly and monthly averages, fitting a separate direct model at each forecast horizon. Appendices D.1 and D.6 give the baseline details.
All FIR transformations use maximum lag . For both StaFIR-context and FD-context, we fix the contextual target fraction at in all main experiments. We restrict attention to nonnegative fractional-integration orders, , i.e., persistent processes. For an output and its aligned input , we report the stationarity gain and the similarity cost . Throughout the results, "stationarity gain" denotes improvement in this empirical score and does not by itself establish a reduction in population nonstationarity. Effect turnover measures how much the realized transformation changes between consecutive rolling origins. Appendix C.1 gives the score definitions and effect turnover.
4.1 Adaptation to the level of memory on synthetic data
We generate ARFIMA(0, , 0)–GARCH(1, 1) series [Ling and Li, 1997], varying values of the fractional-integration order and the volatility persistence . These processes are covariance-stationary for and nonstationary for [Hosking, 1981], and independently controls volatility persistence. The design tests two things: whether a method transforms persistent inputs sufficiently, and whether it avoids unnecessary transformation below the stationarity boundary. See Appendix D.4 for more details. Figure 1 summarizes both.
Above the boundary, both contextual methods transform more strongly as increases, whereas stronger volatility persistence reduces their stationarity gains. Averaged over the nonstationary grid, StaFIR-context gains 7.86 stationarity points at a similarity cost of 11.80, compared with 8.70 and 14.00 for FD-context. First differencing produces the largest stationarity gain but also the largest loss of signal. Below the boundary, StaFIR-context and FD-context stay close to the identity, whereas FD(0.5) keeps paying similarity cost, in accordance with its lack of adaptivity. We test a simple regime shift scenario where or changes at a scheduled point within a series: the two contextual methods adjust similarly in the same direction. The full score table and an additional regime shift experiment for StaFIR-context and FD-context are reported in Appendices E.1 and E.2 respectively.
4.2 Stationarity–similarity trade-off on rolling log prices
We apply the rolling-window protocol defined in Appendix D.2 to the daily log prices of the four financial series. Figure 2 places every method in the plane spanned by similarity cost and empirical stationarity gain and traces the path of fixed-order fractional differencing as d varies for reference. Table 1 reports conventional held-out diagnostics on the same outputs: ADF, PP, and KPSS results, and the local Whittle estimate of the residual memory.
On the equal-weight four-series panel, StaFIR-context gains 1.05 more stationarity points than FD-context (95% interval [0.39, 1.71]) with no clear difference in similarity cost. It also rejects ADF

Figure 2: Mean held-out stationarity gain and similarity cost across rolling origins for the four log-price series, on shared axes. The dashed curve is the path traced by fixed-order fractional differencing as varies. Stationarity gain is the selection criterion of the contextual methods; Table 1 gives additional held-out diagnostics, and Appendix E.3 gives paired bootstrap intervals.
Table 1: Conventional held-out stationarity diagnostics on the rolling log-price series. Entries are pooled rates (%) of rejection of the ADF and PP unit-root nulls and non-rejection of the KPSS stationarity null. LW is the local Whittle estimate of the residual memory of the held-out output, with a stationary-bootstrap interval. The raw series pool at and first differences at . Estimation details are in Appendix E.3.
| Method | ADF rejection | PP rejection | KPSS non-rejection | LW |
|---|---|---|---|---|
| FD(0.5) | 100 | 100 | 31 | 0.46 [0.44, 0.48] |
| FD-adf | 38 | 43 | 11 | 0.82 [0.80, 0.85] |
| FD-context | 71 | 72 | 26 | 0.61 [0.56, 0.65] |
| StaFIR-context | 77 | 80 | 10 | 0.53 [0.49, 0.58] |
and PP unit-root nulls more often and leaves less residual memory: the paired difference in absolute local Whittle memory is -0.08 with interval [-0.11, -0.05]. However, StaFIR-context also has the lowest KPSS pooled non-rejection rate. The fixed FD(0.5) transformation rejects the unit-root nulls at every origin but has lower measured input similarity. Across rolling origins, StaFIR-context exhibits material changes in its realized transformation more often than FD-context, but the median magnitude of these changes is smaller. Per-series diagnostics, paired uncertainty, and turnover results are reported in Appendix E.3. Appendix Table 7 compares the mean and KPSS non-rejection percentages on raw synthetic inputs in the stationary parameter range to further study their differences. Appendix E.6 examines sensitivity to the target fraction, shortfall penalty, and switching cost.
4.3 Downstream result: realized-volatility forecasting
The downstream experiment forecasts the log of a realized-variance target computed from the trailing five daily returns of the same four markets. In the main experiment, each FIR representation uses the same ten-lag ridge autoregression, which predicts the next transformed value as a linear function of its ten most recent values. These forecasts are iterated recursively to , and the fitted filter is reintegrated over each forecast path to obtain on the unfiltered log-realized-variance scale. This implies the positive forecast . For realized variance , we evaluate forecasts using the quasi-likelihood (QLIKE) loss [Patton, 2011]. We report each method's percentage change in mean QLIKE relative to raw, averaged equally across the four series. Appendix D.6 gives the complete forecasting and uncertainty protocol and QLIKE definition, while Appendix B establishes the inversion conditions and describes the treatment of the unit-root boundary.
StaFIR-context has lower mean QLIKE than the raw representation at all five horizons, with improvements between and . Paired intervals exclude zero through horizon 40 but not at horizon 80. It is the only adaptive method whose point estimates improve on raw at all five horizons. Direct comparisons with FD(0.5) include zero at every horizon, so we find no clear forecasting
Table 2: Downstream QLIKE relative to raw (%, equal-weight mean over four series ± one paired stationary-bootstrap standard error, with bootstrap details in Appendix D.6). Lower is better. Bold marks the lowest point estimate at each horizon. FD-adf equals raw because it selects throughout. Similarity is measured on the realized-variance inputs. All preprocessing rows use the common forecasting head. log-HAR is an external task-specific reference with a different direct forecasting architecture.
| Method | Similarity | |||||
|---|---|---|---|---|---|---|
| raw = FD-adf | 100.0 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
| 1-diff | 53.9 | |||||
| EWMA | 91.8 | |||||
| FD(0.5) | 79.4 | |||||
| FD-context | 93.9 | |||||
| StaFIR-context | 93.5 | |||||
| log-HAR | - |
difference between the two methods. StaFIR-context nevertheless has higher measured input similarity, with similarity scores of 93.5 and 79.4, respectively. The per-series results in Appendix E.4 show that the gains are concentrated on EUR/USD and small elsewhere. The external log-HAR reference has the strongest point estimates at horizons 5–40, but StaFIR-context reverses that ranking at h = 1 and h = 80. Because ten consecutive outputs of the 101-coefficient FIR depend on 110 raw observations, we also compare against a raw AR(110) control with the same available history and training protocol. Relative to this control, StaFIR-context reduces panel QLIKE by 3.92% and 8.24% at h = 1 and h = 5, respectively, with marginal 95% intervals excluding zero; intervals at longer horizons include zero (Appendix E.4, Table 11). This supports a benefit beyond access to additional history.
As a sensitivity check, we also fit a separate ten-lag ridge head for each horizon to predict future raw log realized variance directly from transformed lags, without recursion or reintegration. Under this direct head, StaFIR-context outperforms FD(0.5) at but trails raw at (Appendix E.4, Table 12). These results indicate that relative forecasting performance depends on how the filtered representation is used.
4.4 Deployment limits: inference and adaptation cost
All adaptive transformations in the deployment benchmark share a 101-coefficient FIR inference path, with median latency of and 1.59 KiB of persistent numeric state. Computational differences arise during adaptation: StaFIR-context fits and scores 98 candidates per selection origin, taking 1.56 s on one worker, compared with 0.12 s for FD-context.
Selecting every eighth origin lowers the amortized adaptation time to 0.37 s per origin, while filter weights are still re-fitted at every origin. Paired forecasting comparisons favor selection at every origin over several less frequent schedules at some horizons, but do not establish a monotonic benefit from increasing selection frequency. Appendix E.7 reports the full costs and selection-schedule comparisons.
5 Conclusion
We introduced StaFIR, a causal FIR filter that learns filtering strength and its allocation across time scales through convex optimization. Synthetic experiments show adaptation to persistence. On rolling financial series, StaFIR-context improves the empirical stationarity score relative to FD-context, with more frequent rejection of the ADF and PP unit-root nulls and lower local Whittle persistence estimates, but less frequent KPSS non-rejection. With recursive reintegration, StaFIR-context shows no clear forecasting difference from FD(0.5) while retaining higher measured input similarity. With a direct forecasting head, StaFIR-context outperforms FD(0.5) at shorter horizons but generally trails raw inputs. Future work should test whether higher measured input similarity translates into improved predictive performance on other tasks, including under tail-sensitive losses. Further studies could assess different filter lengths and smaller decay-scale dictionaries. Methodological extensions could explore penalties that capture both increases and decreases in local second moments, addressing the current penalty's one-sided treatment of local variation.
References
Uwe Hassler and Marc-Oliver Pohle. Forecasting under long memory. Journal of Financial Econometrics, 21(3):742–778, 2023. doi: 10.1093/jjfinec/nbab017. URL https://doi.org/10.1093/jjfinec/nbab017.
Marcos Lopez de Prado. Advances in Financial Machine Learning. John Wiley & Sons, 2018. ISBN 9781119482109.
Taesung Kim, Jinhee Kim, Yunwon Tae, Cheonbok Park, Jang-Ho Choi, and Jaegul Choo. Reversible instance normalization for accurate time-series forecasting against distribution shift. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=cGDAkQo1C0p.
Yong Liu, Haixu Wu, Jianmin Wang, and Mingsheng Long. Non-stationary transformers: Exploring the stationarity in time series forecasting. In Advances in Neural Information Processing Systems, volume 35, 2022. URL https://proceedings.neurips.cc/paper_files/paper/2022/hash/4054556fcaa934b0bf76da52cf4f92cb-Abstract-Conference.html.
J. R. M. Hosking. Fractional differencing. Biometrika, 68(1):165–176, 1981. ISSN 0006-3444. doi:10.1093/biomet/68.1.165. URL https://doi.org/10.1093/biomet/68.1.165.
C. W. J. Granger and Roselyne Joyeux. An introduction to long-memory time series models and fractional differencing. Journal of Time Series Analysis, 1(1):15–29, 1980. doi: 10.1111/j.1467-9892.1980.tb00297.x. URL https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1467-9892.1980.tb00297.x.
Said E. Said and David A. Dickey. Testing for unit roots in autoregressive-moving average models of unknown order. Biometrika, 71(3):599–607, 1984. doi: 10.1093/biomet/71.3.599.
Peter C. B. Phillips and Pierre Perron. Testing for a unit root in time series regression. Biometrika, 75(2):335–346, 1988. doi: 10.1093/biomet/75.2.335.
Denis Kwiatkowski, Peter C. B. Phillips, Peter Schmidt, and Yongcheol Shin. Testing the null hypothesis of stationarity against the alternative of a unit root. Journal of Econometrics, 54(1–3): 159–178, 1992. doi: 10.1016/0304-4076(92)90104-Y.
Dongin Lee and Peter Schmidt. On the power of the KPSS test of stationarity against fractionally-integrated alternatives. Journal of Econometrics, 73(1):285–302, 1996. doi: 10.1016/0304-4076(95)01741-0.
Peter M. Robinson. Gaussian semiparametric estimation of long range dependence. The Annals of Statistics, 23(5):1630–1661, 1995. doi: 10.1214/aos/1176324317.
Robert B. Cleveland, William S. Cleveland, Jean E. McRae, and Irma Terpenning. STL: A seasonal-trend decomposition procedure based on loess. Journal of Official Statistics, 6(1):3–73, 1990.
Stéphane G. Mallat. A theory for multiresolution signal decomposition: The wavelet representation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 11(7):674–693, 1989. doi:10.1109/34.192463.
Guy P. Nason, Rainer von Sachs, and Gerald Kroisandt. Wavelet processes and adaptive estimation of the evolutionary wavelet spectrum. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 62(2):271–292, 2000. doi: 10.1111/1467-9868.00231.
Norden E. Huang, Zheng Shen, Steven R. Long, Manli C. Wu, Hsing H. Shih, Quanan Zheng, Nai-Chyuan Yen, Chi-Chao Tung, and Henry H. Liu. The empirical mode decomposition and the Hilbert spectrum for nonlinear and non-stationary time series analysis. Proceedings of the Royal Society of London. Series A: Mathematical, Physical and Engineering Sciences, 454(1971): 903–995, 1998. doi: 10.1098/rspa.1998.0193.
R. E. Kalman. A new approach to linear filtering and prediction problems. Journal of Basic Engineering, 82(1):35–45, 1960. doi: 10.1115/1.3662552.
James Durbin and Siem Jan Koopman. Time Series Analysis by State Space Methods. Oxford University Press, Oxford, 2nd edition, 2012. ISBN 9780199641178.
Xihao Piao, Zheng Chen, Lingwei Zhu, Yushun Dong, Yasuko Matsubara, and Yasushi Sakurai. TIFO: Time-invariant frequency operator for stationarity-aware representation learning in time series, 2026. URL https://arxiv.org/abs/2602.17122.
Igor Podlubny. Fractional Differential Equations: An Introduction to Fractional Derivatives, Fractional Differential Equations, to Methods of Their Solution and Some of Their Applications, volume 198 of Mathematics in Science and Engineering. Academic Press, San Diego, 1999. ISBN 978-0-12-558840-9.
Frank Ygnacio Rosas. Cardinal fractional differencing: Optimal truncation for long-memory stationarity processes, June 2025. URL https://ssrn.com/abstract=5331726. SSRN working paper.
Sarit Maitra. Adaptive fractional differencing: Theory and methodology. IEEE Access, 2025. doi:10.1109/ACCESS.2025.3633728.
Tolga Omay and Dumitru Baleanu. A computationally efficient approximation for fractional differencing: First-order operators. Chaos, Solitons & Fractals, 205:117813, 2026. ISSN 0960-0779. doi:10.1016/j.chaos.2025.117813. URL https://www.sciencedirect.com/science/article/pii/S0960077925018272.
Andreas Noack Jensen and Morten Ørregaard Nielsen. A fast fractional difference algorithm. Journal of Time Series Analysis, 35(5):428–436, 2014. doi: 10.1111/jtsa.12074. URL https://onlinelibrary.wiley.com/doi/abs/10.1111/jtsa.12074.
Nikolai Leonenko and Igor Podlubny. Sibuya probability distribution and numerical evaluation of fractional-order operators. Fractional Calculus and Applied Analysis, 2026. doi: 10.1007/s13540-026-00547-0. URL https://doi.org/10.1007/s13540-026-00547-0.
Fulvio Corsi. A simple approximate long-memory model of realized volatility. Journal of Financial Econometrics, 7(2):174–196, 2009. doi: 10.1093/jjfinec/nbp001. URL https://doi.org/10.1093/jjfinec/nbp001.
Shiqing Ling and W. K. Li. On fractionally integrated autoregressive moving-average time series models with conditional heteroscedasticity. Journal of the American Statistical Association, 92(439):1184–1194, 1997. doi: 10.2307/2965585. URL https://doi.org/10.2307/2965585.
Andrew J. Patton. Volatility forecast comparison using imperfect volatility proxies. Journal of Econometrics, 160(1):246–256, 2011. doi: 10.1016/j.jeconom.2010.03.034.
Miguel Sousa Lobo, Lieven Vandenberghe, Stephen Boyd, and Hervé Lebret. Applications of second-order cone programming. Linear Algebra and Its Applications, 284(1–3):193–228, 1998. doi: 10.1016/S0024-3795(98)10032-0.
Richard T. Baillie. Long memory processes and fractional integration in econometrics. Journal of Econometrics, 73(1):5–59, July 1996. doi: 10.1016/0304-4076(95)01732-1. URL https://doi.org/10.1016/0304-4076(95)01732-1.
Tim Bollerslev. Generalized autoregressive conditional heteroskedasticity. Journal of Econometrics, 31(3):307–327, 1986. doi: 10.1016/0304-4076(86)90063-1.
Appendix
The appendix is organized as follows. Appendix A connects GL fractional differencing to the exponential mixture through the survival-curve representation and an exact beta-integral identity. Appendix B establishes the properties of the estimation program, including its second-order cone form and its invertibility. Appendix C defines the evaluation scores, effect turnover, and the contextual selection rule. Appendix D records the compared methods, the rolling protocol, the candidate grids and solver settings, the data, and the forecasting task. Appendix E reports additional results in the order of Section 4, followed by ablations, sensitivity analyses, and the adaptation cost and its measurement.
A The Survival-Curve Bridge from GL to the Exponential Mixture
Every differencing-type filter of Section 3 is generated from a nonincreasing survival curve of lag weight. Let and set for . Here is the total weight placed on past observations, is the part of that weight assigned to lags beyond , and is the weight at lag . Writing , where is the normalized survival shape with and , separates each filter into a total lag weight and a survival shape. This section expresses the GL kernel and the proposed mixture in these shared coordinates and then connects them directly through Euler's beta integral.
GL in survival coordinates. A recursive implementation of the GL weights in Eq. (1) is
For , the GL coefficients , , are the negated increments of the survival sequence below, where denotes Euler's gamma function:
The increment identity follows from two applications of the recurrence , to and to . As ,
Thus the GL survival sequence decays as , whereas the magnitudes of its filter coefficients decay as . For a finite horizon , let and define the normalized shape for . Then , , and . This is the survival parameterization above, with total lag weight and normalized survival shape .
The mixture in survival coordinates. Fix the candidate decay scales of Section 3 with , and let be a nonnegative weight vector summing to one that allocates the survival shape across those scales. The normalized finite-horizon survival shape of the mixture family is
The estimation program optimizes the unnormalized nonnegative weights directly, so the total lag weight and the survival shape are learned jointly. When , the normalized survival shape is recovered as , and the coefficients of Section 3 satisfy for . When , the transformation is the identity and is immaterial. In survival coordinates, the mixture family therefore has total lag weight and a learned exponential-mixture survival shape.
Exact beta-mixture representation. The connection follows directly from the beta integral.
Proposition 1. For , define the probability measure
where is Euler's beta function. Then
For a finite horizon K, let
This is a nonnegative finite measure with total mass , and the truncated GL coefficient magnitudes satisfy
Equivalently, with , the normalized finite-horizon survival shape satisfies
Proof. Euler's beta integral gives
which proves Eq. (8). Taking successive differences therefore yields
Moreover,
Substitution of Eq. (9) proves Eq. (10). Summing the coefficient representation over lags beyond k and dividing by gives Eq. (11).
Because for , Eq. (8) is an exact nonnegative exponential-mixture representation of the GL survival sequence. Equation (10) uses exactly the normalized finite-horizon atom of Section 3. Thus the truncated GL kernel belongs to the continuous-scale version of the mixture family, with total lag weight satisfying the constraint of Eq. (5). The endpoint cases recover the identity transformation at and first differencing at in the corresponding limiting sense.
A numerical check of the fixed-dictionary discretization. The exact representation above permits any , whereas the deployed configuration restricts the mixing measure to the nine decay scales of Appendix D.3. We project the truncated GL coefficient magnitudes onto the nine exponential profiles by nonnegative least squares over the feasible set . The relative reconstruction error grows from 0.10% at to 1.4% at , and reaches 9.0% at ; at this order the truncated GL weight approaches one and the restricted-grid optimum reaches the constraint . Away from that constraint, the fitted total lag weight differs from the truncated GL weight by less than . The chosen dictionary therefore provides a low-dimensional approximation to the exact continuous mixture, with accuracy deteriorating near . The estimation program learns its weights from the data by Eq. (4).
B Properties of the Estimation Program
This section records the properties of the program in Eqs. (4)–(5) that the paper relies on: the zero-frequency gain, the increment-variance identity, the second-order cone reformulation, and the conditions for stable inversion and finite-horizon reintegration.
Total lag weight and zero-frequency gain. The total lag weight controls how strongly the filter attenuates a constant input. Since and the lag coefficients sum to , the zero-frequency gain is
The constraints and therefore keep this gain between zero and one. A total lag weight of zero gives the identity filter; a total lag weight of one removes constant components. The optimization learns both the total lag weight and its distribution across the candidate decay scales.
Increment-variance identity. For a weakly stationary output process with autocovariance function ,
which is the lag- increment variance, or twice the semivariogram.
SOCP reformulation and convexity. The implementation expresses the maxima in Eq. (2) using envelope variables and nonnegative slacks . This is the form the program optimizes and the basis of the convexity argument below. Let and for , and let and . The program adds
to the objective, subject to
For any fixed nonnegative local energies,
Thus the envelope–slack form is exactly the worst-window regularizer of the main text. Its strength relative to the fidelity term is controlled by . The reformulated program is always feasible: at any w in the feasible set, the nonnegative slacks can be raised until every constraint in Eq. (13) holds. Its objective is a sum of nonnegative terms, so it is bounded below. The following proposition justifies the claim in Section 3 that each calibration solves a single SOCP.
Proposition 2. The optimization problem in Eqs. (4)–(5) is second-order cone representable.
Proof. The filter coefficients are affine in . For a fixed input segment, each filtered output is therefore affine in . The fidelity term is a sum of squared affine residuals, and each partial sum in Eq. (3) is also affine in . Thus both the fidelity term and the slow-drift penalty are convex quadratics and admit standard second-order-cone epigraph representations. The remaining objective terms in Eq. (12) are linear in , while the constraint in Eq. (5) and the nonnegativity constraints , , and are linear.
For each window , the mean is affine in . Define
for , where and for . Each residual is affine in , so the local energies
are convex quadratics. For the cone representation, collect the residuals into . The constraints of Eq. (13) are equivalently
The residual vector is affine in w, and the right-hand side is affine and nonnegative. These constraints are therefore second-order cone representable by a rotated cone [Lobo et al., 1998]. Consequently, every constraint is either linear or second-order cone representable, and the optimization problem is an SOCP after the standard epigraph reformulation of the quadratic objective.
Minimum phase and finite-horizon inversion. The downstream forecasting task maps predictions from the filtered representation back to the original scale, so the location of the filter zeros determines the stability of this inversion. Because , , and
the transfer function satisfies
If , this bound is strictly positive, so all zeros lie strictly inside the unit circle and the filter has a stable causal inverse.
When , the fixed kernel retains a unit root in the input. For a random walk with stationary innovations, its output equals plus a finite linear combination of the innovations, and therefore retains a random-walk component. The fixed-width FD(0.5) implementation also has a positive kernel sum and retains a random-walk component. In both cases, the output remains nonstationary despite any reduction in finite-window persistence.
If , then . No zero can lie outside the unit circle because
Moreover, the exponential dictionary gives at every lag. Equality on the unit circle therefore requires for every , and hence . Finally,
so the zero at z = 1 has multiplicity one. The boundary filter is not minimum phase, and its inverse has the same unit-root instability as the inverse of first differencing.
The forecasting implementation permits this boundary case for finite-horizon reintegration initialized from the observed history. A fitted kernel is rejected when its largest zero modulus exceeds . Truncated fractional differencing with is strictly minimum phase, whereas first differencing and the EWMA residual lie on the unit-root boundary.
The boundary was rare among the fitted StaFIR filters. Using the solver-tolerance mass-cap diagnostic, none of the 469 post-selection real-data fits reached it; the maximum total lag mass was 0.993 for log prices and 0.981 for realized volatility. The cap was active for 139 of 25,920 post-selection synthetic fits (0.54%), spread across multiple values of the true memory parameter.
C Scores and Selection
C.1 Evaluation scores and effect turnover
The stationarity score of Section 3 is computed on the transformed evaluation segment y, whereas the similarity score compares y with the aligned raw segment x. The same definitions score the validation outputs during selection.
Stationarity score. Let and be the means and sample variances over sliding windows of length , and for each let be the corresponding sliding-window variograms, the mean squared lag- increments within each window. Let denote the sample standard deviation over the values indexed by . Define the defects
where is the full-segment variogram. Degenerate denominators are floored at machine precision; the full guard rules are in the code. Each defect maps to a bounded component score , and the aggregate is the worst component,
The three components are reported separately as the mean, log-variance, and variogram stability in Table 9.
Similarity score. Let be the full-sample Pearson correlation, the Pearson correlation restricted to the tail set
with quantiles computed on the raw segment, and let be the distance correlation. Define
and let is defined} index the available components. The similarity score averages the available components,
A Pearson component is omitted when it is undefined because either input has zero empirical variance. Distance correlation is set to zero when either distance variance vanishes. Before either score is evaluated, non-finite observations are removed pairwise. Evaluation fails when fewer than 20 finite aligned observations remain.
Effect turnover. In the rolling experiments we track how much the realized transformation changes between consecutive origins. The effect turnover at origin j applies the current and the preceding fitted filters to the same evaluation segment,
where is the filtering operator fitted at origin , is the evaluation segment at origin , and stabilizes the denominator. Turnover is reported for the adaptive methods: the two adaptive fractional-differencing rules and StaFIR-context. Fixed transformations, including FD(0.5), attain by construction and are marked as adaptation-free.
Table 3: Compared preprocessing methods.
| Method | Adaptive | Parameter | Selection rule |
|---|---|---|---|
| raw_1-diff | no | - | fixed references |
| EWMA_rolling-z | no | window | fixed |
| FD(0.5) | no | order | fixed a priori |
| FD-adf | yes | order | smallest order with ADF rejection |
| FD-context | yes | order | contextual rule of Appendix C.2 |
| StaFIR-context | yes | contextual rule of Appendix C.2 |
C.2 Contextual selection rule
Let be the standardized raw validation segment and its first difference, with the final training observation supplying the history of the first difference. The raw and first-differenced validation outputs define a contextual reference level for the empirical stationarity score
with the target fraction fixed at in the main experiments. Both anchors are re-estimated on every window. The endpoints are interpretable: sets the target at the raw-series score, whereas matches the score attained by first differencing whenever that score is higher.
Because the target and all candidate scores are estimated from a short validation segment, selection treats as a soft target. Let denote the candidate set of the method and let be the candidate deployed at the preceding rolling origin. At origin , the selected candidate satisfies
The experiments use the shortfall curvature and the switching cost . The second term penalizes only a stationarity shortfall and grows quadratically below the target. The third term discourages changes from the incumbent selection. It is omitted at the first rolling origin and in the fixed synthetic grid, where selection occurs once per scenario. The scheduled-change study rolls selection forward and applies the switching cost at every later origin. The criterion is defined for every evaluable candidate. Whether the selected candidate reaches , and its shortfall from the target, are recorded as diagnostics. The same rule is applied to the grid of StaFIR-context and to the fractional-order grid of FD-context. The sensitivity of the rolling log-price results to , , and is reported in Appendix E.6.
D Experimental Details
D.1 Compared transformations
Table 3 summarizes the compared transformations. StaFIR-context denotes the proposed filter of Eqs. (4)–(5) selected by the contextual rule of Appendix C.2. All FIR transformations, that is, EWMA, the fractional-differencing rules, and StaFIR-context, use the maximum lag , so every filter combines the current observation with its 100 predecessors. The EWMA baseline is the residual of a fixed exponentially weighted moving average,
The smoothing factor is the standard span convention for a span of observations, matching the filter length. The rolling-z baseline centers and scales each observation by the mean and standard deviation of its trailing observations, including the current one.
D.2 Rolling evaluation protocol
Each fit-and-evaluate step uses a 2,000-observation window split into 1,280 training, 320 validation, and 400 evaluation observations (Figure 3). Hyperparameters governed by the contextual rule are selected on the validation segment, while FD-adf selects its order on the calibration data. The
StaFIR-context weights are then re-fitted on the complete 1,600-observation calibration period, and metrics are computed only on the evaluation segment. The fixed synthetic grid applies this split once per scenario. The scheduled-change paths roll it forward by 200 observations and the market series by 63 observations. In every rolling experiment, all methods at an origin receive the same standardized calibration data and are evaluated on the same held-out segment.

Figure 3: Rolling evaluation design for the market series. Each 2,000-observation window consists of training (1,280), validation (320), and evaluation (400) segments, with a step of 63 observations between recalibrations. Every later window re-selects the penalty pair and the adaptive fractional order and re-fits the weight vector w on its own calibration segment. The fixed FD(0.5) baseline is unchanged.
Standardization. At each origin, the mean and scale are re-estimated from that origin's training segment and the resulting affine transformation is shared by every method.
Selection period. Let M denote the number of rolling origins between two hyperparameter selections. The main experiments use M = 1, so the contextual rule selects at every origin. For M > 1, selection runs at every Mth origin. At the origins in between, the method keeps the previously selected hyperparameters and only re-fits the standardization and the filter weights on the new calibration window. We call this a carried re-fit. The endpoint keeps the selection made at the first origin for the whole sample. The selection period is varied in Appendix E.7.
Fixed-order reference path. At every origin of the market series, every fractional order is additionally evaluated on the held-out segment. These evaluations trace the fixed-order fractional-differencing path shown in Figure 2.
D.3 Candidate grids and solver
StaFIR candidates. The selected pair consists of the low-frequency penalty and the local second-order penalty of Eq. (4),
giving candidates. These pairs form the candidate set of the contextual rule in Appendix C.2. Each candidate is estimated on the training segment, and its validation output is scored by that rule. The fixed decay scales are , so . Every candidate program receives all nine scales, and the nonnegative weights decide which of them are active. Unused scales receive . The stationarity penalties use local windows of length and lags .
Fractional orders. All adaptive fractional-differencing rules search the grid ; the fixed FD(0.5) baseline stays at . The FD-adf baseline selects the smallest order whose transformed calibration output rejects the ADF unit-root null at 5%. For FD-context, this grid is the candidate set of the contextual rule, applied with the same training and validation split as StaFIR-context.
Table 4: Implementation details for tests and solver.
| Component | Package | Routine | Specification |
|---|---|---|---|
| ADF test | statsmodels v0.14.6 | statsmodels.tsa.stattools.adfuller | Unit-root null. Constant only, regression = "c", with one fixed lag, maxlag = 1 and autolag = None. Parameters from baseline configuration in Lopez de Prado [2018]. We report the statistic, p-value, and 5% rejection indicator. |
| PP test | arch v8.0.0 | arch.unitroot.PhillipsPerron | Unit-root null. Constant only, trend = "c". Bandwidth / lag length is chosen automatically with lags = None. We report the statistic, p-value, selected bandwidth / lag, and 5% rejection indicator. |
| KPSS test | statsmodels v0.14.6 | statsmodels.tsa.stattools.kpss | Level-stationarity null. Constant only, regression = "c". Lag length is selected using nlags = "auto". We report the statistic, interpolated p-value, selected lag length, and 5% rejection indicator. |
| SOCP solver | cvxpy v1.9.2 with clarabel v0.11.1 | CLARABEL through the cvxpy modeling layer | Solves the filter SOCP in Section 3. We record solver status, objective value, iterations, feasibility, and runtime. Settings are max_iter = 50 and tol_gap_abs = tol_gap_rel = tol_feas = 10^-6. |
Solver. The SOCP is solved with CLARABEL, with at most 50 iterations and a tolerance of on the absolute and relative duality gaps and on feasibility. The program is always feasible and bounded below (Appendix B). A training fit on 1,280 observations produces 1,180 aligned outputs and windows, so it carries 9 weight variables, 7 envelope variables, and 63 slack variables under 63 rotated second-order-cone constraints, together with the weight-budget and nonnegativity constraints. The calibration re-fit on 1,600 observations gives windows and is slightly larger. The implementation applies a thin QR factorization to the coefficients and constant terms of the affine residuals defined in Appendix B. Orthogonal invariance preserves each sum of squared residuals, so each quadratic block can be evaluated using at most residual components instead of one per observation.
An infeasible status triggers one retry with the series rescaled by its maximum absolute value, more iterations, and tighter tolerances; rescaling multiplies the objective by a constant and leaves the minimizer unchanged. The compiled DPP problem is reused across the grid. Each numerical solve starts cold, making a candidate's reported fit independent, up to the stated solver tolerance, of preceding candidates, grid traversal order, and parallel-worker chunking. The reported timings use this configuration. Solver status, retry use, and selected shortfall are recorded.
Stationarity tests. Table 4 records the packages, routines, and settings used for the ADF, PP, and KPSS tests and for the SOCP solver. All tests use a constant term only. The ADF test uses one fixed lag, while the PP bandwidth and the KPSS lag length are selected automatically.
D.4 Synthetic data
The ARFIMA model extends the classical ARIMA representation by allowing a real fractional-integration order [Granger and Joyeux, 1980, Hosking, 1981, Baillie, 1996]. Under the usual causality and invertibility conditions, an ARFIMA process is covariance-stationary for , while corresponds to nonstationary persistence, the regime targeted by the main synthetic grid below. A GARCH innovation process adds conditional heteroscedasticity in the form of volatility clustering [Bollerslev, 1986].
For the GARCH innovations, we set and , so that for all scenarios. The conditional variance recursion is
Here, , and the innovations follow a Student-t distribution with 8 degrees of freedom, rescaled to unit variance. The initial unconditional GARCH variance is by construction. Because the model is ARFIMA , the short-memory signal is , and long memory is introduced by expanding fractional integration,
where is given by the recursion in Eq. (6) with in place of . The integration history therefore grows with , and each retained observation uses all available simulated presample history. This expanding rule is used only to generate the data. The evaluated transformations remain fixed-width filters with the maximum lag of Appendix D.1.
Main grid. The synthetic scenarios are defined on the Cartesian grid
with 10 equally spaced values along each axis, including the endpoints, yielding scenarios per seed. We use 30 random seeds, , for a total of 3,000 scenarios. For each scenario, observations are retained after 5,000 discarded burn-in observations, which reduces the influence of the initial GARCH variance and of the initialization of the fractional-integration history. Each scenario initializes NumPy's SeedSequence with the seed and its two grid indices, so results are invariant to the scenario iteration order.
Stationary companion grid. To measure unnecessary transformation, we repeat the experiment for and the same 10 equally spaced persistence values as in the main grid, giving scenarios per seed and 15,000 scenarios in total. These processes lie below the ARFIMA stationarity boundary. Seeds, sample length, split, and candidate grids are those of the main grid. The two right-hand panels of Figure 1 additionally vary on a grid over with the same seeds.
Regime shift scenarios. The scheduled-change protocol imitates a regime shift by replacing the grid with four two-regime designs. We consider changes of and one at a time: when one parameter moves between 0.50 and 0.95 in each direction, the other one is held at 0.75. Each design is one continuous path of retained observations after 5,000 discarded burn-in observations, with the switch at observation 2,600. Within a design family, the forward and reverse paths consume the same standardized shock stream, so the two directions differ only in the parameter schedule. The rolling protocol of Appendix D.2 is then applied along the path with a step of 200 observations, and the standardization, hyperparameters, and filter weights are re-estimated at every origin. We use the same 30 seeds. An origin is pre when neither its calibration nor its evaluation segment contains a post-switch observation, post when both consist entirely of post-switch observations, and transition otherwise.
D.5 Financial series
Table 5 lists the four daily log-price series. Origins are the recalibration dates of the rolling protocol of Appendix D.2, and the origin span is the period they cover. Each series retains its own observation
Table 5: Daily log-price series after cleaning.
| Series | Underlying | Obs. | Sample span | Origins | Origin span |
|---|---|---|---|---|---|
| sp500 | S&P 500 index (SPX Index) | 6,539 | 2000-01-03 – 2025-12-31 | 73 | 2006-05-15 – 2024-05-22 |
| eurusd | EUR/USD rate (EURUSD Curncy) | 6,783 | 2000-01-03 – 2025-12-31 | 76 | 2006-02-17 – 2024-03-29 |
| cds_idx_sp | On-the-run Crossover five-year index spread | 5,307 | 2005-08-30 – 2025-12-31 | 53 | 2011-10-17 – 2024-05-07 |
| xbx_index | CoinDesk Bitcoin Price Index (XBX) | 4,077 | 2014-11-03 – 2025-12-31 | 33 | 2019-03-21 – 2024-09-26 |
calendar. The Bitcoin index is observed on a calendar-day grid rather than a trading-day grid. For the other series, we retain the open-market days supplied by Bloomberg and do not insert or interpolate holidays.
D.6 Realized-volatility forecasting task
Task and pipeline. For the forecasting task, define a positive causal realized-variance target from the trailing five daily returns, and let its log level be
The input series is . A window with is discarded upstream rather than floored. The four inputs therefore describe the same markets as the rolling log-price study but form a distinct realized-volatility data set. The transformation pipeline, calibration windows, selection rule, and fitted filters are otherwise unchanged. Constructing removes the first five observations, leaving 234 realized-volatility origins rather than the 235 log-price origins. Only the S&P 500 count changes, from 73 to 72. At each origin, a ten-lag ridge autoregression uses the transformed values to make a one-step forecast. The five-day window defines the target, not the autoregressive order. The model is iterated recursively to horizons , and the method's fitted causal FIR filter is inverted over the forecast path to return the prediction to the level of the raw . Reintegration uses the observed history for initialization and permits the unit-root boundary case described in Appendix B. Every method therefore predicts the same future log realized variance. Only the representation changes.
Forecasting model and recursion. Let denote a method's transformed standardized log realized variance. For an origin , calibration start , FIR warm-up of observations, and lags, the one-step model uses exactly the rows , with features and target . With the 1,280/320 training–validation split, tuning rows satisfy and validation rows satisfy ; the boundary row is unused. For standardized feature vector and response , the model solves
so the intercept is unpenalized. The ridge penalty is selected from by validation MSE, and the model is then refit on all usable calibration rows. For learned filters, ridge tuning uses training and validation representations constructed with the filter refitted on the full calibration window. Thus, internal validation is not fully held out from preprocessing estimation, while the reported forecasting losses are evaluated on subsequent held-out dates. Recursion starts from the observed transformed lags at , and predicted transformed values replace future lags. The FIR inversion is seeded with the observed standardized log realized variance through . All FIR representations use these same settings and target dates.
Scoring and uncertainty. Scoring is continuous and uses each date once. The positive forecast implied by the reintegrated log prediction is , and the loss is
The implementation evaluates the final log-domain expression without materializing the exponentiated forecast. It applies no log-to-level bias correction, prediction clipping, or floor. Finite extremes are
Table 6: Synthetic-data evaluation. The score columns are mean sample SD across independent root seeds after averaging the scenario grid within each seed, and are conditional on successful fits. The three test columns report decision rates over the scenarios at which the test returned a decision, pooled over the whole grid: rejection of the ADF and PP unit-root nulls and non-rejection of the KPSS stationarity null. Fail reports failed fits over attempted fits, and a failed fit is never counted as a failed test. Figure 1 summarizes the same comparison on the score columns.
| Method | Stationarity | Similarity | Test outcomes (%) | Fail | ||
|---|---|---|---|---|---|---|
| ADF rejection | PP rejection | KPSS non-rejection | ||||
| raw | 65.3 ± 0.6 | - | 61 | 63 | 19 | 0/3000 |
| 1-diff | 80.4 ± 0.6 | 50.3 ± 0.3 | 100 | 100 | 99 | 0/3000 |
| EWMA | 70.1 ± 0.5 | 82.5 ± 0.8 | 85 | 88 | 62 | 0/3000 |
| rolling-z | 70.0 ± 0.5 | 83.1 ± 0.8 | 83 | 86 | 54 | 0/3000 |
| FD(0.5) | 78.2 ± 0.5 | 74.4 ± 0.4 | 100 | 100 | 71 | 0/3000 |
| FD-adf | 66.2 ± 0.6 | 99.3 ± 0.1 | 71 | 74 | 21 | 0/3000 |
| FD-context | 74.0 ± 0.8 | 86.0 ± 1.2 | 95 | 96 | 48 | 0/3000 |
| StaFIR-context | 73.2 ± 0.9 | 88.2 ± 1.1 | 95 | 97 | 31 | 0/3000 |
scored, and any nonfinite prediction or loss aborts the replay with its series-method-horizon-date context. The main comparison reports QLIKE relative to raw. Uncertainty uses 10,000 paired circular stationary-bootstrap resamples of the chronological date-level losses within each series, with expected block length 20 dates. Method and raw losses share every resample, the raw-loss denominator is recomputed in every draw, and the four per-series relative effects are averaged with equal weight. Series are resampled independently, so the panel intervals account for serial dependence within each series but do not capture contemporaneous dependence across markets.
Methods included. Because recursive reintegration requires a fitted linear filter, rolling-z is not part of this task. The ADF rule selects at every realized-volatility origin and therefore coincides with raw. The FD(0.5) baseline uses the order proposed by Hassler and Pohle [2023]. As an external reference, we additionally evaluate log-HAR, which predicts log realized variance from its current, weekly, and monthly averages using a separate direct model at each forecast horizon [Corsi, 2009]. Its comparison with the other methods reflects changes in both the representation and the forecasting model.
E Additional Results
This section follows the order of Section 4. It reports the full synthetic score table and the regime shift study, the per-series rolling log-price diagnostics with their paired uncertainty and turnover, and the direct forecasting comparisons. It then reports the constraint and representation ablations, the sensitivity of the selection rule, and the adaptation cost across selection periods.
E.1 Synthetic grid
Table 6 reports the full score and test table on the main synthetic grid behind Figure 1.
On the stationary companion grid, the similarity scores of both contextual methods remain above 96 across the full range of . The FD(0.5) score instead falls from 92.3 at to 79.9 at , while first differencing falls from 81.4 to 62.5. At , first differencing also lowers the stationarity score from 80.4 for the raw series to 79.1. These results quantify the unnecessary transformation visible in the left half of Figure 1.
Diagnostics within the stationary range. Table 7 reports diagnostics on the raw inputs at four selected orders in the stationary companion grid. KPSS non-rejection falls from at to at , although all four parameter settings lie below the theoretical covariance-stationarity boundary. This is consistent with the short-memory calibration of KPSS, which can reject covariance-stationary fractionally integrated alternatives [Lee and Schmidt, 1996]. The mean stationarity score also falls, from 80.4 to 73.1, showing that it remains sensitive to stationary persistence. Thus, measures finite-window empirical stability and varies even within the covariance-stationary parameter range.
Table 7: Diagnostics on raw inputs in the stationary companion grid. Each row averages 30 seeds and 10 equally spaced GARCH persistence settings in [0.5, 0.99], for 300 evaluations on untransformed held-out segments of 400 observations. KPSS uses a constant, automatic lag selection, and a 5% significance level. No evaluation in these rows failed or lacked a KPSS decision. All four fractional-integration orders lie below the theoretical covariance-stationarity boundary.
| Mean | KPSS non-rejection (%) | |
|---|---|---|
| 0.00 | 80.4 | 97.3 |
| 0.20 | 79.1 | 71.7 |
| 0.40 | 75.3 | 47.0 |
| 0.49 | 73.1 | 37.7 |
E.2 Regime shift through scheduled parameter changes
The regime shift experiment of Appendix D.4 contains increases and decreases in either the fractional-integration order or the GARCH persistence. Table 8 reports results by phase with standard errors over 30 seeds. Both contextually selected methods adjust in the expected direction. During transition windows, StaFIR-context generally pays less similarity cost but has slightly higher mean turnover than FD-context.
Table 8: Response to a within-series regime shift. Origins are grouped by whether the rolling calibration window is before, across, or after the scheduled break. Entries are means over independent seeds with standard errors in parentheses. Similarity cost is shown for the transition phase, on which the comparison of Appendix E.2 rests. Fixed transformations are omitted because they do not recalibrate.
| Method | Stationarity gain | Similarity cost | Effect turnover | |||||
|---|---|---|---|---|---|---|---|---|
| Pre | Trans. | Post | Trans. | Pre | Trans. | Post | ||
| Memory increases (d_up) | ||||||||
| FD-adf | 0.00 (0.00) | 2.91 (0.26) | 3.27 (0.35) | 2.03 (0.18) | 0.000 (0.000) | 0.171 (0.015) | 0.206 (0.017) | |
| FD-context | 4.73 (0.60) | 11.21 (0.43) | 14.62 (0.92) | 19.62 (0.74) | 0.093 (0.023) | 1.159 (0.261) | 1.669 (0.406) | |
| StaFIR-context | 4.60 (0.50) | 9.47 (0.42) | 13.46 (0.97) | 16.08 (0.69) | 0.174 (0.021) | 1.189 (0.192) | 1.325 (0.234) | |
| Memory decreases (d_down) | ||||||||
| FD-adf | 2.69 (0.37) | 2.97 (0.29) | 0.00 (0.00) | 4.55 (0.59) | 0.164 (0.016) | 0.215 (0.016) | 0.000 (0.000) | |
| FD-context | 13.27 (1.03) | 6.21 (0.47) | 6.38 (0.45) | 10.95 (0.50) | 1.356 (0.296) | 1.278 (0.177) | 0.094 (0.036) | |
| StaFIR-context | 11.72 (0.98) | 5.95 (0.39) | 4.21 (0.44) | 11.81 (0.57) | 1.141 (0.192) | 1.308 (0.241) | 0.260 (0.025) | |
| Volatility persistence increases (garch_up) | ||||||||
| FD-adf | 0.16 (0.07) | 0.09 (0.04) | 0.06 (0.06) | 0.03 (0.01) | 0.023 (0.008) | 0.014 (0.005) | 0.005 (0.004) | |
| FD-context | 12.07 (0.66) | 7.85 (0.41) | 6.95 (0.46) | 13.82 (0.65) | 0.384 (0.062) | 0.611 (0.068) | 0.604 (0.107) | |
| StaFIR-context | 9.92 (0.52) | 7.12 (0.37) | 6.94 (0.66) | 12.25 (0.60) | 0.494 (0.045) | 0.661 (0.049) | 0.543 (0.071) | |
| Volatility persistence decreases (garch_down) | ||||||||
| FD-adf | 0.13 (0.07) | 0.06 (0.02) | 0.01 (0.01) | 0.01 (0.01) | 0.026 (0.009) | 0.011 (0.004) | 0.003 (0.002) | |
| FD-context | 6.44 (0.54) | 11.15 (0.34) | 12.02 (0.65) | 16.30 (0.68) | 0.507 (0.079) | 0.516 (0.063) | 0.466 (0.090) | |
| StaFIR-context | 6.16 (0.59) | 9.43 (0.32) | 11.12 (0.70) | 13.60 (0.51) | 0.621 (0.072) | 0.579 (0.056) | 0.565 (0.084) | |
E.3 Rolling log-price series
StaFIR-context and FD-context share the training and validation split and the contextual selection rule and differ only in the candidate filter family. The ADF, PP, and KPSS outcomes are held-out diagnostics, except that FD-adf uses ADF on its calibration segment to choose . Reported metrics condition on a successful fit, while failure counts retain every attempted fit.
Score components and tests. Table 9 breaks the two aggregate scores of Appendix C.1 into their three stationarity and three similarity components and places them next to the test outcomes, pooled over the four series. For StaFIR-context, ADF rejects the unit-root null at most origins, whereas KPSS has a low non-rejection rate. ADF and PP assess the same unit-root null, while KPSS assesses stationarity under a short-memory calibration. This calibration makes KPSS sensitive to stationary long memory, as illustrated by the raw-input results in Table 7.
Local Whittle residual memory. The LW column of Table 1 applies the local Whittle estimator of Section 2 to each held-out output with bandwidth . Estimates are pooled across rolling origins. The reported intervals are stationary-bootstrap intervals with 10,000 replications and an expected block length of seven origins.
For StaFIR-context, the within-series means of the held-out local Whittle estimates are 0.47 for the credit index, 0.46 for EUR/USD, 0.49 for Bitcoin, and 0.67 for the S&P 500. These are descriptive estimates across rolling origins. The pooled estimate, 0.53 [0.49, 0.58], places residual memory near the stationarity boundary, with the interval spanning both sides.
Paired uncertainty. Table 10 forms differences within series and rolling origin, then applies a stationary bootstrap separately to each chronological series. It uses 10,000 resamples, a fixed seed, and an expected block length of seven origins. The same draw is reused across metrics and comparators. The panel first averages paired means within series and then gives the four series equal weight. At expected block lengths 13 and 25, the StaFIR-context–FD-context stationarity-gain intervals remain above zero, respectively [0.50, 1.60] and [0.61, 1.50]. The similarity-cost intervals, [-2.55, 0.59] and [-2.34, 0.35], both cross zero. The column applies the same procedure to the absolute local Whittle residual memory. The equal-weight interval, -0.08 [-0.11, -0.05], excludes zero on an estimator neither method optimizes, with the S&P 500 showing a negligible mean difference. These intervals quantify serial uncertainty conditional on the four observed series, with marginal coverage for each contrast.
Table 9: Rolling log-price diagnostics pooled over 235 origins. Test columns report ADF and PP rejection rates and KPSS non-rejection rates (%); are the stationarity components and , dCor the similarity components. Aggregate scores are on a 0–100 scale. is mean effect turnover over 231 predecessor pairs; “–” denotes fixed transforms. Pooling is descriptive because origins overlap.
| Method | Test outcomes (%) | Stationarity components | Similarity components | Aggregate score | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ADF rejection | PP rejection | KPSS non-rejection | dCor | |||||||||
| raw | 7 | 6 | 5 | 63.5 | 61.3 | 65.7 | 1.00 | 1.00 | 1.00 | 57.6 | 100.0 | - |
| 1-diff | 100 | 100 | 97 | 94.3 | 74.9 | 72.3 | 0.07 | 0.19 | 0.16 | 71.9 | 43.0 | - |
| EWMA | 42 | 44 | 34 | 70.6 | 64.0 | 65.6 | 0.48 | 0.78 | 0.52 | 61.3 | 71.7 | - |
| rolling-z | 30 | 31 | 34 | 70.1 | 65.7 | 66.6 | 0.48 | 0.80 | 0.53 | 62.2 | 72.4 | - |
| FD(0.5) | 100 | 100 | 31 | 77.1 | 72.2 | 70.3 | 0.56 | 0.80 | 0.54 | 67.7 | 73.9 | - |
| FD-adf | 38 | 43 | 11 | 66.1 | 64.1 | 66.8 | 0.95 | 0.98 | 0.94 | 59.9 | 96.8 | 0.099 |
| FD-context | 71 | 72 | 26 | 73.2 | 69.6 | 69.5 | 0.70 | 0.85 | 0.69 | 65.0 | 82.3 | 1.206 |
| StaFIR-context | 77 | 80 | 10 | 72.5 | 71.5 | 71.0 | 0.73 | 0.84 | 0.72 | 66.0 | 83.5 | 0.718 |
Table 10: Paired rolling log-price comparisons. Entries are mean within-origin differences with percentile 95% stationary-bootstrap intervals (10,000 replications; expected block length 7 origins). Positive stationarity differences favor StaFIR-context; positive similarity-cost differences indicate additional preservation cost. The final panel gives equal weight to the four series. is the paired difference in absolute local Whittle residual memory (Table 1); negative values favor StaFIR-context.
| Baseline | Paired origins | |||
|---|---|---|---|---|
| XO 5Y | ||||
| FD-context | 0.9 [-0.9, 2.5] | -2.2 [-7.0, 2.4] | -0.08 [-0.15, -0.02] | 53 |
| FD(0.5) | -2.2 [-4.4, -0.3] | -9.3 [-13.3, -5.1] | 0.03 [-0.04, 0.11] | 53 |
| 1-diff | -6.3 [-8.4, -4.3] | -40.5 [-44.2, -36.9] | 0.38 [0.32, 0.46] | 53 |
| FD-adf | 8.5 [6.3, 10.6] | 15.9 [12.1, 19.7] | -0.41 [-0.51, -0.32] | 53 |
| raw | 9.8 [7.9, 11.6] | 16.8 [13.1, 20.4] | -0.48 [-0.55, -0.40] | 53 |
| EUR/USD | ||||
| FD-context | 1.4 [0.4, 2.5] | 0.6 [-1.2, 2.8] | -0.11 [-0.17, -0.06] | 76 |
| FD(0.5) | -1.1 [-2.7, 0.5] | -5.6 [-10.0, -1.4] | -0.01 [-0.08, 0.07] | 76 |
| 1-diff | -6.0 [-8.5, -4.0] | -36.9 [-41.3, -32.7] | 0.41 [0.33, 0.49] | 76 |
| FD-adf | 8.1 [6.5, 9.6] | 17.4 [13.3, 21.3] | -0.38 [-0.44, -0.31] | 76 |
| raw | 10.4 [8.5, 12.1] | 20.1 [15.3, 24.5] | -0.50 [-0.58, -0.42] | 76 |
| S&P 500 | ||||
| FD-context | 0.2 [-0.3, 0.8] | -3.5 [-6.6, -0.9] | -0.00 [-0.04, 0.05] | 73 |
| FD(0.5) | -2.6 [-4.5, -1.1] | -17.2 [-20.9, -13.6] | 0.24 [0.16, 0.32] | 73 |
| 1-diff | -5.4 [-8.5, -3.0] | -46.3 [-50.0, -42.3] | 0.57 [0.47, 0.66] | 73 |
| FD-adf | 2.0 [0.9, 3.4] | 5.7 [1.8, 9.6] | -0.09 [-0.18, -0.01] | 73 |
| raw | 3.1 [1.8, 4.8] | 9.9 [6.3, 13.7] | -0.28 [-0.36, -0.20] | 73 |
| Bitcoin (UBX) | ||||
| FD-context | 1.7 [0.2, 3.2] | 1.1 [-1.9, 4.6] | -0.12 [-0.17, -0.07] | 33 |
| FD(0.5) | -0.1 [-2.9, 2.5] | -2.2 [-8.5, 4.1] | -0.05 [-0.15, 0.06] | 33 |
| 1-diff | -6.4 [-9.1, -3.9] | -35.9 [-42.6, -29.8] | 0.43 [0.32, 0.56] | 33 |
| FD-adf | 6.7 [2.8, 10.2] | 16.3 [9.1, 23.0] | -0.31 [-0.42, -0.19] | 33 |
| raw | 12.9 [7.5, 17.7] | 22.5 [15.3, 29.0] | -0.51 [-0.62, -0.37] | 33 |
| Equal-weight four-series panel | ||||
| FD-context | 1.1 [0.4, 1.7] | -1.0 [-2.7, 0.7] | -0.08 [-0.11, -0.05] | 235 |
| FD(0.5) | -1.5 [-2.5, -0.5] | -8.6 [-10.9, -6.2] | 0.05 [0.01, 0.09] | 235 |
| 1-diff | -6.0 [-7.3, -4.8] | -39.9 [-42.3, -37.6] | 0.45 [0.40, 0.50] | 235 |
| FD-adf | 6.3 [5.1, 7.5] | 13.8 [11.4, 16.2] | -0.30 [-0.34, -0.25] | 235 |
| raw | 9.0 [7.5, 10.5] | 17.3 [14.9, 19.7] | -0.44 [-0.49, -0.40] | 235 |
Turnover frequency and magnitude. Effect turnover has a frequency and a magnitude. Figure 4 shows that StaFIR-context changes its transformation materially at more origins than the fractional rules, but its realized changes are much smaller. FD-context instead makes less frequent, larger jumps in the selected order.

FD-adf FD-context StaFIR-context
Figure 4: Frequency and magnitude of material transformation changes for the three adaptive methods on the log-price series. The horizontal axis, , is the share of consecutive origin pairs whose effect turnover exceeds 0.01. On its log scale, the vertical axis reports the median among only those origin pairs that exceed the threshold. Whiskers extend to the conditional 90th percentile.

Figure 5: Per-series forecast performance on the log five-day realized-variance series. At each forecast horizon h, points report QLIKE relative to raw, in percent. Whiskers are one paired stationary-bootstrap standard error. FD-context, StaFIR-context, and FD(0.5) share the common forecasting model. log-HAR is an external task-specific reference with a different, direct forecasting model. FD-adf coincides with raw and is omitted.
E.4 Realized-volatility forecasting
The task, its pipeline, and its uncertainty construction are defined in Appendix D.6. The comparison against raw is Table 2 in the main text, and Figure 5 shows it per series. The conclusions are stable across bootstrap block lengths: at expected block lengths 10, 40, and 80 dates, the StaFIR-context intervals through h = 40 stay below zero, and the h = 80 interval crosses zero at every length.
Pairwise comparisons with reintegration. Table 11 compares StaFIR-context directly with the two fractional benchmarks and a raw AR(110) reference with matched historical context. For each series and horizon, the estimand is the paired mean QLIKE difference divided by the mean QLIKE of that comparator. The four series-level percentages are then averaged with equal weight. Each contrast is computed from the paired losses using its comparator's denominator. Against FD-context, only the h = 5 interval excludes zero. Against FD(0.5), no interval excludes zero. The 95% coverage is marginal for each horizon-comparator contrast.
Matched historical context. For K = 100, ten consecutive FIR outputs depend on 110 raw observations. The raw AR(110) control uses these same 110 observations as separate ridge predictors, with the stored origin standardizer, training, validation, and refit target dates, ridge grid, and one-step recursive forecast strategy held fixed. Its identity kernel requires no reintegration. Thus the comparison matches available history while allowing different feature dimensions: 110 raw predictors versus
Table 11: Paired downstream QLIKE comparisons with recursive reintegration for StaFIR-context (% , equal-weight mean over four series with paired stationary-bootstrap marginal 95% intervals). Each percentage uses the named comparator's QLIKE as its denominator. Negative values favor StaFIR-context. Bold intervals exclude zero. The raw AR(110) control matches the observations of raw history used by the FIR and its ten-lag head.
| Horizon | vs. FD-context | vs. FD(0.5) | vs. raw AR(110) |
|---|---|---|---|
| -0.49 [-0.98, 0.02] | 0.06 [-0.91, 1.06] | -3.92 [-5.35, -2.47] | |
| -2.45 [-4.54, -0.30] | -2.64 [-6.15, 1.20] | -8.24 [-12.03, -4.05] | |
| -2.54 [-5.38, 0.31] | -0.36 [-5.53, 5.47] | -4.46 [-11.01, 1.98] | |
| -3.40 [-6.32, 0.05] | -2.41 [-7.68, 5.20] | -3.07 [-9.15, 3.53] | |
| -2.72 [-5.38, 0.46] | -2.35 [-6.76, 3.61] | -2.43 [-7.40, 2.40] |
Table 12: Direct-head sensitivity: QLIKE differences for StaFIR-context versus comparators (% , marginal 95% stationary-bootstrap intervals). Four series-level percentages, normalized by each comparator's mean QLIKE, are averaged equally. Negative values favor StaFIR-context; bold intervals exclude zero. Forecasts use ten transformed lags to predict raw log realized variance.
| Horizon | vs. raw | vs. FD(0.5) | vs. FD-context |
|---|---|---|---|
| +25.51 [+17.98, +35.07] | -43.84 [-49.11, -37.47] | -7.18 [-12.24, -1.54] | |
| +8.35 [+5.03, +12.19] | -15.91 [-20.99, -10.17] | +0.62 [-3.01, +4.50] | |
| +5.93 [+3.35, +9.31] | -9.42 [-13.52, -5.45] | -0.23 [-2.08, +1.83] | |
| +4.39 [+1.87, +7.35] | -3.83 [-8.30, +0.21] | +1.68 [-0.14, +3.32] | |
| +0.57 [-0.96, +1.86] | -1.31 [-3.76, +0.92] | +0.85 [+0.003, +1.87] |
Intervals use 10,000 paired circular stationary-bootstrap resamples with expected block length 20 dates. The comparator denominator is recomputed in each draw. Intervals have marginal coverage for each horizon–comparator contrast, conditional on the four observed series. The positive lower bound +0.003 at h = 80 against FD-context is shown to three decimals to avoid rounding it to zero.
ten filtered predictors. Across 234 rolling origins, both methods score all 80,846 forecast–horizon pairs without failures.
Relative to this control, StaFIR-context reduces panel QLIKE by 3.92% at h = 1 and 8.24% at h = 5, with marginal 95% intervals and percentage points, respectively. The point estimates also favor StaFIR at h = 20, 40, 80, but these intervals include zero. These interval conclusions hold at expected bootstrap block lengths 10, 20, 40, and 80 dates. The effect varies across series: CDS favors StaFIR at every horizon, whereas S&P 500 point estimates favor AR(110) at h = 20, 40, 80, with intervals including zero. AR(110) itself has higher panel loss than the ten-lag raw reference by 3.24% and 6.75% at h = 1, 5, with intervals excluding zero. The comparison therefore supports a benefit from the constrained representation beyond access to additional history; it does not isolate the contribution of the stationarity penalties or of mixing multiple decay scales.
Sensitivity to a direct forecasting head. We replay the fitted filters on the same four log-realized-variance series using a separate direct ridge model for each horizon . Each model predicts the future raw log realized variance directly from an input consisting of ten transformed lags. The calibration windows, training–validation split, ridge grid, and continuous scoring convention are those of Appendix D.6; training targets are kept within the training segment and all refit targets within the calibration window.
Table 12 reports paired QLIKE contrasts for the contextual StaFIR selection. It has lower loss than FD(0.5) at , but higher loss than raw at . These interval conclusions hold at expected bootstrap block lengths 10, 20, 40, and 80 dates. At , neither contrast excludes zero. Comparisons with FD-context are less stable: the advantage includes zero at block length 80, and the small disadvantage includes zero at block lengths 40 and 80. We therefore interpret this experiment as sensitivity to the downstream forecasting model.
Reconstruction from the filtered output requires the fitted kernel and the observed history specified in Appendix B. The direct model's ten-lag input omits this reconstruction information. The two experiments therefore assess different uses of the filtered representation: recursive prediction followed by reintegration, and direct prediction from transformed lags. Isolating the contribution of reintegration would require holding the forecasting strategy fixed.
Table 13: Synthetic constraint-ablation evaluation. Scores are mean ± sample SD across seeds after averaging the scenario grid; test columns report pooled ADF and PP rejection rates and KPSS non-rejection rates (%), conditional on successful fits. Fail counts unsuccessful fits over attempts.
| Method | Stationarity | Similarity | Test outcomes (%) | Fail | ||
|---|---|---|---|---|---|---|
| ADF rejection | PP rejection | KPSS non-rejection | ||||
| StaFIR-context | ||||||
| StaFIR-context-7-scale | ||||||
| StaFIR-context-free-lags | ||||||
| StaFIR-context-no-2nd-order | ||||||
Table 14: Rolling log-price constraint ablations. Score and turnover entries are the equal-weight mean ± sample SD of the four per-series rolling means. Test entries are equal-weight means of the four per-series ADF unit-root rejection rates and KPSS stationarity non-rejection rates. Fail counts failed fits over all 235 attempted origins.
| Method | Stationarity | Similarity | Effect turnover | Test outcomes (%) | Fail | |
|---|---|---|---|---|---|---|
| ADF rejection | KPSS non-rejection | |||||
| StaFIR-context | ||||||
| StaFIR-context-no-2nd-order | ||||||
| StaFIR-context-7-scale | ||||||
| StaFIR-context-free-lags | ||||||
E.5 Constraint and representation ablations
Decay scales and second-order penalties. Two ablations isolate the contributions of the number of decay scales and of the local second-order penalties (Tables 13 and 14). Restricting StaFIR-context to seven decay scales changes the synthetic and log-price scores only slightly. Removing the second-order penalties, StaFIR-context-no-2nd-order, instead raises similarity but lowers empirical stationarity and the ADF rejection rate. On the log-price series it also increases mean effect turnover from 0.725 to 0.984. The results therefore attribute the main effect to the penalty structure rather than to the width of the decay-scale basis.
Exponential parameterization against free lag coefficients. The two tables also ask whether the exponential parameterization itself sacrifices empirical quality. The ablation, StaFIR-context-free-lags, replaces the nine mixture weights with 100 independent nonnegative lag-weight magnitudes while retaining the selected of StaFIR-context at every scenario or rolling origin. The comparison measures the effect of the representation at the penalties selected for the nine-scale model, rather than penalties tuned for the larger parameterization. Across the 3,000 synthetic scenarios and the rolling log-price series, its scores, test pass rates, turnover, and fit success are close to those of the exponential representation.
The larger model is substantially more expensive to estimate. In a matched re-fit benchmark on the first calibration window of each log-price series, five timed fits per representation followed one untimed warm-up. The median fit time with free lag coefficients was 30.4 times that of the exponential parameterization when pooled over the four series. This timing excludes candidate selection and artifact I/O. Once fitted, both representations deploy the same 101-coefficient causal FIR filter and therefore have the same inference arithmetic and state. The exponential parameterization is thus a low-dimensional inductive bias. It preserves empirical quality while reducing the fitted lag parameters from 100 to 9 and the pooled re-fit time by a factor of 30.4. The block compression of Appendix D.3 benefits the smaller representation more strongly.
E.6 Sensitivity of the selection rule
Target fraction and shortfall curvature. The main experiments fix and in the rule of Appendix C.2. A focused sensitivity experiment reruns the StaFIR-context selection on the S&P 500 and Bitcoin log-price series over
Table 15: Sensitivity of the contextual selection rule to the reference fraction and the shortfall curvature . Each row averages the successful rolling origins of the indicated series. The asterisk marks the configuration used in the main experiments, . Stationarity and similarity are 0–100 scores. Joint test outcome is the share of origins with rejection of both ADF and PP unit-root nulls and non-rejection of the KPSS null. is mean effect turnover. Reference reached is the share of origins at which the selected candidate's validation score is at least . Score shortfall is the mean of .
| Joint test outcome | Reference reached | Score shortfall | ||||||
|---|---|---|---|---|---|---|---|---|
| S&P 500 | ||||||||
| 0.00 | 0.20 | 58.6 | 100.0 | 0.00 | 0.019 | 0.93 | 0.00 | |
| 0.00 | 0.40 | 58.6 | 100.0 | 0.00 | 0.019 | 0.93 | 0.00 | |
| 0.00 | 0.80 | 58.6 | 100.0 | 0.00 | 0.019 | 0.93 | 0.00 | |
| 0.90 | 0.20 | 61.3 | 91.3 | 0.04 | 0.742 | 0.16 | 3.79 | |
| * | 0.90 | 0.40 | 61.7 | 90.1 | 0.04 | 0.900 | 0.18 | 2.40 |
| 0.90 | 0.80 | 61.9 | 88.4 | 0.08 | 1.001 | 0.22 | 1.36 | |
| 1.00 | 0.20 | 61.5 | 91.1 | 0.04 | 0.816 | 0.14 | 4.21 | |
| 1.00 | 0.40 | 61.9 | 88.5 | 0.10 | 0.942 | 0.10 | 2.43 | |
| 1.00 | 0.80 | 62.4 | 86.3 | 0.12 | 1.191 | 0.15 | 1.50 | |
| Bitcoin (XBX) | ||||||||
| 0.00 | 0.20 | 56.2 | 100.0 | 0.00 | 0.016 | 1.00 | 0.00 | |
| 0.00 | 0.40 | 56.2 | 100.0 | 0.00 | 0.016 | 1.00 | 0.00 | |
| 0.00 | 0.80 | 56.2 | 100.0 | 0.00 | 0.016 | 1.00 | 0.00 | |
| 0.90 | 0.20 | 66.2 | 84.7 | 0.06 | 0.768 | 0.06 | 3.99 | |
| * | 0.90 | 0.40 | 69.0 | 77.5 | 0.12 | 0.818 | 0.18 | 1.72 |
| 0.90 | 0.80 | 68.6 | 77.0 | 0.18 | 1.501 | 0.24 | 1.19 | |
| 1.00 | 0.20 | 67.6 | 80.0 | 0.12 | 0.806 | 0.03 | 4.21 | |
| 1.00 | 0.40 | 68.7 | 77.1 | 0.18 | 0.959 | 0.09 | 2.95 | |
| 1.00 | 0.80 | 69.1 | 73.8 | 0.21 | 1.226 | 0.18 | 1.76 | |
holding , the candidate grids, the rolling split, and all other protocol settings fixed. Table 15 reports the nine cells for each series.
Switching cost. On the four log-price series, raising from 0 to 40 lowers the StaFIR-context selection-change rate from to and mean effect turnover from 0.824 to 0.620. Mean similarity falls from 84.3 to 73.0 while stationarity rises from 65.6 to 68.3; provides an intermediate trade-off. The effect of the selection period on turnover and cost is reported in Table 17.
E.7 Adaptation cost and selection period
Measurement boundary. Table 16 separates hyperparameter selection from a carried re-fit. Each end-to-end adaptation timer starts with a raw calibration window, fits the training-prefix mean and population standard deviation, applies the resulting standardization, and then runs the relevant stage. Selection includes every candidate fit and score—all 98 solves for StaFIR-context—and a full-calibration re-fit of the selected transformation; a carried re-fit re-estimates the weights at fixed hyperparameters or rebuilds the fractional kernel. The batch-one inference timer includes fixed standardization, insertion into a float64 ring buffer, and the 101-coefficient causal FIR dot product for one raw observation. It excludes construction, adaptation, input preparation, and artifact I/O. Persistent numeric state comprises 101 coefficients, a 101-sample buffer, and the fitted mean and scale: 204 float64 values, or 1.59 KiB.
The adaptation resource benchmark uses the same raw-window boundary in a fresh subprocess. For each stage, resident process memory is reported as the absolute peak followed by its increase above process start. Wall time measures stage latency; CPU time measures computational work. For selection period , the reported cycle cost is , and the amortized cost per origin is . Timings are measurements on the development host under the worker and numerical-library thread settings recorded with its hardware, operating system, packages, and raw repetitions in the benchmark artifact.
The remainder of this section amortizes the two adaptation stages over the selection period.
Table 16: Deployment cost of the adaptive representations. Select and carried are median wall times for hyperparameter selection and a fixed-setting re-fit; inference is single-update p50/p95 latency. FIR path and numeric state are shared. CPU times are in seconds; peak RSS is absolute memory/increase above process start. Failures count unsuccessful selections.
| Method | Wall adaptation | Host inf. p50/p95 (S) | State (KiB) | Adaptation CPU (s) | Peak RSS abs. (MiB) | Selection failures | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| select (s) | carried (ms) | select | carried | cycle | /origin | select | carried | Synthetic | Real | |||
| StaFIR-context | 1.56 | 203 | 4.0/4.1 | 1.59 | 1.562 | 0.219 | 1.562 | 1.562 | 200.3/+15.96 | 196.6/+12.38 | 0/3000 | 0/469 |
| FD-adf | 0.061 | <1 | 4.0/4.1 | 1.59 | 0.062 | 0.000 | 0.062 | 0.062 | 185.9/+1.00 | 184.9/+0.05 | 0/3000 | 0/469 |
| FD-context | 0.12 | <1 | 4.0/4.1 | 1.59 | 0.125 | 0.000 | 0.125 | 0.125 | 188.2/+3.70 | 184.7/+0.04 | 0/3000 | 0/469 |
Table 17: Adaptation frequency across selection periods. Hyperparameters are selected every origins (: first origin only); standardization and filters are re-fitted at every origin. Per-origin refit is amortized time; similarity and are mean sample SD over successful origins. Joint outcome requires ADF/PP rejection and KPSS non-rejection; selection change counts hyperparameter changes between consecutive origins (both percentages).
| Selection period | Per-origin refit (s) | Share of origins (%) | |||
|---|---|---|---|---|---|
| Similarity | Effect turnover | Joint test outcome | Selection change | ||
| FD-adf | |||||
| 0.06 | 10 | 72 | |||
| 0.03 | 10 | 37 | |||
| 0.02 | 9 | 22 | |||
| 0.01 | 9 | 12 | |||
| 0.00 | 10 | 0 | |||
| FD-context | |||||
| 0.12 | 26 | 55 | |||
| 0.06 | 25 | 30 | |||
| 0.03 | 22 | 12 | |||
| 0.02 | 23 | 8 | |||
| 0.00 | 39 | 0 | |||
| StaFIR-context | |||||
| 1.56 | 10 | 47 | |||
| 0.88 | 11 | 29 | |||
| 0.54 | 10 | 13 | |||
| 0.37 | 13 | 10 | |||
| 0.20 | 26 | 0 | |||
Selection period on the log-price series. Table 17 pairs the held-out rolling log-price outcomes at each selection period with the amortized adaptation cost per origin, retaining . The fractional rules are evaluated under the same accounting. Selecting less often lowers turnover and cost for both contextual methods while leaving similarity almost unchanged, but freezing the first selection () lowers similarity markedly.
Selection period in the forecasting task. Table 18 reports direct paired stationary-bootstrap QLIKE contrasts between selection at every origin and each less frequent schedule. Each schedule varies the selection frequency of while re-fitting the standardization, filter weights, and forecasting model at every origin. The intervals favor over at horizons 5 and 20, over at horizons 1–40, over at horizons 20 and 40, and over the frozen schedule at horizons 1, 20, and 40. The frozen-schedule interval at horizon 5 narrowly includes zero, and all cadence-contrast intervals include zero at horizon 80. The gains from selection at every origin depend on both the comparison schedule and the forecast horizon.
Table 18: Paired stationary-bootstrap QLIKE contrasts for StaFIR-context at versus less frequent selection schedules. Entries show the percentage change in mean QLIKE at relative to each comparator schedule, averaged equally across series at each forecast horizon . Brackets give 95% intervals; negative values favor . Bold intervals exclude zero.
| Comparator schedule | |||||
|---|---|---|---|---|---|