This file covers methods that address the same problem, detecting explosive or bubble dynamics, from outside the ADF/SADF/GSADF/BSADF recursive-regression family around which exuber is built.
| Method | Paper | Status |
|---|---|---|
| Quantile-based detection | Pavlidis (2025); Wu, Shi & Wu (2025) | the global test, QPWY and QPSY monitoring are done, with an asymptotic and a bootstrap boundary (the asymptotic one is oversized away from the median); Pavlidis’s Un/QKS is not implemented |
| Noncausal / local explosive dynamics | Blasques, Koopman, Mingoli & Telg (2025) | evaluated, not implemented |
| Spectral fragility | Bhandari (arXiv) | out of scope |
| Stochastic tree asset pricing | Gourieroux & Jasiak (2025) | out of scope (pricing, not testing) |
All papers are from the JTSA 46(5) special issue except Bhandari (arXiv). See references.md.
Quantile-based detection
Status: the global test is quantile_test(), and the recursive monitoring extensions QPWY and QPSY are monitor_quantile(), with the asymptotic boundary and the bootstrap boundary of the paper’s Algorithm 1 (boundary = "bootstrap").
Sources
- Pavlidis, E. G. (2025). Bubbles and crashes: A tale of quantiles. JTSA, 46(5), 884–907.
- Wu, R., Shi, S. & Wu, J. (2025). Quantile analysis for financial bubble detection and surveillance. JTSA, 46(5), 908–931. Shi is a coauthor of PSY, so this is a quantile-based test from inside the same lineage.
Idea
These papers characterise explosive behaviour through quantile regression (QR) at chosen points of the conditional distribution, in place of a recursive mean-regression ADF statistic.
The global test of Wu, Shi & Wu (eq. 18) is the QR analogue of the DF -ratio:
Here is the quantile-regression estimator of on an intercept and at quantile (eq. 13). The term is the demeaned sum of squares of the lagged level ( is a demeaning projector and a column of ones). The density is a kernel estimate of the density of the first-differenced series at its own -th sample quantile (eq. 19, with ). It studentises the QR coefficient, as the residual variance does for the OLS DF ratio. The paper’s QPWY and QPSY statistics have the sup-scan structure of PWY and PSY, with this QR -ratio computed in every window.
Critical values (eq. 22–23). The limiting null distribution of is
where is a correlation estimated from the data, , between the innovation and its quantile-check score. (eq. 23) is the standard demeaned Dickey–Fuller -distribution. Simulating by the random-walk-plus-OLS- construction of radf_mc_cv() gives values identical, bit for bit, to the adf field of radf() on the same series. The quantiles of therefore need one fresh normal draw and a critical value that the package already simulates.
Optimal quantile. The paper’s criterion (eq. 33) is , a grid search over the same .
Implementation: global test
quantile_test() implements the global test of Section 3.1, a single static QR fit at one quantile with no recursion. It adds quantreg (>= 5.9) as an estimation dependency of exuber. tau = "optimal" (the default) runs the grid search of eq. 33 over tau_grid (default seq(0.2, 0.8, by = 0.05), the practical range the paper recommends), and a fixed tau can be passed. quantreg::rq() fits the regression, and the density, the demeaned sum of squares and the critical-value simulation are plain R.
Validation. The empirical size under a pure random-walk null is 5.0% for tau = "optimal" and 3.0% for fixed tau = 0.5 (nominal 5%, 100 replications). Power under an explosive alternative is 100%, as for SADF on the same DGP. The selected lies inside the search grid across replications and does not collapse to a boundary. Replication script: replication/alternative-paradigms/radf_quantile_validation.R.
Implementation: QPWY
is a single recursion. The window start is fixed at 1 and only the end grows, which is the badf shape of radf(), so it needs QR fits. QR has no closed form in cumulative sums, so each window needs a genuine fit (Corollaries 1–2, pages 10–11).
Corollary 1 decomposes the limit of the windowed statistic as
the same decomposition used for quantile_test(). Corollary 2 identifies with the badf sequence of radf() under a simulated null path.
monitor_quantile(data, tau = 0.5, minw, nrep, level, seed) is in exuber/R/monitor_quantile.R. qpwy_stat_path() is the loop of quantreg::rq() fits and repeats the per-window -ratio of quantile_test() (eq. 18) over a growing window. The boundary is a single flat value, the quantile across replicates of each simulated path’s own maximum, as in the sadf_cv of radf_mc_cv(). A pointwise marginal quantile at each would not control the first crossing: it gave a false-alarm rate of 50% against a nominal 5%.
The limit in Theorem 1 is , where is a Brownian motion with correlation to . Writing with independent of gives
For a single window is exactly , which is all that quantile_test() needs. It varies across windows, however, and a monitoring boundary is a quantile of path suprema, so a single constant draw of understates it. At (4000 replications, Gaussian innovations, ) the single- 95% boundary and the correct one are:
| single- boundary | correct boundary | true size of single- | |
|---|---|---|---|
| 0.8 | 1.534 | 1.665 | 0.066 |
| 0.5 | 1.657 | 2.060 | 0.108 |
| 0.2 | 1.704 | 2.405 | 0.196 |
The distortion is largest where QPWY is meant to help, with heavy tails and non-central quantiles, because is small there. quantile_boundary_sim() simulates and jointly for every window from prefix sums of , at per window, takes each path’s supremum for the data-estimated and matches a per-window brute force to .
Validation. The false-alarm rate under at a nominal 5% (, 200 replications) is 0.035 for Gaussian innovations and for at . For at , and it is 0.075, 0.085 and 0.125. The last is well above nominal, in line with the paper’s advice to avoid extreme quantiles in small samples (its Table II reports 0.07 for the global test at under ). Power on a post-training explosive DGP (60 replications) is 50.0%, against 55.0% for SADF on the same DGP. QPWY gives up a little power for robustness to non-Gaussian innovations, which is the paper’s motivation. test-qpwy.R has 7 tests, including a check that the supremum-calibrated boundary stochastically dominates any single-column marginal quantile.
Implementation: QPSY
(eq. 26) needs QR fits, about per series. In R with rq.fit(method = "br") that takes 2.7 s at and 12 s at . The boundary needs none of them. The of Corollary 2 comes from the same / simulation as QPWY, run over the full grid instead of the row.
monitor_quantile(..., type = "qpsy") uses windows with at least minw regression observations (the same first-window floor as QPWY) and the same flat, supremum-calibrated boundary.
Validation. qpsy_stat_path() matches a quantreg::rq() brute force over every window exactly. The grid simulation matches a per-window brute force to , and the QPSY suprema dominate those of QPWY on shared draws, as they must. At a nominal 5% (, 80 to 100 replications), Gaussian innovations give size 0.040 at and 0.350 at . With innovations the size is 0.037 at , 0.212 at and 0.440 at . For power (, explosive from , , Gaussian innovations, 60 replications), QPWY gives 0.400, QPSY 0.433 and SADF 0.483. The OLS test is ahead with Gaussian errors, as in Table V of the paper.
Caveat. The asymptotic boundary is exact and well sized at the median, and does not hold in the small early windows (about 20 observations) away from the median. A double supremum over thousands of such windows amplifies the finite-sample error, which the single supremum of QPWY mostly avoids. The paper uses bootstrap critical values for monitoring (Algorithm 1) and advises against extreme quantiles. With tau away from 0.5, type = "qpsy" and the asymptotic boundary emit a caveat as a message and as attr(x, "caveat"), and ?monitor_quantile gives the numbers. The bootstrap boundary described next removes most of the distortion. pyexuber has monitor_quantile(type="qpsy") with a UserWarning for the caveat.
Tests are in test-qpwy.R. Replication script: replication/alternative-paradigms/radf_qpwy_validation.R. The sizes are Monte Carlo estimates from 80 to 200 replications, good to about 2 or 3 points. The bootstrap boundary has its own script, replication/alternative-paradigms/radf_qpwy_bootstrap_validation.R, and the kernel comparison is in replication/alternative-paradigms/radf_qpwy_kernel_check.R.
Implementation: bootstrap boundary
monitor_quantile(..., boundary = "bootstrap") applies Algorithm 1 of Wu, Shi & Wu (page 916) to the whole monitoring path. Each replicate resamples the centred first differences with replacement, cumulates them into a null random walk and recomputes the QPWY or QPSY path on it. The boundary is the quantile of the path maxima over nrep replicates. It is a single flat value, constructed like the asymptotic boundary, but it follows the finite-sample distribution of the statistic and not its limit. delta plays no role in it.
The paper discards the first draws of each resample. We leave this out. The statistic regresses on an intercept, so adding a constant to the series leaves every window statistic unchanged (the largest change in a QPSY path is ). With i.i.d. draws the last values of a resample already have the law of a fresh draw of .
The paper also recomputes the bootstrap critical value at every monitoring date, using the data up to that date (its Section 4.2). Our boundary is one value for the whole path, calibrated to the first crossing. The two designs answer different questions, so detection rates are comparable with Table V in pattern and not in level.
The cost is one full statistic path for each replicate. A QPWY path takes about 0.1 s at and a QPSY path about 4 s, so 199 replicates take about 13 minutes per series for QPSY. With options(exuber.parallel = TRUE) the replicates run on workers. pyexuber ports the same option, but its IRLS solver is slower, so QPSY is practical only for short series or a small nrep.
Validation. The bootstrap path maxima match a quantreg::rq() brute force on the same resample exactly (difference 0 for both types). For the size study we drew series under and compared three boundaries on the same series: the asymptotic one, the bootstrap one, and the exact finite-sample boundary, which is the 95% quantile of the path maximum under the true data generating process (1000 paths for QPWY, 500 for QPSY). The sizes are at a nominal 5%.
| Type, | Innovations | Size, asymptotic | Size, bootstrap | Size, exact | Boundary: asymptotic | bootstrap (sd) | exact | |
|---|---|---|---|---|---|---|---|---|
QPWY, 100 | Gaussian | 0.5 | 0.035 | 0.035 | 0.035 | 1.50 | 1.45 (0.11) | 1.46 |
QPWY, 100 | 0.5 | 0.025 | 0.045 | 0.030 | 1.66 | 1.57 (0.13) | 1.64 | |
QPWY, 100 | 0.2 | 0.075 | 0.065 | 0.065 | 1.69 | 1.95 (0.23) | 1.84 | |
QPWY, 100 | 0.8 | 0.075 | 0.045 | 0.050 | 1.71 | 1.94 (0.23) | 1.96 | |
QPWY, 100 | 0.9 | 0.190 | 0.055 | 0.075 | 1.78 | 2.77 (0.56) | 2.50 | |
QPWY, 100 | Gaussian | 0.9 | 0.120 | 0.055 | 0.065 | 1.80 | 2.17 (0.22) | 2.09 |
QPSY, 60 | Gaussian | 0.5 | 0.075 | 0.050 | 0.067 | 1.93 | 2.01 (0.21) | 2.03 |
QPSY, 60 | 0.8 | 0.200 | 0.050 | 0.033 | 2.16 | 3.69 (1.22) | 3.40 | |
QPSY, 60 | Gaussian | 0.9 | 0.275 | 0.050 | 0.042 | 2.27 | 3.82 (0.83) | 3.57 |
QPSY, 60 | 0.9 | 0.467 | 0.100 | 0.058 | 2.27 | 6.06 (2.71) | 6.16 |
QPWY uses 200 series and 199 bootstrap replicates, QPSY uses 120 series and 99 replicates, so the sizes are good to about 1.5 and 2 points. At the median all three boundaries agree. Away from the median the asymptotic boundary is too low, and the size reaches 0.19 for QPWY and 0.47 for QPSY. The mean bootstrap boundary is within 0.3 of the exact one in every row, and the bootstrap size is at most 0.065 in nine of the ten rows. The exception is QPSY with innovations at , where the bootstrap size is 0.100. The bootstrap boundary of a single series is noisy in that case (sd 2.71, against a mean of 6.06), because 99 replicates of a heavy-tailed double supremum over windows of 14 to 60 observations estimate its 95% quantile poorly. A few series receive a boundary well below the exact value and reject too often. In practice we advise at least 199 replicates, and with short samples and heavy tails we agree with the paper that extreme quantiles should be avoided.
Detection. We compared detection rates on the design of Table V of the paper: an end-of-sample bubble that starts at with root , at with 200 series. A detection is a first alarm after the true origination, and the PWY and PSY monitors use the flat sadf_cv and gsadf_cv of radf_mc_cv(). QPWY uses the bootstrap boundary with 199 replicates and fixed quantiles, and not the data-selected of the paper.
| Innovations | PWY | PSY | QPWY, | QPWY, | |
|---|---|---|---|---|---|
| Gaussian | detected | 0.475 | 0.535 | 0.460 | 0.365 |
| Gaussian | alarm before origination | 0.070 | 0.060 | 0.060 | 0.065 |
| detected | 0.505 | 0.535 | 0.530 | 0.375 | |
| alarm before origination | 0.035 | 0.070 | 0.040 | 0.045 |
The same comparison for QPSY and PSY is at with 100 series and 49 bootstrap replicates for QPSY (99 for QPWY), because the QPSY bootstrap is slow.
| Innovations | PWY | PSY | QPWY, | QPSY, | QPWY, | QPSY, | |
|---|---|---|---|---|---|---|---|
| Gaussian | detected | 0.30 | 0.36 | 0.29 | 0.38 | 0.23 | 0.29 |
| Gaussian | alarm before origination | 0.08 | 0.05 | 0.04 | 0.02 | 0.05 | 0.04 |
| detected | 0.37 | 0.47 | 0.38 | 0.42 | 0.26 | 0.23 | |
| alarm before origination | 0.03 | 0.02 | 0.01 | 0.03 | 0.06 | 0.03 |
The results agree with Table V in some respects and not in others. With Gaussian innovations at the OLS monitor is ahead of its quantile counterpart (0.475 against 0.460 for PWY and QPWY, 0.643 against 0.603 in the paper). With innovations QPWY at is level with PWY at both sample sizes (0.530 against 0.505, and 0.38 against 0.37). Those gaps are smaller than the Monte Carlo error, which is about 3.5 points for 200 series and 5 points for 100, so they show no advantage. QPWY at is clearly weaker, so the choice of quantile matters. The paper finds that QPSY beats PSY under non-Gaussian innovations. We do not see that: with innovations QPSY at detects in 42% of the series and PSY in 47%, a gap of about one standard error, and at QPSY is lower (0.23). We use fixed quantiles and the paper uses the data-selected , and our boundary is flat while the paper’s is recomputed at each date, so this is not a failed replication of Table V. It does mean that we cannot confirm the power advantage of the quantile monitors from our own runs.
Kernel. The paper estimates with an Epanechnikov kernel, and quantile_check_density() uses a Gaussian kernel with the same bandwidth . We compared the two on QPWY at (60 series). The Epanechnikov kernel raises the median by 4 to 13% and the mean path maximum by 5% (Gaussian innovations) to 15% (, ), and the path maxima of the two kernels have a correlation of at least 0.97. The bootstrap boundary rises by the same proportion, so the size does not visibly change: with it is 0.050 against 0.067 for at , and 0.017 against 0.050 for Gaussian innovations at , which are differences of one or two series out of 60. The asymptotic boundary does not depend on the kernel, so with the paper’s kernel it would be somewhat more oversized than the table shows.
Pavlidis’s quantile-autoregressive tests: not implemented
Pavlidis characterises bubbles through unit-root quantile-autoregressive models in which the largest autoregressive root may vary by quantile (below 1 at low quantiles and crashes, above 1 at high quantiles and expansions). Pages 6–7 (eq. 5–11) give the same ADF regression form as radf(), fitted by quantile regression at chosen . The statistics are (coefficient-based) and (eq. 11). Critical values come from a residual or sieve bootstrap (page 7, steps 1–5) that is close to the Pedersen–Schütte bootstrap of radf_sb_(): fit an AR() to under , resample the centred residuals and rebuild the series by cumulation. Table 2 of the paper gives empirical sizes (N(0,1), and errors, ).
The tests are not implemented because the bootstrap does not reproduce the published sizes. In a prototype, the size of at with N(0,1) errors matched Table 2 (0.050 against 0.053), but at higher and were oversized (0.075–0.100 against 0.052–0.063 published). Comparing the oracle null distribution of and (1000 i.i.d. random walks, no bootstrap) with the critical values implied by the bootstrap on a single series, the bootstrap critical value stays substantially below the oracle at even at 1999 bootstrap replications, so the gap is not a matter of replication count. Only and came close to the oracle at large nboot. The statistic is very sensitive to small differences in , because the coefficient is near 1 and amplifies third-decimal differences by about 100. A next step would be to compare the bootstrap and oracle distributions of itself at several , or to implement alone, the headline statistic of the paper, which calibrated well.
Noncausal / local explosive dynamics
Status: evaluated, not implemented.
Source
Blasques, F., Koopman, S. J., Mingoli, G. & Telg, S. (2025). A Novel Test for the Presence of Local Explosive Dynamics. JTSA, 46(5), 966–980, doi:10.1111/jtsa.70001.
Idea
The test is built for mixed causal-noncausal autoregressive processes, a model class in which part of the dynamics depends on future shocks (anticipative or noncausal terms) as well as past ones. The premise is that bubbles come from an extreme shock acting through the forward-looking component of the model, and not from a recursively estimated explosive AR root on the past alone. The distribution of the test statistic is derived analytically or approximated numerically, depending on the assumed error distribution. The application is a monthly oil price index, framed partly as a Value-at-Risk-style risk-assessment tool.
Fit with exuber
Mixed causal-noncausal AR models need their own estimation. There is no closed-form OLS or QR reduction. Noncausal components are typically estimated by approximate or simulated maximum likelihood under a specified non-Gaussian error distribution, because noncausal processes are identifiable only with non-Gaussian innovations. None of the recursive least squares of exubercore applies, nor does any transform-and-reuse approach of the kind used for STADF, the sign-based test or PDC. It would be a separate statistical framework with a new estimation dependency, and no mainstream R package for noncausal AR fitting is available.
Spectral fragility (out of scope)
Bhandari, A. Rational Bubbles at the Spectral Edge: An Operator-Spectral Theory of Fragility, Identification and Finite-Sample Certification. arXiv:2607.03933.
The paper detects factor and co-movement spectral fragility. It identifies market fragility through the strength of a dominant factor extracted from cross-sectional co-movement (fewer independent factors during crises than in calm periods). It is not a right-tailed unit-root test on a single series, and it detects fragility contemporaneously and not predictively. It is not built on ADF machinery, and it addresses market-wide fragility and not the explosiveness of a specific series, so it falls outside the scope of exuber.
Stochastic tree asset pricing (out of scope)
Gourieroux, C. & Jasiak, J. (2025). A Stochastic Tree for Bubble Asset Modelling and Pricing. JTSA, 46(5), 932–944.
The paper presents a stochastic-tree representation for modelling, forecasting and pricing bubbles, with closed-form option-pricing formulas. It is an asset-pricing model and not a test for the presence of a bubble, and exuber is concerned with testing.
exuber