Manuscript Offprint
arXiv:2610.33137Smoothing splines with some discontinuities
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We generalize cubic smoothing splines to signals with a finite number of discontinuities at unknown positions. Rather than changing the roughness penalty, we deform the domain over which it is computed: every interval between consecutive observations can be stretched by a non-negative warp, subject to a total budget, and the optimizer spends the budget only where a jump makes stretching cheaper than bending. The estimator inherits the state-space form of smoothing splines, so it can be fitted by maximum likelihood with the Kalman filter, and it also admits a fast alternating algorithm that solves a banded linear system and takes a projected-gradient step on the warps. The budget is selected by an extended Bayesian information criterion whose constant is calibrated by simulation. In a Monte Carlo comparison the new estimators reconstruct a piecewise-smooth signal more accurately than the cubic smoothing spline with discontinuities of Storath and Weinmann, at the cost of more false alarms. Two energy applications illustrate the method: the temperature response of electricity demand in Northern Italy, and retail fuel prices, whose discontinuities, changes in excise duties, are dated by public record. The three supplements follow the references.
Keywords Change-point detection Domain warping Extended BIC Kalman filter Signal extraction Structural breaks
1 Introduction
Data recorded over an ordered index often behave smoothly for long stretches punctuated by a handful of sharp, isolated changes: a policy shock in a price series, a phase transition in a physical process, a saturation threshold in a demand curve. Cubic smoothing splines (Wahba, 1978; Wecker and Ansley, 1983), and their equivalent state-space signal-extraction formulation (Harvey and Koopman, 2000), recover the smooth part of such signals well, but they are twice continuously differentiable by construction: the roughness penalty that makes them smooth also prevents them from reproducing a discontinuity, which is either washed out over several observations or, if the penalty is relaxed everywhere, accommodated at the price of overfitting the noise elsewhere. What is needed is an estimator that is smooth almost everywhere and sharp exactly where the data demand it, without the analyst having to specify in advance where.
This paper proposes such an estimator. The idea is to leave the classical roughness penalty unchanged and to deform the domain over which it is computed. Every pair of consecutive observations is allowed a non-negative domain warp , an amount of fictitious domain length inserted between them, subject to a total budget , and the roughness of the spline is penalized on the warped domain. Where the signal is smooth, warping buys nothing, the optimal is zero and the fit coincides with an ordinary smoothing spline. Where the signal jumps, the same vertical change can be spread over a longer warped interval at a much lower curvature cost, so the optimizer concentrates the budget on the few intervals where a jump is present. Strictly speaking, the fitted function remains continuous: it approximates a discontinuity much as a steep sigmoid approximates a step function. Because the mechanism is a reparameterization of the domain, the estimator inherits the state-space representation of smoothing splines, which we use for maximum likelihood estimation via the Kalman filter, and it also admits a fast alternating algorithm that avoids numerical likelihood maximization altogether.
The idea of penalizing discontinuities directly, rather than smoothing through them, goes back to the weak rod and weak plate models of Blake and Zisserman (1987) and to the Mumford–Shah functional (Mumford and Shah, 1989), which penalize the roughness of a piecewise-smooth function together with the number of its discontinuities and lead to a combinatorial search over candidate discontinuity sets. The estimator closest to ours, and our benchmark throughout, is the cubic smoothing spline with discontinuities (CSSD) of Storath and Weinmann (2024), which specializes the weak-rod functional to cubic splines and non-equidistant data and solves it exactly by dynamic programming. Wavelet shrinkage (Donoho and Johnstone, 1994) denoises jumpy signals by thresholding multiresolution coefficients, but it targets equidistant designs and does not produce a piecewise-smooth curve. The fused lasso (Tibshirani et al., 2005) and trend filtering (Kim et al., 2009; Tibshirani, 2014) penalize the norm of successive differences of the fitted values or of their derivatives, a convex problem with automatic knot placement, but the knots are a by-product of a coefficient-level penalty rather than of an explicit, interpretable deformation. Free-knot splines (Koo, 1997) and two-stage procedures, which first locate breaks with a changepoint detector such as PELT (Killick et al., 2012) and then smooth between them, decouple detection from estimation. Our formulation keeps the roughness penalty unchanged and reparameterizes the metric in which it is computed, so that detection and estimation are solved jointly, through a single continuous, non-negative vector .
Section 2 introduces the domain-warping formulation, its state-space form, the alternating algorithm and the tuning of the method. Section 3 compares the estimators with CSSD and with a classical smoothing spline by Monte Carlo simulation, and Section 4 applies them to two energy-related data sets, chosen to cover the two kinds of data the method is meant for. The first application investigates the temperature response of electricity demand, a cross-sectional relation estimated on hourly observations ordered by temperature rather than by time, irregularly spaced and with many ties, whose discontinuities are thresholds of the physical system and are not known in advance. The second uses weekly time series of retail fuel prices, serially dependent and close to a stochastic trend, in which changes in the excise duty shift the level of the prices at dates that are a matter of public record, so that the estimated discontinuities can be checked against a ground truth that real data rarely offer. Section 5 concludes. Three supplements accompany the paper: the Computational Supplement collects derivations and implementation details, the Calibration Supplement the tuning of the method, and the Application Supplement additional results for the two applications.
2.1 The main idea
Let , , be the observations, with , and let be the length of the -th interval of the physical domain (i.e., the physical interval between consecutive knots). We introduce a vector of non-negative domain warps and define the length of the -th interval in a latent domain as
If the physical and latent intervals coincide; if the interval is stretched. On each interval the function is a cubic polynomial in the latent coordinate , which is linked to the physical coordinate by the linear dilation , so that the function observed in the physical domain is for , . A function that is smooth in the latent domain can thus be steep in the physical one: the dilation compresses a smooth latent transition into a short physical interval, where it appears as a jump if is large.
The estimator minimizes
which balances the distance from the observations against the roughness of the function measured in the latent domain; is the smoothing constant and the warping budget.
The mechanism becomes transparent when one looks at the roughness penalty of a single interval, which we call its energy by analogy with the bending energy of an elastic beam. For a cubic segment covering a height difference , the energy is dominated, for short intervals, by a proportional term such that
(see Section 2.3 and the exact statement is in Section of the Computational Supplement).
The key intuition behind the proposed approach is that a discontinuity is difficult for a classical cubic smoothing spline because the spline is forced to explain a large change in the response over a very short interval of the physical domain. On the one hand, in regions of discontinuity, if is large while is small, the standard energy term would explode (); a large change over a short physical interval is therefore very expensive for an ordinary smoothing spline, which is forced to over-smooth it. Instead, our algorithm allocates a large positive that dilates the denominator and lets the curve complete the same transition as a smooth, low-energy curve in the latent domain (the penalty cost is then drastically reduced), so that a discontinuity in the physical domain is represented as a smooth transition in a locally stretched domain (Figure 1). On the other hand, in regions of continuity where the signal evolves gradually, extra domain length brings little reduction of energy and the optimal stays at or near zero, the latent interval equals the physical interval (), so that the fit behaves as a standard cubic smoothing spline. The budget constraint is what makes the solution sparse: it prevents the whole domain from being stretched uniformly and forces the warping onto the few intervals where it is most valuable, so that large values of are data-driven indicators of jumps or sharp regime changes.
The design points are taken to be distinct. A tie would make vanish, and with it the latent length of an interval that carries no warp, so that neither the roughness penalty of that interval nor the transition of the state-space form of Section 2.2 would be defined; more fundamentally, a warp on an interval of zero length would be a discontinuity between responses recorded at the same value of the covariate, which no data can identify. Tied observations, common when the covariate is recorded at a coarse resolution, are therefore collapsed into their mean at each distinct value, weighted by the number of replicates. The reduction leaves the fitted curve unchanged, but the within-group scatter that it discards still informs the observation variance, and the information criterion of Section 2.4 counts the candidate locations on the distinct values and the observations on the raw data (Section of the Computational Supplement).

Figure 1: Domain warping. The same observations on the physical domain (a) and on the latent warped domain (b), at the same horizontal scale. Away from the jump the intervals are unchanged and the grey connectors are vertical; at the jump, positive warps stretch the interval (, in yellow, with a lighter stretching of the neighboring intervals in blue), so that the same vertical change is completed over a longer latent interval at a lower curvature cost. The latent domain is longer than the physical one by the total warping .
2.2 A signal extraction formulation
Smoothing splines can also be obtained by signal extraction (Wahba, 1978; Wecker and Ansley, 1983): the cubic smoothing spline is when the data are generated by , , , with a continuous-time standard white noise and diffuse initial conditions for and its derivative. This model has the state-space form (Harvey and Koopman, 2000, see, e.g.,)
with , . The Kalman filter delivers the likelihood of , and the state smoother the smoothing spline itself.
Adapting this representation to the latent domain only requires replacing the physical increments with their warped counterparts . The likelihood is then maximized with respect to subject to and , a problem for which the algorithm of Svanberg (2002), implemented in the NLopt library (Johnson, 2007), is effective. The analytical scores are available in closed form from one pass of the Kalman filter and smoother, so that a gradient of dimension never has to be approximated by finite differences; for they contain an additional term, because enters the transition matrix as well as the disturbance covariance (Section of the Computational Supplement). Since the likelihood is not convex, good starting values for are important, and values close to zero are generally a good choice. We call this estimator SSJ–MLE (smoothing splines with jumps, maximum likelihood); when is fixed at a supplied value and the likelihood is maximized with respect to the remaining parameters, we call it SSJ–KFS.
2.3 An alternating domain-warping algorithm
As an alternative to the numerical maximization of a non-convex likelihood, we minimize (1) for given and by block coordinate descent, alternating a spline step, in which is fixed and solves a convex quadratic problem, with a warping step, in which is fixed and takes a projected-gradient step. We call the resulting estimator SSJ–ATW (alternating domain warping). Each iteration costs operations.
Spline step (-step).
In this step, is fixed. Let collect the values and first derivatives of the function at the observations. By a well-known argument based on Hermite polynomials (Dougherty et al., 1989, see Section 2 of), the energy of interval (i.e., the contribution of the interval to the total roughness energy) is the quadratic form
with the local stiffness matrix
Adding each to the diagonal block of rows and columns of a matrix of zeros gives the roughness penalty matrix , which is symmetric and block tridiagonal. Following the classical approach that goes back to Strang and Fix (1973), the objective function becomes , where has in position and zeros elsewhere and the selection matrix retains the function values, and it is minimized by the solution of the banded linear system
Because is block tridiagonal, a block Cholesky decomposition solves the system in operations (Section of the Computational Supplement), an idea that goes back to de Boor (1978) and that the recent work of Storath and Weinmann (2024) also exploits. The output of this step is the updated (odd elements of ) and (even elements of ).
Recall that . To evaluate the complexity of the model (useful for generalized cross-validation or information criteria of Section 2.4), calculate the trace of the smoothing matrix (or equivalently the sum of the odd diagonal elements of ), which provides the effective degrees of freedom (EDF):
where denotes the generic element of the matrix (Hastie et al., 2009, see Section 5.4 of).
Warping step (-step).
In this step, and are fixed, and we want to update the domain warp vector to reduce the current objective function value. First, we update to reduce the total roughness energy. With fixed, the energy of interval has the reduced form
that is, it is a Laurent polynomial in whose coefficients do not depend on (see Section of the Computational Supplement for derivation and analytical details). Its derivative with respect to the warp,
gives the gradient step , where the learning rate absorbs the factor . Second, to ensure that respects the constraints, the result of the -step is projected onto the feasible set , exactly and in operations, by the sort-based algorithm of Duchi et al. (2008) (Section of the Computational Supplement for details on the projection onto the Simplex). The projection has a statistical interpretation: once the gradient has indicated where additional domain length would reduce the energy, the projection redistributes the available budget and sets many components exactly to zero, so that only a few intervals are stretched, and these are expected to be those where a smoothing spline would otherwise pay an excessive curvature penalty.
The two steps are repeated until the change in the variables falls below a tolerance level.
2.4 Tuning and implementation
Three constants have to be chosen: the smoothing constant , the warping budget and the constant of the information criterion that selects . We summarize the choices here; the Calibration Supplement gives the details.
Smoothing constant .
SSJ–MLE estimates by maximum likelihood together with the other parameters. SSJ–KFS and SSJ–ATW take it as given, either from a preliminary SSJ–MLE fit or by -fold cross-validation: the held-out squared error is computed on a grid of pairs, minimizes , and the budget is then selected afresh, on the full sample, by the criterion below. When the observations are serially dependent the folds are contiguous blocks rather than random draws (Otto et al., 2024): a held-out observation whose neighbors stay in the training sample is nearly predicted by them, and the criterion is then won by a fit that all but interpolates. The minimization over is a profiling step, not a selection. Only the few observations near a transition carry information on the budget, and prediction error is nearly indifferent to a few spurious warps, so selecting by cross-validation declares many more discontinuities than the criterion below at the same accuracy (Section of the Calibration Supplement).
Warping budget.
is selected on a grid by the extended BIC of Chen and Chen (2008),
where is the maximized log-likelihood, the effective degrees of freedom, the number of active warps, and returns the BIC. A budget with active warps also decides which of the intervals carry them, so the model space at size has members and grows with the sample; a criterion that charges only for dimension, such as the AIC or the BIC, reads the gain from searching over this space as evidence and keeps adding discontinuities. The extended term charges for where the discontinuities are placed, as distinct from how many there are.
The constant .
The consistency result of Chen and Chen (2008) supplies a floor rather than a value, , and it is stated for a criterion in which the extended term alone pays for the search, whereas here the effective degrees of freedom grow with every activated warp and the term already pays part of it. We therefore calibrate by simulation, on a design separate from the one used for evaluation in Section 3, with replications per cell. The design has three scenarios: a fixed smooth signal observed with independent errors on an irregular design (the reference case), serially dependent errors, and a signal that is partly or entirely a stochastic trend, namely an integrated Wiener process, the prior that the smoothing spline assumes. Each scenario is crossed with the sample size ( from to ), the noise level and the number of true discontinuities ( to ). The constant is read off two minimax regret rules over the design cells, one on the root mean squared error (RMSE) of the fitted curve and one on the absolute error in the number of discontinuities declared, and Table 1 reports their midpoint.
Table 1: Calibrated values of by scenario, estimator and source of (from SSJ–MLE, or by cross-validation with or folds drawn at random or as contiguous blocks). Each value is the midpoint, rounded up to the grid, of the minimax regret rules in RMSE and in the count error, each pooled over the levels of the scenario ( under dependent errors, under a stochastic trend; Section of the Calibration Supplement).
| Estimator | from | reference case | dependent errors | stochastic trend |
|---|---|---|---|---|
| SSJ–KFS | blocks | |||
| SSJ–KFS | blocks | |||
| SSJ–KFS | random | |||
| SSJ–KFS | random | |||
| SSJ–KFS | MLE | |||
| SSJ–ATW | blocks | |||
| SSJ–ATW | blocks | |||
| SSJ–ATW | random | |||
| SSJ–ATW | random | |||
| SSJ–ATW | MLE | |||
| SSJ–MLE | MLE |
Three regularities matter in practice (Section of the Calibration Supplement). First, the calibrated values lie below the nominal floor without contradicting the theory, because part of the charge per discontinuity is levied through ; for the same reason SSJ–KFS with from SSJ–MLE, whose smoothing constant is fixed before the budget is chosen and whose search over the budget can therefore buy less, needs a milder penalty than SSJ–MLE itself in every scenario. Second, serial dependence and stochastic trends both call for a heavier penalty than the reference case, through different channels: persistence acts through , and the penalty responds to it when is cross-validated on contiguous blocks but not with random folds, whereas a stochastic trend leaves the reconstruction unaffected and inflates the number of discontinuities declared. The value depends on the estimator as much as on the data. Third, a single constant is a compromise across sample sizes: Table of the Calibration Supplement reports the calibration at each , and Table a closed-form rule that extends it beyond the sample sizes of the design for SSJ–KFS with from SSJ–MLE or from contiguous blocks. The values adopted are largely robust to the rule that synthesizes the two criteria (Table of the Calibration Supplement).
Declaring discontinuities.
The estimated warps are continuous, and an interval is declared a discontinuity when its warp is large both relative to the total warping of the fit and in absolute terms. Unless otherwise stated, a warp is declared when it exceeds both of the total warping and of the mean sampling interval, a rule that filters out numerically small warps while retaining genuine jumps of very different sizes.
Software.
Both algorithms are implemented in the R package jumps, version 2.0.0 or later, available from CRAN (Pelagatti and Maranzano, 2026); the computationally intensive parts are written in C++ and interfaced through Rcpp (Eddelbuettel and François, 2011).
3 Simulation experiment
To assess how well the estimators recover a piecewise-smooth signal from noisy, irregularly sampled data, we replicate and extend the illustrative simulation of Storath and Weinmann (2024). The test signal is
where is the Bessel function of the first kind of order one; it has three discontinuities, at (jump ), (jump ) and (jump ), on an oscillating smooth background. For each of three noise levels, , we generate replications, each with abscissas drawn uniformly on and , . Every estimator is evaluated on a grid of equispaced points on , clamped to the observed range of each replication, so that extrapolation is not scored.
Four estimators are compared. CSSD has the two tuning parameters of its weak-rod penalty chosen by 5-fold cross-validation, as recommended by Storath and Weinmann (2024, Section 3.4), and returns its discontinuity set directly, as part of the solution of the underlying combinatorial problem. SSJ–MLE estimates by maximum likelihood and SSJ–ATW takes from 5-fold cross-validation (Section 2.4); both select by the extended BIC at and declare discontinuities by the rule of Section 2.4. This is the reference-case value of Table 1 for SSJ–ATW with from random 5-fold cross-validation; for SSJ–MLE it is one grid step above the value of the table and equal to the one that the RMSE rule selects on its own (Table of the Calibration Supplement), and it keeps the two estimators at an equal penalty. The naive benchmark, which ignores discontinuities altogether, is a cubic smoothing spline with smoothing parameter chosen by generalized cross-validation.
Figure 2: For each of the three discontinuity-aware estimators, the upper panel shows the mean fitted curve (solid) and the pointwise Monte Carlo interval (shaded band) against the true signal (dashed), and the lower panel the histogram of the locations declared to be discontinuities.
At every noise level SSJ–ATW and SSJ–MLE reconstruct more accurately than either benchmark (Table 2), and they stay close to each other: their RMSEs differ by at most 4%, with SSJ–ATW ahead at and SSJ–MLE at . The two-step algorithm of Section 2.3 thus attains the accuracy of the maximum likelihood fit it approximates. Both improve on the classical smoothing spline, by 7% to 11% at and by 3% to 7% at the other two levels.
Table 2: RMSE of the fitted curve against the true signal , pooled over replications and the -point evaluation grid, at three noise levels. All values are multiplied by . CSSD is reported twice: over all replications, and excluding those on which its fit diverges between the design points; counts the latter.
| CSSD | ||||||
|---|---|---|---|---|---|---|
| all | excl. | SSJ–ATW | SSJ–MLE | Smooth. spline | ||
| 0.05 | 183.9 | 63.4 | 2 | 56.1 | 58.5 | 63.2 |
| 0.10 | 179.1 | 79.1 | 0 | 73.1 | 73.5 | 78.2 |
| 0.15 | 102.1 | 95.8 | 2 | 90.9 | 88.0 | 93.3 |
The comparison with CSSD requires a qualification, which is why Table 2 reports it twice. Pooled over all replications CSSD is the least accurate of the four estimators, trailing even the smoothing spline, and SSJ–ATW is more accurate at ; but nearly all of the gap is contributed by four replications out of , two at and two at . On those draws a declared discontinuity isolates two nearly coincident design points into a segment of their own; the spline on that segment is the straight line through them, and the linear extension used to evaluate the fit carries its slope, of order , across the segment. The fitted values at the design points remain sane, so the failure appears only between them; we verified it against the reference implementation of Storath and Weinmann (2024), and it is a property of the estimator in this sampling regime. These replications, flagged because their RMSE exceeds five times the median of the same estimator at the same noise level (they sit at to times the median, the largest unflagged one at ), produce the two spikes in CSSD’s mean squared error near and in Figure 3, far from any jump; away from the three discontinuities, the two divergent replications at account for of CSSD’s excess mean squared error over SSJ–ATW. With them set aside, SSJ–ATW and SSJ–MLE are between 5% and 12% more accurate than CSSD, which is then on a par with the smoothing spline; the medians of the per-replication errors, which no tail can move, agree ( for CSSD and for the smoothing spline at , against and for SSJ–ATW and SSJ–MLE). At the discontinuities themselves the estimators behave alike: at , the largest jump, the bias of CSSD is against for SSJ–ATW, the unavoidable cost of smoothing across a jump, and its mean squared error is larger by a factor of about .
Figure 3: Pointwise bias (top row) and mean squared error (bottom row) of the four estimators, over replications, for (blue), (green) and (orange). Vertical dotted lines mark the true discontinuities. The two spikes in CSSD’s mean squared error near and are the divergent replications discussed in the text.
The picture changes when the question is where the discontinuities are. The lower panels of Figure 2 show the locations declared over the replications, and Table 3 the detection rates within of each true break and the false positives. CSSD raises far fewer false alarms, per replication at against for SSJ–ATW and for SSJ–MLE, but it also finds fewer of the breaks: at it recovers the jump at in of the replications, against and for the SSJ estimators, and the one at in , against and ; only at the largest jump, , are the three comparable. As the noise rises, detection power declines for every estimator and the ordering ceases to be clear-cut: by no estimator recovers the two smaller jumps reliably. CSSD is conservative and the SSJ estimators are liberal, consistently with a warping vector that is optimized to reduce roughness globally rather than to solve a detection problem, and with a calibration of that weighs the accuracy of the curve as well as the count.
Table 3: Discontinuity detection by estimator and noise level. Detection rate: fraction of the replications in which a discontinuity is declared within of the true break. False positives: mean number, per replication, of declared locations outside all three windows, and the same figure as a percentage of the candidate locations that lie outside them on average (discontinuities can be declared only between consecutive design points, candidates).
| Detection rate | False positives | |||||
|---|---|---|---|---|---|---|
| Estimator | per rep. | rate | ||||
| CSSD | ||||||
| SSJ–ATW | ||||||
| SSJ–MLE | ||||||
In short, CSSD is the more conservative estimator of where the discontinuities are, declaring few and being right about nearly all of them, while SSJ–ATW and SSJ–MLE are the more accurate estimators of what the signal is doing, and the more sensitive detectors when the signal-to-noise ratio permits. When the discontinuities are few, isolated and large relative to the noise, the three estimators agree, as they do on the fuel prices of Section 4.2.
4 Applications
4.1 Temperature and electricity demand in Northern Italy
We estimate the relation between the hourly electricity load of Northern Italy, from the day-ahead market data published by the Gestore Mercati Energetici (GME, https://www.mercatoelettrico.org/), and the temperature in Milan, from Open Meteo (https://open-meteo.com/), between 1 January 2023 and 30 September 2025. To obtain homogeneous consumption behavior we keep the hours from 10 a.m. to 3 p.m. of Tuesdays to Thursdays and exclude the months with typical Italian vacations, keeping February, March, May, June, July, September, October and November; after dropping the few hours with a demand below MWh or a temperature above C, the sample has hourly observations between and C. The temperatures are recorded to the nearest C, so that many hours share the same value; these ties are collapsed into weighted means at the distinct temperatures, as described in Section 2.1 and, in detail, in Section of the Computational Supplement. The abscissa is the temperature, irregularly spaced, and the relation is a fixed curve observed with errors, the reference case of the calibration; both estimators are therefore run at , as in Section 3. We discuss the warps using the rule of Section 2.4, even though in Figure 4 all warps are depicted (in gray those not matching the rule).
SSJ–MLE selects a budget with three active warps, at C, C, and C, while SSJ–ATW (with cross-validated ) detects only C and C. Figure 4 shows that the two fits agree on the shape of the curve and on where it breaks, and differ mainly in how much warping they spend: 3.24 for SSJ–MLE and 1.62 for SSJ–ATW. The state-space form of SSJ-MLE also delivers standard errors.
Figure 4: Temperature and electricity demand, with the signal extracted at by (a) SSJ–MLE, (b) SSJ–ATW with from 5-fold cross-validation. The band in (a) is standard errors of the extracted signal, which the state-space form returns and the alternating algorithm does not. The bottom plots show for every active warp.
The discontinuities mark temperatures at which the physical system behind the load changes state. The large jump detected by both methods at C is associated with the temperature at which air conditioning is generally turned on. The break at C is an order of magnitude smaller than the one at C and it has the opposite sign, demand falling as the temperature rises through it. A natural reading is the mirror image of the air-conditioning threshold: space heating in Lombardy is overwhelmingly gas-fired and so largely invisible in electricity demand, but the supplementary electric heating that is used in the shoulder season — reversible split units run as heat pumps, and electric convectors in commercial premises — is switched on below roughly this temperature. The same behavioral mechanism as at C would then act on a much smaller share of the load, which is what the relative size of the two steps suggests. The discontinuity at C, detected only by SSJ–MLE, appears to be a change in slope and could be due to many air conditioners already operating at their maximum power, thus, unable to respond to temperatures above C.
None of these features can be expressed by the degree-day construct that energy systems conventionally use to summarize the temperature response, two straight lines joined at a base temperature fixed by convention (C in Italy). The fitted curve attains its minimum at C but stays within of it over the whole interval C, so there is no sharp vertex for the data to locate; its two arms are asymmetric, with about MWh per degree of cold below C against per degree of heat above C, which a single base temperature cannot serve; and, being continuous, a degree-day representation can only absorb the steps into a steeper slope. The estimator does not have to choose between a kink and a step.
We also applied the CSSD algorithm of Storath and Weinmann (2024) to the same data, but no discontinuities were detected, so the extracted signal was the same as that of a classical smoothing spline.
4.2 Retail fuel prices and excise-duty changes in Italy
The second application is a time series in which the location of the discontinuities is known in advance. This is unusual and valuable: change-point procedures are almost always assessed on simulated data, because in real series the truth is not observed. Retail fuel prices are an exception. The excise duty on motor fuels is a per-liter amount fixed by decree, it enters the pump price mechanically, and the date on which a new amount takes effect is a matter of public record, so a change in the duty is a discontinuity whose timing, although not its size, is known exactly.
The last years have provided two such interventions of unusual size. After the invasion of Ukraine the average price of gasoline rose by more than euros per liter in the second week of March 2022, to an all-time high above euros, and the government cut the excise duty by euros per liter from 22 March 2022; the cut was reduced by euros on 1 December 2022 and withdrawn on 1 January 2023. A second cut, of euros per liter, entered the prices on 23 March 2026 and was likewise followed by a staggered restoration. In between, the duties on gasoline and diesel were realigned in two small steps until both reached euros per liter in January 2026. Table 4 lists the ten weeks of the sample in which the duty changed, dated at the first weekly survey in which the new amount appears. Seven dates affect both fuels and three only one, for seventeen events; the two realignment steps are an order of magnitude smaller than the emergency measures and are included in the ground truth without any expectation that they be detectable.
Table 4: Weeks of the estimation sample in which a change in the excise duty on motor fuels entered the surveyed prices, and the size of the change in euros per liter, positive for an increase. A dash means that the duty on that fuel did not change in that week.
| Week | Gasoline | Diesel | Week | Gasoline | Diesel |
|---|---|---|---|---|---|
| 28 Mar 2022 | 23 Mar 2026 | ||||
| 5 Dec 2022 | 4 May 2026 | — | |||
| 9 Jan 2023 | 25 May 2026 | — | |||
| 19 May 2025 | 8 Jun 2026 | — | |||
| 5 Jan 2026 | 6 Jul 2026 |
We use the weekly survey of the national average consumer prices of petroleum products published as open data by the Italian Ministry of Environment and Energy Security (MASE, https://sisen.mase.gov.it/dgsaie/open-data), from 5 January 2015 to 27 July 2026, that is, weeks, for gasoline and automotive diesel. For each fuel we smooth two series: the pump price, which a change in the duty moves by construction, and the industrial price, which excludes the excise duty and the value-added tax and therefore reacts to a fiscal measure only to the extent that the measure is not passed on. We treat the observations as equally spaced, , so that is measured in weeks of fictitious time and so is the grid of budgets; a location is declared a discontinuity when , that is, when the latent interval is more than twice the physical one, and a break is dated at the first observation of the new regime. Weekly prices leave serially dependent residuals, and their level behaves like a stochastic trend rather than a fixed curve, since crude oil, the exchange rate and refining margins accumulate shocks; is therefore estimated by maximum likelihood and, for SSJ–ATW, also by cross-validation on contiguous blocks of about thirty weeks (Section of the Application Supplement).
These are the two departures of the calibration, for which Table 1 gives values of above the reference case. Because the dates of the interventions are known, the choice can also be checked on the data (see Section of the Application Supplement). The declared sets are nested in , and at the reference-case value the estimators declare a long tail of dates that are not policy events: SSJ–ATW at the maximum likelihood reports such weeks on the two pump-price series alongside of the events. Raising to removes much of the tail at little cost, leaving spurious weeks and events, and beyond nothing more is gained. We therefore set , the upper end of the values that Table 1 gives under the two departures, which a weekly price series combines; Section of the Application Supplement repeats the analysis at , and . Four of the seventeen events are recovered by no estimator at any : the two realignment steps on either fuel, which move the duty by and cents against a weekly standard deviation of the pump price several times larger.
Figure 5: Consumer prices of gasoline (left) and automotive diesel (right) in Italy. Rows one and three: the price paid at the pump (excise duty and VAT included) and the industrial price (taxes excluded); observations (gray lines) and the signal extracted by SSJ–MLE (blue line). Rows two and four: the warping sequences on a scale of SSJ–MLE (left) and SSJ–ATW (right); the dashed rule is the threshold above which a location is declared a discontinuity. Bottom row: the excise duty. Colored vertical rules mark the discontinuities found by each estimator, gray dotted rules the weeks in which a change in the excise duty entered the surveyed prices.
Figure 5 reports the four series and the signals extracted by SSJ–MLE, together with the warping sequences of SSJ–MLE and SSJ–ATW and the discontinuities declared by the two and by CSSD. The estimators are mutually consistent: on gasoline the three return the same dates on both price concepts, and on diesel they differ only by one or two locations at which SSJ–ATW is slightly more liberal. The discontinuities are few, and they sit on the policy dates. On the pump price the largest warp of the whole sample falls on 28 March 2022, the first survey after the emergency cut, with for gasoline and for diesel, and the second largest on 9 January 2023, the first survey after the duty was restored in full. The one further discontinuity that the estimators isolate on the pump price is not a fiscal event but the market shock of 14 March 2022, two weeks earlier, and it is separated cleanly from the tax change that followed it (Figure of the Application Supplement magnifies the two episodes).
The estimated jumps are economically interpretable. A cut of in the duty lowers the pump price by if it is passed on in full, so the euro cut of March 2022 corresponds to a mechanical reduction of euro per liter. The estimated discontinuity is (SSJ–MLE), (SSJ–ATW) and (CSSD) for gasoline, and , and for diesel, close to nine tenths of the mechanical effect. The complement is visible in the other series: SSJ–MLE declares no discontinuity on the industrial price at that date, when the industrial price rose by only euro per liter. The restoration of January 2023 gives estimates of to against a mechanical , so the transmission is of comparable size in the two directions. The 2026 episode inverts the pattern. The pump price barely reacts, falling by euro per liter for gasoline and for diesel against a mechanical , and no discontinuity is declared on it, while a large one appears on the industrial price, estimated at to for gasoline and to for diesel. Because the cut came on top of a violent market surge, the size of the pass-through is uncertain, but the conclusion that the second intervention reached the pump far less completely than the first is robust (Section of the Application Supplement).
Finally, we remark that a change point in the middle of a long sample is an easy target: near the boundary the spline has almost no data on one side, and the roughness penalty alone must arbitrate between a discontinuity and a steep continuous transition. Because the date of the March 2022 cut is known, this can be put to the test by re-estimating the three procedures on nested windows in which the edge of the sample is moved toward the cut, from the left and from the right for the cut of March 2022 and from the right for that of March 2026 (Section of the Application Supplement). On the pump price both SSJ estimators recover the March 2022 cut in every window, from either side, and date it exactly; its estimated size stays at euro per liter from the full sample down to the shortest window, so the boundary neither displaces nor attenuates the jump. CSSD loses the jump in one short window on each side, where it detects a move of about to euro per liter instead. On the industrial price, where the 2022 cut leaves no trace, the estimators find nothing at the policy date in any window, which doubles as a placebo check.
5 Conclusion
We have generalized the cubic smoothing spline to signals with an unknown, finite number of discontinuities by deforming the domain over which smoothness is measured, rather than by searching over discontinuity sets or penalizing coefficients. Because the mechanism only reparameterizes the metric of the classical roughness penalty, the model inherits the state-space form of smoothing splines, which gives maximum likelihood estimation via the Kalman filter (SSJ–MLE), and it admits a fast alternating algorithm (SSJ–ATW) that alternates a banded linear solve with a projected-gradient update of the warps, without maximizing a non-convex likelihood numerically.
The simulation study and the two applications point to a consistent division of labor with the CSSD benchmark of Storath and Weinmann (2024). SSJ–ATW and SSJ–MLE reconstruct the signal more accurately than CSSD and than a classical smoothing spline, and they detect more of the genuine breaks when the signal-to-noise ratio permits; CSSD declares fewer discontinuities and is nearly always right about those it declares. On the fuel prices, where the timing of the discontinuities is a matter of public record, the three estimators agree on the policy dates, and on the pump price the SSJ estimators recover the March 2022 cut, with a stable size, in every boundary window, while CSSD occasionally loses it near the edge of the sample.
Several limitations suggest directions for future work. The optimization over is non-convex for both SSJ–MLE and SSJ–ATW, so neither is guaranteed to find a global optimum; starting values close to work well in our experiments but are not backed by a formal convergence guarantee. The budget is selected by an extended BIC whose constant is calibrated by simulation and depends on the estimator and on the character of the data; a joint, likelihood-based selection of remains open. The declaration of a discontinuity is a threshold rule on ; a sampling distribution for , and hence a formal test for a jump at a given location, would put this step on firmer ground and is a natural extension of the analytical scores of the Computational Supplement. Finally, the domain-warping idea is not tied to a one-dimensional domain or to a Gaussian signal: extensions to surfaces, in the spirit of the weak plate model of Blake and Zisserman (1987), and to non-Gaussian observation models within the same state-space machinery are directions we leave for future research.
Supplementary material
Computational Supplement: Reduced form of the roughness energy of an interval and its gradient, assembly and block-tridiagonal solution of the spline step, projection onto the feasible set of the warps, analytical scores of the Kalman-filter log-likelihood, and the treatment of repeated values of the covariate. Calibration Supplement: Tuning of the smoothing constant and of the warping budget, and design, criteria and complete results of the calibration of the extended-BIC constant . Application Supplement: Additional results for the two applications: the temperature–demand relation over the grid of and the comparison with degree days; for the fuel prices, the check of the calibration on the policy dates, the 2026 episode, the boundary experiment, and the sensitivity to and to the number of cross-validation folds. R package jumps: Implementation of SSJ–MLE and SSJ–ATW, version 2.0.0 or later, available from CRAN (Pelagatti and Maranzano, 2026). Replication package: Code that reproduces every table and figure of the paper and of the supplements, available from the authors upon request. The data are publicly available from the sources given in Section 4.
References
Blake, A. and Zisserman, A. (1987), Visual Reconstruction, MIT Press, Cambridge, MA.
Chen, J. and Chen, Z. (2008), ‘Extended Bayesian information criteria for model selection with large model spaces’, Biometrika 95(3), 759–771.
de Boor, C. (1978), A Practical Guide to Splines, Vol. 27 of Applied Mathematical Sciences, Springer-Verlag.
Donoho, D. L. and Johnstone, I. M. (1994), ‘Ideal spatial adaptation by wavelet shrinkage’, Biometrika 81(3), 425–455.
Dougherty, R. L., Edelman, A. and Hyman, J. M. (1989), ‘Nonnegativity-, monotonicity-, or convexity-preserving cubic and quintic hermite interpolation’, Mathematics of Computation 52, 471–494.
Duchi, J., Shalev-Shwartz, S., Singer, Y. and Chandra, T. (2008), Efficient projections onto the -ball for learning in high dimensions, in ‘Proceedings of the 25th International Conference on Machine Learning (ICML)’, ACM, pp. 272–279.
Eddelbuettel, D. and François, R. (2011), ‘Rcpp: Seamless R and C++ integration’, Journal of Statistical Software 40(8), 1–18.
Harvey, A. and Koopman, S. J. (2000), ‘Signal extraction and the formulation of unobserved components models’, The Econometrics Journal 3(1), 84–107.
Hastie, T., Tibshirani, R. and Friedman, J. H. (2009), The elements of statistical learning: data mining, inference, and prediction, 2 edn, Springer.
Johnson, S. G. (2007), ‘The NLopt nonlinear-optimization package’, https://github.com/stevengj/nlopt.
Killick, R., Fearnhead, P. and Eckley, I. A. (2012), ‘Optimal detection of changepoints with a linear computational cost’, Journal of the American Statistical Association 107(500), 1590–1598.
Kim, S.-J., Koh, K., Boyd, S. and Gorinevsky, D. (2009), ‘ trend filtering’, SIAM Review 51(2), 339–360.
Koo, J.-Y. (1997), ‘Spline estimation of discontinuous regression functions’, Journal of Computational and Graphical Statistics 6(3), 266–284.
Mumford, D. and Shah, J. (1989), ‘Optimal approximations by piecewise smooth functions and associated variational problems’, Communications on Pure and Applied Mathematics 42(5), 577–685.
Otto, P., Fassò, A. and Maranzano, P. (2024), ‘A review of regularised estimation methods and cross-validation in spatiotemporal statistics’, Statistics Surveys 18, 299–340. https://doi.org/10.1214/24-SS150
Pelagatti, M. and Maranzano, P. (2026), jumps: Hodrick–Prescott Filter and Spline Smoothing with Jumps. R package version 2.0.0. https://CRAN.R-project.org/package=jumps
Storath, M. and Weinmann, A. (2024), ‘Smoothing splines for discontinuous signals’, Journal of Computational and Graphical Statistics 33(2), 651–664.
Strang, G. and Fix, G. J. (1973), An Analysis of the Finite Element Method, Prentice-Hall, Englewood Cliffs, NJ.
Svanberg, K. (2002), ‘A class of globally convergent optimization methods based on conservative convex separable approximations’, SIAM Journal on Optimization 12(2), 555–573.
Tibshirani, R. J. (2014), ‘Adaptive piecewise polynomial estimation via trend filtering’, The Annals of Statistics 42(1), 285–323.
Tibshirani, R., Saunders, M., Rosset, S., Zhu, J. and Knight, K. (2005), ‘Sparsity and smoothness via the fused lasso’, Journal of the Royal Statistical Society: Series B (Statistical Methodology) 67(1), 91–108.
Wahba, G. (1978), ‘Improper priors, spline smoothing and the problem of guarding against model errors in regression’, Journal of the Royal Statistical Society: Series B (Methodological) 40(3), 364–372.
Wecker, W. E. and Ansley, C. F. (1983), ‘The signal extraction approach to nonlinear regression and spline smoothing’, Journal of the American Statistical Association 78(381), 81–89.
Computational Supplement Smoothing splines with some discontinuities
This document collects the derivations and the implementation details of the two estimators of Section of the paper. Section A1 derives the reduced form of the roughness energy of one interval and its derivative with respect to the domain warp, on which the warping step of the alternating algorithm (SSJ–ATW) rests. Section A2 shows how the spline step is assembled and solved in operations, and Section A3 how the warps are projected onto their feasible set. Section A4 derives the analytical scores of the log-likelihood of the state-space form, which make the maximum likelihood estimator (SSJ–MLE) efficient, and Section A5 explains how repeated values of the covariate are treated. Equation numbers without the prefix A refer to the paper.
A1 The roughness energy of one interval
With and the local stiffness matrix
the roughness energy of the -th interval is (Equation () of the paper). Expanding the quadratic form gives
The three brackets are respectively , and , where
so that the energy of the interval admits the reduced form
Since , and depend on the nodal values only, is a Laurent polynomial in whose coefficients do not depend on . Differentiating it term by term and using gives at once. Notice that the derivative is taken at fixed, which is what the -step of the block coordinate descent requires, and it is the derivative of the roughness energy alone: the corresponding derivative of the objective function is , so that is absorbed into the learning rate .
Gradient with respect to the warps.
Since , and depend on the nodal values only, is a Laurent polynomial in whose coefficients do not depend on . Differentiating it term by term and using gives
which is Equation () of the paper. The derivative is taken at fixed, which is what the warping step of the block coordinate descent requires, and it is the derivative of the roughness energy alone: the corresponding derivative of the objective function () of the paper is , so that is absorbed into the learning rate .
The energy of a short interval.
Section of the paper states that the energy of an interval is dominated, for short intervals, by a term proportional to , by analogy with the bending energy of an elastic beam. Two precise statements lie behind it, and both follow from Equation (A2), with the height difference that the fitted curve actually covers on the interval. If the segment is required to arrive and to leave with zero slope, then exactly, which is the classical stiffness of a beam clamped at both ends. For arbitrary but fixed endpoint derivatives and , the remaining two terms of are of order and , so that as . The proportionality describes how the energy grows as the interval shrinks and is not a lower bound over all cubics through the two points: the minimum of over the endpoint derivatives is zero, attained by the straight line.
Units of the smoothing constant.
The reduced form also shows that the smoothing constant is not scale-free. Each term of Equation (A2) has the units of and the fidelity term of the objective function has the units of , so carries the units of . This is why the grids of are specified relative to the cubed range of the abscissa (Calibration Supplement), and it is the same fact that lets be absorbed into the learning rate of the warping step.
A2 The spline step
In the spline step is fixed and the objective function is minimized with respect to the state vector of size , which contains the values and the first derivatives of the function at the observations. Following the classical approach that goes back to Strang and Fix (1973), let be the vector of size with the values in the odd positions and zeros in the even positions, and let be the diagonal selection matrix with diagonal : applied to , it retains the function values and zeros out the derivatives, as the data inform but not .
Assembly of the penalty matrix.
The roughness penalty matrix is a sparse matrix assembled from the local stiffness matrices of Section A1. Since the elements of , , play the role of both the ending point of interval and the starting point of interval , is built as follows.
- Set all the elements of the matrix equal to zero.
- For , set where refers to the submatrix of with (integer) row indices ranging from to and column indices from to .
The matrix is symmetric and block tridiagonal. The objective function can then be written as
which is minimized by the solution of the linear system
The output of the step is the updated (odd elements of ) and (even elements of ).
A2.1 Block-tridiagonal Cholesky decomposition
The matrix has a block-tridiagonal structure with blocks,
so that, partitioning and conformably into the blocks and , system (A4) is a chain of small systems, each linking a block to its two neighbors. Due to this chain structure, it can be solved in two linear passes, one forward and one backward (Golub and Van Loan, 2013, see Section 4.5.1 of); this is essentially Gaussian elimination organized by blocks, the idea exploited by Storath and Weinmann (2024) and that goes back to de Boor (1978).
Forward step.
Set and and, for , compute the modified diagonal blocks, which are Schur complements, and the modified right-hand sides
This operation transforms the system into a block upper-triangular one, which can be solved block by block.
Backward step.
Set and, for , compute
Each operation involves matrices only, so the whole solution costs operations.
A3 Projection onto the simplex
In the warping step and are fixed, and the warps are first moved by a gradient step, , with given by Equation (A3) and learning rate . To ensure that the constraints and hold, the result is then projected onto the simplex by the following algorithm, due to Duchi et al. (2008).
- Let and set any negative components to 0.
- If , return .
- Sort in descending order: .
- Compute the cumulative sum of the sorted : .
- Find the index that is the largest such that:
- Calculate the threshold :
- Final update: for .
The cost is dominated by the sort, operations. The spline step and the warping step are repeated until the change in the variables falls below a tolerance level.
A4 Analytical scores of the Kalman-filter log-likelihood
Since model () of the paper is estimated by exploiting the Kalman filter, in this section we provide the analytical scores of the (penalized) log-likelihood required to make the computations both efficient and precise. We also show that, unlike , the domain-warp parameters require an additional score term beyond the standard formula, because they affect the transition matrix of the state-space form and not only its disturbance covariances.
Scores with respect to the log-likelihood
One can, in fact, adopt the solution presented in Koopman and Shephard (1992, result 3.2). By adapting it to our scenario, given a generic component of the parameter vector we can write
where is the variance matrix of the observation error, and is the variance matrix of the state error. Formula (A5) is valid for any that enters and/or only, leaving the system matrices that drive the state recursion unaffected; we will return to this restriction below.
In our case, the parameter vector is defined as
and we write the state and state-disturbance vectors as and , so that the state equation in () of the paper reads with observation matrix and transition matrix
The derivatives of the disturbance variance matrices
with respect to ’s components can be computed promptly: for all and
and
Since enters only and , formula (A5) applies to it unchanged. However , through , also enters the transition matrix :
so formula (A5) by itself is incomplete for : it must be supplemented with an extra term accounting for .
The additional score term induced by the transition matrix
The Kalman filter likelihood is the marginal likelihood of obtained after integrating out the latent states from the complete-data log-likelihood
with and . By the Fisher (or Louis) identity that underlies all EM-type score computations,
where the expectation is taken at the current value of . Formula (A5) is precisely the result of applying this identity when affects only . For , only the summand at index depends on , and expanding and differentiating with respect to before taking the conditional expectation yields, after simplification,
where
The second term in (A6) is exactly the contribution missed by treating as if it only entered .
To evaluate it in closed form we need the smoothed cross-moment , equivalently the smoothed cross-covariance , where and are the usual smoothed state and smoothed disturbance ( being the one-step-ahead predicted mean and MSE matrix produced by the Kalman filter). Writing for the Kalman gain and for the disturbance-smoothing matrix associated with the backward recursions for , the smoothed cross-covariance admits the closed form
which can be obtained from the disturbance- and state-smoothing recursions (cf. the lag-one smoothed state covariance of Shumway and Stoffer, 1982, here re-expressed without recourse to the filtered-variance sequence) and which we have additionally verified by direct computation against the exact, non-recursive Gaussian conditional covariance of the finite-sample model. Substituting – obtained from (A7) together with – into the second term of (A6), the factors and cancel by the cyclic property of the trace:
the last equality following from having a single nonzero entry in position , which selects the entry of the matrix it multiplies. No new filter or smoother recursion is required: every quantity above () is already produced by the Kalman filter and smoother used for .
The complete score for
Granted the notation
and writing for the two components of the Kalman gain (so that ), the score with respect to is unaffected by the above and remains as in (A5), while the complete score with respect to combines the term already given by (A5) with the new term derived above:
where is the smoothed slope at .
Scores with respect to the constraint function
Since the constraint function is defined as
its derivatives with respect to ’s components are trivial:
With estimation of lambda
By model parameterization we have . We can also directly define the variance of the error term :
This allows us to define the vector of parameters to be estimated as
This means that one can now carry out the estimation without a fixed value for . Such estimation returns the estimate for and then (if necessary) one can estimate by
In order to perform the estimation in question, the derivatives of the disturbance variance matrices must be computed. The only change affecting these matrices with respect to the previous case regards , which is now defined as
Consequently, the derivatives are almost unaffected: for all and
and
As above, enters only , so its score follows directly from (A5); still requires the additional term derived above, which is unaffected by the reparameterization of . The gradient turns out to be
and
A5 Repeated values of the covariate
The construction of Section 2 of the paper is stated for distinct design points, and a great deal of it stops working if they are not; yet ties are common in practice, for instance when the covariate is recorded at a coarse resolution, as the temperatures of Section 4.1 of the paper are. Write the sample as , , , where are the distinct values of the covariate, is the number of replicates at , and is the total number of data points. Each may carry a positive weight , a point of weight being treated as the mean of independent observations; unit weights are the default. In this section is the number of distinct values, so that every is positive.
Why ties must be removed.
The warping is indexed by the intervals between consecutive design points, and a tie makes one of them vanish. Two distinct things then break. Mechanically, the latent length of such an interval is zero whenever it carries no warp, which at the optimum is the case for all but a few intervals. The state-space form (2) of the paper then has , and , all of which are zero, so the transition is degenerate; and the stiffness matrix of Section A1, proportional to , and the gradient (A3) of the warping step are not defined. More fundamentally, the model is not identified there: a warp placed on an interval of zero length is a discontinuity between two responses recorded at the same value of the covariate, and no feature of the data can say which replicate lies on which side of it. Collapsing ties is therefore not a computational convenience but the removal of coordinates that carry no information.
The reduction is exact.
Let be the total weight at , the weighted group mean, and
the within-group scatter, written to distinguish it from the sums of Section A1 and from the selection matrix of Section A2. For every the elementary identity holds, so that the weighted version of the objective function (1) of the paper splits as
with the energy of interval (Equation (3) of the paper). The penalty is untouched, because it depends on , on the warps and on the distinct alone, and involves neither nor . The pair is therefore sufficient for the signal: at a fixed smoothing constant, the weighted fit on the collapsed points is identical to the fit on the raw ones, not an approximation to it.
In the state-space representation the weight enters through the observation variance, , which is to say that a point of weight is treated as the mean of independent observations. In the spline step of Section A2 it enters through the data term : the selection matrix is replaced by , and system (A4) becomes
with the vector of size carrying in position and zeros elsewhere. The system is still block tridiagonal, and of order with the number of distinct values, so the solution of Section A2.1 applies unchanged. So does the warping step, since the energies and their gradient depend on the distinct only.
What the reduction discards, and when it matters.
Equation (A9) says that is irrelevant to . It does not say that is irrelevant. The within-group scatter is not ancillary for the observation variance : it is an estimate of in its own right, carrying
degrees of freedom, one for every data point beyond the first at each site. Should the collapsed data be supplied directly, with computed from the underlying raw observations rather than from the points passed to the fitter, counts those observations instead and becomes .
The consequence is a distinction between the two kinds of fitter. Where the fit does not involve the observation variance, as in the alternating algorithm at a supplied , there is nothing to restore and the collapsed problem is the whole problem. Where is estimated by maximum likelihood, as in SSJ–MLE, the log-likelihood of the collapsed data is augmented by
together with the corresponding constant, so that the reported likelihood is that of all the data points and uses the within-group scatter as well as the between-group residuals. In the scores of Section A4, becomes , or when is estimated, so that the terms in are divided by ; and the correction (A11) adds to the score with respect to , or to the score with respect to when is fixed.
SSJ–KFS and the fixed-variance fitter do not apply (A11): they report the likelihood of the collapsed means, and their is formed from the between-group residuals alone. Such an estimate remains consistent as grows, since the collapsed means have variance and the weighted filter identifies from them; but it throws away data points’ worth of information, and under heavy replication, with many replicates at each of moderately many sites, that is most of the information about in the sample. A log-likelihood reported by SSJ–MLE and one reported by SSJ–KFS are therefore on different footings whenever ties are present, and are not comparable as they stand.
Consequences for the selection criterion.
Every count entering the criteria is read off the collapsed problem. The candidate locations for a discontinuity are the intervals between distinct values of the covariate, so the dimension of the model space entering the extended BIC (5) of the paper is , with the number of distinct values and not , and the extended term is . The sample size whose logarithm multiplies the degrees of freedom is likewise. The consistency floor of Chen and Chen (2008) is therefore , the value of about recalled in Section 2.4 of the paper, unchanged by the presence of replicates.
The effective degrees of freedom are the trace of the weighted smoothing matrix, which equals that of the smoothing matrix of the raw observations; in the alternating algorithm it is . The residual sum of squares that the criteria are built on holds only between-point variation, having been removed by the collapse, so it carries degrees of freedom and the residual variance is estimated by — one degree of freedom per fitted point, not one per data point. Fitted values are returned on the distinct, sorted values of the covariate, so a fit and the data it came from have different lengths whenever ties are present, and any comparison of the two has to be made against .
Cross-validation.
Held-out error is weighted in the same way as the fit, so that a fold is scored by the observations it actually represents: the cross-validation criterion of the Calibration Supplement becomes
Replication requires a choice about the partition that is easy to overlook. If folds are drawn over the data points, replicates of the same site land on both sides of the split, and a held-out point is then evaluated at a covariate value that the training sample also contains: the criterion estimates the error of predicting a fresh observation at an already observed , and it is optimistic as an estimate of the error at a new one. If folds are drawn over the distinct sites, all the replicates at a site are held out together and the criterion estimates the latter; it then differs from the held-out error of the raw observations only by the constant , and has the same minimiser. The second is the relevant target when is being chosen to recover the signal, and it is what we use; the distinction is immaterial when the design has no ties.
References
de Boor, C. (1978), A Practical Guide to Splines, Vol. 27 of Applied Mathematical Sciences, Springer-Verlag.
Duchi, J., Shalev-Shwartz, S., Singer, Y. and Chandra, T. (2008), Efficient projections onto the -ball for learning in high dimensions, in ‘Proceedings of the 25th International Conference on Machine Learning (ICML)’, ACM, pp. 272–279.
Golub, G. H. and Van Loan, C. F. (2013), Matrix Computations, 4 edn, Johns Hopkins University Press, Baltimore.
Koopman, S. J. and Shephard, N. (1992), ‘Exact score for time series models in state space form’, Biometrika 79, 823.
Shumway, R. H. and Stoffer, D. S. (1982), ‘An approach to time series smoothing and forecasting using the EM algorithm’, Journal of Time Series Analysis 3(4), 253–264.
Storath, M. and Weinmann, A. (2024), ‘Smoothing splines for discontinuous signals’, Journal of Computational and Graphical Statistics 33(2), 651–664.
Strang, G. and Fix, G. J. (1973), An Analysis of the Finite Element Method, Prentice-Hall, Englewood Cliffs, NJ.
Calibration Supplement Tuning of the smoothing constant and of the warping budget, and calibration of the extended-BIC constant , for Smoothing splines with some discontinuities
This document reports the tuning of the smoothing constant and of the warping budget and, in full, the calibration of the extended-BIC constant , all summarized in Section of the paper: the cross-validation of and the reasons for selecting by an information criterion, the data generating process and its three scenarios in closed form, the design and the criteria, every table and figure, and the numbers behind every reading. The experiment rests on replications per design cell; the code that computes it and the code that produces every table and figure of this document are in the replication package.
1 Tuning the smoothing constant and the warping budget
This section gives the details of the tuning of and summarized in Section of the paper; the rest of the document is devoted to the constant of the extended BIC.
An information criterion for the budget.
In the literature and in the applications of classical cubic smoothing splines the smoothing constant is generally determined by cross-validation, and with the state-space form it can also be estimated by Gaussian maximum likelihood. Cross-validation is not a valid way to select the warping budget , however: given the small number of discontinuities expected in the data, most held-out subsamples reveal none of them. must therefore be chosen by an information criterion, and with a number of candidate parameters of the same order as the number of observations the classical criteria are, as Chen and Chen (2008) point out, “usually too liberal”.
Selecting the budget is not a choice of model dimension. A budget admits some number of positive warps, but it also decides which of the inter-observation intervals carry them, and the estimator arrives at that subset by searching over all of them. The relevant model space at size therefore has members and grows with the sample: the number of candidate locations is , so . The Akaike and Bayesian criteria charge only for dimension. Both have the form , with and respectively, and neither term depends on how many configurations were examined before the reported one was chosen. That is harmless when the model space is fixed, because the omitted cost is then a constant, but it is not harmless here. The best-fitting arrangement of warps among possibilities fits appreciably better than a -warp arrangement nominated in advance, and the gap widens with ; a criterion blind to it reads the selection gain as evidence and keeps adding discontinuities. Formally, the consistency of the Bayesian criterion rests on being fixed, and it is lost once grows with . Chen and Chen (2008) restore it by replacing the prior that is uniform over models with one that is uniform over models of the same size, which adds the log-cardinality of the class searched. With for small , this yields the extended BIC of Equation (2) in Section 2, whose additional term is a charge for where the discontinuities were placed, as distinct from how many there are.
Two remarks on our use of these results, that is calibrated on a design separate from the one used for evaluation and that calibrated values below the nominal consistency floor do not contradict the theory, because the term already pays part of the search cost, are developed in Section 2 and Section 6.5. A third concerns the way is supplied, which also decides how much the extended term has left to charge. When SSJ–KFS or SSJ–ATW take from a preliminary fit, one parameter of the model has been fixed before the budget is chosen: the fit is stiffer than one in which is free and re-estimated at every budget, part of its degrees of freedom have already been given up, and the search over the budget can buy less, so the additional penalty governed by has to be milder. The calibration confirms this in every scenario (Sections 6.1 and 7).
Cross-validation of the smoothing constant.
In the implementation based on the state-space form, SSJ–MLE, is estimated together with the other parameters by maximum likelihood and the budget is selected by minimizing the extended BIC on a grid of values of . SSJ–KFS and SSJ–ATW instead take the smoothing constant as given. A simple way of supplying a good value is a preliminary SSJ–MLE fit, but this makes the faster estimator depend on the slower one it is meant to approximate; the following -fold cross-validation removes that dependence at a comparable cost. Write for the fit obtained from the observations outside fold , at smoothing constant and warping budget . With the observations split into folds of nearly equal size, which partition the sample, the cross-validation criterion on a grid of candidate pairs is
Held-out points falling outside the range of their training sample are evaluated at the nearest training abscissa rather than by extrapolation: beyond the data the fit is only extended linearly, and one or two boundary points would otherwise dominate a fold. The estimator is then run on the full sample at , and the budget is chosen afresh by the extended BIC.
The minimization over in Equation (1) is a profiling step, not a selection: its argument is discarded. This asymmetry is deliberate and reflects what the two constants do. The smoothing constant governs a global bias–variance trade-off to which every held-out observation contributes, and there cross-validation is competitive with maximum likelihood: on the design of Section of the paper the two choices of agree closely and the resulting root mean squared errors (RMSEs) differ by to . The budget governs a sparse, local feature. Only the observations lying in the transition regions carry information about whether it is right, so the effective sample size for that decision grows with the number of discontinuities and not with ; and prediction error is nearly indifferent to a few spurious warps, since each displaces the fitted curve over a short stretch of the domain. Selecting by Equation (1) therefore declares markedly more discontinuities than the information criterion at the same accuracy, which is why it is not used for that purpose.
The folds can be drawn at random or as contiguous blocks. To respect the temporal sequence of the observations, the blocked scheme holds out contiguous stretches of the series and so preserves its temporal structure (Otto et al., 2024). With serially dependent errors this matters: a held-out observation whose neighbors remain in the training sample is nearly predicted by them, the random-fold criterion is then minimized by a fit that all but interpolates, and the selected collapses (Section 6.2). The simulations of Section of the paper use random folds and the applications of Section use ; with contiguous blocks is preferable, since holding out a fifth of the series in one stretch over-smooths (Section 6.2).
Grids and computational cost.
The smoothing constant is not scale-free: it carries the units of , because the roughness energy of an interval has the units of while the fidelity term of the objective function has the units of (the reduced form of the energy, which shows it, is derived in the Computational Supplement). The default grid is therefore specified for the scale-free ratio , nine logarithmically spaced values from to , which are multiplied by before use. The warps , and with them the budget , are lengths of the domain, so the grid of budgets is expressed in the units of and is the same one used for the final selection. The procedure costs fits, which is affordable only because the spline step of the alternating algorithm solves a banded system in operations; within each fold and each the budgets are traversed in increasing order, each fit warm-started from the previous one.
2 The constant
All three estimators that carry an information criterion, namely SSJ–MLE, SSJ–KFS and SSJ–ATW, select the warping budget by the extended Bayesian information criterion of Chen and Chen (2008),
with the maximized log-likelihood, the effective degrees of freedom, the number of active warps and the number of candidate discontinuity locations. The strength is a free constant.
Three considerations rule out the obvious procedure of sweeping a grid of , reporting the minimizer and adopting it:
- If were chosen on the design of Section of the paper and that same design were then used to report performance, the comparison against CSSD would be contaminated: CSSD’s constants are cross-validated within each replication, ours would have been chosen by inspecting the truth across all of them. The calibration design must be separate from the evaluation design.
- The root mean squared error (RMSE) as a function of is nearly flat near its minimum, so a point minimizer is largely Monte Carlo noise. A rule is needed that reports what the design resolves rather than the location of a shallow argmin.
- The consistency condition of Chen and Chen (2008) for candidates is . Here the candidates are the inter-observation intervals, so and the nominal floor is . Every value calibrated below lies under that floor, and the discrepancy has to be explained rather than left for the reader to notice.
The three issues are addressed as follows. The first is met by the design: is calibrated on a data generating process of its own, described in Section 3 and never used to evaluate the estimators, so that the comparison with CSSD in Section of the paper is made with a constant fixed in advance. The second is met by the criteria of Section 5: the point minimizer is replaced by two minimax regret rules, whose output is the value of whose worst regret over the design cells is smallest, and every calibrated value is reported with the spread of the cell-wise optima it summarizes, so that a flat valley is visible as such. The third is met in Section 6.5. is the trace of the smoothing matrix, and that trace itself grows with every activated warp, so the term of Equation (2) already charges part of the cost of each declared discontinuity. What the theory constrains is the total charge per discontinuity; the extended term supplies only what is left of it, and a calibrated below the nominal floor is consistent with the theory once the part levied through is counted.
3 Data generating process and scenarios
The constant is calibrated by simulation because 1) the data do not identify , since it enters only the selection among fits and never a fit; 2) the theory of Chen and Chen (2008) supplies a floor rather than a value; and 3) only on simulated series are the two quantities a choice of has to be scored against, the true signal and the true number of discontinuities, available. The design has to cover the kinds of data the estimators will meet, and it does so with one data generating process and two departure parameters, run as three scenarios.
Scenario 1 is the common boundary of the other two and is reached by the same code. Scenario 2 describes series whose errors are persistent and Scenario 3 series whose level accumulates shocks; the fuel prices of Section of the paper have both, so the two bracket the answer rather than either supplying it.
The three experiments differ only in two parameters of one data generating process. With a fixed smooth background, a draw from an integrated Wiener process and the errors,
\displaystyle\text{order statistics of n draws from }\mathrm{U}(0,1), (3)
with independent standard normal, and .
The abscissas are uniform draws, sorted, so the spacing is irregular (thus consistent with both cross-sectional and continuous-time objects). At the same increment enters the transition of the simulated error and the transition matrix of the state-space form of Section of the paper.
Discontinuity positions and signed sizes are redrawn every replication, kept away from the edges so that a break is a detection problem rather than a boundary problem, and bounded away from zero so that a miss is a failure of the method rather than of the signal-to-noise ratio. Signal, discontinuities and errors are additive in the last line of Equation (3), and the discontinuities enter as steps that persist to the end of the sample, so the size is the level shift at and not a transient.
The covariance is that of an integrated Wiener process over a gap , which by the correspondence of Wahba (1978) is the prior the smoothing spline itself places over the signal.
The signal is a weighted linear combination of the deterministic component with weight and the integrated Wiener stochastic process with weight . Since the weights are the square roots of two shares that sum to one, is the share of the signal’s variance carried by the stochastic trend: at the signal is the fixed curve and only the jumps are random, at the curve is replaced entirely by a path of the process, and in between the signal has both a recurring shape and a level that wanders. The two components are independent by construction, being a fixed function of and being driven by innovations that do not depend on it.
The signal is standardized twice. The first standardization, of and separately, makes a share of variance: the two components have no common scale (i.e., is a fixed sinusoid, a random walk in the slope whose variance grows along the sample and with ) so raw weights would confound the mixing proportion with the accident of their relative sizes. The second standardization acts on the mixture and holds the amplitude constant across : is not unless the two parts happen to be uncorrelated in the realized sample. It matters because the jump sizes and the noise level are not rescaled, so without it the jump-to-signal and signal-to-noise ratios would drift with and a change in the calibrated could not be attributed to the departure rather than to the jumps having become relatively smaller.
In the error recursion the two coefficients do separate jobs. The factor is the correlation carried across a gap of length , equal to exactly at the mean spacing, larger for closer pairs and smaller for farther ones; correlation therefore decays in distance. The factor holds the marginal variance fixed: by induction for every and every , while . Persistence here is therefore not extra noise but the same noise arranged differently, which is the case in which it is easiest to overlook. In symbols, if then
so that is the standard deviation of the errors at every and every , and is exactly their correlation.
Because is defined at the mean spacing while the design is irregular, the autocorrelation on a realized series is not itself. The gaps of sorted uniform draws are, to a close approximation, exponentially distributed with mean , and since is convex in the gap the expected lag-one autocorrelation lies above , in closed form
so that the ten levels of span realized autocorrelations from to about . Over draws at the realized mean autocorrelation was , and for , against , and from Equation (4).
The three scenarios.
- Scenario 1 sets : every is zero so , the stochastic part drops out of , and what remains is the standardized deterministic component observed with independent errors on an irregular design. This is the reference case, and it describes a cross-sectional experimental design;
- Scenario 2 sets and sweeps , keeping the fixed signal and turning on the error dependence. It describes anything recorded sequentially, and, because the dependence is in distance rather than in index, also designs that are not temporal, such as a spatial transect;
- Scenario 3 sets and sweeps , keeping independent errors and making the signal itself a draw from the prior the spline assumes. By the equivalence of Wahba (1978) the smoothing spline is the posterior mean under an integrated Wiener prior. Here it is used in the other direction, to generate signals from exactly what the estimator believes a signal looks like before it has seen any data, so that a moving signal is tested without confounding it with a signal the estimator was never designed for. At the signal is a fixed curve and only the jumps are random. For part of the variance is a recurring shape and part a trend that never repeats, which is what a stable seasonal or diurnal pattern on a slow-moving level looks like. At the signal is an integrated random walk (Maranzano and Pelagatti, 2025, i.e., the local linear trend of unobserved-components models and the model implicit in the Hodrick–Prescott filter) so it is non stationary and follows no fixed function, thus a second realization would produce a different curve, and only its scale and the location of the jumps are left to estimate (Section 3.3). Also, at the estimator’s view of the signal is therefore correct, which makes it the well-specified case and gives the results of Section 6.3 their force.
Closed forms of each scenario are given in Sections 3.1 to 3.3.
3.1 Scenario 1: a fixed smooth signal with independent errors
Setting the error recursion of Equation (3) collapse (i.e., ) for every , so the error recursion reduces to ; and with the stochastic part and the mixture drop out of , leaving the standardized background. Equation (3) becomes
(5)
This is the reference case (i.e., common boundary of the other two scenarios): a fixed deterministic curve, observed with independent errors, on an irregular design. It describes a designed experiment, or a cross-section in which the abscissa orders the observations without inducing dependence among them.
Figure 1 shows what it looks like. The scenario has no departure parameter to raise, so the rows carry the one dimension of the factorial that decides how hard the reference problem is: the noise level. At the jumps are unmistakable and the curve is traced almost exactly; at the smaller of the five is comparable to the scatter, which is what makes the count criterion of Section 5 bite in the cells that matter.
Figure 1: Scenario 1, Equation (5). Rows: the noise level ; columns: the number of true discontinuities. Points are the observations, the blue line is the signal, and the dashed rules are the true jump locations. The seed does not depend on , so within a column the abscissas, the signal and the jump configuration are identical going down and only the scatter about the curve changes.
3.2 Scenario 2: serially dependent errors
Setting and letting vary keeps the fixed signal and turns on the error dependence:
(6)
is swept over , ten levels, for a realized lag-one autocorrelation running from to about . The scenario describes the normal condition of anything recorded sequentially (e.g., weekly prices, daily pollutant concentrations, hourly load, instrument readings) where what is left over once a signal has been removed is itself persistent. Because the dependence is specified in distance rather than in index, it covers designs that are not temporal at all, such as a spatial transect where adjacency means physical proximity.
Locating a real series on the axis.
It is tempting to read the persistence of a series off the autocorrelation of the residuals of a fitted model, and Equation (4) would then map that number onto . On these data this reading does not work, and the reason is worth recording because it recurs whenever smoothing and dependence are estimated together. The residual autocorrelation is not a property of the errors alone: it moves with the amount of smoothing. A fit that over-smooths leaves part of the signal in the residuals and inherits its persistence; a fit that follows the data closely absorbs the persistence into the fitted curve and leaves residuals that are negatively correlated. On the pump price of Section of the paper the same series gives a lag-one residual autocorrelation of about at a fit with effective degrees of freedom and of about at the fit actually selected, which carries . The selected fit is the flexible one, so what its residuals report is not the absence of dependence in the errors but the presence of enough flexibility to have taken it up. Two consequences follow. Persistence in the errors and flexibility in the signal are not separately identified from a single series without further assumptions, so no single number read off one fit can place a series on the axis. The experiment therefore records, at each and at each estimator’s own calibrated , the residual autocorrelation of the selected fit so that a value measured on real data is matched against simulated values rather than against itself.
Figure 2 depicts some examples drawn from this DGP. Because the marginal variance is held at whatever , the scatter does not grow down the rows. Persistence here is not extra noise but the same noise arranged differently. What changes is that the cloud collapses from a symmetric swarm into a slow wobble that hugs the curve, and that is the mechanism behind the failure of random-fold cross-validation under dependence: a held-out point is then nearly predicted by the neighbors left in the training set.
Figure 2: Scenario 2, Equation (6) with . Rows: the persistence , with the lag-one autocorrelation it realizes on average. Columns: the number of true discontinuities. Points are the observations, the blue line is the signal, and the dashed rules are the true jump locations. Within a column the seed is fixed, so the abscissas, the standardized shocks and the jump configuration are identical going down and only the correlation of the errors changes.
3.3 Scenario 3: a mixture of deterministic and stochastic trend signal
Setting and letting vary keeps the errors independent and makes the signal itself random:
(7)
is swept over .
The three regimes.
- At the signal is the deterministic curve and the only randomness in the signal is where the jumps fall (e.g., the case of a dose–response relation: a stable link between a covariate and a response, the same whenever and wherever it is measured, which a large enough sample would pin down exactly); there the estimator treats as random something that is fixed, so that the smoothing constant it selects measures how much data are needed to resolve a curve that is genuinely there;
- For part of the signal’s variance is periodic and recurring and part is a trend that never repeats (e.g., series with a stable seasonal or diurnal shape riding on a slow-moving level);
- At the signal is entirely a draw from the stochastic process: in continuous time an integrated Wiener process, in discrete time an integrated random walk (i.e., the local linear trend of unobserved-components models and the model implicit in the Hodrick–Prescott filter Maranzano and Pelagatti, 2025, , so that every series that has ever been HP-filtered is a series someone chose to describe as ). It is not stationary and there is no fixed function that it follows (i.e., a second realization of the same experiment would produce a different curve). When the signal is a draw from the process the spline assumes, so the estimator’s view of it is correct: this is the well-specified case rather than a misspecified one (i.e., whatever goes wrong there cannot be blamed on the model being wrong about the signal); the only things left to estimate being the scale , that is, how much of the observed variation is signal, and the location of the jumps.
Two cautions on . First, it is not a roughness axis: an integrated Wiener path is continuously differentiable and, standardized, carries no more curvature than — the mean absolute second difference runs , , at . Second, it induces no dependence: the residual autocorrelation at the calibrated value stays negative and moves toward zero as rises, from to on average over the seven arms of Table 15, so Scenario 2 is not reachable from Scenario 3.
Why a stochastic trend is the right alternative.
The roughness penalty is not a neutral measure of wiggliness: by the equivalence of Wahba (1978), the cubic smoothing spline is the posterior mean of a signal-extraction problem in which is an integrated Wiener stochastic process (i.e., a process whose second derivative is white noise) observed with independent Gaussian error. Penalizing squared second derivatives and placing that prior on are the same act seen from two sides; the smoothing constant is the ratio of the variance of the observation error to the variance of the innovations driving the process, and the fitted curve is the conditional expectation of the signal given the data. Section of the paper uses this equivalence to obtain the estimator from the Kalman filter. Here it is used to ask whether the estimator believes a signal looks like before it has seen any data, and then to generate signals from exactly that belief. Any other rough alternative (e.g., an arbitrary jagged function, a rougher deterministic curve) would confound two things: whether the calibration survives a moving signal and whether it survives a signal the estimator was never designed for. Drawing from the prior separates them, because on that class the estimator is right. Noticeable, a draw from an integrated Wiener process is continuously differentiable (i.e., its slope is a Brownian motion, so the path has no kinks) but it is nowhere twice differentiable, and the roughness penalty evaluated at such a draw is infinite. This is the ordinary situation in nonparametric smoothing: the penalty is a shrinkage device, not a constraint, and the posterior mean is far smoother than the prior draws from which it is computed. What moves is the class the signal belongs to, from a function with a bounded second derivative to one with none.
The transition equation.
The third line of Equation (7) is the exact transition of the state-space model of Section of the paper at unit process scale, carrying level and slope; using the exact transition, rather than shocking the slope at unit spacing, is what makes a legitimate path of the process on an irregular design rather than only on a grid. Indexing the departure by directly would seem more natural, since a small value indicates a flexible fit in the estimator and would indicate a wandering signal here. However, it does not work: the process has no stationary distribution and its variance grows with the range of , so there is no fixed relationship between and the amplitude of , and amplitude and persistence would move together along the grid. The mixture of Equation (3) separates them, and a consistent with a given draw can be read off afterward from a fit rather than imposed as an input.
Figure 3 shows selected examples of Scenario 3.
Figure 3: Scenario 3, Equation (7) with . Rows: the share of the signal’s variance carried by the integrated Wiener path; columns: the number of true discontinuities. Within a column the seed is fixed, so the errors and the jump configuration are identical going down and only the signal changes.
3.4 A joint representation of the three DGPs
Figure 4 depicts the three scenarios side by side. First column: at and the data are byte-identical (i.e., the first column repeats unchanged), so the top row is one experiment drawn three times, and then move apart in different directions. In the second column the signal never changes and the observations stop scattering symmetrically about it, so that by they lie in runs on one side of the curve and then the other. In the third column the errors never change and the signal itself loses its shape, so that by what is left is a wandering level on which the three discontinuities are the only sharp features.
Figure 4: The three scenarios in one frame, at simulated discontinuities, and , the largest noise level of the factorial, so that the change in the texture of the errors down the second column is visible at all. Columns are the scenario, rows the departure, matched by the fraction of each swept range, since stops at and at ; each panel is labeled with the value it uses. Points are the observations, the blue line is the signal, and the dashed rules are the true jump locations. The seed is the same in every panel, so the abscissas, the standardized shocks and the jump configuration are common to all fifteen; the vertical scale is common as well, since the signal is standardized to unit variance in every scenario.
4 Design of the experiment
The factorial is , and , for cells, crossed with ten levels of or five of . Each cell is replicated times. The allocation is flat across rather than tapered, and flatly for a reason specific to the choice rule: minimax regret takes the maximum of the regret over cells, so the noisiest cell is the one most likely to decide the answer, and tapering the allocation with would hand that decision to the large- cells.
Here is the length of the series: is short enough that a single discontinuity is a substantial fraction of the information in the sample, long enough that the asymptotic arguments begin to hold. is the standard deviation of the errors, and since the signal is standardized to unit variance it is also the reciprocal of the signal-to-noise ratio: at the discontinuities, whose sizes lie between and , stand six to fourteen error standard deviations clear of the noise, and at only two to five, so the three levels run from an easy detection problem to a hard one. Finally, is the number of true discontinuities in the series. is used to measure false discoveries where there is nothing to find, while range from a single break to a number large enough that the estimator must spread a fixed budget over several of them.
enters only the selection among grid points and never a fit, so the regularization path over a -point grid of running to twice the range of is computed once per replication and every re-selects from it. All values of are therefore compared on identical fits, and the standard error of a difference between two of them is an order of magnitude smaller than that of either level.
SSJ–KFS and SSJ–ATW take as given, supplied in several ways:
- from an SSJ–MLE fit taken at a fixed reference , held constant while is calibrated so that the exercise is not circular,
- by cross-validation under two fold layouts (Section 1), that is, folds are drawn at random and contiguous blocks at each. Random folds leave a held-out point surrounded by its own neighbors, which once the errors are persistent nearly determine it, so the criterion is minimized by a fit that all but interpolates and the selected collapses. Contiguous blocks remove that adjacency.
5 Criteria
Two rules are used to identify calibration values, both of the minimax-regret form. Within a cell, the regret of a value of is the loss it attains there minus the smallest loss attainable in that cell by any ; the rule selects the whose largest regret over the cells is smallest, so that no cell of the design is served badly, which is the guarantee a single constant meant for data of unknown difficulty needs. The two rules differ in the loss: the first is built on the reconstruction of the signal, the second on the number of discontinuities declared. Both are reported because they answer different questions, and because under the departures of Scenarios 2 and 3 they part company; a third criterion, the zero of the signed count error, is used as a check on the second and is defined at the end of this section.
Minimax regret in RMSE.
Writing for the RMSE of in cell , measured against the true signal on a common -point grid, the regret is and the reported value is .
The cell is summarized by the mean over replications. Reporting the per-cell minimizer would overstate what the design resolves and averaging across cells would let the easiest dominate. The replication distribution within a cell is mildly right skewed, so the median was computed as well: at the baseline it moves the calibrated value by at most one grid step on fourteen of the fifteen arms and by three on the fifteenth (SSJ–ATW with contiguous blocks at ), never downward, which is why it is recorded here and not tabulated.
Minimax regret in the count error.
The rule above is built on reconstruction error and does not validate whether adding or removing one discontinuity in a long series moves the error very little, so the regret valley is shallow and becomes shallower as the departure grows, until the minimizer is a point drawn out of a plateau. We therefore also apply the minimax regret rule to a loss built on the count. Writing for the mean absolute error in the number declared in cell , over the cells with (the cells with are excluded because there the count error is simply the false-discovery count, which is reported on its own), the calibrated value is .
We stress that averaging a signed count error over would let over-declaration at cancel under-declaration at , and under strong dependence the average can then be brought to zero by cancellation, or never reach it at all. The obvious alternative, used below as a check, is the zero of the signed count error: writing for the mean, over the cells with , of the number declared minus , it is the value of at which crosses zero from above, interpolated linearly between grid points, that is, the at which the estimator declares on average the right number; it is undefined when at every , which happens when the estimator cannot reach the true number at any penalty. The absolute error is defined in every case, and where the signed error does have a zero the two agree to within a step of the grid (over the combinations of arm and departure level in which the zero exists, out of , the correlation between the two is , the median difference , and agree to within one step of the grid).
Why not locations.
Neither rule asks whether the declared discontinuities are in the right places. While a reader may expect the calibration to rest on that criterion, it cannot: any summary of the confusion matrix between declared and true locations has a denominator that involves the number of true positives, and with that number takes so few values that the summary’s optimum wanders over the whole grid from one arm to the next. A location score also tolerates a single discontinuity being declared twice at adjacent intervals, which might occur at these values of ; the count criteria charge for it. Location accuracy is therefore reported in Section of the paper as a consequence of the calibration, not used as an input to it.
6 Results
6.1 Scenario 1: the baseline
Table 1: Scenario 1. The calibrated for each of the fifteen arms under the minimax regret in RMSE and minimax regret in the count error rules, each with the worst-case regret it attains (i.e., on the RMSE scale for the first, in discontinuities for the second). Beneath each calibrated value, in small type, the central half of the same criterion computed cell by cell: it is the spread of the best over the design cells that one pooled number has to cover, not a confidence interval.
| Estimator | from | minimax regret in RMSE | minimax regret in the count error | ||
|---|---|---|---|---|---|
| worst regret | worst regret | ||||
| SSJ–MLE | MLE | 0.30 [.25,.35] | 0.0014 | 0.20 [.00,.42] | 1.85 |
| SSJ–KFS | MLE | 0.15 [.10,.20] | 0.0018 | 0.15 [.00,.50] | 1.82 |
| random | 0.20 [.15,.25] | 0.0028 | 0.20 [.00,.60] | 1.73 | |
| random | 0.20 [.14,.25] | 0.0024 | 0.20 [.00,.60] | 1.68 | |
| random | 0.20 [.15,.25] | 0.0025 | 0.20 [.00,.60] | 1.64 | |
| blocks | 0.10 [.10,.20] | 0.0012 | 0.15 [.00,.76] | 1.90 | |
| blocks | 0.15 [.10,.21] | 0.0022 | 0.15 [.00,.68] | 1.84 | |
| blocks | 0.15 [.10,.25] | 0.0025 | 0.15 [.00,.51] | 1.63 | |
| SSJ–ATW | MLE | 0.30 [.15,.31] | 0.0064 | 0.25 [.00,.56] | 2.01 |
| random | 0.30 [.15,.30] | 0.0069 | 0.25 [.00,.44] | 1.79 | |
| random | 0.30 [.15,.30] | 0.0065 | 0.30 [.00,.42] | 1.82 | |
| random | 0.30 [.15,.30] | 0.0072 | 0.30 [.00,.41] | 1.82 | |
| blocks | 0.25 [.14,.35] | 0.0051 | 0.25 [.00,.78] | 1.96 | |
| blocks | 0.25 [.15,.30] | 0.0087 | 0.25 [.00,.60] | 1.82 | |
| blocks | 0.30 [.15,.31] | 0.0071 | 0.25 [.00,.46] | 1.99 |
The two rules agree to within one grid step on every arm but SSJ–MLE, for which the count rule sits two steps below the reconstruction rule, at against , and the alternative ways of supplying are nearly indistinguishable. For reconstruction the cells put the best inside a band of median width , three steps of the grid, so the pooled value is close to what a typical cell would have chosen on its own.
The count loss is a different matter: its band has median width , more than half the grid, because the cells with one discontinuity want a large penalty and those with five a small one, and the pooled value is the compromise between them; under the departures the bands widen further.
Notice that SSJ–KFS settles below SSJ–MLE, at against and , for a reason that is general rather than procedural. At a given and budget the two fit the same model, but SSJ–KFS takes as given, from a preliminary SSJE–MLE fit, while SSJ–MLE re-estimates it at every point of the budget grid. Supplying fixes one parameter before the budget is chosen: the fit is stiffer, part of its degrees of freedom have already been given up, and the search over the budget can buy less, so the additional penalty that governs has to be milder. The same ordering holds between the sources of within an estimator: under the count rule, with from SSJ–MLE the calibrated value is never above the one obtained with a cross-validated , against – for SSJ–KFS and against – for SSJ–ATW, since a cross-validated constant is chosen on the data at hand and leaves the budget more to buy.
Every value lies between and , so , the top of the admissible range, is rejected throughout, and so is the nominal floor of derived from Chen and Chen (2008) and discussed in Section 6.5.
6.2 Scenario 2: serially dependent errors
Table 2: Scenario 2. The calibrated against the persistence of the errors under the two rules, minimax regret in RMSE and minimax regret in the count error, both pooled over sample size. Beneath each, in small type, the central half of the same criterion computed cell by cell.
| Estimator | from | minimax regret in RMSE | minimax regret in the count error | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.00 | 0.20 | 0.40 | 0.60 | 0.80 | 0.90 | 0.00 | 0.20 | 0.40 | 0.60 | 0.80 | 0.90 | ||
| SSJ–MLE | MLE | 0.30 [.25,.35] | 0.35 [.30,.40] | 0.30 [.30,.40] | 0.25 [.30,.45] | 0.30 [.20,.35] | 0.25 [.14,.35] | 0.20 [.00,.42] | 0.25 [.00,.44] | 0.25 [.00,.51] | 0.15 [.00,.22] | 0.15 [.00,.02] | 0.20 [.00,.02] |
| SSJ–KFS | MLE | 0.15 [.10,.20] | 0.30 [.24,.31] | 0.35 [.25,.35] | 0.30 [.25,.40] | 0.25 [.25,.35] | 0.30 [.25,.40] | 0.15 [.00,.50] | 0.25 [.00,.66] | 0.20 [.00,.70] | 0.15 [.00,.48] | 0.15 [.00,.55] | 0.20 [.00,.26] |
| random | 0.20 [.15,.25] | 0.30 [.20,.35] | 0.30 [.25,.40] | 0.30 [.25,.40] | 0.30 [.25,.35] | 0.30 [.29,.35] | 0.20 [.00,.60] | 0.20 [.00,.70] | 0.20 [.00,.65] | 0.20 [.00,.44] | 0.20 [.04,.45] | 0.25 [.05,.35] | |
| random | 0.20 [.14,.25] | 0.25 [.20,.35] | 0.25 [.24,.35] | 0.25 [.25,.36] | 0.30 [.25,.36] | 0.35 [.30,.40] | 0.20 [.00,.60] | 0.20 [.00,.75] | 0.15 [.00,.52] | 0.20 [.00,.39] | 0.20 [.05,.38] | 0.25 [.05,.35] | |
| random | 0.20 [.15,.25] | 0.25 [.20,.35] | 0.25 [.20,.35] | 0.25 [.25,.35] | 0.35 [.25,.36] | 0.35 [.29,.40] | 0.20 [.00,.60] | 0.20 [.00,.75] | 0.15 [.00,.41] | 0.15 [.00,.41] | 0.20 [.00,.40] | 0.25 [.05,.35] | |
| blocks | 0.10 [.10,.20] | 0.15 [.20,.30] | 0.20 [.20,.30] | 0.30 [.25,.35] | 0.35 [.25,.40] | 0.35 [.25,.40] | 0.15 [.00,.76] | 0.25 [.00,.76] | 0.25 [.00,.85] | 0.30 [.00,.39] | 0.40 [.04,.36] | 0.25 [.04,.35] | |
| blocks | 0.15 [.10,.21] | 0.25 [.20,.31] | 0.30 [.25,.35] | 0.30 [.29,.40] | 0.40 [.30,.45] | 0.45 [.25,.40] | 0.15 [.00,.68] | 0.25 [.00,.76] | 0.30 [.00,.78] | 0.30 [.00,.50] | 0.25 [.00,.36] | 0.30 [.05,.31] | |
| blocks | 0.15 [.10,.25] | 0.25 [.20,.31] | 0.30 [.25,.36] | 0.35 [.25,.40] | 0.40 [.30,.45] | 0.45 [.30,.41] | 0.15 [.00,.51] | 0.25 [.00,.68] | 0.30 [.00,.63] | 0.30 [.00,.45] | 0.25 [.00,.31] | 0.25 [.05,.35] | |
| SSJ–ATW | MLE | 0.30 [.15,.31] | 0.40 [.25,.45] | 0.45 [.30,.50] | 0.45 [.34,.50] | 0.40 [.15,.45] | 0.35 [.05,.41] | 0.25 [.00,.56] | 0.40 [.00,.21] | 0.40 [.00,.25] | 0.40 [.05,.30] | 0.40 [.04,.31] | 0.45 [.10,.36] |
| random | 0.30 [.15,.30] | 0.40 [.25,.36] | 0.45 [.30,.45] | 0.40 [.30,.45] | 0.35 [.29,.45] | 0.30 [.05,.40] | 0.25 [.00,.44] | 0.35 [.00,.30] | 0.35 [.04,.35] | 0.35 [.05,.30] | 0.20 [.09,.35] | 0.40 [.05,.36] | |
| random | 0.30 [.15,.30] | 0.40 [.25,.40] | 0.40 [.30,.45] | 0.35 [.30,.45] | 0.35 [.29,.45] | 0.35 [.05,.45] | 0.30 [.00,.42] | 0.35 [.00,.28] | 0.35 [.00,.30] | 0.35 [.05,.28] | 0.35 [.05,.35] | 0.40 [.10,.40] | |
| random | 0.30 [.15,.30] | 0.40 [.25,.41] | 0.40 [.35,.45] | 0.35 [.30,.45] | 0.35 [.30,.45] | 0.35 [.09,.40] | 0.30 [.00,.41] | 0.35 [.04,.35] | 0.35 [.00,.30] | 0.30 [.00,.35] | 0.30 [.10,.36] | 0.40 [.10,.40] | |
| blocks | 0.25 [.14,.35] | 0.35 [.20,.40] | 0.30 [.25,.40] | 0.30 [.12,.40] | 0.35 [.04,.40] | 0.40 [.05,.40] | 0.25 [.00,.78] | 0.35 [.04,.26] | 0.40 [.05,.28] | 0.45 [.05,.30] | 0.50 [.09,.35] | 0.55 [.15,.40] | |
| blocks | 0.25 [.15,.30] | 0.35 [.24,.40] | 0.35 [.30,.45] | 0.40 [.30,.45] | 0.45 [.28,.45] | 0.45 [.05,.45] | 0.25 [.00,.60] | 0.35 [.00,.22] | 0.40 [.00,.31] | 0.50 [.00,.33] | 0.55 [.05,.35] | 0.60 [.14,.40] | |
| blocks | 0.30 [.15,.31] | 0.40 [.25,.40] | 0.40 [.30,.45] | 0.35 [.35,.45] | 0.40 [.29,.45] | 0.45 [.09,.46] | 0.25 [.00,.46] | 0.35 [.00,.22] | 0.40 [.04,.31] | 0.45 [.05,.36] | 0.50 [.09,.35] | 0.55 [.10,.41] |
Persistence substantially raises the value that the count rule asks for: SSJ–ATW with contiguous blocks at moves from at to at and SSJ–KFS from to by , where it settles ( at ), and the direction is the same for every arm. The reconstruction rule moves in the same direction, from to for SSJ–ATW and from to for SSJ–KFS.
Only contiguous blocks preserve that response. With random folds the movement of the count rule is smaller (SSJ–ATW goes from to and SSJ–KFS from to ), and it is with random folds that SSJ–ATW stops reaching the true number of discontinuities at all over the middle of the range, whatever the penalty. The mechanism is visible in the selected smoothing constant, which collapses under random folds as grows while the blocked layouts hold it: a held-out point is then nearly predicted by its neighbors in the training set, the criterion rewards a curve that follows the errors, and once has collapsed the fitted curve absorbs the discontinuities itself, so that no penalty on the count can recover what the smoothing constant has given away. The same collapse is visible in the reconstruction: from moderate persistence onwards the blocked layouts attain the lowest error of any way of choosing , for both estimators and at every , after costing a little under independence.
Regardless of the fold layout, SSJ–KFS suppresses false discoveries at a markedly lower than SSJ–ATW, whose cross-validated arms do not bring the false-discovery rate down anywhere on the grid. The two estimators solve the same problem but their warping sequences are not equally sparse, and this is the simulated counterpart of what Section of the paper finds on the industrial prices, where SSJ–MLE never raises the false alarm at the 2022 policy date and some SSJ–ATW variants do.
The numbers behind these readings are the following:
- Only contiguous blocks respond to the dependence. With random folds the movement of the count rule is smaller (i.e., SSJ–ATW goes from to and SSJ–KFS from to , against to and to for the corresponding block layouts) and it is with random folds that SSJ–ATW stops reaching the true number of discontinuities at all between and , whatever the penalty (Section 5). The mechanism is visible in the selected smoothing constant, whose median falls from at to by under random folds while the blocked layouts at and hold at up to and reach only from . Once has collapsed the fitted curve absorbs the discontinuities itself, nothing is left for the budget to buy, and no penalty on the count can recover what the smoothing constant has given away.
- The same collapse is visible in the reconstruction. From onwards the blocked layouts at and attain a lower RMSE than any other way of choosing , for both estimators and at every : at , against with random folds, a gap of more than 10%. The ordering reverses at , where blocks cost about 2%, so contiguous folds are best understood as insurance. Blocks at are the exception at both ends: a fifth of the sample is too long a stretch to hold out, and the criterion is then minimized by a smoothing constant that over-smooths (Figure 8).
- SSJ–MLE loses the ability to detect rather than needing a different penalty. Its calibrated value in the count error stays between and at every , and its minimax-regret value in RMSE between and , but its signed count error stops reaching zero from onwards. At high persistence the estimator cannot reach the true number at any , so there is no trade for to make and the count target becomes unattainable. Its row is a diagnosis, not a recommendation.
- SSJ–KFS suppresses false discoveries at a markedly lower than SSJ–ATW, whatever the fold layout. Taking one spurious discontinuity per twenty replications as the threshold, SSJ–KFS reaches it between and at with from maximum likelihood, from random folds and from blocks at (at with blocks at , and not before with blocks at , whose constant over-smooths), and between and at ; SSJ–MLE needs ; and SSJ–ATW reaches it only at , at with from maximum likelihood and at and with random folds at and , while none of its arms reaches it anywhere on once (Figure 10). The two estimators solve the same problem but their warping sequences are not equally sparse, and no admissible penalty makes SSJ–ATW as conservative as SSJ–KFS. Section 6.7 shows that at the highest levels of persistence it declares fewer discontinuities than there are at every .
- The zero of the signed count error moves below the cell-wise zeros as the persistence grows, which identifies cancellation. At the zero of the signed count error defined in Section 5 lies within one grid step of the count rule on every one of the fifteen arms, with a median gap of . As grows the pooled zero falls below the zeros computed within the individual cells: for SSJ–MLE it is at and at , whereas the central half of the cells in which a zero exists lies at – and –. A pooled zero below the cell-wise zeros cannot be a low optimum; it is produced by cancellation, the mean count error being brought to zero by over-declaration in the cells with offsetting under-declaration in the cells with . The same mechanism removes the zero altogether two levels later, at , and it is the reason the rule is built on the absolute count error, which cannot cancel (Figure 11).
- The dependence reverses the sample-size pattern. Under independence the calibrated value falls with ; under strong persistence it rises with , because a longer series supplies more observations but not proportionally more independent information, so the penalty required to hold the false-discovery rate rises with the length of the series instead of falling. Section 6.4 reports the values at each sample size.
Figure 5: Scenario 2: the calibrated against under five criteria. Rows one and two apply minimax regret to the mean and to the median cell summary; row three takes the maximum of exact recovery; row four the zero of the signed count error, kept as the check of Section 5; row five the minimax regret in the count error, which is the second rule of the tables. Rows four and five move together and are visibly smoother than the first two: a criterion built on the count is better conditioned than one that locates the minimum of a flat valley. A gap in row four means the signed error has no zero — the arm under-declares at every — where row five is still defined.
Figure 6: Scenario 2, worst-case regret, one level of per row. The valley flattens as grows, which is why the minimax rule becomes weakly determined there and why the count criterion was introduced.
Figure 7: Scenario 2, worst-case regret; color is .
Figure 8: Scenario 2, RMSE against the true signal, one level of per row, on a common vertical scale. From onwards the two block-fold curves at and lie below every other layout, for both estimators and at every . This is the clearest single statement of what the fold layout is worth once the errors are dependent.
Figure 9: Scenario 2, RMSE; color is .
Figure 10: Scenario 2, discontinuities declared where there are none; color is . Circles mark where a curve falls below declarations per replication. SSJ–KFS reaches that level between and at (later with contiguous blocks at and , whose constant over-smooths) and between and at ; SSJ–MLE needs ; and SSJ–ATW reaches it only at , at with from maximum likelihood and at and with random folds at and , while none of its arms reaches it anywhere on once . Regardless of the fold layout, SSJ–KFS therefore needs a markedly lower than SSJ–ATW to drive the false-discovery rate to zero, and no admissible penalty makes SSJ–ATW as conservative as SSJ–KFS.
Figure 11: Scenario 2, declared minus true over the cells with ; color is , and the circles are the zeros of the curves, not the count rule of Table 2, which sits within a grid step of them where both exist. At the zero sits almost exactly at for SSJ–ATW and rises monotonically toward as grows. The SSJ–MLE panel shows the power collapse directly: at the curve starts below zero at , so the estimator cannot reach the true number at any penalty.
Figure 12: Scenario 2, the same, one level of per row. At the seven curves lie on top of one another — every fold layout behaves identically under independence — and from onwards the block curves lie above the random ones throughout, for both SSJ–KFS and SSJ–ATW. The reading is that with random folds the fitted curve has already absorbed the discontinuities, so fewer are left to declare at any ; the block curves stay higher because the smoothing constant they select leaves the discontinuities in the residual, where the budget can still buy them.
Figure 13: Scenario 2, exact recovery over the whole design, one level of per row. The apparent improvement at large is largely the composition effect described above: the estimator declares almost nothing and so is right in the cells.
6.3 Scenario 3: a stochastic-trend signal
Table 3: Scenario 3. The calibrated against the weight of the stochastic-trend component under the two rules, minimax regret in RMSE and minimax regret in the count error, both pooled over sample size. Beneath each, in small type, the central half of the same criterion computed cell by cell.
| Estimator | from | minimax regret in RMSE | minimax regret in the count error | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.00 | 0.25 | 0.50 | 0.75 | 1.00 | 0.00 | 0.25 | 0.50 | 0.75 | 1.00 | ||
| SSJ–MLE | MLE | 0.30 [.25,.35] | 0.30 [.25,.31] | 0.30 [.25,.35] | 0.35 [.25,.36] | 0.45 [.30,.45] | 0.20 [.00,.42] | 0.20 [.00,.41] | 0.25 [.00,.46] | 0.30 [.04,.84] | 0.40 [.00,.95] |
| SSJ–KFS | MLE | 0.15 [.10,.20] | 0.15 [.10,.20] | 0.15 [.14,.20] | 0.15 [.10,.20] | 0.15 [.10,.20] | 0.15 [.00,.50] | 0.15 [.00,.61] | 0.20 [.00,.81] | 0.25 [.09,.91] | 0.45 [.05,1.00] |
| random | 0.20 [.15,.25] | 0.20 [.15,.25] | 0.20 [.14,.21] | 0.15 [.10,.25] | 0.20 [.10,.20] | 0.20 [.00,.60] | 0.15 [.00,.63] | 0.20 [.00,.70] | 0.20 [.05,.85] | 0.25 [.05,.95] | |
| random | 0.20 [.14,.25] | 0.20 [.14,.21] | 0.20 [.14,.25] | 0.20 [.10,.25] | 0.15 [.10,.25] | 0.20 [.00,.60] | 0.20 [.00,.56] | 0.20 [.00,.71] | 0.20 [.05,.81] | 0.25 [.10,.95] | |
| random | 0.20 [.15,.25] | 0.20 [.15,.25] | 0.20 [.14,.26] | 0.20 [.10,.25] | 0.20 [.10,.25] | 0.20 [.00,.60] | 0.20 [.00,.58] | 0.20 [.00,.65] | 0.20 [.05,.85] | 0.20 [.12,.95] | |
| blocks | 0.10 [.10,.20] | 0.10 [.10,.16] | 0.10 [.10,.20] | 0.10 [.10,.15] | 0.15 [.10,.20] | 0.15 [.00,.76] | 0.15 [.00,.70] | 0.20 [.00,.86] | 0.25 [.00,.95] | 0.30 [.04,1.00] | |
| blocks | 0.15 [.10,.21] | 0.15 [.10,.20] | 0.15 [.10,.20] | 0.15 [.10,.20] | 0.15 [.10,.20] | 0.15 [.00,.68] | 0.15 [.00,.81] | 0.15 [.00,.80] | 0.20 [.00,.95] | 0.25 [.10,.96] | |
| blocks | 0.15 [.10,.25] | 0.15 [.10,.25] | 0.15 [.10,.25] | 0.15 [.10,.25] | 0.20 [.10,.21] | 0.15 [.00,.51] | 0.15 [.00,.63] | 0.15 [.00,.80] | 0.20 [.05,.81] | 0.25 [.19,.96] | |
| SSJ–ATW | MLE | 0.30 [.15,.31] | 0.25 [.15,.30] | 0.25 [.15,.30] | 0.20 [.15,.26] | 0.15 [.10,.20] | 0.25 [.00,.56] | 0.30 [.00,.58] | 0.30 [.00,.85] | 0.35 [.00,1.00] | 0.50 [.04,.95] |
| random | 0.30 [.15,.30] | 0.25 [.15,.31] | 0.25 [.15,.30] | 0.25 [.15,.30] | 0.25 [.15,.26] | 0.25 [.00,.44] | 0.30 [.00,.69] | 0.25 [.00,.70] | 0.35 [.00,.86] | 0.35 [.14,.91] | |
| random | 0.30 [.15,.30] | 0.25 [.15,.30] | 0.25 [.15,.30] | 0.25 [.15,.30] | 0.25 [.15,.25] | 0.30 [.00,.42] | 0.30 [.00,.73] | 0.30 [.00,.81] | 0.35 [.00,.86] | 0.40 [.10,.90] | |
| random | 0.30 [.15,.30] | 0.25 [.15,.30] | 0.25 [.15,.25] | 0.25 [.15,.30] | 0.25 [.15,.25] | 0.30 [.00,.41] | 0.30 [.00,.63] | 0.30 [.00,.73] | 0.35 [.00,.86] | 0.40 [.14,.90] | |
| blocks | 0.25 [.14,.35] | 0.25 [.14,.30] | 0.25 [.10,.25] | 0.20 [.15,.25] | 0.20 [.10,.20] | 0.25 [.00,.78] | 0.25 [.00,.66] | 0.25 [.00,.90] | 0.30 [.00,.90] | 0.45 [.05,.96] | |
| blocks | 0.25 [.15,.30] | 0.25 [.15,.35] | 0.25 [.15,.25] | 0.20 [.15,.25] | 0.20 [.10,.20] | 0.25 [.00,.60] | 0.25 [.00,.65] | 0.25 [.00,.86] | 0.35 [.00,.83] | 0.40 [.05,.95] | |
| blocks | 0.30 [.15,.31] | 0.25 [.15,.26] | 0.25 [.15,.26] | 0.25 [.15,.25] | 0.20 [.15,.25] | 0.25 [.00,.46] | 0.30 [.00,.70] | 0.30 [.00,.78] | 0.30 [.00,.81] | 0.35 [.10,.95] |
Here the two criteria disagree. On reconstruction the baseline calibration transfers unchanged: across all fifteen arms and all five levels of the minimax value stays between and for SSJ–ATW, and for SSJ–KFS and and for SSJ–MLE, so the calibration is not an artifact of the particular curve used, and only SSJ–MLE (upward) drifts. The reconstruction even improves at each arm’s calibrated value: a signal drawn from the estimator’s own prior is one it reconstructs well.
The declared count meanwhile deteriorates markedly. At , with nothing to find, the estimators with from SSJ–MLE declare several discontinuities per replication where at they declared almost none, and the same happens where there is something to find, so this is inflation of the count and not a failure confined to the null cells. The count rule therefore moves a long way: from to for SSJ–ATW at the maximum likelihood , from to for SSJ–KFS and from to for SSJ–MLE; with a cross-validated the movement is smaller, to – and to –, but in the same direction for fourteen of the fifteen arms (SSJ–KFS with random folds at does not move). The rise is not gradual: flat to and steep thereafter, so a series only partly trend-like needs little correction.
Exact recovery improves, but only at a higher . Its maximum over rises for nearly every arm, and the value at which it is attained roughly doubles, to about . This is not a composition effect of the cells becoming easier: restricted to the cells where there is something to find, the probability of recovering the count exactly at the calibrated value is substantially higher at than at , in every arm.
The general reading is that in the presence of stochastic trends a single fixed constant might be wrong. A criterion built on reconstruction error is nearly blind to a change that only affects how a fitted warping sequence is turned into a list of discontinuities, and at the estimator’s view of the signal is exactly right, so nothing can be blamed on misspecification. What is left is the warping budget and the rule that reads it. At the criterion buys more warping than at : in the cells with , at each arm’s calibrated value, the selected budget rises from to for SSJ–MLE and from to for SSJ–ATW at from SSJ–MLE, the number of active warps from about one and a half to two and from three and a half to six, and for SSJ–KFS at that from under one to more than six, because a wandering trend is cheaper to follow by deforming the domain at a few places than by paying curvature everywhere (i.e., the effective degrees of freedom actually fall, from to about ). The declaration rule then asks only whether a warp holds more than a fixed share of the total warping, and one or two of those warps do, so they are reported as discontinuities on a signal that has none. The rule cannot distinguish warping bought to track a wandering trend from warping bought to represent a jump, and that is the whole of the effect.
The numbers behind these readings are the following.
- The reconstruction improves. At each arm’s own calibrated value the RMSE falls: to for SSJ–MLE, to for SSJ–ATW with random folds at . A signal drawn from the estimator’s own prior is one it reconstructs well (Figure 16).
- The declared count deteriorates markedly with from SSJ–MLE. At , with nothing to find, SSJ–KFS at a smoothing constant from SSJ–MLE declares discontinuities per replication against at , SSJ–ATW at the same constant against , and SSJ–MLE against . The same happens where there is something to find, so this is inflation of the count and not a failure confined to the null cells (Figure 17).
- Exact recovery improves, but only at a higher . The maximum over of the probability of declaring exactly the right number rises from – at to – at for thirteen of the fifteen arms, and the value at which it is attained moves from – to – ( for SSJ–KFS at from SSJ–MLE). This is not a composition effect of the cells becoming easier: restricted to the cells where there is something to find, the probability at is between and times higher at than at , in all fifteen arms without exception. What changes is the shape rather than the height (at the curve falls steeply from a maximum near , at it is nearly flat) so the two are comparable at small and far apart at the values the count criterion recommends (Figures 20 to 22).
- The source of matters more than the fold layout. Cross-validating protects SSJ–ATW entirely: its count at is at both and with random folds at and falls from to with contiguous blocks, against to when the constant is inherited from SSJ–MLE. Between the two layouts there is little to choose, and in RMSE the ordering is the exact reverse of Scenario 2: here random folds lie below blocks at every , which is the premium referred to above.
Figure 14: Scenario 3: the same five criteria against . The first two rows are nearly flat and the last two are not, which is the central observation of Section 6.3: what costs is detection accuracy, not reconstruction, and a criterion built on RMSE cannot see it.
Figure 15: Scenario 3, worst-case regret, one level of per row. At the SSJ–MLE valley is essentially level between and : the argmin there is a point drawn out of a plateau.
Figure 16: Scenario 3, the same. The ordering of the fold layouts is the reverse of Figure 8: with independent errors the random-fold curves lie below the block ones at every , and blocks at are the worst of the seven — a fifth of the sample is too long a stretch to hold out, and the criterion is then minimized by a constant that over-smooths.
Figure 17: Scenario 3, the same against . The curve sits well above the rest and decays far more slowly: SSJ–KFS at from maximum likelihood still declares about one spurious discontinuity per replication at , where at it is below one in twenty by .
Figure 18: Scenario 3, one level of per row. The zero of the curve barely moves up to and then travels sharply to the right. At SSJ–ATW crosses zero at about with a cross-validated and at with from SSJ–MLE, SSJ–KFS at about and , and SSJ–MLE at . Notice that the count rule of Table 3 is not the same quantity, since it protects the worst cell rather than the average, and at it gives to for SSJ–ATW, for SSJ–MLE and to for SSJ–KFS depending on the source of . At , by contrast, a value of or a little below is still adequate for every arm.
Figure 19: Scenario 3, declared minus true; color is .
Figure 20: Scenario 3, the probability of declaring exactly the right number over the whole design, one level of per row. Read the position of the maximum rather than its height: a quarter of the cells have and become easier as the departure smooths the fit, so the level is not comparable across rows. The position moves steadily to the right as grows.
Figure 21: Scenario 3, exact recovery restricted to the cells with : the power half of the criterion. At it falls steeply from a maximum at and has no interior optimum; at it is nearly flat and develops a mild interior bump. This is the panel that shows the improvement at is real rather than a composition effect — at the curve is between and times higher at than at , in every arm.
Figure 22: Scenario 3, exact recovery restricted to the cells with : the specificity half, which rises monotonically in . The interior optimum of the combined criterion in Figure 20 exists only because this half and the previous one pull in opposite directions.
6.4 Dependence on the length of the series
The calibrated value is not the same at every sample size. Table 4 reports it at each for the baseline, for every arm and under both rules. Table 5 does the same for seven representative arms at every level of the two departures, under the reconstruction rule.
The count rule is not shown there because at a single sample size it is decided by one cell: with nine cells left instead of thirty-six, the maximum is attained by a cell in which the estimator under-declares at every , and the rule then returns the floor of the grid. Those entries at the floor are consistent with the rule of Section 6.5, of which they are the limit: none of them occurs at and of the occur at and , where the term already levies most of the charge per discontinuity and, on the nine cells of one sample size, nothing is left for the extended term to supply, so the most permissive penalty minimizes the worst-case count error.
Table 4: Scenario 1, by sample size, for every arm: minimax regret in RMSE on the left and in the count error on the right, each computed over the cells of one sample size. Beneath each value, in small type, the central half of the same criterion computed cell by cell. A under the count rule is the floor of the grid: at that the worst cell is one with five discontinuities in which the estimator under-declares at every .
| Estimator | from | minimax regret in RMSE | minimax regret in the count error | ||||||
|---|---|---|---|---|---|---|---|---|---|
| 50 | 100 | 200 | 400 | 50 | 100 | 200 | 400 | ||
| SSJ–MLE | MLE | 0.30 [.29,.38] | 0.30 [.25,.30] | 0.25 [.25,.30] | 0.25 [.20,.36] | 0.20 [.00,.70] | 0.20 [.00,.65] | 0.00 [.00,.25] | 0.00 [.00,.25] |
| SSJ–KFS | MLE | 0.20 [.19,.26] | 0.20 [.14,.21] | 0.15 [.10,.15] | 0.10 [.10,.15] | 0.15 [.05,.40] | 0.20 [.05,.50] | 0.20 [.00,.60] | 0.25 [.00,.05] |
| random | 0.20 [.15,.26] | 0.20 [.15,.25] | 0.20 [.14,.20] | 0.20 [.10,.21] | 0.20 [.05,.60] | 0.20 [.05,.60] | 0.20 [.00,.65] | 0.25 [.00,.15] | |
| random | 0.20 [.14,.30] | 0.25 [.15,.25] | 0.20 [.14,.22] | 0.20 [.10,.21] | 0.20 [.05,.45] | 0.20 [.00,.60] | 0.20 [.00,.75] | 0.25 [.00,.15] | |
| random | 0.20 [.15,.30] | 0.20 [.15,.26] | 0.20 [.14,.20] | 0.20 [.10,.21] | 0.15 [.00,.45] | 0.20 [.00,.60] | 0.20 [.00,.75] | 0.25 [.00,.15] | |
| blocks | 0.10 [.05,.15] | 0.20 [.15,.25] | 0.15 [.10,.16] | 0.10 [.09,.19] | 0.15 [.05,.80] | 0.15 [.00,.85] | 0.20 [.00,.80] | 0.15 [.00,.60] | |
| blocks | 0.15 [.10,.25] | 0.20 [.15,.21] | 0.15 [.10,.20] | 0.15 [.10,.18] | 0.15 [.05,.65] | 0.20 [.00,.75] | 0.20 [.00,.65] | 0.20 [.00,.60] | |
| blocks | 0.20 [.14,.31] | 0.20 [.15,.26] | 0.20 [.10,.21] | 0.15 [.10,.16] | 0.15 [.05,.45] | 0.20 [.00,.50] | 0.20 [.00,.55] | 0.20 [.00,.15] | |
| SSJ–ATW | MLE | 0.40 [.34,.51] | 0.25 [.20,.30] | 0.15 [.15,.20] | 0.10 [.10,.16] | 0.30 [.00,.60] | 0.25 [.00,.60] | 0.20 [.00,.15] | 0.00 [.00,.10] |
| random | 0.35 [.34,.52] | 0.25 [.20,.30] | 0.15 [.15,.16] | 0.15 [.10,.16] | 0.30 [.00,.90] | 0.25 [.00,.65] | 0.20 [.00,.15] | 0.00 [.00,.10] | |
| random | 0.35 [.34,.52] | 0.25 [.24,.30] | 0.15 [.15,.16] | 0.15 [.10,.16] | 0.30 [.00,.80] | 0.25 [.00,.65] | 0.25 [.00,.15] | 0.00 [.00,.10] | |
| random | 0.35 [.34,.58] | 0.25 [.20,.30] | 0.15 [.15,.16] | 0.15 [.10,.16] | 0.30 [.00,.75] | 0.25 [.00,.65] | 0.25 [.00,.20] | 0.00 [.00,.10] | |
| blocks | 0.30 [.04,.35] | 0.35 [.30,.41] | 0.15 [.15,.31] | 0.10 [.10,.15] | 0.35 [.00,.95] | 0.30 [.00,.85] | 0.20 [.05,.75] | 0.20 [.00,.10] | |
| blocks | 0.35 [.30,.61] | 0.25 [.20,.26] | 0.15 [.15,.20] | 0.10 [.10,.15] | 0.30 [.00,.95] | 0.25 [.00,.90] | 0.20 [.00,.20] | 0.25 [.00,.15] | |
| blocks | 0.35 [.34,.70] | 0.25 [.24,.30] | 0.15 [.15,.20] | 0.10 [.10,.16] | 0.30 [.00,.60] | 0.25 [.00,.60] | 0.20 [.00,.20] | 0.25 [.00,.10] |
At the baseline the two rules disagree about the direction. The reconstruction rule falls with : for SSJ–ATW from at to at , for SSJ–KFS from to , for SSJ–MLE from to . The count rule rises with for SSJ–KFS, from to , and drifts down for SSJ–ATW, from to , until at its worst cell becomes one that under-declares and the rule drops to the floor.
A single constant is therefore a compromise in under either rule, and in opposite directions for the two.
Table 5: The calibration by sample size, in both scenarios: minimax regret in RMSE, for seven representative arms. The first column is the reference case; then the persistence of the errors and the weight of the stochastic-trend component. Beneath each value, in small type, the central half of the same criterion over the twelve cells of that sample size.
| Estimator | Scenario 1 | Scenario 2: dependent errors | Scenario 3: stochastic trend | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.20 | 0.40 | 0.60 | 0.80 | 0.90 | 0.25 | 0.50 | 0.75 | 1.00 | |||
| SSJ–MLE, MLE | 0.30 [.29,.38] | 0.25 [.25,.35] | 0.25 [.25,.35] | 0.25 [.24,.31] | 0.30 [.20,.35] | 0.40 [.24,.35] | 0.30 [.29,.33] | 0.35 [.29,.36] | 0.35 [.29,.40] | 0.45 [.18,.49] | |
| 0.30 [.25,.30] | 0.35 [.30,.45] | 0.30 [.30,.41] | 0.25 [.30,.40] | 0.20 [.19,.30] | 0.15 [.09,.35] | 0.30 [.29,.35] | 0.30 [.29,.35] | 0.35 [.30,.35] | 0.45 [.30,.52] | ||
| 0.25 [.25,.30] | 0.35 [.34,.41] | 0.35 [.35,.45] | 0.30 [.30,.52] | 0.30 [.25,.40] | 0.20 [.08,.35] | 0.25 [.25,.30] | 0.25 [.25,.38] | 0.30 [.25,.36] | 0.40 [.30,.45] | ||
| 0.25 [.20,.36] | 0.30 [.34,.45] | 0.40 [.34,.42] | 0.30 [.24,.46] | 0.25 [.25,.58] | 0.20 [.19,.50] | 0.25 [.25,.33] | 0.25 [.24,.36] | 0.25 [.25,.36] | 0.35 [.34,.36] | ||
| SSJ–KFS, MLE | 0.20 [.19,.26] | 0.25 [.20,.31] | 0.30 [.24,.30] | 0.25 [.20,.30] | 0.25 [.20,.35] | 0.30 [.25,.35] | 0.20 [.15,.20] | 0.20 [.15,.21] | 0.15 [.15,.21] | 0.15 [.14,.20] | |
| 0.20 [.14,.21] | 0.30 [.25,.36] | 0.35 [.25,.36] | 0.35 [.29,.40] | 0.30 [.30,.35] | 0.25 [.25,.35] | 0.20 [.15,.20] | 0.20 [.15,.20] | 0.15 [.10,.25] | 0.10 [.14,.21] | ||
| 0.15 [.10,.15] | 0.30 [.25,.31] | 0.35 [.30,.40] | 0.40 [.29,.48] | 0.40 [.25,.41] | 0.30 [.24,.35] | 0.15 [.10,.20] | 0.15 [.10,.16] | 0.15 [.10,.15] | 0.15 [.10,.20] | ||
| 0.10 [.10,.15] | 0.25 [.20,.26] | 0.40 [.25,.39] | 0.30 [.29,.36] | 0.35 [.29,.35] | 0.40 [.31,.46] | 0.10 [.10,.15] | 0.10 [.10,.15] | 0.10 [.10,.15] | 0.15 [.10,.20] | ||
| SSJ–KFS, random | 0.20 [.15,.30] | 0.20 [.14,.25] | 0.20 [.15,.25] | 0.25 [.20,.30] | 0.35 [.25,.35] | 0.35 [.29,.40] | 0.20 [.15,.25] | 0.20 [.15,.30] | 0.20 [.14,.25] | 0.20 [.10,.25] | |
| 0.20 [.15,.26] | 0.30 [.20,.40] | 0.30 [.25,.40] | 0.35 [.29,.40] | 0.30 [.25,.41] | 0.30 [.25,.33] | 0.20 [.15,.25] | 0.20 [.15,.26] | 0.20 [.15,.26] | 0.15 [.10,.21] | ||
| 0.20 [.14,.20] | 0.35 [.24,.36] | 0.35 [.29,.41] | 0.35 [.30,.45] | 0.35 [.30,.40] | 0.30 [.30,.41] | 0.20 [.14,.22] | 0.20 [.10,.22] | 0.15 [.10,.18] | 0.15 [.10,.19] | ||
| 0.20 [.10,.21] | 0.35 [.20,.35] | 0.25 [.20,.26] | 0.30 [.24,.30] | 0.35 [.25,.31] | 0.50 [.29,.40] | 0.20 [.10,.21] | 0.15 [.10,.21] | 0.15 [.10,.20] | 0.15 [.10,.21] | ||
| SSJ–KFS, blocks | 0.20 [.14,.31] | 0.20 [.19,.25] | 0.15 [.15,.30] | 0.25 [.20,.25] | 0.30 [.25,.35] | 0.30 [.25,.40] | 0.15 [.10,.25] | 0.15 [.10,.26] | 0.15 [.10,.26] | 0.20 [.10,.26] | |
| 0.20 [.15,.26] | 0.30 [.20,.35] | 0.30 [.25,.40] | 0.35 [.29,.36] | 0.30 [.30,.40] | 0.30 [.25,.35] | 0.20 [.15,.25] | 0.20 [.15,.25] | 0.15 [.15,.21] | 0.15 [.10,.21] | ||
| 0.20 [.10,.21] | 0.30 [.24,.38] | 0.35 [.25,.40] | 0.40 [.30,.45] | 0.40 [.39,.46] | 0.40 [.35,.42] | 0.15 [.14,.22] | 0.15 [.10,.18] | 0.15 [.10,.18] | 0.15 [.10,.21] | ||
| 0.15 [.10,.16] | 0.30 [.20,.31] | 0.35 [.25,.40] | 0.40 [.30,.51] | 0.55 [.40,.58] | 0.55 [.40,.61] | 0.15 [.10,.18] | 0.15 [.10,.16] | 0.15 [.10,.19] | 0.15 [.09,.20] |
Table 5: (continued)
| Estimator | Scenario 1 | Scenario 2: dependent errors | Scenario 3: stochastic trend | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.20 | 0.40 | 0.60 | 0.80 | 0.90 | 0.25 | 0.50 | 0.75 | 1.00 | |||
| SSJ–ATW, MLE | 0.40 [.34,.51] | 0.50 [.19,.70] | 0.45 [.15,.61] | 0.45 [.05,.56] | 0.05 [.00,.18] | 0.05 [.00,.08] | 0.35 [.34,.41] | 0.35 [.35,.40] | 0.35 [.29,.35] | 0.25 [.20,.25] | |
| 0.25 [.20,.30] | 0.40 [.39,.40] | 0.45 [.45,.50] | 0.45 [.45,.50] | 0.45 [.09,.46] | 0.35 [.19,.46] | 0.25 [.24,.30] | 0.25 [.24,.26] | 0.20 [.20,.25] | 0.20 [.15,.20] | ||
| 0.15 [.15,.20] | 0.30 [.25,.35] | 0.35 [.34,.45] | 0.40 [.40,.46] | 0.35 [.35,.41] | 0.25 [.35,.40] | 0.15 [.15,.15] | 0.15 [.15,.21] | 0.15 [.15,.16] | 0.15 [.10,.15] | ||
| 0.10 [.10,.16] | 0.25 [.24,.30] | 0.30 [.29,.45] | 0.35 [.30,.40] | 0.25 [.30,.58] | 0.20 [.25,.45] | 0.15 [.10,.16] | 0.10 [.10,.16] | 0.10 [.10,.15] | 0.10 [.09,.11] | ||
| SSJ–ATW, random | 0.35 [.34,.58] | 0.40 [.19,.46] | 0.40 [.05,.46] | 0.35 [.11,.41] | 0.20 [.00,.22] | 0.05 [.00,.06] | 0.35 [.32,.42] | 0.30 [.35,.42] | 0.30 [.30,.36] | 0.30 [.20,.35] | |
| 0.25 [.20,.30] | 0.35 [.35,.41] | 0.35 [.39,.41] | 0.40 [.39,.45] | 0.45 [.35,.45] | 0.35 [.26,.40] | 0.25 [.20,.26] | 0.25 [.20,.25] | 0.20 [.20,.26] | 0.20 [.15,.21] | ||
| 0.15 [.15,.16] | 0.35 [.29,.35] | 0.35 [.35,.48] | 0.35 [.35,.48] | 0.40 [.34,.55] | 0.40 [.35,.46] | 0.15 [.15,.20] | 0.15 [.15,.16] | 0.15 [.15,.16] | 0.15 [.15,.20] | ||
| 0.15 [.10,.16] | 0.30 [.24,.39] | 0.45 [.30,.41] | 0.35 [.30,.48] | 0.30 [.35,.45] | 0.35 [.35,.41] | 0.15 [.10,.15] | 0.15 [.10,.16] | 0.15 [.10,.15] | 0.10 [.10,.15] | ||
| SSJ–ATW, blocks | 0.35 [.34,.70] | 0.45 [.26,.51] | 0.40 [.00,.46] | 0.35 [.08,.40] | 0.20 [.04,.15] | 0.00 [.00,.05] | 0.35 [.25,.50] | 0.30 [.29,.50] | 0.35 [.29,.38] | 0.25 [.22,.31] | |
| 0.25 [.24,.30] | 0.35 [.35,.40] | 0.40 [.35,.45] | 0.40 [.39,.45] | 0.40 [.40,.50] | 0.35 [.29,.45] | 0.25 [.20,.30] | 0.20 [.20,.26] | 0.20 [.20,.25] | 0.20 [.20,.21] | ||
| 0.15 [.15,.20] | 0.25 [.25,.33] | 0.30 [.30,.40] | 0.40 [.35,.41] | 0.45 [.40,.45] | 0.40 [.40,.56] | 0.15 [.15,.16] | 0.15 [.15,.16] | 0.15 [.15,.16] | 0.15 [.14,.16] | ||
| 0.10 [.10,.16] | 0.25 [.20,.28] | 0.30 [.25,.31] | 0.40 [.34,.45] | 0.45 [.35,.51] | 0.50 [.44,.58] | 0.15 [.10,.15] | 0.10 [.10,.15] | 0.10 [.10,.16] | 0.10 [.10,.15] |
Table 6: The calibration by sample size under minimax regret in the count error, over the nine cells with of each sample size. A is the floor of the grid: at that sample size and level the worst cell is one with five discontinuities in which the estimator under-declares at every , so the most permissive penalty minimizes the worst-case count error.
| Estimator | Scenario 1 | Scenario 2: dependent errors | Scenario 3: stochastic trend | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.20 | 0.40 | 0.60 | 0.80 | 0.90 | 0.25 | 0.50 | 0.75 | 1.00 | |||
| SSJ–MLE, MLE | 0.20 [.00,.70] | 0.25 [.00,.75] | 0.25 [.00,.70] | 0.20 [.00,.70] | 0.20 [.00,.80] | 0.20 [.00,.50] | 0.20 [.00,.70] | 0.25 [.00,.80] | 0.30 [.00,.95] | 0.40 [.00,.95] | |
| 0.20 [.00,.65] | 0.25 [.00,.80] | 0.20 [.00,.75] | 0.20 [.00,.60] | 0.15 [.00,.65] | 0.05 [.00,.55] | 0.20 [.00,.60] | 0.25 [.00,.90] | 0.25 [.00,.95] | 0.40 [.10,.95] | ||
| 0.00 [.00,.25] | 0.00 [.00,.25] | 0.00 [.00,.05] | 0.05 [.00,.00] | 0.00 [.00,.00] | 0.00 [.00,.00] | 0.00 [.00,.30] | 0.25 [.00,.25] | 0.25 [.10,.25] | 0.40 [.00,.95] | ||
| 0.00 [.00,.25] | 0.10 [.05,.30] | 0.00 [.00,.00] | 0.05 [.00,.00] | 0.00 [.00,.00] | 0.00 [.00,.00] | 0.10 [.00,.20] | 0.00 [.00,.20] | 0.00 [.10,.40] | 0.55 [.00,.65] | ||
| SSJ–KFS, MLE | 0.15 [.05,.40] | 0.20 [.05,.70] | 0.25 [.05,.65] | 0.25 [.05,.55] | 0.25 [.00,.85] | 0.25 [.10,.65] | 0.15 [.05,.60] | 0.15 [.00,.85] | 0.25 [.05,.95] | 0.45 [.05,1.00] | |
| 0.20 [.05,.50] | 0.25 [.00,.65] | 0.25 [.00,.75] | 0.25 [.00,.75] | 0.30 [.00,.95] | 0.35 [.00,.90] | 0.20 [.10,.65] | 0.25 [.05,.80] | 0.25 [.10,.90] | 0.50 [.05,1.00] | ||
| 0.20 [.00,.60] | 0.25 [.00,.65] | 0.20 [.00,.70] | 0.00 [.00,.10] | 0.00 [.00,.15] | 0.00 [.00,.10] | 0.20 [.00,.85] | 0.20 [.00,.90] | 0.25 [.15,.90] | 0.40 [.00,.95] | ||
| 0.25 [.00,.05] | 0.30 [.00,.20] | 0.00 [.00,.15] | 0.00 [.00,.10] | 0.00 [.05,.10] | 0.00 [.05,.10] | 0.20 [.00,.10] | 0.25 [.00,.05] | 0.35 [.00,.30] | 0.50 [.20,.70] | ||
| SSJ–KFS, random | 0.15 [.00,.45] | 0.25 [.05,.75] | 0.25 [.10,.80] | 0.25 [.05,.60] | 0.30 [.00,.55] | 0.25 [.10,.65] | 0.15 [.00,.45] | 0.20 [.00,.60] | 0.20 [.05,.80] | 0.20 [.05,.85] | |
| 0.20 [.00,.60] | 0.25 [.00,.70] | 0.20 [.00,.75] | 0.20 [.00,.70] | 0.25 [.00,.90] | 0.30 [.10,.95] | 0.20 [.00,.65] | 0.20 [.00,.95] | 0.25 [.05,.85] | 0.25 [.05,.95] | ||
| 0.20 [.00,.75] | 0.15 [.00,.75] | 0.10 [.00,.35] | 0.10 [.00,.10] | 0.15 [.05,.20] | 0.00 [.00,.15] | 0.20 [.00,.85] | 0.20 [.00,.85] | 0.25 [.10,.85] | 0.30 [.15,1.00] | ||
| 0.25 [.00,.15] | 0.05 [.00,.70] | 0.05 [.00,.20] | 0.05 [.00,.20] | 0.05 [.05,.30] | 0.10 [.10,.30] | 0.25 [.00,.05] | 0.25 [.00,.10] | 0.30 [.00,.35] | 0.45 [.20,1.00] | ||
| SSJ–KFS, blocks | 0.15 [.05,.45] | 0.25 [.05,.60] | 0.25 [.05,.60] | 0.25 [.10,.85] | 0.30 [.05,.80] | 0.30 [.05,.60] | 0.15 [.05,.60] | 0.15 [.00,.80] | 0.20 [.00,.65] | 0.25 [.00,1.00] | |
| 0.20 [.00,.50] | 0.25 [.00,.75] | 0.25 [.00,.70] | 0.25 [.00,.75] | 0.30 [.00,.90] | 0.35 [.05,1.00] | 0.20 [.00,.70] | 0.20 [.00,.70] | 0.20 [.05,.85] | 0.30 [.05,.95] | ||
| 0.20 [.00,.55] | 0.25 [.00,.65] | 0.30 [.00,.10] | 0.00 [.00,.25] | 0.00 [.00,.10] | 0.05 [.00,.20] | 0.20 [.00,.85] | 0.20 [.00,.80] | 0.25 [.05,.80] | 0.35 [.15,.95] | ||
| 0.20 [.00,.15] | 0.30 [.00,.20] | 0.00 [.00,.25] | 0.05 [.05,.25] | 0.10 [.05,.25] | 0.15 [.05,.35] | 0.20 [.00,.15] | 0.20 [.00,.15] | 0.30 [.00,.25] | 0.40 [.30,.95] |
Table 6: (continued)
| Estimator | Scenario 1 | Scenario 2: dependent errors | Scenario 3: stochastic trend | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.20 | 0.40 | 0.60 | 0.80 | 0.90 | 0.25 | 0.50 | 0.75 | 1.00 | |||
| SSJ–ATW, MLE | 0.30 [.00,.60] | 0.45 [.00,.95] | 0.50 [.00,.85] | 0.50 [.00,1.00] | 0.60 [.00,1.00] | 0.70 [.05,.95] | 0.30 [.00,.80] | 0.35 [.05,.95] | 0.40 [.00,1.00] | 0.55 [.15,.95] | |
| 0.25 [.00,.60] | 0.00 [.00,.40] | 0.00 [.05,.40] | 0.10 [.00,.35] | 0.20 [.00,.40] | 0.20 [.05,.45] | 0.25 [.00,.65] | 0.25 [.00,.85] | 0.30 [.00,.90] | 0.45 [.25,.95] | ||
| 0.20 [.00,.15] | 0.05 [.05,.20] | 0.40 [.00,.25] | 0.40 [.10,.30] | 0.45 [.15,.35] | 0.60 [.20,.40] | 0.20 [.00,.15] | 0.20 [.00,.95] | 0.25 [.00,1.00] | 0.35 [.05,.95] | ||
| 0.00 [.00,.10] | 0.40 [.00,.15] | 0.30 [.05,.20] | 0.25 [.10,.20] | 0.25 [.15,.25] | 0.30 [.20,.30] | 0.00 [.00,.15] | 0.25 [.00,.10] | 0.35 [.00,.15] | 0.45 [.00,.10] | ||
| SSJ–ATW, random | 0.30 [.00,.75] | 0.45 [.00,1.00] | 0.50 [.00,1.00] | 0.55 [.00,1.00] | 0.65 [.15,1.00] | 0.65 [.10,1.00] | 0.30 [.00,.60] | 0.30 [.10,.70] | 0.35 [.15,.90] | 0.40 [.20,.90] | |
| 0.25 [.00,.65] | 0.50 [.00,.35] | 0.00 [.00,.45] | 0.10 [.00,.35] | 0.15 [.00,.40] | 0.20 [.00,.40] | 0.25 [.00,.70] | 0.25 [.00,.90] | 0.30 [.00,.85] | 0.35 [.15,.90] | ||
| 0.25 [.00,.20] | 0.40 [.05,.20] | 0.45 [.05,.30] | 0.50 [.10,.35] | 0.50 [.15,.35] | 0.55 [.15,.40] | 0.20 [.00,.15] | 0.20 [.00,.15] | 0.25 [.00,.80] | 0.35 [.15,.90] | ||
| 0.00 [.00,.10] | 0.25 [.10,.15] | 0.25 [.15,.20] | 0.20 [.10,.20] | 0.20 [.15,.25] | 0.25 [.20,.25] | 0.00 [.00,.10] | 0.00 [.00,.10] | 0.35 [.00,.10] | 0.40 [.00,.45] | ||
| SSJ–ATW, blocks | 0.30 [.00,.60] | 0.45 [.00,.90] | 0.50 [.00,1.00] | 0.55 [.00,.95] | 0.60 [.10,1.00] | 0.60 [.20,1.00] | 0.30 [.05,.70] | 0.35 [.15,1.00] | 0.35 [.15,.85] | 0.40 [.15,1.00] | |
| 0.25 [.00,.60] | 0.35 [.00,.30] | 0.00 [.05,.40] | 0.00 [.00,.50] | 0.15 [.00,.35] | 0.20 [.00,.35] | 0.25 [.00,.70] | 0.25 [.00,.75] | 0.30 [.00,.85] | 0.35 [.15,1.00] | ||
| 0.20 [.00,.20] | 0.05 [.00,.20] | 0.10 [.05,.30] | 0.45 [.15,.35] | 0.55 [.15,.35] | 0.70 [.15,.40] | 0.20 [.00,.15] | 0.20 [.05,.85] | 0.20 [.00,.80] | 0.30 [.15,.90] | ||
| 0.25 [.00,.10] | 0.40 [.00,.15] | 0.40 [.05,.20] | 0.50 [.10,.25] | 0.20 [.15,.30] | 0.25 [.15,.35] | 0.00 [.00,.15] | 0.25 [.00,.15] | 0.30 [.00,.15] | 0.40 [.00,.25] |
The two departures act on that pattern in opposite ways.
The stochastic trend leaves the baseline pattern untouched: at every level of the value falls with as in the reference column, and the rows of the right-hand block of Table 5 are nearly indistinguishable from one another (i.e., SSJ–ATW with blocks , , , in the reference case and , , , at ; SSJ–KFS at the maximum likelihood , , , and , , , ), and the rows at intermediate differ from these by at most one grid step, save at for SSJ–ATW at the maximum likelihood , where the value drifts down from to across the range. The departure that moves the count criterion a long way moves this one nowhere at any sample size. The one exception is again SSJ–MLE, which shifts upward at , to , , , against , , , , while still falling with the sample size.
The dependence reverses that pattern. Under strong persistence the fall of the reconstruction optimum turns into a rise: a longer series supplies more observations but not proportionally more independent information, so the penalty has to increase with to compensate. Under independence the calibrated value falls with the length of the series, for the reason Section 6.5 makes precise (i.e., the plain BIC term charges more per discontinuity as grows and less is left for the extended term to supply): SSJ–ATW with contiguous blocks runs , , , over , , , at . At the fall is already shallower, , , , , and at it has turned into a rise from onward, , , , the entry at being the floor of the grid; SSJ–KFS with contiguous blocks goes the same way, from , , , at to , , , at . With from maximum likelihood the rise is weaker, and for SSJ–ATW it is absent at , where the estimator has lost most of its power. Thus, a longer series supplies more observations but not proportionally more independent information, so the penalty has to increase to compensate rather than fall as the charge argument alone would predict. The two effects work against each other, and which of them dominates is a property of the data rather than of the estimator.
6.5 What the EBIC charges per discontinuity
Two of the results above look like anomalies and are not. Every value calibrated in this document sits below the nominal consistency floor of about recalled in Section 2, and at the baseline the value that minimizes reconstruction error is not a constant but falls with the length of the series. Both dissolve once one asks what the criterion charges per discontinuity in total, rather than what alone charges.
Because grows with the number of active warps, the plain BIC term of Equation (2) already charges each declared discontinuity before the extended term is added. Writing for the increase in that one activated warp produces (small for SSJ–MLE, larger for SSJ–KFS, largest for SSJ–ATW) the total charge per discontinuity is
and if what the data ask for is a charge that does not depend on , then the constant that delivers it is
Whether the optimal charge is in fact flat in is a testable statement: for each arm the reconstruction-optimal is found cell by cell over the cells with , turned into a charge by Equation (8), and regressed on ; the charge is taken as flat when the slope is not distinguishable from zero at the level. It holds for SSJ–KFS with from maximum likelihood and from contiguous blocks at , the two arms of Table 15 for which it is tested, and for SSJ–KFS with random folds at ; with random folds at and and with blocks at and the slope is positive, as it is for SSJ–MLE, and for the SSJ–ATW arms it is negative, that is, the charge these arms ask for falls with faster than the plain BIC term supplies it, except with contiguous blocks at and , where it is not distinguishable from zero. Where the charge is flat, Equation (9) tracks the observed optima closely at every sample size. Table 8 sets the rule against the observed optima for every arm whose charge is flat, and Table 7 gives it for the two SSJ–KFS arms of the table of adopted values, at the sample sizes of the design and beyond them.
Table 7: The rule of Equation (9) for SSJ–KFS, with from maximum likelihood and from contiguous blocks at : is the mean optimal charge over the cells with , and the columns give at the four sample sizes of the design and at two beyond it.
| Arm | |||||||
|---|---|---|---|---|---|---|---|
| SSJ–KFS, MLE | 2.05 | 0.20 | 0.16 | 0.13 | 0.11 | 0.09 | 0.07 |
| SSJ–KFS, blocks | 2.09 | 0.20 | 0.16 | 0.13 | 0.11 | 0.09 | 0.08 |
Table 8: The rule of Equation (9) for the arms whose optimal charge is flat in : is the mean charge over the cells, “observed” the reconstruction-optimal averaged over the nine cells of that sample size, and “rule” the value , also at two sample sizes beyond the design.
| Arm | ||||||||
|---|---|---|---|---|---|---|---|---|
| SSJ–KFS, MLE | 2.05 | observed | 0.211 | 0.167 | 0.122 | 0.100 | – | – |
| rule | 0.199 | 0.159 | 0.130 | 0.107 | 0.089 | 0.075 | ||
| SSJ–KFS, random | 2.16 | observed | 0.183 | 0.172 | 0.144 | 0.128 | – | – |
| rule | 0.212 | 0.170 | 0.139 | 0.115 | 0.097 | 0.082 | ||
| SSJ–KFS, blocks | 2.09 | observed | 0.183 | 0.172 | 0.133 | 0.117 | – | – |
| rule | 0.204 | 0.163 | 0.133 | 0.110 | 0.092 | 0.077 | ||
| SSJ–ATW, blocks | 3.76 | observed | 0.206 | 0.339 | 0.189 | 0.106 | – | – |
| rule | 0.304 | 0.230 | 0.177 | 0.136 | 0.103 | 0.077 | ||
| SSJ–ATW, blocks | 3.70 | observed | 0.339 | 0.239 | 0.150 | 0.111 | – | – |
| rule | 0.297 | 0.224 | 0.171 | 0.131 | 0.099 | 0.073 |
Four things follow. First, the consistency floor is not violated: what the theory of Chen and Chen (2008) constrains is the total charge per discontinuity, and the extended term supplies only what the term has not already levied, so a calibrated well below is consistent with a floor stated for alone because part of the charge is paid elsewhere. On the scale that part is largest for SSJ–ATW, whose effective constant comes close to the floor, and small for SSJ–KFS and SSJ–MLE; what the decomposition leaves is finite-sample, the floor being an asymptotic requirement for selection consistency while the calibration targets risk at the sample sizes of the design. Second, the fall of with at the baseline is not drift but the arithmetic of Equation (9): holding the charge fixed while grows requires exactly that. Third, the common charge can be read as follows: on the scale, SSJ–ATW ends up charging each discontinuity about what the Akaike criterion charges for one free parameter, and SSJ–KFS about half of that; the difference tracks , since SSJ–ATW’s degrees of freedom respond most strongly to an activated warp and more of its total charge is therefore already levied by the BIC term. Fourth, the reversal under persistence is the argument’s own premise failing rather than a contradiction of it: a fixed charge buys a fixed protection only if a longer series carries proportionally more information, and persistent errors are precisely the case in which it does not, so the charge, and with it , has to rise with instead.
In numbers. Expressed on the scale, the implicit charge is for SSJ–MLE (), for SSJ–KFS () and for SSJ–ATW () at , so the effective constant is about for SSJ–ATW at its reference value of , against the floor of , but only for SSJ–KFS at and to for SSJ–MLE at to . The common charge is a reading of its own: it is about for SSJ–KFS and, at the reference sample sizes, about to for SSJ–ATW; on the scale a charge of is two log-likelihood units per discontinuity, which is what the Akaike criterion charges for one free parameter, so SSJ–ATW’s calibrated penalty is close to charging each discontinuity as a single parameter and SSJ–KFS’s about half of that. And at the realized lag-one autocorrelation is about , so consecutive observations share most of their information.
For practice this means that where is far from the middle of the range studied here, Equation (9) should be preferred to any single constant, and that a comparison between the criterion and cross-validation which holds fixed across sample sizes understates the criterion.
6.6 What the count rule costs in reconstruction
Where the two rules disagree, the reconstruction rule is the less demanding one, because the RMSE is nearly flat in near its minimum; following the count rule therefore costs little in reconstruction almost everywhere, and Table 9 reports what it costs, as the increase in mean RMSE at the count-calibrated relative to the reconstruction-calibrated one. The cost is at most about in the reference case and under serial dependence, for every estimator. It is material in one place only, a signal close to a stochastic trend with inherited from SSJ–MLE, where it reaches for SSJ–KFS and for SSJ–ATW; with cross-validated on contiguous blocks the same estimators pay and . That is the one setting in which the two objectives of the paper genuinely conflict, and it does so because at the reconstruction rule wants a smaller than in the reference case while the count rule wants a larger one; the table shows the price of resolving the conflict in favor of the count.
Table 9: The reconstruction cost of the count rule: the increase in mean RMSE at the count-calibrated relative to the reconstruction-calibrated one, pooled over the cells, in %, as a range over the arms of each estimator. A negative value means the count value does marginally better on the mean, which the minimax rule does not optimize.
| increase in mean RMSE at the count value, % | |||
|---|---|---|---|
| Character of the series | SSJ–KFS | SSJ–ATW | SSJ–MLE |
| Smooth signal, independent errors | – | ||
| Dependent errors, blocked folds | – | – | – |
| Dependent errors, random folds | – | – | – |
| Stochastic-trend signal | – | – |
6.7 Behavior by the number of true discontinuities
Table 10 shows, for seven representative arms, the mean number of discontinuities declared, the share of replications that get the number exactly right, and beneath them the median and the central half of the replication distribution, separately at , , and . Each arm is read at its own calibrated from the count criterion, printed in the third column of the table.
Table 10: Mean number of discontinuities declared and, in round brackets, the share of replications declaring exactly the right number; beneath, in small type, the median of the same replication distribution and its central half. Each arm is read at its own calibrated under the count rule, printed in the third column. Five settings: the baseline, two levels of the persistence and two of the stochastic-trend weight. replications behind each entry.
| Estimator | from | true number of discontinuities | ||||
|---|---|---|---|---|---|---|
| Scenario 1: | ||||||
| SSJ–MLE | MLE | 0.41 (94%) 0 [0,0] | 2.12 (3%) 0 [0,4] | 3.54 (18%) 4 [0,5] | 4.43 (27%) 5 [4,6] | |
| SSJ–KFS | MLE | 0.28 (95%) 0 [0,0] | 2.00 (1%) 0 [0,4] | 3.49 (16%) 4 [0,5] | 4.42 (30%) 5 [4,6] | |
| SSJ–KFS | random | 0.47 (93%) 0 [0,0] | 1.82 (2%) 0 [0,4] | 2.95 (17%) 3 [0,5] | 3.90 (27%) 5 [3,6] | |
| SSJ–KFS | blocks | 0.71 (89%) 0 [0,0] | 2.27 (2%) 0 [0,5] | 3.52 (16%) 4 [0,5] | 4.32 (29%) 5 [4,6] | |
| SSJ–ATW | MLE | 0.64 (88%) 0 [0,0] | 1.62 (1%) 0 [0,3] | 3.09 (17%) 3 [0,5] | 4.25 (24%) 5 [3,6] | |
| SSJ–ATW | random | 0.37 (92%) 0 [0,0] | 1.23 (2%) 0 [0,2] | 2.54 (16%) 3 [0,4] | 3.70 (23%) 4 [0,5] | |
| SSJ–ATW | blocks | 0.69 (86%) 0 [0,0] | 1.71 (2%) 0 [0,4] | 2.99 (16%) 3 [0,5] | 4.07 (23%) 5 [3,6] | |
| Scenario 2: | ||||||
| SSJ–MLE | MLE | 1.37 (64%) 0 [0,2] | 1.69 (11%) 0 [0,3] | 2.00 (12%) 1 [0,4] | 2.17 (12%) 0 [0,4] | |
| SSJ–KFS | MLE | 1.84 (68%) 0 [0,4] | 2.84 (3%) 2 [0,5] | 3.51 (14%) 4 [0,6] | 4.28 (25%) 5 [3,6] | |
| SSJ–KFS | random | 1.74 (70%) 0 [0,4] | 2.50 (3%) 1 [0,5] | 3.34 (14%) 4 [0,5] | 4.00 (25%) 5 [2,6] | |
| SSJ–KFS | blocks | 0.78 (85%) 0 [0,0] | 2.00 (2%) 0 [0,4] | 2.99 (17%) 3 [0,5] | 3.89 (25%) 4 [3,5] | |
| SSJ–ATW | MLE | 0.98 (76%) 0 [0,0] | 1.75 (3%) 0 [0,4] | 2.60 (13%) 3 [0,5] | 3.34 (20%) 4 [0,5] | |
| SSJ–ATW | random | 1.26 (68%) 0 [0,2] | 2.04 (7%) 1 [0,4] | 2.81 (15%) 3 [0,5] | 3.42 (21%) 4 [1,5] | |
| SSJ–ATW | blocks | 0.85 (78%) 0 [0,0] | 1.71 (4%) 0 [0,4] | 2.93 (16%) 3 [0,5] | 3.90 (23%) 4 [3,5] | |
| Scenario 2: | ||||||
| SSJ–MLE | MLE | 0.37 (88%) 0 [0,0] | 0.94 (17%) 0 [0,1] | 1.80 (23%) 2 [0,3] | 2.28 (17%) 2 [0,4] | |
| SSJ–KFS | MLE | 0.47 (90%) 0 [0,0] | 1.86 (8%) 1 [0,3] | 3.07 (33%) 3 [2,4] | 4.16 (37%) 5 [4,5] | |
| SSJ–KFS | random | 0.20 (96%) 0 [0,0] | 1.49 (9%) 0 [0,3] | 2.93 (33%) 3 [2,4] | 4.14 (37%) 5 [4,5] | |
| SSJ–KFS | blocks | 0.53 (87%) 0 [0,0] | 2.10 (14%) 2 [0,4] | 3.26 (36%) 3 [3,4] | 4.38 (36%) 5 [4,5] | |
| SSJ–ATW | MLE | 0.86 (76%) 0 [0,0] | 1.67 (9%) 0 [0,3] | 2.73 (26%) 3 [0,4] | 3.74 (28%) 4 [3,5] | |
| SSJ–ATW | random | 0.91 (74%) 0 [0,1] | 1.80 (13%) 1 [0,3] | 3.04 (30%) 3 [2,4] | 4.11 (35%) 5 [3,5] | |
| SSJ–ATW | blocks | 0.67 (81%) 0 [0,0] | 1.61 (9%) 0 [0,3] | 2.96 (30%) 3 [2,4] | 4.11 (32%) 4 [3,5] |
Table 10: (continued)
| Estimator | from | true number of discontinuities | ||||
|---|---|---|---|---|---|---|
| Scenario 3: | ||||||
| SSJ–MLE | MLE | 0.38 (94%) 0 [0,0] | 1.73 (2%) 0 [0,4] | 2.98 (17%) 3 [0,5] | 3.92 (26%) 5 [0,6] | |
| SSJ–KFS | MLE | 0.27 (96%) 0 [0,0] | 1.74 (1%) 0 [0,4] | 3.04 (19%) 3 [0,5] | 4.06 (28%) 5 [3,6] | |
| SSJ–KFS | random | 0.56 (91%) 0 [0,0] | 1.98 (2%) 0 [0,4] | 3.04 (18%) 3 [0,5] | 3.98 (27%) 5 [3,6] | |
| SSJ–KFS | blocks | 1.00 (84%) 0 [0,0] | 2.50 (2%) 2 [0,5] | 3.60 (18%) 4 [2,5] | 4.40 (28%) 5 [4,6] | |
| SSJ–ATW | MLE | 0.44 (91%) 0 [0,0] | 1.42 (2%) 0 [0,3] | 2.72 (18%) 3 [0,5] | 3.87 (26%) 5 [0,6] | |
| SSJ–ATW | random | 0.43 (91%) 0 [0,0] | 1.39 (2%) 0 [0,3] | 2.68 (18%) 3 [0,4] | 3.70 (25%) 4 [0,5] | |
| SSJ–ATW | blocks | 0.46 (90%) 0 [0,0] | 1.37 (2%) 0 [0,3] | 2.60 (18%) 3 [0,4] | 3.62 (23%) 4 [0,5] | |
| Scenario 3: | ||||||
| SSJ–MLE | MLE | 0.94 (87%) 0 [0,0] | 2.28 (4%) 1 [0,4] | 3.26 (20%) 3 [0,5] | 4.03 (30%) 5 [3,6] | |
| SSJ–KFS | MLE | 2.19 (68%) 0 [0,5] | 2.39 (7%) 1 [0,4] | 2.91 (24%) 3 [0,4] | 3.73 (27%) 4 [2,5] | |
| SSJ–KFS | random | 1.42 (78%) 0 [0,0] | 2.74 (5%) 3 [0,5] | 3.68 (23%) 4 [3,5] | 4.53 (33%) 5 [4,6] | |
| SSJ–KFS | blocks | 1.00 (84%) 0 [0,0] | 2.39 (5%) 2 [0,4] | 3.34 (23%) 4 [2,5] | 4.24 (30%) 5 [3,6] | |
| SSJ–ATW | MLE | 1.46 (74%) 0 [0,1] | 1.89 (8%) 0 [0,3] | 2.83 (24%) 3 [0,4] | 3.79 (26%) 4 [3,5] | |
| SSJ–ATW | random | 0.37 (92%) 0 [0,0] | 1.47 (8%) 0 [0,3] | 2.87 (26%) 3 [0,4] | 3.91 (27%) 4 [3,5] | |
| SSJ–ATW | blocks | 0.50 (89%) 0 [0,0] | 1.78 (7%) 1 [0,3] | 3.13 (24%) 3 [1,5] | 4.14 (27%) 5 [3,6] |
Some considerations follow:
- The declared count is close to all-or-nothing. With a single true discontinuity, more than half of the replications (i.e., between 52% and 71% of replications) declare nothing at all, and those that declare anything declare several ( to on average). The mean in the table averages those two branches and describes neither, which is why the median at is zero while the central half reaches four. The shape is the same at every : what the truth changes is the probability of the empty branch, which falls steadily from to , while the count declared on the non-empty branch stays near five throughout. The information about is therefore carried almost entirely by whether anything is declared, and hardly at all by how many. The declaration rule of Section of the paper explains the shape: a warp is kept only if it clears both a share of the total warping and an absolute fraction of the mean sampling interval, and a fitted warping sequence that clears the absolute threshold at all usually clears it in several places at once.
- Exact recovery rises with . It is negligible at and appreciable at (i.e., it runs 1% to 3% at against 23% to 30% at ), not because the estimators count better when there is more to find but because the non-empty branch lands near five whatever the truth: it is right when the truth is five and wrong when it is one. A declared count of one or two is correspondingly rare. Reading the declared count as an estimate of is therefore a mistake, and reading a declared count of zero as evidence that there is nothing to find is the same mistake in the other direction.
- Persistence costs SSJ–MLE its power. By SSJ–MLE declares , and against , and , and the empty branch has taken over, at 49% of replications at and 51% at against 26% and 15% at the baseline. At it declares , and . The loss is not a threshold but a slide that begins at the first level of the persistence: at the arm declares , , , , and as runs from to , and never recovers (Table 11). SSJ–KFS with contiguous blocks is barely touched at the strongest persistence: it declares , and at , with the empty branch at 36%, 13% and 5%, and its exact recovery at actually rises, from 16% to 36%, because the persistence damps the over-declaration that costs it accuracy under independence.
- The false discoveries have a hump in the persistence. On null series SSJ–KFS at the maximum likelihood declares at , rises to at , where it is right only 68% of the time against 95% at the baseline, and falls back to at ; SSJ–MLE peaks at the same level, at , and SSJ–KFS with blocks later and lower, at at (Table 11). The cause is in the calibration itself: the count criterion balances over- against under-declaration, and at the levels where an arm begins to lose power on the series that contain discontinuities it answers by lowering , from at to at for SSJ–KFS at the maximum likelihood , which is paid for on the null series. A criterion calibrated on the count alone is therefore not a criterion for specificity.
- The stochastic trend costs specificity, and the fold layout buys it back. At SSJ–KFS at the maximum likelihood declares discontinuities on a sizeable share of the series that have none ( discontinuities and is right only 68% of the time), while the same estimator with contiguous blocks stays close to its baseline ( and is right 84%); SSJ–ATW shows the same contrast ( against ). Where the signal wanders, how is chosen matters more for the false-discovery rate than the penalty does.
- Half the departure is not half the damage. At every arm is still close to its baseline at (i.e., 84% to 96% correct against 86% to 95%), and the complete grid shows the same at (i.e., 88% to 94% at , Table 12): the specificity loss belongs entirely to the last step of the range, so a series that is partly trend-like needs no correction. Persistence is not like that: it costs SSJ–MLE its power from the first level and has taken half of it by , so a practitioner who judges the departure to be moderate is safe in Scenario 3 and is not safe in Scenario 2.
Tables 11 and 12 give the whole grid rather than seven settings, so that the level at which each arm turns can be located rather than bracketed, and Figures 23 and 24 draw the declared count against rather than at one value of it, one row per true number of discontinuities, so that the opposite directions of the error at and , which the criteria of Section 5 average away, are visible side by side.
Table 11: Scenario 2, every level of the persistence. Mean number of discontinuities declared and, in brackets, the share of replications declaring exactly the right number, for seven representative arms at each true count and each . Each entry is read at that arm’s own calibrated for that level of , so a row is not a single penalty held fixed.
| Estimator | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.00 | 0.10 | 0.20 | 0.30 | 0.40 | 0.50 | 0.60 | 0.70 | 0.80 | 0.90 | ||
| SSJ–MLE, MLE | 0.41 (94%) | 0.46 (92%) | 0.64 (89%) | 0.76 (86%) | 0.79 (84%) | 1.23 (69%) | 1.37 (64%) | 1.06 (71%) | 0.89 (75%) | 0.37 (88%) | |
| 2.12 (3%) | 2.02 (2%) | 2.01 (4%) | 1.86 (5%) | 1.61 (6%) | 1.66 (9%) | 1.69 (11%) | 1.50 (11%) | 1.39 (13%) | 0.94 (17%) | ||
| 3.54 (18%) | 3.02 (14%) | 2.83 (14%) | 2.43 (12%) | 1.91 (10%) | 1.91 (10%) | 2.00 (12%) | 1.92 (13%) | 1.92 (16%) | 1.80 (23%) | ||
| 4.43 (27%) | 3.50 (20%) | 3.02 (15%) | 2.53 (11%) | 2.00 (8%) | 2.03 (10%) | 2.17 (12%) | 2.09 (11%) | 2.28 (14%) | 2.28 (17%) | ||
| SSJ–KFS, MLE | 0.28 (95%) | 0.18 (97%) | 0.33 (94%) | 0.45 (93%) | 1.14 (81%) | 1.03 (82%) | 1.84 (68%) | 1.60 (71%) | 1.55 (71%) | 0.47 (90%) | |
| 2.00 (1%) | 1.69 (1%) | 1.85 (1%) | 1.95 (1%) | 2.55 (2%) | 2.22 (2%) | 2.84 (3%) | 2.62 (3%) | 2.49 (6%) | 1.86 (8%) | ||
| 3.49 (16%) | 2.97 (15%) | 3.07 (13%) | 2.99 (13%) | 3.41 (12%) | 3.05 (11%) | 3.51 (14%) | 3.36 (17%) | 3.39 (23%) | 3.07 (33%) | ||
| 4.42 (30%) | 3.86 (25%) | 3.90 (25%) | 3.78 (23%) | 4.05 (24%) | 3.81 (21%) | 4.28 (25%) | 4.21 (26%) | 4.31 (31%) | 4.16 (37%) | ||
| SSJ–KFS, random | 0.47 (93%) | 1.13 (80%) | 0.99 (83%) | 0.87 (85%) | 1.78 (70%) | 1.76 (70%) | 1.74 (70%) | 1.69 (69%) | 0.76 (86%) | 0.20 (96%) | |
| 1.82 (2%) | 2.23 (4%) | 2.07 (2%) | 1.94 (1%) | 2.63 (2%) | 2.57 (2%) | 2.50 (3%) | 2.54 (4%) | 1.93 (6%) | 1.49 (9%) | ||
| 2.95 (17%) | 3.00 (12%) | 2.82 (10%) | 2.66 (9%) | 3.29 (10%) | 3.29 (11%) | 3.34 (14%) | 3.40 (18%) | 3.03 (22%) | 2.93 (33%) | ||
| 3.90 (27%) | 3.70 (22%) | 3.50 (21%) | 3.33 (20%) | 3.87 (22%) | 3.89 (23%) | 4.00 (25%) | 4.19 (28%) | 4.04 (31%) | 4.14 (37%) | ||
| SSJ–KFS, blocks | 0.71 (89%) | 0.51 (92%) | 0.69 (89%) | 0.43 (93%) | 0.57 (90%) | 0.65 (88%) | 0.78 (85%) | 1.19 (75%) | 0.87 (80%) | 0.53 (87%) | |
| 2.27 (2%) | 1.96 (2%) | 2.20 (2%) | 1.72 (1%) | 1.84 (2%) | 1.97 (2%) | 2.00 (2%) | 2.46 (5%) | 2.28 (8%) | 2.10 (14%) | ||
| 3.52 (16%) | 2.99 (14%) | 3.16 (14%) | 2.74 (13%) | 2.85 (14%) | 2.87 (16%) | 2.99 (17%) | 3.29 (22%) | 3.25 (26%) | 3.26 (36%) | ||
| 4.32 (29%) | 3.89 (24%) | 4.00 (25%) | 3.61 (24%) | 3.72 (23%) | 3.76 (24%) | 3.89 (25%) | 4.29 (27%) | 4.28 (30%) | 4.38 (36%) | ||
| SSJ–ATW, MLE | 0.64 (88%) | 0.60 (86%) | 0.69 (83%) | 0.78 (81%) | 0.86 (79%) | 0.97 (77%) | 0.98 (76%) | 0.79 (79%) | 0.96 (75%) | 0.86 (76%) | |
| 1.62 (1%) | 1.33 (1%) | 1.54 (2%) | 1.71 (2%) | 1.80 (2%) | 1.78 (2%) | 1.75 (3%) | 1.49 (3%) | 1.77 (7%) | 1.67 (9%) | ||
| 3.09 (17%) | 2.56 (14%) | 2.77 (13%) | 2.90 (12%) | 2.79 (12%) | 2.64 (11%) | 2.60 (13%) | 2.36 (14%) | 2.77 (18%) | 2.73 (26%) | ||
| 4.25 (24%) | 3.64 (22%) | 3.77 (22%) | 3.76 (21%) | 3.50 (19%) | 3.35 (18%) | 3.34 (20%) | 3.22 (19%) | 3.57 (24%) | 3.74 (28%) | ||
| SSJ–ATW, random | 0.37 (92%) | 0.77 (83%) | 0.85 (81%) | 0.95 (77%) | 1.01 (75%) | 1.00 (75%) | 1.26 (68%) | 1.46 (61%) | 1.19 (67%) | 0.91 (74%) | |
| 1.23 (2%) | 1.66 (2%) | 1.67 (3%) | 1.68 (3%) | 1.67 (4%) | 1.75 (4%) | 2.04 (7%) | 2.07 (13%) | 2.04 (13%) | 1.80 (13%) | ||
| 2.54 (16%) | 2.70 (13%) | 2.60 (12%) | 2.53 (11%) | 2.55 (10%) | 2.57 (12%) | 2.81 (15%) | 2.88 (18%) | 2.92 (23%) | 3.04 (30%) | ||
| 3.70 (23%) | 3.44 (19%) | 3.29 (18%) | 3.23 (18%) | 3.24 (19%) | 3.25 (19%) | 3.42 (21%) | 3.44 (21%) | 3.68 (27%) | 4.11 (35%) | ||
| SSJ–ATW, blocks | 0.69 (86%) | 0.76 (82%) | 0.93 (79%) | 0.83 (79%) | 0.92 (78%) | 0.96 (76%) | 0.85 (78%) | 0.92 (76%) | 0.75 (79%) | 0.67 (81%) | |
| 1.71 (2%) | 1.67 (2%) | 1.92 (3%) | 1.71 (3%) | 1.79 (3%) | 1.92 (4%) | 1.71 (4%) | 1.87 (5%) | 1.75 (6%) | 1.61 (9%) | ||
| 2.99 (16%) | 2.88 (14%) | 3.11 (16%) | 2.79 (15%) | 3.00 (16%) | 3.15 (16%) | 2.93 (16%) | 3.01 (18%) | 2.86 (22%) | 2.96 (30%) | ||
| 4.07 (23%) | 3.83 (23%) | 4.00 (25%) | 3.78 (23%) | 3.91 (23%) | 4.04 (24%) | 3.90 (23%) | 4.00 (25%) | 3.93 (28%) | 4.11 (32%) |
Table 12: Scenario 3, every level of the stochastic-trend weight. As Table 11, against .
| Estimator | ||||||
|---|---|---|---|---|---|---|
| 0.00 | 0.25 | 0.50 | 0.75 | 1.00 | ||
| SSJ–MLE, MLE | 0.41 (94%) | 0.63 (91%) | 0.38 (94%) | 0.41 (94%) | 0.94 (87%) | |
| 2.12 (3%) | 2.22 (3%) | 1.73 (2%) | 1.83 (2%) | 2.28 (4%) | ||
| 3.54 (18%) | 3.51 (18%) | 2.98 (17%) | 3.03 (19%) | 3.26 (20%) | ||
| 4.43 (27%) | 4.29 (25%) | 3.92 (26%) | 3.91 (26%) | 4.03 (30%) | ||
| SSJ–KFS, MLE | 0.28 (95%) | 0.37 (94%) | 0.27 (96%) | 0.52 (92%) | 2.19 (68%) | |
| 2.00 (1%) | 2.15 (2%) | 1.74 (1%) | 2.03 (2%) | 2.39 (7%) | ||
| 3.49 (16%) | 3.44 (16%) | 3.04 (19%) | 3.10 (23%) | 2.91 (24%) | ||
| 4.42 (30%) | 4.40 (29%) | 4.06 (28%) | 4.04 (30%) | 3.73 (27%) | ||
| SSJ–KFS, random | 0.47 (93%) | 0.48 (92%) | 0.56 (91%) | 0.79 (88%) | 1.42 (78%) | |
| 1.82 (2%) | 1.80 (3%) | 1.98 (2%) | 2.27 (2%) | 2.74 (5%) | ||
| 2.95 (17%) | 2.95 (17%) | 3.04 (18%) | 3.36 (22%) | 3.68 (23%) | ||
| 3.90 (27%) | 3.83 (28%) | 3.98 (27%) | 4.21 (30%) | 4.53 (33%) | ||
| SSJ–KFS, blocks | 0.71 (89%) | 0.86 (86%) | 1.00 (84%) | 0.68 (89%) | 1.00 (84%) | |
| 2.27 (2%) | 2.28 (3%) | 2.50 (2%) | 2.14 (2%) | 2.39 (5%) | ||
| 3.52 (16%) | 3.46 (17%) | 3.60 (18%) | 3.27 (20%) | 3.34 (23%) | ||
| 4.32 (29%) | 4.27 (28%) | 4.40 (28%) | 4.15 (28%) | 4.24 (30%) | ||
| SSJ–ATW, MLE | 0.64 (88%) | 0.40 (92%) | 0.44 (91%) | 0.54 (91%) | 1.46 (74%) | |
| 1.62 (1%) | 1.26 (2%) | 1.42 (2%) | 1.54 (2%) | 1.89 (8%) | ||
| 3.09 (17%) | 2.57 (17%) | 2.72 (18%) | 2.81 (22%) | 2.83 (24%) | ||
| 4.25 (24%) | 3.74 (24%) | 3.87 (26%) | 3.87 (27%) | 3.79 (26%) | ||
| SSJ–ATW, random | 0.37 (92%) | 0.43 (92%) | 0.43 (91%) | 0.33 (93%) | 0.37 (92%) | |
| 1.23 (2%) | 1.28 (2%) | 1.39 (2%) | 1.29 (2%) | 1.47 (8%) | ||
| 2.54 (16%) | 2.58 (16%) | 2.68 (18%) | 2.62 (23%) | 2.87 (26%) | ||
| 3.70 (23%) | 3.64 (23%) | 3.70 (25%) | 3.64 (26%) | 3.91 (27%) | ||
| SSJ–ATW, blocks | 0.69 (86%) | 0.49 (89%) | 0.46 (90%) | 0.52 (90%) | 0.50 (89%) | |
| 1.71 (2%) | 1.25 (2%) | 1.37 (2%) | 1.63 (2%) | 1.78 (7%) | ||
| 2.99 (16%) | 2.49 (16%) | 2.60 (18%) | 2.95 (20%) | 3.13 (24%) | ||
| 4.07 (23%) | 3.49 (23%) | 3.62 (23%) | 3.98 (25%) | 4.14 (27%) |
Figure 23: Scenario 2. Mean number of discontinuities declared against , by the true number . Color is the persistence and line type the source of . Dashed rules mark the truth. Reading down a column shows the progression: at every curve falls to zero and the only question is how soon; at every curve crosses the truth from above, so the signed error has a zero for every arm; at the zero survives only for some; at the SSJ–MLE curve never reaches the line at any once is large, which is the power loss that leaves the pooled criterion without a target.
Figure 24: Scenario 3, the same against . The contrast with Figure 23 is in the top row: there the curves separate by only at small , whereas here the curve stays above the rest well past , which is the inflation of the count on a signal that has no discontinuities at all.
7 Suggested calibrated values and concluding remarks
Under a departure the calibration runs over several levels of or , and the series a single constant has to serve may sit at any of them. The two rules are therefore pooled over the levels of a setting before a value is read off: the pooled rule is the minimax regret over the cells of every level at once, that is, the value of whose worst regret over the cells (RMSE) or the cells (count) with is smallest, so that it returns one value per arm and not a range over levels. In the reference case and at there is a single level and the pooled rule is the value of Tables 1 and 3. Table 13 reports the range over the arms of the calibrated values by the character of the series and by estimator, under the two pooled rules.
Table 13: Calibrated values of by the character of the series and by estimator, under minimax regret in RMSE and in the count error, each pooled over the levels of the setting. Each entry is the range over the ways of supplying ; the second row uses contiguous cross-validation folds, SSJ–MLE entering it with its own . A series with both properties was not simulated: it is bracketed by the last two rows rather than resolved by either.
| SSJ–KFS | SSJ–ATW | SSJ–MLE | ||||
|---|---|---|---|---|---|---|
| Character of the series | RMSE | count | RMSE | count | RMSE | count |
| Smooth signal, independent errors | – | – | – | – | ||
| Dependent errors, blocked folds | – | – | – | – | ||
| Dependent errors, random folds | – | – | – | |||
| Stochastic-trend signal | – | – | – | – |
Three regularities are read off Table 13.
First, in the reference case the two rules coincide for SSJ–KFS and SSJ–ATW and the ranges over the ways of supplying are at most two grid steps wide, so the reference calibration is settled: – for SSJ–KFS, – for SSJ–ATW, and or for SSJ–MLE according to the rule.
Second, under dependent errors both rules move upward with contiguous blocks (– for SSJ–KFS and to – for SSJ–ATW, that is, three to five grid steps above the reference case). With random folds the reconstruction rule moves as well (to – and ), while the count rule stays at its reference level, because a constant chosen on random folds has already absorbed the persistence into the fit and no penalty on the count can recover it. SSJ–MLE moves under the reconstruction rule only, to , its count rule falling to because the estimator loses power rather than specificity as the persistence grows.
Third, under a stochastic trend the two rules separate: the reconstruction rule stays at the reference values or below, while the count rule rises to – for SSJ–KFS and – for SSJ–ATW, the upper ends of both ranges being the arms with inherited from SSJ–MLE. In every row SSJ–KFS lies below SSJ–ATW, so the constant is a property of the estimator as much as of the data.
To synthesize the interval values from Table 13 into a single value for each setting we consider a midpoint between the value calibrated according to the RMSE minimax and the count minimax (i.e., the average of the two pooled values rounded up to the grid).
Table 15 fixes, for each scenario and for each source of (i.e., from SSJ–MLE or by cross-validation at , and , with folds drawn at random or as contiguous blocks), the midpoint of the two pooled rules; the lower panel reports the two rules themselves. The number of folds is not what the value depends on: between and it moves by at most one grid step in every cell, and lies within one step of either except with contiguous blocks under dependent errors. The paper reports and , with the latter being the better choice With contiguous blocks since holding out a fifth of the series (i.e., ) in one stretch over-smooths (Section 6.2).
Recall that the values are pooled over the sample sizes of the design and depend on : Table 5 gives the calibration at each sample size and at every level of the departures.
Table 14: Calibrated values of by the character of the series and by estimator, under the two syntheses of the pooled rules: the midpoint, rounded up to the grid, and the larger of the two. Each entry is the range over the ways of supplying ; the second row uses contiguous cross-validation folds, SSJ–MLE entering it with its own .
| SSJ–KFS | SSJ–ATW | SSJ–MLE | ||||
|---|---|---|---|---|---|---|
| Character of the series | midpoint | larger | midpoint | larger | midpoint | larger |
| Smooth signal, independent errors | – | – | – | – | ||
| Dependent errors, blocked folds | – | – | – | – | ||
| Dependent errors, random folds | – | – | ||||
| Stochastic-trend signal | – | – | – | – |
Table 15: Calibrated values of for each scenario and arm. The upper panel reports the value adopted for each source of (i.e., from SSJ–MLE or by cross-validation at , and , with folds drawn at random or as contiguous blocks): the midpoint of minimax regret in RMSE and in the count error, each pooled over the levels of the setting, rounded up to the grid. The values are pooled over the four sample sizes of the design and depend on the length of the series. The lower panel reports the two pooled rules in the reference case, over under dependent errors, and at under a stochastic trend.
| (a) Values adopted, by the character of the series |
|---|
| Estimator from reference case dependent errors stochastic trend SSJ–KFS blocks SSJ–KFS blocks SSJ–KFS blocks SSJ–KFS random SSJ–KFS random SSJ–KFS random SSJ–KFS MLE SSJ–ATW blocks SSJ–ATW blocks SSJ–ATW blocks SSJ–ATW random SSJ–ATW random SSJ–ATW random SSJ–ATW MLE SSJ–MLE MLE |
| (b) The two rules behind the values adopted, pooled over the levels of the setting |
| reference case dependent errors, stochastic trend, Estimator from RMSE count RMSE count RMSE count SSJ–KFS blocks SSJ–KFS blocks SSJ–KFS blocks SSJ–KFS random SSJ–KFS random SSJ–KFS random SSJ–KFS MLE SSJ–ATW blocks SSJ–ATW blocks SSJ–ATW blocks SSJ–ATW random SSJ–ATW random SSJ–ATW random SSJ–ATW MLE SSJ–MLE MLE |
To testify the robustness of our choice, we also consider alternative synthesis criteria, such as the separate rules, and the larger of the two, which provides a more conservative penalty (Table 16). The two agree to within one grid step in the reference case and under dependent errors, where the rules themselves are close; they part company under a stochastic trend for the arms with inherited from SSJ–MLE, where the count rule alone asks for and and the reconstruction rule for , so the midpoint settles at – and the larger at the count value, and, less widely, for SSJ–ATW with contiguous blocks at and , where the count rule asks for and against for reconstruction (midpoint and , larger and ). The midpoint is the synthesis adopted below: the two rules protect different things, the accuracy of the curve and the number of discontinuities declared, and the midpoint is the single value that gives up the least of both, since the RMSE is nearly flat around its minimum and the count regret rises slowly on the side of the larger penalty. Table 16 reports the same values under the four syntheses (i.e., each rule alone, the midpoint and the larger of the two) as a robustness check on the decision rule: the midpoint and the larger differ by at most one grid step everywhere except under a stochastic trend for the arms with from SSJ–MLE and for SSJ–ATW with contiguous blocks at and , where the choice between them is the choice between the reconstruction of the curve and the number of discontinuities declared, at the reconstruction cost of Section 6.6.
Table 16: Robustness to the decision rule: the values of adopted for each scenario and arm (cross-validation at , and ) under the four syntheses of the two pooled rules — the count rule alone, the RMSE rule alone, their midpoint rounded up to the grid (the synthesis of Table 15) and the larger of the two. Columns: the reference case, dependent errors () and a stochastic trend ().
| count rule | RMSE rule | midpoint | larger of the two | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Estimator | from | ref. | dep. | trend | ref. | dep. | trend | ref. | dep. | trend | ref. | dep. | trend |
| SSJ–KFS | blocks | ||||||||||||
| SSJ–KFS | blocks | ||||||||||||
| SSJ–KFS | blocks | ||||||||||||
| SSJ–KFS | random | ||||||||||||
| SSJ–KFS | random | ||||||||||||
| SSJ–KFS | random | ||||||||||||
| SSJ–KFS | MLE | ||||||||||||
| SSJ–ATW | blocks | ||||||||||||
| SSJ–ATW | blocks | ||||||||||||
| SSJ–ATW | blocks | ||||||||||||
| SSJ–ATW | random | ||||||||||||
| SSJ–ATW | random | ||||||||||||
| SSJ–ATW | random | ||||||||||||
| SSJ–ATW | MLE | ||||||||||||
| SSJ–MLE | MLE |
The findings that carry over to practice are the following:
- In the reference case the two minimax regret rules largely agree (Table 1), and supplying from a preliminary SSJ–MLE fit, which fixes one parameter before the budget is chosen, calls for a penalty no heavier than a cross-validated does (Section 6.1);
- Serial dependence and stochastic trends call for a heavier penalty than the reference case through different channels: persistence acts through , and the penalty responds to it when is cross-validated on contiguous blocks, and for SSJ–ATW also when is inherited from SSJ–MLE, but not with random folds (Table 2); a stochastic trend leaves reconstruction unaffected and inflates the declared count, so only the count rule moves (Table 3);
- The value depends on the estimator as much as on the data: under persistence SSJ–ATW needs from a third more to twice what SSJ–KFS needs;
- Following the count rule costs little in reconstruction except for a stochastic trend (Table 9);
- A single constant is a compromise across sample sizes (Table 5); for SSJ–KFS with from SSJ–MLE or from contiguous blocks the total charge per discontinuity is flat in and the compromise has the closed form of Equation (9) (see Table 7 in Section 6.5);
- Exact recovery of the true number rises with , because the declared count is close to all-or-nothing; persistence costs SSJ–MLE its power; a stochastic trend costs specificity, which contiguous folds buy back;
- The property of the extended BIC for which a smoothing constant fixed before the budget is chosen calls for a milder (Section 1) is confirmed: SSJ–KFS with from SSJ–MLE asks for less than SSJ–MLE itself in every scenario ( against in the reference case, against under dependent errors and against under a stochastic trend, Table 15), and the same ordering holds at every sample size under the reconstruction rule (Table 4).
References
Chen, J. and Chen, Z. (2008), ‘Extended Bayesian information criteria for model selection with large model spaces’, Biometrika 95(3), 759–771.
Maranzano, P. and Pelagatti, M. (2025), ‘A Hodrick–Prescott filter with automatically selected breaks’, Economic Modelling 150, 107132.
Otto, P., Fassò, A. and Maranzano, P. (2024), ‘A review of regularised estimation methods and cross-validation in spatiotemporal statistics’, Statistics Surveys 18, 299–340. https://doi.org/10.1214/24-SS150
Wahba, G. (1978), ‘Improper priors, spline smoothing and the problem of guarding against model errors in regression’, Journal of the Royal Statistical Society: Series B (Methodological) 40(3), 364–372.
Application Supplement Smoothing splines with some discontinuities
This document collects the material that supports the two applications of Section of the paper. Section S1 reports the temperature–demand application over the whole grid of the extended-BIC constant and compares the estimated curve with the degree-day representation of the temperature response. Section S2 gathers everything on the fuel-price application: the check of the calibration of on the policy dates, the 2026 episode, the two excise episodes and the boundary experiment at a readable size, the application re-estimated at the three values of that bracket the one the paper adopts, and the evidence behind the number of cross-validation folds. The calibration of itself, with every table and figure behind it, is the subject of a separate document, the Calibration Supplement.
S1 The temperature–demand application
This section supports Section of the paper: Section S1.1 reports the discontinuities declared over the grid of , and Section S1.2 compares the estimated curve with the degree-day construct.
S1.1 The declared discontinuities over the grid of
Table S1 gives, for the two algorithms of Figure of the paper, the number of discontinuities for every value of from to . According to the calibration, the recommended values are around for SSJ–MLE and around for SSJ–ATW. The number of detected discontinuities is rather stable in the respective ranges and above.
Table S1: Number of temperatures declared as discontinuities by the two estimators of Figure of the paper, at each value of : warps declared according to the rule described in the main paper.
| Estimator | 0.10 | 0.15 | 0.20 | 0.25 | 0.30 | 0.35 | 0.40 | 0.45 | 0.50 |
| SSJ–MLE | 8 | 8 | 7 | 7 | 3 | 3 | 2 | 2 | 2 |
| SSJ–ATW, by 5-fold CV | 5 | 5 | 3 | 2 | 2 | 2 | 2 | 2 | 2 |
Figure S1 shows the position with respect to temperature and the strength of the warps as a function of the EBIC constant . As already noticed, the warps’ placement stabilizes when the values of are equal to or above the values suggested by the calibration exercises. The discontinuities detected at any value of occur at and degrees Celsius, with the second being much stronger.
Figure S1: The value of the EBIC parameter is on the -axis, the value of the temperature is on the -axis, the size of the point is proportional to the warp identified by each algorithm.
S1.2 Comparison with degree days
It is worth setting the estimated curve against the device that most energy systems use in its place. Heating demand is conventionally summarized by degree days: one fixes a base temperature and accumulates, throughout the season, the positive part of , where is the mean outdoor temperature on day . The implied model of the temperature response is exactly two straight lines joined at , flat above the base and linear below it, and its single free parameter is fixed by convention rather than estimated. Italy sets the base at C, and does so for a reason that makes it higher than the bases used elsewhere: the figure in DPR 412/1993 is the conventional indoor temperature, differenced directly against the outdoor daily mean, without taking into account the internal and solar gains that the lower foreign bases implicitly subtract. The same regulation partitions the country into climatic zones A–F by the resulting annual totals, and those totals govern how long the heating season may run in each municipality.
Our estimate allows us to ask what the data would have chosen. The curve fitted by SSJ–MLE (Figure of the paper) attains its minimum at C, and at exactly C, the convention, demand sits within of that minimum. The reason C does so well is not that the curve turns there: demand stays within of its minimum throughout the interval C, so the vertex that the degree-day construct posits is not a point the data can locate, since there is nothing sharp there to locate, and any base between roughly and C would describe this sample about equally well. The two arms are also asymmetric: below C each additional degree of cold adds about MWh, while above C each additional degree of heat adds about , a fifth more, and about per degree between and C. A single base temperature cannot serve both sides, which is why the Italian regulation defines degree days for heating only and leaves cooling without a counterpart.
Where the two descriptions truly part company is at the discontinuities. The estimator places jumps at about C and, in the cooling regime, at about C and C, that is, at temperatures at which demand steps up rather than merely bending upward, as air conditioning is switched on across a large number of premises at once. A degree-day representation cannot express this at any base temperature, because it is continuous by construction; the best it can do is absorb the steps into a steeper slope and spread them over the whole of the cooling range. The estimators of Section of the paper do not have to choose between a kink and a step, and here they find both.
S2 The fuel-price application
This section collects everything that supports Section of the paper: the check of the calibration of on the policy dates (Section S2.1), the 2026 episode (Section S2.2), the two excise episodes at a readable resolution and the boundary experiment (Section S2.3), the same application re-estimated at the other values of the extended-BIC constant that the paper discusses (Section S2.4), and the evidence behind the number of cross-validation folds (Section S2.5).
S2.1 Checking the calibration on the policy dates
Because the dates of the interventions are known, the fuel-price series allow the calibration of summarized in Section of the paper to be checked on real data. Figure S2 sweeps over and records every week that each estimator declares as a break, with the enforcement weeks of Table of the paper marked by black asterisks. Because enters only the selection of the budget and never a fit, the smoothing constants are computed once per series and held fixed, so the figure isolates the penalty and nothing else.

Figure S2: Weeks declared as discontinuities by each estimator (columns) on each series (rows), as runs from to in steps of . Each band is one date and each tile a value of at which it is declared, colored by the size and sign of the level shift. Black asterisks mark the weeks in which the excise duty changed (Table of the paper): on a colored tile a hit, on white a miss.
The pattern is the one the simulations predict. At the reference-case value the estimators declare a long tail of dates that are not policy events: SSJ–ATW at the maximum likelihood reports such weeks on the two pump-price series alongside of the true events, and with contiguous folds the tail is longer still, weeks alongside events. Raising to removes much of it while costing little of the signal: at the maximum likelihood the estimator then reports spurious weeks and still recovers events, so precision rises from to , and the two events given up are small ones, the partial restoration of euro of December 2022 on one fuel and the final step of July 2026 on the other. Beyond the maximum likelihood arm does not change at all and the blocked one gives up an event, so that is where the gain has been realized (Section S2.4 gives the counts).
The declared sets are nested in : every date enters at and, once it leaves, does not return, for all dates declared anywhere in the four series, so each occupies one uninterrupted band whose length measures how much penalty it can absorb. The great majority are transient and disappear within one or two grid steps of the reference-case value; the survivors at every admissible penalty are 14 March 2022, 28 March 2022 and 9 January 2023 (the market shock, the excise cut and its restoration) on either fuel. Four of the seventeen events are recovered by no estimator at any , and they are the same four throughout, namely the two realignment steps on both fuels, which move the duty by and cents against a weekly standard deviation of the pump price several times larger, and which are visible in the figure as rows of asterisks on white across every column. On the industrial price, from which the duty is excluded, both SSJ–ATW variants declare a discontinuity at the 2022 policy date at the smallest penalties and both still do at ; the one with contiguous folds keeps it up to , so a penalty above that would be needed before neither does. Here the two objectives of the calibration differ, and the gap is the price of insisting on no false alarms rather than on an accurate curve.
Two asymmetries in the detection map are also worth recording. SSJ–ATW with a block cross-validated retains far more of its pump-price dates across the whole grid than the other three estimators of the map: that constant is the smallest of those reported, the budget it supports is correspondingly large, and the extended term has comparatively little purchase on it, so buys less there than elsewhere—which is visible in the figure as a column of long unbroken bands, and is why the block-cross-validated variant is the one whose precision barely improves when the penalty is raised. And CSSD, which is the conservative benchmark on the pump prices with six dates, declares on the industrial prices and keeps all of them, more than any SSJ estimator retains; its parsimony is a property of the series it is applied to rather than of the estimator.
S2.2 The 2026 episode
The 2026 episode inverts the pattern of 2022 and illustrates what the decomposition into gross and net prices buys. The pump price barely reacts to the cut of 23 March 2026: it falls by euro per liter for gasoline and by for diesel against a mechanical , and no discontinuity is declared on it, while a large one appears on the industrial price, estimated at to for gasoline and to for diesel. This reading deserves caution. The two weeks preceding the cut carry a violent market surge, with the industrial price rising by about euro per liter per week on gasoline and on diesel, that is, of the same order as the fiscal measure. What we measure at the policy date is the one-step change of the fitted signal, which superimposes the discontinuity on one week of the prevailing drift; netting out a drift of that size would raise the implied transmission to roughly one half on gasoline and two thirds on diesel. The qualitative conclusion, that the second intervention reached the pump far less completely than the first, is robust to the correction, but the magnitude is not, and we do not press it further. Panel (b) of Figure S3 shows the episode week by week.
S2.3 The two excise episodes and the boundary experiment
Figure S3 expands the two excise episodes, at a resolution at which the individual weeks can be separated and the agreement between the three estimators can be checked one date at a time.
Figures S4 and S5 report the boundary experiment of Section of the paper, on the pump price and on the industrial price respectively. A change point that falls in the middle of a long sample is an easy target. The formulation of Section of the paper places no restriction on where a jump may occur, since is defined on every one of the intervals; near the boundary, however, the spline has almost no data on one side, and the roughness penalty alone must arbitrate between a discontinuity and a steep continuous transition. Because the date of the March 2022 cut is known, this can be put to the test directly. We build three families of nested subsamples: one in which the first observation is moved forward until the cut becomes the second observation of the sample, one in which the last observation is moved backward until the cut becomes the last, and one repeating the second exercise on the March 2026 cut; all three procedures are then re-estimated on each of the windows. Every horizontal line is one estimation, run on a different subsample; the shaded blocks are the weeks that estimation could not see, so that moving down a panel the sample is progressively cut back toward the excise-duty change, which sits at zero on the horizontal axis. The vertical axis reports , the number of weekly observations still separating the change from the moving edge of the sample, from the full sample at the top to at the bottom. The symbols are the discontinuities found in that estimation, positioned in weeks from the excise-duty change and split into one sub-row per estimator, so that an estimator insensitive to the position of the break in the sample produces a vertical stack of symbols at zero all the way down.
Four patterns recur. A column at zero is the excise-duty change itself. The column two weeks earlier, in the 2022 panels, is the market shock of 14 March 2022: on the pump price it is a second and smaller discontinuity, on the industrial price it is the only one, since the 2022 cut was passed on almost in full and left the industrial price alone, which is why Figure S5 has its main column at and nothing at . Isolated symbols away from zero are further genuine discontinuities that a particular window happens to contain, such as the movements in the industrial price of diesel in late August and mid-October 2022; they disappear as soon as the window no longer reaches them, which is what makes them look isolated. Finally, the short runs of adjacent symbols visible in the shortest windows are the warping spread over a few consecutive weeks rather than concentrated on one: SSJ–ATW does this near the boundary, and it is worth stressing that it still places the jump in the right neighborhood rather than displacing it.
Figure S6 reports the estimated size of the recovered discontinuity in each of those windows, which is the quantity the paper’s claim of stability rests on: on the pump price it stays at euro per liter from the full sample down to the shortest window, so the boundary neither displaces the jump nor attenuates it.
Figure S3: Zoom-in of the two excise-duty episodes. Rows: price paid at the pump and industrial price; columns: the two fuels. Points are the weekly observations and the blue line the signal extracted by SSJ–MLE; vertical rules as in Figure of the paper, with the sideways nudge reduced in proportion to the horizontal scale. Panel (a): the cut of 28 March 2022, its partial withdrawal in December 2022, and its full restoration in January 2023. Panel (b): the cut of 23 March 2026 and its staggered restoration.
Figure S4: Boundary robustness on the pump (gross) price. Panels (a) and (b) shrink the sample toward the cut of 28 March 2022 from the left and from the right respectively; panel (c) repeats the exercise on the cut of 23 March 2026.
Figure S5: Boundary robustness on the industrial (net) price. Panels (a) and (b) shrink the sample toward the cut of 28 March 2022 from the left and from the right respectively; panel (c) repeats the exercise on the cut of 23 March 2026.
Figure S6: Estimated size of the discontinuity at the excise-duty change, in each window of the boundary experiment. Axes as in Figures S4 and S5: the vertical axis is the number of weekly observations still separating the change from the moving edge of the sample. A horizontal series of symbols is an estimator whose measurement of the jump does not move as the sample is cut back toward it.
S2.4 The application at other values of
Section of the paper sets , for reasons given there: the two simulation experiments bracket to for a series that is both serially dependent and closer to a stochastic trend than to a fixed smooth curve, and lies inside that band without being the value that maximizes detection accuracy on these data. This section re-runs the whole application at the other three values, so that the reader can see what each of them would have produced. Everything else is held fixed: the same data, the same budget grid, the same for each variant, the same seed.
Table S2 scores the outcome against the seventeen excise events on the two pump-price series, counting a run of adjacent declarations around one event as one recovered event and allowing a tolerance of one week between the legal date and the price response.
Table S2: The fuel-price application at four values of . For each estimator and each : the total number of discontinuities declared on the two pump-price series (all), the number of the seventeen excise events recovered (hit), and the number of declared weeks not within one week of any excise event (false).
| Estimator | all | hit | false | all | hit | false | all | hit | false | all | hit | false |
| SSJ–MLE | 5 | 3 | 2 | 5 | 3 | 2 | 5 | 3 | 2 | 5 | 3 | 2 |
| SSJ–ATW (lambda MLE) | 32 | 11 | 16 | 24 | 9 | 10 | 24 | 9 | 10 | 24 | 9 | 10 |
| SSJ–ATW (CV blocks) | 32 | 8 | 20 | 32 | 8 | 20 | 31 | 8 | 19 | 24 | 7 | 15 |
| CSSD | 6 | 4 | 2 | 6 | 4 | 2 | 6 | 4 | 2 | 6 | 4 | 2 |
Three things are visible.
- The gain is concentrated between and , and it is large. For SSJ–ATW at the maximum likelihood the declared set falls from weeks to and the false detections from to , while the events recovered fall only from to . Precision rises from to . The two events given up are small ones, the partial restoration of euro of December 2022 on one fuel and the final step of July 2026 on the other; the realignment steps of and cents, which move the pump price by less than its weekly standard deviation, are recovered at no value of (Section S2.1).
- Beyond the penalty has nothing left to remove. That arm declares exactly the same weeks at , at the the paper adopts and at , so the reading is insensitive to the choice within the band the calibration brackets; the blocked arm, which is still declaring weeks at , is the only one that moves at , and it moves by giving up an event as well as five false detections.
- Two estimators do not respond at all, for opposite reasons. SSJ–MLE and CSSD declare five and six dates respectively and keep them at every : they are already parsimonious and the penalty has nothing to remove. SSJ–ATW with a block cross-validated also barely moves, from weeks to at , but here the cause is the opposite — the blocked criterion selects the smallest smoothing constant of the variants reported and the warping budget it supports is correspondingly large, so the extended term has comparatively little purchase and buys less there than elsewhere. That variant is the one whose precision stays near throughout, and it is the reason the paper leads with SSJ–ATW at the maximum likelihood .
S2.5 Sensitivity of the cross-validated to the number of folds
Section of the paper uses contiguous blocks for the cross-validated variant of SSJ–ATW. On simulated data with a known amount of dependence (Scenario 2 of the Calibration Supplement) the number of folds barely matters and the layout matters a great deal: at the RMSE against the true signal is with blocks at either or , against with random folds. On the fuel prices that conclusion does not transfer. The simulated design has between and and stationary errors; these are weekly prices whose level is close to a random walk, and the length of a block interacts with that. Selecting on all four series at each gives, in effective degrees of freedom out of :
| contiguous blocks | random folds | |||||
|---|---|---|---|---|---|---|
| Series | ||||||
| Gasoline, pump | 47.8 | 12.9 | 105.0 | 576 | 576 | 576 |
| Gasoline, industrial | 33.5 | 84.8 | 577.0 | 316 | 316 | 316 |
| Diesel, pump | 39.5 | 59.2 | 104.0 | 576 | 576 | 576 |
| Diesel, industrial | 124.7 | 87.0 | 87.0 | 493 | 379 | 379 |
For the random scheme the choice is immaterial (the same is selected at , and on every series) and the criterion runs to the floor of the search grid on both pump-price series whatever is, which is the failure that Scenario 2 of the Calibration Supplement predicts and which is why the blocked variant was introduced. For the blocked scheme the choice is not immaterial at all, and each value of fails somewhere: at the criterion over-smooths the gasoline pump price so severely that the variant declares no discontinuities at all on the series carrying the largest fiscal shock in the sample; at it declares nine on the gasoline industrial price, which is the placebo series; at the criterion runs to the floor of the grid on the gasoline industrial price, although the fit that results still declares only three. is adopted as the best behaved by outcome, at , , and declared discontinuities across the four series.
That a criterion should move by three orders of magnitude between and on one series is a real weakness of cross-validating the smoothing constant on data of this kind. It is also the reason the paper’s headline estimator is SSJ–ATW at the maximum likelihood , which involves no folds at all, with the cross-validated variants reported beside it rather than in place of it. The value of plays no part in any of this: the selected is identical at and in all twenty-four combinations above.