Quant techniques · time series

Fractional differencing: preserve memory while making a series usable

Differencing a price once often makes it closer to stationary, but discards most information about its level. Leaving the price untouched preserves its history but can leave a unit root that breaks standard inference. Fractional differencing offers a continuum between those choices: remove enough low-frequency persistence for the series to behave more steadily, while retaining more memory than a full first difference.

Fractional weights decay gradually

Absolute weight at d = 0.4

Absolute generalized-binomial weight of lag k in (1−L)^0.4.

The fractional-difference operator

For a series xtx_t, define

(1−L)dxt=∑k=0∞wkxt−k,wk=(−1)k(dk),(1-L)^d x_t=\sum_{k=0}^{\infty}w_kx_{t-k},\qquad w_k=(-1)^k{d\choose k},

where Lxt=xt−1Lx_t=x_{t-1} and dd is the differencing order. The weights satisfy the recursion

w0=1,wk=−wk−1d−k+1k.w_0=1,\qquad w_k=-w_{k-1}\frac{d-k+1}{k}.

When d=0d=0, only the current value remains. When d=1d=1, the weights are 1,−11,-1, giving xt−xt−1x_t-x_{t-1}. For non-integer dd, infinitely many lagged observations contribute, with weights that decay slowly. For example, at d=0.5d=0.5, the first weights are 1,−0.5,−0.125,−0.0625,…1,-0.5,-0.125,-0.0625,\ldots; the transformed value keeps a tail of its history rather than collapsing to the latest change alone.

The stationarity–memory trade-off

For an ideal fractionally integrated process, the differencing order changes the low-frequency behavior of the spectrum. Roughly, applying (1−L)d(1-L)^d removes a power-law component of persistence. A series with a stochastic trend may need more differencing to become stationary, while an already stationary but persistent series may be transformed with a smaller order.

The order dd is not a universal constant. Estimate it using a training sample and a specified stationarity criterion, then test the transformed series with multiple diagnostics and inspect the retained autocorrelation and relation to the original level. A stationarity test failing to reject a unit root is not proof that no useful memory remains; tests have finite-sample limitations and can disagree.

Fixed-width implementation

The infinite filter must be approximated on finite data. Fixed-width fractional differencing truncates weights once their magnitude falls below a tolerance, then applies the remaining finite kernel to a rolling window. This makes computation manageable, but truncation changes the filter and creates a warm-up region. Report the order, cutoff, and resulting effective window.

A practical selection workflow

  1. Choose candidate dd values from 0 toward 1 and estimate weights using training data only.
  2. Apply an explicitly defined truncation rule; do not silently drop long-lag coefficients.
  3. Test stationarity with complementary methods such as ADF and KPSS, which have different null hypotheses.
  4. Among transformations that pass the chosen diagnostics, compare how much the transformed series still relates to the original level.
  5. Evaluate predictive utility in a walk-forward design and compare with ordinary returns and levels. Transformation selection is part of model selection, so it belongs inside each training fold.

The goal is not to find the order that makes a plot look stationary. It is to choose a transformation that makes modelling assumptions more defensible without removing all potentially useful structure—and then verify that choice out of sample.

Finance-specific cautions

Price levels and returns have different economic meanings. Fractionally differencing a price is not automatically preferable to modelling returns, cointegration, or a state-space trend. A transformed feature can also be hard to interpret and its value depends on the sampling scheme, corporate-action treatment, and window length.

Avoid look-ahead leakage: if the optimal dd or truncation width is chosen using the full sample, future information has influenced historical features. Re-estimate within each training window, preserve timestamps, and ensure each filter output uses only present and past observations. For panel data, estimate or apply transformations consistently without using future observations from other assets.

Common mistakes

  • Assuming every fractional order between 0 and 1 guarantees stationarity. The required order depends on the data-generating process and parameter range.
  • Selecting dd by maximising correlation with the original price across the entire sample, then reporting in-sample results as predictive evidence.
  • Ignoring the long tail of weights or changing the truncation threshold without recording it.
  • Applying a symmetric, centred filter that uses future observations. The causal filter uses current and lagged values only.
  • Treating a stationary transformed feature as a profitable signal; stationarity says nothing by itself about expected return after costs.

Practice

Special casesWhat does fractional differencing produce at d = 0 and d = 1?
Show answer

At d=0d=0, (1−L)0xt=xt(1-L)^0x_t=x_t. At d=1d=1, (1−L)xt=xt−xt−1(1-L)x_t=x_t-x_{t-1}, the ordinary first difference.

WeightsUsing the recursion, what are the first three nonzero weights for d = 0.5?
Show answer

w0=1w_0=1, w1=−0.5w_1=-0.5, and w2=−w1(0.5−1+1)/2=−0.125w_2=-w_1(0.5-1+1)/2=-0.125.

ValidationWhy must the differencing order be selected inside each training fold?
Show answer

Choosing it from the full sample lets future data influence the historical transformation and can overstate predictive performance. Re-select it using only information available in each training window.

Further reading: Granger and Joyeux (1980), “An Introduction to Long-Memory Time Series Models and Fractional Differencing,” Journal of Time Series Analysis 1(1), 15–29; López de Prado (2018), Advances in Financial Machine Learning, Chapter 5.