On this page
Time series analysis – method notes
The decisions behind the time series analysis module – which estimator, threshold, refusal or fallback stands behind each card, and the numbers that validate them – computed on the airline passenger table printed on the time series concepts page or, for nonlinear dynamics, in the app’s own simulations. Sections follow the manual’s.
Variable roles
The time column’s scale is decided once, for the whole column, and a date-only value is anchored at local midnight. Choosing the scale per value would mix small ordinals with epoch milliseconds in one vector, and the spacing between a value on each scale is not a cadence – so one cell that parses only as a date makes the column a date column, and every numeric-looking cell in it is then a parse failure rather than a year or an index. Date.parse reads a bare YYYY-MM-DD as UTC midnight but a YYYY-MM-DD HH:MM as local time, so a column holding both would carry two anchors; the module appends T00:00:00 to a date-only string so that every value is local, which is the scale the plots’ time axis and the result tables render with. Fewer than three parseable rows leave nothing to space, so the run is refused with a toast.
Validation. On the airline table all 144 months parse as dates and no row is dropped; the Time axis rows read 144 observations, regular spacing, 0 gaps and 0 duplicates.
The seasonal period is the calendar cadence nearest the median spacing on a log scale, or the observations per day below about seventeen hours. The median spacing is robust to the few gaps and duplicates a real file carries, and the distance to a cadence is judged as a ratio because the cadences are themselves ratios apart – daily to weekly is 7×, weekly to monthly 4.3× – while the jitter inside one is small: months of 28 to 31 days differ from the 30.44-day cadence by under 8%, so they all read as monthly without a table of thresholds. At more than one observation a day the cycle is the day itself and the period is one over the spacing in days, rounded – 24 for hourly data, 3 for eight-hourly – with the cut at of a day, about seventeen hours, the geometric midpoint between one and two observations a day. A numeric index carries no cadence, so it resolves to 1 unless overridden, and a yearly cadence resolves to 1 as well, since no shorter cycle is there to model.
Validation. The airline months are 28 to 31 days apart; the median snaps to monthly, the frequency line reads Monthly spacing – frequency = 12 (yearly cycle), and findfrequency confirms 12 from the series itself.
Spacing, gaps and duplicates are measured inside each group and the per-group medians pooled. The interleaved timeline of two groups sampled over the same span alternates between them, so its spacings are the offsets between the groups – near zero where their timestamps coincide, read as duplicates, and a jump at every transition, read as a gap – and not the cadence either group was sampled at. The gap and duplicate counts are therefore per group, the frequency is read off the median of the per-group median spacings, and the cross-group median is only the fallback for a run in which no group has two spaced observations.
One seasonal period is resolved for the whole run, and a warning names the groups’ own periods when they differ. The R runners take one frequency and build every series at it; fitting each group at its own period would make the seasonal terms, strengths and forecasts of one card incomparable across its groups and would need an override per group. So the resolved period is global, and on a date axis with more than one group each group’s median spacing is snapped to a period on its own – when the distinct results number more than one, every result card opens with a warning listing them beside the period used, and the remedy is to split the analysis by cadence.
Pre-flight (Check data)
A gap is a spacing wider than 1.5 × the group’s median spacing, and a duplicate a spacing of zero. Calendar jitter is small – the longest month is 31/28 = 1.11 times the shortest – while one skipped observation doubles the spacing, so a factor of 1.5 separates the two with margin on either side; a spacing tighter than the median, two readings close together, is not a gap and is counted only when it is exactly zero. The JavaScript side counts for the dataset-wide rows and the R side for the per-group table, on the same rule.
Validation. The airline spacings run from 28 to 31 days against a median of 31, so the gap threshold is 46.5 days and no month is one: 0 gaps, 0 duplicates, regular spacing Yes.
Missing values are interpolated before the difference counts and the period search, and the raw series is kept for the outlier scan. ndiffs, nsdiffs and findfrequency take no NA, and stripping the blanks would shift every later value one step earlier and destroy the seasonal alignment the tests rely on, so a series with blanks is interpolated with forecast::na.interp – seasonal when the frequency allows – for those three computations only, and the raw series is used if the interpolation fails. ndiffs runs its default KPSS test, up to two differences, at the assumption test significance level: KPSS holds stationarity as its null, the data-are-fine null every assumption check holds, and it is the level the exploration card’s KPSS row is judged at, so the two cards cannot contradict each other on one series. KPSS’s p is tabulated only on [0.01, 0.10] and ndiffs clamps a level outside that span with a warning, so the module clamps it to the nearer endpoint itself, and the card names the level d was chosen at whether or not it was moved. The chosen d changes the model any later fit would build on it, so the level is the run’s own, from the settings snapshot – a later change of the setting leaves the count as it was computed, the level the analysis ran at, until the analysis runs again, while the exploration verdicts, judged from kept p-values, follow the setting live. nsdiffs runs its seasonal-strength heuristic – one seasonal difference when the STL seasonal strength exceeds 0.64 – and only when the frequency is above 1 and the series holds at least two full cycles; both, and findfrequency, need eight non-missing values. findfrequency removes a linear trend, fits an autoregressive spectrum to what is left and reports the period at its peak when the peak is high enough to be one, else 1.
Validation. On the airline table the app suggests d = 1 and D = 1 – the series’ seasonal strength is 0.94 against the 0.64 cut – and detects the period 12.
Guerrero’s λ needs ten positive values and is estimated at the series’ seasonal period. forecast::BoxCox.lambda(method = "guerrero") is run on the series as a ts at the resolved frequency, so Guerrero’s coefficient-of-variation criterion compares the spread and level of whole seasons – the variation λ is meant to stabilise – and at frequency 1 those of consecutive blocks of two values; this is the reading forecast documents for a seasonal series and the one auto.arima(lambda = "auto") makes. Blanks are filled with forecast::na.interp for the estimate alone, since dropping them would slide every later value into the wrong season; a fill that leaves a zero or negative value reads as a failed estimate. Fewer than ten values leave the criterion nothing to fit, so the cell reads Not computed; a zero or negative value puts the series outside the power transform’s domain, and since the module does not shift a series the cell reads Not applicable; an estimate that errors reads Estimation failed. A series no longer than two seasonal periods reads Not estimated: at that length BoxCox.lambda returns λ = 1 without fitting anything, and printing that 1 as an estimate would report the identity as Guerrero’s answer. The same gates govern the transform stack’s automatic Box-Cox step, which skips such a series with the reason, and every training window the forecast’s holdout and rolling-origin validation refit the stack on – a window too short for the estimate is fitted untransformed, and the stack line counts those windows, since they score a different model than the one fitted to the whole series. A typed λ is applied whatever the length.
Validation. The airline table reads λ = −0.295 in the pre-flight – against 0.111 when the same values are read as a plain vector with no period – and 0.071 in a fit with Replace outliers on, since the stack estimates λ after the seven summer peaks were replaced.
Outliers are forecast::tsoutliers at the configured frequency, on the raw series, from ten non-missing values. On a seasonal series longer than two cycles a robust STL fit removes the seasonal component when its strength reaches 0.6, a super smoother fits the trend, and a residual below or above of the residuals is an outlier, in two passes with the flagged points interpolated between them; below ten values nothing is flagged. The scan runs on the raw series because it previews what the transform stack’s cleaner would replace, and the positions list is cut at twelve so a series of spikes does not turn the row into a wall of text.
Validation. On the airline table the seven points flagged are summer peaks – July of 1949, 1950 and 1951, August of 1958 and 1959, and July and August of 1960: the summer swing grows with the level, so an additive season leaves the largest peaks as residual extremes. They are genuine seasonal highs, not errors, which is the reader’s call to make before switching Replace outliers on.
The recommendation reads the seasonal difference first, then the regular one, and the pre-flight sets no sample-size threshold. A suggested seasonal difference implies a seasonal model whatever the regular count says; with none, a regular difference means a non-stationary series; a missing regular count means no test could run; and none of the three means a series whose stationarity was not rejected. The lines say what the tests found and no more: ndiffs decides by KPSS, whose null is stationarity, so the third reads stationarity not rejected rather than stationary, and it points to a stationary ARMA – every exponential-smoothing model is non-stationary (simple smoothing is an ARIMA(0,1,1)), the wrong model for a series the test let stand – while the seasonal line states that a seasonal difference was indicated rather than calling the seasonality strong, which a differencing count does not measure. Neither suggests a mean or naive baseline: the module has no mean forecast, and naive is a random walk, the wrong baseline for a series judged stationary. An earlier flag below 30 values is gone: Hyndman (2014) rejects that “magic number” – how many observations are enough depends on the model’s parameter count and on the noise – and the pre-flight fits no model to count, so the requirement moved to the fitted cards’ minimum sample. What stays is a fact of the module, with no citation: a seasonal series under two full cycles gets a line saying that nsdiffs and the Box-Cox λ estimate cannot run, since both are gated there.
Transform stack
Outlier replacement runs first, on the raw series at the configured frequency, and λ is then estimated on the cleaned series. forecast::tsclean is tsoutliers followed by interpolation of the flagged points and of every missing value; a point counts as replaced when its raw and cleaned values are both finite and differ by more than , the missing values it filled are counted apart, and a failure leaves the series untouched and is recorded rather than dropped. Running it before Box-Cox matters because a spike drags Guerrero’s λ: estimating λ on the cleaned series gives the power for the series the model will actually see.
Validation. On the airline table the stack replaces 7 points and then estimates λ = 0.071, where the pre-flight’s estimate on the raw series was −0.295.
λ is handed to the fitting function rather than applied beforehand, so the back-transform is mean-unbiased; the fits that take no λ transform locally. ets, auto.arima, Arima, naive, rwf, snaive and stlf accept lambda = with biasadj = TRUE, so their fitted values, forecasts and intervals return to the original scale corrected for the retransformation bias, while their likelihood-based numbers – information criteria, parameters, residuals – stay on the transformed scale, which is what the scale note on the card says. ma() and thetaf take no λ, and the periodogram and the breakpoint search need an already-transformed series, so those apply BoxCox by hand and invert it afterwards. A typed λ is one number for the run, used as typed for every series and group; blank estimates it per series. Below ten non-missing values, on a series with a zero or negative value – which the module does not shift – or when the estimate fails, the transform is skipped and the reason printed on the card, rather than an untransformed series being fitted in silence.
The stack carries no differencing step. ETS, theta and Holt-Winters model the level directly: a pre-differenced input hands them a series of increments whose level is noise, and their forecasts would have to be re-integrated by hand. ARIMA’s d performs the differencing inside its own likelihood, so it lives on that card, and the stack keeps only the shape transforms that compose cleanly with every method.
Cluster series takes outlier replacement alone, leaving missing points dropped, and growth mixture models take neither step. DTW’s and MSM’s local costs are absolute differences, so a single spike adds its whole size to every distance from its series; each series is therefore cleaned by tsclean before its normalisation, with its missing values left in place, so that a point the method drops is not turned into an interpolated value the distances would read as observed. Box-Cox does not apply: with λ blank it estimates a Guerrero λ per series, which would put the series compared on different scales, and a typed λ serves positive series alone, so its controls are disabled while the method is selected and the card says why. A growth mixture models each person’s few observations as observed – the outlier scan and Guerrero’s λ need more values than a person typically has, and a transform fitted per person would leave the trajectories on different scales – so the whole stack is disabled for it.
Analysis methods
Exploration
ACF and PACF run on the interpolated series at its configured frequency, through forecast::Acf and Pacf, with na.pass and a band at 1.96/√n. forecast::Acf extends the default lag range to two seasonal periods when that is longer than the usual 10·log₁₀(n), so the seasonal spike and its first echo stay on the correlogram – stats::acf would cut a monthly series off at lag 21; na.action = na.pass keeps a residual NA in place rather than closing the gap, since a stripped vector shifts every later lag. Lag 0 is omitted from the plot, as ggAcf omits it – it is 1 by construction and would only stretch the axis – and the band is the ±1.96/√n of the white-noise null, with n the observations used. Four non-missing values are the floor, below which the estimate is meaningless.
Validation. On the airline table the band is ±0.163 and the ACF runs to lag 24 – two periods rather than the 21 that 10·log₁₀(144) would give – with 0.948 at lag 1 and 0.760 at lag 12; the PACF’s −0.540 at lag 13 is the seasonal-difference signature.
The decomposition is STL with a periodic seasonal window and robust fitting, or stats::decompose; it needs a frequency above 1 and two full cycles, and the multiplicative form a positive series. s.window = "periodic" fixes the seasonal shape across cycles, which is what makes the seasonal strength read the configured season and nothing else, and robust = TRUE down-weights an outlying month so a spike lands in the remainder rather than in the trend; the classical forms are R’s own, the trend a centred moving average of one period. Fewer than two cycles leave no seasonal component to estimate – stl refuses outright – and a zero or negative value has no multiplicative share, so those runs are skipped with a coded note rather than failing inside R. A series with missing values is decomposed on the na.interp fill, which itself uses STL when the season allows and avoids the spectral artefacts of a plain linear fill; when that fill fails, a linear interpolation with end-value extension is the fallback, since stl takes no NA.
An anomaly point is a remainder more than three MAD from the remainder’s median, at an observed position. The remainder of a good decomposition is noise around zero, so its median and MAD – the constant 1.4826 scaling the MAD to a standard deviation – are a robust centre and spread that a few excursions cannot inflate, and three of them is the same cut the forecasting card uses on residuals; at least four finite remainders are needed for the spread to mean anything. A position whose value was interpolated carries the fill’s own fit, not data, so an excursion there is excluded as an artefact of the interpolation.
Validation. On the airline table the STL remainder’s excursions are the later summers, whose swing outgrows the fixed periodic season: 18 points are flagged, June to August of 1956 to 1960 among them.
Trend and seasonal strength are Hyndman’s and , floored at 0, on logged components for a multiplicative decomposition. The definitions are those of the tsfeatures package’s stl_features, so the numbers are comparable with the literature that uses them; the floor at 0 catches a remainder larger than the component-plus-remainder sum, which the formula would otherwise print as a negative strength. A multiplicative decomposition is additive in the log, and its remainder oscillates around 1 whatever the noise level, so the additive formula applied to the raw multiplicative parts returns a number pinned near 1 regardless of the data – logging the three components first restores the meaning.
Validation. On the airline table the STL reads trend 0.942 and seasonal 0.618; the pre-flight’s nsdiffs reads a seasonal strength of 0.94 on the same series because its own STL uses a different seasonal window, which is why the two numbers are not expected to agree.
The stationarity tests are tseries::adf.test, kpss.test with the selected null and pp.test in its Z(t_alpha) form, on the interpolated series, from eight non-missing values; a p outside the table prints as a bound. adf.test fits drift and trend and chooses its lag order as ⌊(n − 1)^(1/3)⌋, pp.test the same alternative with a Newey-West correction and its Bartlett truncation lag from the series length, and the Z(t_alpha) form is the t-ratio statistic, the only PP variant on ADF’s scale – hence PP (Zτ) in the table; kpss.test takes null = "Level" or "Trend" from the selector. All three read their p-values off interpolation tables and return the table’s endpoint when the statistic falls outside it, announcing the truncation only in a warning, so the runner captures the warning and the cell prints < 0.01 or > 0.10 rather than the endpoint as if it were exact, and stops re-rendering as a number. A < cell keeps its significance class; a > cell drops it from the p and the statistic alike, since a p known only to exceed the endpoint marks nothing significant at any level. Unit-root tests take no na.action, so the series must be complete: the interpolated copy is used, and when the interpolation itself fails the tests are skipped rather than run on a stripped vector, whose shifted index would bias every statistic. Below eight values adf.test’s lag order is 1 on a handful of differences, so the floor is shared by every test.
Validation. On the airline table ADF is −7.32 with lag 5 and PP −5.05 with lag 4, both < 0.01, and the level-form KPSS 2.74 with lag 4, also < 0.01 – every cell a bound, since the statistics lie far beyond the tables.
KPSS is judged at the assumption level and the unit-root tests at the main level, and the conclusion is worded on the row’s own null. KPSS holds “the series is stationary” – the data-are-fine null every assumption check holds – so it reads settings.assumptionAlpha like the normality and sphericity tests; ADF and PP hold the opposite null, so they keep the main significance level, which is what keeps the pair moving the same way when the user parts the two levels. The conclusion column is computed from the null code and the row’s own α and worded on that null – Unit root rejected, Stationarity not rejected – rather than as Stationary or Non-stationary: a single test concludes on its own hypothesis, and a non-rejection is a failure to find, not a finding (shared rule), so only a rejection is coloured, and the stationarity call itself is left to the joint reading below. The conclusion names no α, since the two levels the table mixes are disclosed once, in the note under it. A bounded p is read as the bound it is, never as the endpoint: > with the endpoint at or above α cannot reject, < with the endpoint at or below α must, and either bound with α beyond the same endpoint leaves the true p on either side of α, so the row reads Inconclusive with a note rather than a verdict the table cannot support. Comparing the endpoint as if exact would turn a KPSS > 0.10 at α = 0.10 into a rejection, and a < 0.01 at α = 0.001 into a non-rejection.
The joint reading pairs the unit-root verdict with KPSS in a 2 × 2 and refuses to pair when ADF and PP disagree. A single test can only fail to reject, so only the two opposite nulls together tell a stationary series from a sample too weak to decide: reject-and-not is stationary – trend-stationary when the KPSS null was trend, which points at detrending rather than differencing – not-and-reject a unit root, both a series neither description fits, neither an uninformative sample. When both unit-root tests ran and one rejects while the other does not, there is no unit-root verdict to pair, so the line says so rather than picking ADF over PP. A test left Inconclusive by a bounded p withholds the line, rather than the reading being decided under every resolution of that test: the case arises only at a level outside the tables’ 0.01–0.10 span, which is too rare to justify the second rule.
Validation. On the airline table ADF and PP reject and the level-form KPSS rejects too, so the line reads the both-reject case – a deterministic trend, a break or changing variance – which is the series’ growing swing around its trend.
The raw Ljung-Box uses Box.test at max(10, 2m) lags, capped at n/5. Hyndman’s rule for a seasonal series is 2m lags so the seasonal echo is inside the window, and 10 otherwise; the cap at a fifth of the series keeps the statistic’s χ² approximation sound on a short series. Its null is no autocorrelation, so it reads the assumption level. Neither outcome is coloured: serial dependence is what a forecast exploits, so a warning colour on a rejection – the line’s earlier style – read the very structure the modelling cards are there to use as a fault.
Validation. On the airline table the lag is min(24, 28) = 24 and Q(24) = 1606, p < .001.
The seasonal-period search is a stepwise Fisher’s g-test on an untapered, unpadded periodogram, with a Bonferroni bound for the p, a ±2-bin flattening per step, at most ten steps and no second adjustment. spec.pgram runs with taper = 0 and fast = FALSE because both break the i.i.d. exponential null Fisher’s g assumes – a taper pulls the ordinate degrees of freedom below 2, and zero-padding inflates the ordinate count while correlating neighbours; demean and detrend are on so the zero-frequency mass does not pass for a cycle. The p is the bound on Fisher’s exact alternating sum, which is numerically unstable for the long series the module may see (N ≈ 2500) and errs conservatively. At each step the largest remaining ordinate is tested, then its main lobe – two bins either side – is flattened to the periodogram’s median, since a cycle that is not an exact Fourier frequency smears across its neighbours and a single-bin removal leaves shoulders the next step rediscovers as a slightly shifted peak; the loop stops at ten steps or when a step’s p reaches 0.5, since the residual periodogram is then white-noise-like. Survivors are those with p at or below the significance level and a period between 2 observations and half the record – R returns every tested peak and the cut, with the harmonic walk over what survives, is made at display, so the table follows the significance level without a re-run; the g of a later row is measured on the flattened working periodogram, so it exceeds the row’s share of the untouched total, which is what the Share of variance column prints. The bound already controls the family-wise error over every ordinate, so applying the global p-value adjustment over the K peaks would correct the same family twice.
Validation. On the airline table 10 peaks are tested and 7 survive at α = 0.05: 12 months with g = 0.502 and p = 2 × 10⁻²⁰, then 6, 4, 3 and 2.4 months, and two weak long periods, 8 and 9.6, at p = 0.029 and 0.044. The 6-month row’s g is 0.404 on the flattened periodogram against a 15.3% share of the untouched one.
A row is a harmonic when its Fourier-bin interval overlaps a stronger, longer row’s interval divided by an integer of two or more. A non-sinusoidal cycle of period P puts real peaks at P/2, P/3, …, which the test rightly calls significant; the spectral resolution already reported as the period’s bounds is the tolerance the ratio deserves, so the check is an interval overlap rather than a rounding of P/p, and the strongest matching parent wins since the candidates are walked in g order. The row keeps its place in the table – it is a real peak – and is muted and annotated rather than dropped.
Validation. On the airline table 6, 4, 3 and 2.4 months are marked ×2, ×3, ×4 and ×5 of 12; 8 months is not, since 12/8 rounds to 2 and the 6-month interval [5.9, 6.1] does not reach the 8-month one [7.8, 8.2].
Smoothing
A moving average is forecast::ma(order = k, centre = TRUE), seeded from the seasonal period, floored at 2, and under Box-Cox transformed by hand and back on the median scale. ma applies the 2×m weighted form at an even order, so a window of 12 is the classical centred seasonal trend estimator and the curve spans m + 1 points; the seed is the active frequency because the window that removes a season is one season wide, and it falls back to 7 – a week of daily data – when no period is available. A window of 1 is the series itself and 0 is undefined, hence the floor. ma accepts no lambda, so the series is BoxCox-transformed before the filter and InvBoxCox-inverted after; a filter has no residual variance to feed the bias-adjustment formula, so the inverted curve is a median rather than a mean and the card says so. Fewer non-missing values than the window leave no complete window, so the fit is skipped.
Validation. On the airline table a window of 12 – the seed at frequency 12 – smooths 132 of 144 points, six lost at each end.
SES, Holt and Holt-Winters are forecast::ses, holt and hw with biasadj = TRUE, on an interpolated series, from 4, 5 and 2m observed values. The three are the ETS models ANN, AAN or AAdN, and AAA / MAM with their damped forms, and ets needs a handful of observations more than parameters – four for a level, five for a level and a trend, two full cycles for a season – below which it refuses to fit or returns a degenerate one. They cannot see through a missing value – they either refuse or collapse every smoothing parameter to its lower bound – so a series with blanks is filled with na.interp before the fit and the fill is counted on the transform-stack line, while the length gates count the values observed before the fill – on the filled length a 24-month series holding six values would pass Holt-Winters’ two-cycle gate and be fitted mostly on interpolated points; a moving average reports its NA windows honestly and is left alone. hw rejects a seasonal period above 24 outright and multiplicative seasonality on a Box-Cox-transformed series, and multiplicative indices are undefined on a series touching zero, so each of those is a coded skip before R is asked. The sigma reported is of the fitted model and the parameter table is model$par split into the four smoothing weights and everything after them, which ets stores as the initial states.
Validation. On the airline table SES estimates α = 0.9999 – a naïve forecast, RMSE 33.6 – and multiplicative Holt-Winters ETS(M,A,M) with α = 0.315, β = 0.007, γ = 0.598, σ = 0.041, RMSE 10.6 and MAPE 2.91%.
An exponential-smoothing fit that stops at its optimizer’s limit says so, naming 2,000 function evaluations. ses, holt and hw fit through ets, which estimates by Nelder-Mead and passes no maxit, so the cap is etsmodel()'s default of 2,000 function evaluations, and a fit that reaches it records a non-zero fit$fail without raising a warning – the card would otherwise print an unconverged fit as a finished one. The runner reads that code on the reported fit and a non-zero one adds a note under the fit summary naming the cap, a code other than 1 reported as it came; a moving average is a filter and has no optimizer to stop. The estimates printed are where the optimizer stopped, a fact about the numbers rather than advice, so the note stays with interpretation off and takes the warning colour only with it on – the app-wide iteration limit rule.
The residual diagnostics are checkresiduals’ Ljung-Box – 2m or 10 lags, capped at n/5, with fitdf the model’s degrees of freedom – a residual ACF banded at the confidence level, and a Shapiro-Wilk on at most 5,000 seeded residuals. Box.test subtracts fitdf from the lag to get its degrees of freedom and reports df ≤ 0 rather than erroring, so a lag that cannot clear forecast::modeldf – the number of parameters the fit estimated, the constant included on an ARIMA – skips the test with a note instead of printing a meaningless df. Residual NAs reach the tests un-stripped, since closing the gaps shifts every lag estimate. shapiro.test caps at 5,000 observations, so a longer residual vector is judged on a draw of 5,000 under settings.randomSeed, and the draw is reported beside the verdict; three residuals are its floor. Both tests hold the fitted model as their null – white noise, normal residuals – so they read the assumption level, and with interpretation on each row carries its decision alone – no consequence clause, since neither result refits the model or changes its order. A normality non-rejection reads No evidence against normal residuals, never “residuals appear normal” (shared rule).
Validation. On the airline table the multiplicative Holt-Winters residuals give Q(24) = 40.2 on 24 − 16 = 8 degrees of freedom, p = 3 × 10⁻⁶, and W = 0.990, p = 0.43; the automatic ARIMA’s give Q(24) = 41.8 on 23 degrees of freedom, p = 0.010, and W = 0.978, p = 0.021.
The minimum sample is Hyndman and Kostenko’s: one observation more than the model has parameters, with no margin above it. Hyndman & Kostenko (2007) give the sample size at which a model’s prediction intervals become finite – a theoretical floor that holds only “when there is almost no randomness” – and say there are no specific rules for the margin a noisy series needs above it, so the card prints the floor beside the observed count with that caveat and invents no margin. An ETS model counts its smoothing parameters – α, β with a trend, γ with a season, φ when damped – and its initial states – the level, the trend and m − 1 seasonal indices, the last fixed by normalisation – which gives the paper’s m + 5 for Holt-Winters, m + 6 damped; an ARIMA model counts its coefficients, a mean or drift and the Fourier terms included, plus the d + mD observations differencing consumes, the paper’s p + q + P + Q + d + mD + 1 when it has no mean term. The line warns below the floor, not at it, since the intervals are finite at the floor itself, and the count is the values observed in the raw column, never a fill. It replaced a fixed threshold of 30 values, a number Hyndman (2014) rejects as having no basis.
Validation. On the airline table multiplicative Holt-Winters ETS(M,A,M) needs 12 + 5 = 17 observations, the automatic ARIMA(0,1,1)(0,1,0)[12] 1 + 1 + 12 + 1 = 15, and harmonic regression’s five pairs with ARIMA(1,1,0) errors 11 + 1 + 1 = 13, all far below the table’s 144.
ARIMA and SARIMA modelling
Auto mode is forecast::auto.arima under the chosen criterion with stepwise and approximation both on by default and both off under Exhaustive search; ten non-missing values are the floor. The stepwise search with an approximated criterion is Hyndman and Khandakar’s default and finishes in seconds on a long series; scoring every order exactly regularly finds a lower criterion and costs minutes on a long or high-frequency series, so it is a switch rather than the default. The card names the search that ran, since under the default the criterion the walk ranked candidates on is an approximation and only the order it settles on is refitted by maximum likelihood, and in harmonic mode it says when K was fixed in the options rather than chosen by the criterion. The order is read back through arimaorder, which reports P, D and Q only on a seasonal fit, and the constant through the coefficient names – drift on a differenced series, intercept on an undifferenced one – so the heading can say with drift the way summary.Arima does. The search chooses d through ndiffs, so its KPSS level is passed as test.args = list(alpha = …) – the pre-flight’s clamped assumption level, pinned to the run in the same way, on the ARIMA card and in the forecast race’s Auto-ARIMA alike – and the card that suggests d and the card that fits it agree. Below ten values auto.arima has too few differences to choose an order on, and a manual fit’s neighbouring grid is meaningless.
Validation. On the airline table the default search returns ARIMA(0,1,1)(0,1,0)[12] with ma1 = −0.318, AICc 1020.7, RMSE 11.2 and MASE 0.258.
Manual mode is forecast::Arima with include.constant, its seasonal orders forced to zero at frequency 1, and a 3-wide neighbouring grid per axis with d and D held fixed. Arima estimates a seasonal term at period 1 without complaint – confounded with the non-seasonal one and reported back by arimaorder as if it were not there – so the seasonal row is disabled in the panel and zeroed in the runner when the frequency is 1. include.constant fits a mean on an undifferenced series and a drift on a once-differenced one, as auto.arima does, and nothing on higher differencing. The grid varies p, q, P and Q one step either way of the chosen order – {0, 1, 2} at a boundary of 0, so the comparison stays symmetric and shows whether moving up to 2 helps – and holds d and D fixed, since information criteria across different differencing are not comparable; that is 9 candidates on a non-seasonal frequency and 81 on a seasonal one, each fitted in full, which is why the grid runs only in manual mode and carries its own progress tick. The bounds – p, q ≤ 10; d ≤ 3; P, Q ≤ 5; D ≤ 2 – are the widget’s min/max, and a blank, decimal or out-of-range order is flagged in the field and blocks the run before anything is fitted, rather than being rounded or replaced by a default the user did not type.
Validation. On the airline table the airline model ARIMA(0,1,1)(0,1,1)[12] fits ma1 = −0.309 and sma1 = −0.107 at AICc 1021.2; 79 of its 81 neighbours fit, the best of them ARIMA(1,1,2)(1,1,2)[12] at AICc 1013.2.
An ARIMA fit that stops at its optimizer’s limit says so, naming 100 iterations. arima, which Arima and auto.arima both call, maximises the likelihood with optim’s BFGS and passes no maxit, so the cap is optim’s default of 100 iterations; a fit that reaches it returns code = 1 with a warning alone – possible convergence problem: optim gave code = 1 – which reaches the R console, never the card. The runner reads code on the fit the card reports – the order the automatic search settles on, the manual order, harmonic regression’s chosen fit – and a non-zero one adds a note under its fit summary naming the cap, a code other than 1 reported as it came. The estimates printed are where the optimizer stopped, a fact about the numbers rather than advice, so the note stays with interpretation off and takes the warning colour only with it on – the app-wide iteration limit rule.
ΔAICc is measured from the best row, not from the fitted one, and graded on Burnham, Anderson and Huyvaert’s continuum: plausible up to 7, equivocal to 14, implausible beyond. Burnham and Anderson’s Δᵢ is each model’s distance from the minimum, and the bands grade that distance, so a Δ taken from the fitted row would be negative for a better neighbour and its grade would read the wrong way; the fitted row stays in bold and carries its own Δ and grade, which is how a trailing fitted order shows how far behind it is. Burnham, Anderson & Huyvaert (2011) place plausible models at “Δ < perhaps four to seven”, implausible ones at “Δ > about 14” and the region between as equivocal (p. 25), and say models 2 to 7 behind “should rarely be dismissed” (p. 28); the app takes 7, the top of “four to seven”, as the end of the plausible band – the Δ > 2 cutoff is the one they call poor – and calls the best row Preferred – never “fits better”, since AIC ranks expected Kullback–Leibler loss, not fit. The harmonic-regression search’s Fourier terms table grades the Δ on whichever criterion chose K, each on its own source – ΔAIC and ΔAICc on this continuum, ΔBIC on Raftery’s (1995) grades of evidence against the model, which were written for a BIC difference – where it once read ΔBIC on the AIC bands too; the two scales are the shared rule, and the legend under the table names the one in use. The grade words are the citation’s only output, so the reference appears with interpretation on alone.
Validation. On the airline table the fitted airline model trails the best neighbour by ΔAICc 8.0 and reads Equivocal.
Coefficient intervals are estimate ± z × SE at the global confidence level, with the p from the normal; the training-set accuracy is forecast::accuracy on the back-transformed fitted values; and above period 24 the card warns. Arima reports var.coef, whose diagonal gives the standard errors, and the asymptotic distribution of the estimates is normal, so a z rather than a t is the right reference. accuracy() scores fitted(), which biasadj = TRUE returns on the original scale, so under Box-Cox the four accuracy rows are the only original-scale numbers on the card while the criteria, σ² and residuals stay transformed – the scale note. The seasonal period past which auto.arima quietly drops to seasonal differencing alone and a manual seasonal term stops converging is about 24 – Hyndman’s own ceiling for SARIMA – so with interpretation on the card warns there and names harmonic regression, its third specification, as the alternative.
Harmonic regression is auto.arima on K Fourier pairs with non-seasonal errors, its d fixed once before K is chosen and K searched over 1 … min(⌊m/2⌋, 10) by the card’s criterion. Hyndman and Athanasopoulos’s dynamic harmonic regression (FPP3, §10.5) passes forecast::fourier(y, K) as xreg with seasonal = FALSE, so the season belongs to the regression and the errors are an ordinary ARIMA, which works at any period – the reason the card offers it where SARIMA stops at about 24. Information criteria compare only fits with the same differencing, so d is chosen once – ndiffs by KPSS at the run’s clamped assumption level, the test auto.arima itself uses, on the residuals of the series regressed on the largest candidate’s Fourier terms – and every K is fitted at it; a fixed K skips the search and takes d from the regression on its own terms. ⌊m/2⌋ is the most pairs fourier() admits, the cap of 10 bounds the cost at about 2.5 s a fit in WebR on 150 observations, and the ceiling shrinks further until 2K + 10 observations remain. The cap can bind, and the card discloses it rather than searching on: on a weekly series with stochastic seasonality (n = 156, m = 52) AICc kept falling past K = 10 to K = 24 along a bumpy curve, while a smooth annual cycle settled at K = 4, so a ceiling hit mostly says the seasonal shape is jagged or drifting from year to year – which breaks the fixed-shape assumption itself – and the advice is a fixed larger K or STL, not a longer search. Below one full period or at frequency 1 there is nothing to fit. Young, Pedregal & Tych (1999) use the same name for a model with time-varying amplitudes, which this is not.
Validation. On the airline table the search runs K = 1 … 6 at d = 1 and keeps K = 5 with ARIMA(1,1,0) errors at AICc 1238.8, K = 6 trailing by 0.6; the training RMSE is 16.7 and the MASE 0.39, against the automatic SARIMA’s 11.2 and 0.26 – the price of one fixed seasonal shape on a series whose summer peak grows with the level.
Forecasting
The seven forecasters are naive, rwf(drift = TRUE), snaive, forecast(ets(…)), forecast(auto.arima(…)), a theta wrapper and stlf(robust = TRUE, s.window = "periodic"), each with lambda and biasadj = TRUE where it takes them, and each with a coded precondition. The set covers the baselines, the two automatic model families, the M3-winning theta method and the STL route for long or awkward seasons, with the prediction intervals asked at 80 and 95. stl needs two whole periods, snaive one and both a frequency above 1, and thetaf’s ACF step fails on any missing value the fill could not replace; each of those reports only an opaque error from R, so the runner checks the precondition first and the row reads Not applicable with the reason, while a fit that breaks on the data reads Failed. thetaf takes no lambda, so its input is Box-Cox-transformed by hand and the mean and fitted values are inverted with biasadj and a forecast variance recovered from the 95% interval’s half-width, so the theta forecast is mean-unbiased like the others on the same plot; and thetaf decomposes multiplicatively whenever its own seasonality test fires, which is undefined on a series crossing zero, so that test is mirrored and a non-positive seasonal series is adjusted additively instead.
Above a seasonal period of 24 harmonic regression joins the race as an eighth forecaster, its K re-chosen by AICc on every training slice. It is the ARIMA card’s automatic search, above, as one more fitted method, so the holdout, the cross-validation, the intervals, the ranking and the minimum-sample line apply to it unchanged, and its forecast carries the Fourier terms forward as fourier(y, K, h = h). K is chosen afresh on each slice, as Auto-ARIMA re-chooses its order, so the window being scored never shaped the model it scores. It runs only above 24, where SARIMA degrades and ets refuses a season: each K search costs about 25 s a series at 150 observations in WebR, a holdout and five origins some three minutes, a price a monthly or quarterly race would pay for a season the other methods already model.
The race checks each method’s full-data fit for the optimizer’s limit, not its validation refits. ETS, STL + ETS – whose seasonally adjusted series ets fits – and Theta, through the SES fit thetaf makes, estimate under ets’s 2,000 function evaluations, and Auto-ARIMA and harmonic regression under arima’s 100 BFGS iterations, the two caps the smoothing and ARIMA cards read; ets stops at its cap without a warning, so a race that never read the code would rank and draw an unconverged fit as if it were final. Each full-data fit – the one the plot draws and the forecast values come from – is read, and a non-zero code gets one note naming the method and the cap. The holdout and cross-validation refits only score a method, and are not read. Naive, Drift and Seasonal naïve run no optimizer.
The holdout is the last min(h, ⌊0.2 n⌋) observations of a series with 30 non-missing values and a training slice of 10, scored on its finite actuals, with the transform stack refitted on the training slice. A fifth of the series is the usual ceiling on a validation window, and the horizon is what the forecast will actually be asked for, so the smaller of the two is scored; below 30 observations any window worth scoring leaves too little to fit on, so the block is skipped and the validation line names the gate. The window is positional while the gate counts non-missing values, so the errors are taken on the finite actuals inside it. The stack is refitted on the training slice because an outlier replacement or a λ estimated with the window in view would leak the window into the fit it is meant to test.
Validation. On the airline table the holdout is min(12, 28) = 12 months, the year 1960; Auto-ARIMA scores RMSE 23.9 and MASE 0.61 on it.
Rolling-origin cross-validation places its origins a full horizon apart, runs min(requested, ⌊(n − 10)/h⌋) of them, and scores only the origins every fitted method reached. Disjoint windows keep any observation from being scored twice, so the pooled error is an honest average rather than an over-weighted recent stretch; each origin therefore costs a horizon of length, and the count the series can support is what the runner uses, reported as a of n when it is fewer than asked. A method that fails at some origin would otherwise leave that origin in the pool for its rivals and out for itself, so an origin scores only when every method in the race forecast it, and a method that reached no origin at all leaves the cross-validation rather than emptying the shared set. The maximum of 20 origins bounds the cost – 20 × 7 fits per series – on the headless path as well as in the widget.
Validation. On the airline table five origins a year apart all score: Auto-ARIMA RMSE 27.0 and MASE 0.71, ETS 30.5 and 0.81, Theta 33.3 and 0.90, seasonal naïve 42.5 and 1.33, STL + ETS 60.8, Drift 80.8, Naive 90.4 and 2.30.
MASE divides by the in-sample seasonal-naïve MAE of the slice the fit trained on, MAPE is undefined unless every scored actual is positive, and one metric ranks the whole series – CV RMSE, else holdout RMSE. Hyndman and Koehler’s scaling uses the training-set naïve error at lag m – lag 1 on a non-seasonal frequency – so a MASE below 1 means better than repeating last season on data the method also saw; a zero denominator leaves it undefined. MAPE divides by the actual, so an actual at or near zero – within 10⁻⁶ of the largest actual – makes it undefined rather than enormous. CV and holdout score different data, so ranking on one metric for the whole series is the only comparison that holds: CV RMSE whenever at least one origin scored, holdout RMSE otherwise, a method missing the metric sorting after every scored one and a method that never fitted sorting last whatever the metric holds; the rank header names the metric so the order is never read as a cross-validated one when it is not. Ranks are given on the printed scores, so methods whose scores print alike share a rank (1=) – an order the reader cannot see in the table is not claimed – while the method made active at first is still picked on the exact value, and a note says so when that pick broke a printed tie.
A MASE is marked against the naive rows scored in its own validation, not against 1. The scale is the training slice’s in-sample naïve MAE, a one-step error, so a MASE below 1 sets errors at a horizon of h against one-step errors, a bar that says little about a method’s rank at that horizon; the like-for-like benchmark is the naive forecasts scored on the same windows (Hyndman & Koehler 2006, §4). So with interpretation on each validation block – holdout, cross-validation – takes the lower MASE of the Naive and Seasonal naïve rows that scored in it, and a method whose MASE is below that one, and so below both, prints green; a block in which neither naive row scored marks nothing rather than falling back to 1. The note under the table, which cites them, appears with the mark alone.
In-sample anomalies are residuals more than three MAD from their median, against the raw series, from five finite residuals. The residuals score the raw observations rather than the transformed series, so a point tsclean replaced stays eligible for a flag – the flag says the model saw the observation as unusual, whatever the stack did to it – and the 3·MAD rule is the exploration card’s, so the two markers agree on what an excursion is.
Future timestamps step in calendar months when the spacing is a whole number of months within tolerance, from the anchor rather than cumulatively; every other cadence extends linearly. A monthly spacing is 28 to 31 days and a constant-millisecond extrapolation drifts off the month boundaries within a year, so a spacing that is a whole number of 30.44-day months – within 3% of it, floored at two days, which absorbs month-length jitter at one month while still rejecting a 28-day four-weekly cadence – is walked in calendar months. Each step is measured from the anchor and clamped to the target month’s length, because a cumulative walk overflows on an end-of-month anchor – 31 January plus one month is 3 March – and skips a period outright. The prediction intervals are fixed at 80% and 95%, the two levels every forecast method returns by default and the two the plot and table can show without a level control of their own.
Spectral / change-points
The periodogram is spec.pgram with a 10% taper, detrended, on the true Fourier grid, smoothed for the plot by a modified Daniell kernel of span from √n; its table lists up to five peaks of the exploration card’s stepwise Fisher’s g test, run on the raw series. fast = FALSE keeps the true Fourier grid: zero-padding to a highly composite length invents bins below 1/n, periods longer than the record itself. The taper is the standard 10% split cosine, which reduces leakage from strong peaks into their neighbours; the raw periodogram carries about two degrees of freedom per ordinate and reads as a noise comb, so a modified Daniell smooth of span max(3, 2⌊√n/4⌋ + 1) is drawn beside it – beside, not instead, since Fisher’s g is defined on the raw ordinates – and its bandwidth is stated under the plot. The table is the seasonal-period search’s, from one R helper both cards call: its peaks in the order the search tests them, up to five, with their g and p, so a peak cannot read periodic on one card and not on the other – the table’s Periodic component / Not distinguishable from white noise is that p against the main level, the exploration card’s own cut, and the second wording says the test could not tell the peak from noise, not that no cycle is there. An earlier table ranked local maxima by power and gave each its share of the whole spectrum, which tests every peak after the first as if it were the largest, against a total still holding the larger ones – conservative, and at odds with the exploration card from the second row on. The test reads the raw column before the transform stack, as the exploration card does, because a cleaned or Box-Cox-transformed spectrum would give the same peak another p on the two cards; the plot keeps the transformed series, a note says so when the two differ, and the power column reads the tested untapered spectrum, so a row’s power, g and p come from one spectrum. When the gaps cannot be interpolated the test is skipped on both cards, the plot drawing a straight-line fill. One or two observed cycles are not evidence of a period, so the table stops at half the observed count, not the filled length, while the plot keeps the whole spectrum. Detrending a constant series leaves an identically zero spectrum in which every bin ties, so that case is skipped rather than ranked; eight observed values are the floor for a spectrum with any resolution.
Validation. On the airline table the 72 ordinates are smoothed at span 7, bandwidth 0.0125 cycles per observation; the table lists 12 months (g = 0.502, p = 2 × 10⁻²⁰), 6 (g = 0.404, p = 8 × 10⁻¹⁵), 4, 3 and 2.4 – the first five rows of the exploration card’s search, with the same g and p.
Breakpoints are strucchange::breakpoints(y ~ 1) or (y ~ t) with h the minimum segment fraction, the number of breaks by BIC, and confint intervals clamped to the record; segment means are taken on the untransformed series, and twenty observed values are the floor. y ~ 1 is the pure mean-shift model and reads any trend as a staircase of level steps; y ~ t is the segmented-trend form. breakpoints selects the number of breaks by BIC over the dynamic-programming search, and h caps how many can be placed: the widget’s 5 to 45% keeps room for at least two segments, since the search caps out well before half the record, and the resulting length in observations is printed so a clamped value is visible. confint errors outright when no break was found, hence the separate no-break branch, whose line says there is no evidence of a change rather than that the series is stable – a search that places no break has failed to find one, not shown there is none (shared rule); its interval can run past either end of the record and is clamped there. A mean taken on the Box-Cox scale and pushed back through InvBoxCox is a median, not the mean of the data the plot draws, so the segment means are read off the untransformed interpolated series. Below twenty values the segments at any allowed h hold too few observations to estimate a level or a line. strucchange drags zoo, sandwich and lattice in with it, so it is loaded only when the search is on, and a load failure degrades to a warning on the breakpoint section while the periodogram still runs.
Validation. On the airline table the mean-shift model at h = 15% – a minimum segment of 21 observations – places five breaks after observations 26, 50, 77, 98 and 123, the first dated within [24, 28], with segment means 134, 188, 239, 318, 379 and 464; the level-and-trend model places none.
The length gates count observed values, and the interpolation is counted on the transform-stack line. na.interp fills every gap once two real values exist, so a 60-row series holding four real values would pass an eight-value gate on its filled length; the gates read the pre-imputation count instead, the fills join the transform-stack record rather than passing for observations, and the closing line names both counts. The count is taken from the raw column before the transform stack, on this card as on smoothing, ARIMA and the forecast race – their minimum-sample lines, the hold-out gate and its length included – because Replace outliers runs tsclean, which fills every gap as well, and a count taken after it would read a gappy series at its full length.
Nonlinear dynamics
Both sections refuse a series with missing values, and recurrence quantification takes 30 to 5,000 observations. An interpolated stretch is smoother than the data around it, so it recurs with itself along short diagonal lines and, once symbolised, forms regular runs – a fill would manufacture the determinism and the low complexity the two sections measure. Thirty observations is the app’s floor rather than a sourced minimum: below it a delay embedding leaves too few points for line counts to carry information. The ceiling is memory: the radius is an order statistic of every pairwise distance, n²/2 doubles – about 100 MB at 5,000. The transform stack runs before both sections on a numeric series, Box-Cox applied locally as on the spectral card; a power transform is monotone, so it reshapes the recurrence distances but leaves every Lempel–Ziv symbol as it was. A categorical series skips it, since no transform of category labels means anything.
The delay is a quarter of the dominant period when the series’ autoregressive spectrum peaks well clear of frequency 0, and otherwise the first minimum of the average mutual information, else the first zero of the autocorrelation, estimated on the z-scored series. Fraser and Swinney (1986) place the delay at the first minimum of the mutual information between the series and its lagged copy: the coordinates are then as independent as they can be while still describing one trajectory, and unlike the autocorrelation the mutual information sees nonlinear dependence. nonlinearTseries::timeLag computes it (technique = "ami", selection.method = "first.minimum"); when the mutual information has no minimum in its lag range, the first zero of the autocorrelation – the linear criterion – stands in. A series with neither gets no delay rather than an arbitrary one, and the card asks for a typed τ. The first minimum is a prescription for a curve with one clear minimum: Abarbanel et al. (1993, pp. 1345–1346) fall back on a ratio rule where the curve has none, and Wallot and Mønster (2018, p. 3) note that it “may not have a local minimum” at all. A noisy oscillation’s curve has too many – it drops at lag 1 and wanders on its way down to its real minimum near a quarter period, and timeLag takes the first lag at which it turns up, so τ comes out at 1 or 2. The module therefore first fits an autoregressive spectrum (stats::spec.ar, its order by AIC – Akaike 1969), and when the spectrum peaks at a period P of at most half the series, at least 4 times its height at frequency 0, it takes τ = round(P/4): the heuristic to “set τ to be quarter of the most dominant period in the signal”, which Tan et al. (2023, p. 8) attribute to Judd and Mees (1998). The gate and its ratio of 4 are the app’s own, with no source: a persistent or chaotic series without a dominant cycle peaks at frequency 0 or barely above it and keeps the mutual-information rule unchanged, and 4 is where white noise seldom passes while noisy oscillations of 250 points do. On a series of about 100 observations – two or three cycles – the gate often stays shut and the mutual information sets the delay, which the card does not flag. Fisher’s g, the spectral card’s test, cannot gate: it tests against white noise, which any persistent series rejects. The parameter table names the rule that set τ, and for the spectral rule the period it quartered.
The embedding dimension is the first m at which Cao’s E1 levels off, false nearest neighbours taking over when it does not, and each is reported beside the other. Cao (1997) defines E1(d) = E(d + 1)/E(d) from the mean growth of nearest-neighbour distances as a dimension is added; it stops changing once d unfolds the trajectory, and unlike false nearest neighbours it needs no distance threshold tuned to the data. The pick is nonlinearTseries::estimateEmbeddingDim’s rule – the first d at which E1 reaches 0.95 and changes by less than 10% to the next – over d up to min(15, n/2τ): the package’s own ceiling of 15, or the dimension at which one embedded point spans half the series. False nearest neighbours set m only when E1 does not level off, and otherwise stand beside Cao’s pick, since the two disagreeing says the reconstruction itself is uncertain; when neither settles within the cap, the recurrence analysis is skipped rather than run at an arbitrary m. Cao’s ratio divides by the nearest-neighbour distance, so the z-scored series receives a tie-breaking jitter under the reproducibility seed, as estimateEmbeddingDim adds one – a millionth of the smallest gap between its values, which changes no continuous series – and a point whose neighbour coincides with it is left out of the mean, as tied neighbours are.
False nearest neighbours are Kennel, Brown & Abarbanel’s (1992) test, read off Cao’s neighbour search, and their dimension is the first below 1%. A point’s nearest neighbour at d is false when the (d + 1)-th coordinate puts it more than R_tol = 15 times its distance at d away (Eq. 4), or when its distance at d + 1 exceeds A_tol = 2 standard deviations of the series (Eq. 5) – the tolerances of the paper’s own applications (pp. 3406, 3409), the second being what keeps noise from passing for a low-dimensional embedding. The fraction is over points, each with its one nearest neighbour, as the paper records it – “the proportion of all orbit points which have a false nearest neighbor” (p. 3405) – and the dimension is the first at which it falls below 1%, the reading the paper gives for data (p. 3407). Noise levels off well above that, so a series whose fraction never gets there has no false-neighbour estimate rather than the lowest dimension tested. The neighbours are Cao’s – maximum norm rather than the paper’s Euclidean distance, outside the same autocorrelation-time window, tied ones left out – so the two estimates differ only in what they read off one search. tseriesChaos::false.nearest is not used: it counts every pair within a fixed radius rather than each point’s nearest neighbour, and tests the squared ratio, so its default rt = 10 is R_tol = 3; at n = 500 its pairs run out by m = 3–4. Nor is crqa::optimizeParam’s pick, the last dimension at which the fraction falls by a tenth of its value at m = 1, which no source on the method supports.
Validation. At τ = 1 the logistic map has no false neighbour at any m and the Hénon map none from m = 2, so they settle at their true dimensions, 1 and 2, while AR(1) and Gaussian noise stay above 1% at every dimension tested and get no estimate.
Ties are not broken: on a tied series the jitter is zero, as in the package, and the estimates are flagged rather than repaired. estimateEmbeddingDim sizes its jitter as a millionth of the smallest gap between the sorted values, which is 0 once two values are equal, so it breaks no tie; getCaoParameters then leaves out of E any point whose neighbour lies at distance 0, and the module does the same, leaving those points out of the false-neighbour fraction too and reporting their share as Tied neighbours (%). No repair makes m meaningful on a lattice. Sizing the jitter to the smallest positive gap breaks the ties below every real difference, but each formerly tied pair then lies about 10⁻⁷ apart with a ratio near 10⁶, which dominates E, so E1 collapses until coincident neighbours run out and m follows the data’s resolution rather than its dynamics. Taking each point’s nearest neighbour at a positive distance keeps every point, but several neighbours then lie equally near, and which one is taken decides where E1 settles. So the computation stays the package’s, and with interpretation on a note says the dimensions both methods pick are unreliable once more than half the points’ nearest neighbours are tied at m = 1.
Validation. On series of 500 points at the module’s τ, window and cap, the logistic map rounded to one decimal has 100% of its points tied at m = 1 and 97% at m = 2, and Poisson(3) noise 99.8%, 97% and 79% at m = 1–3; continuous series tie nowhere, and the jitter leaves them unchanged. Sizing the jitter to the smallest positive gap moved m from 8 to 12 on a rounded AR(1) and to 11 on Poisson noise. With the nearest neighbour taken at a positive distance, the rounded logistic map’s m ranged over 1, 2, 9 and 10 as the first, the last or a random one of the equally near neighbours was taken, against 2, 9 and 10 under the package’s computation.
Cao’s and the false-neighbour searches skip neighbours closer in time than the autocorrelation time, the first lag at which the autocorrelation falls below 1/e. Without that exclusion an autocorrelated series’ nearest neighbours are mostly its own time neighbours, so E2 dips below 1 on a stochastic series and E1’s pick moves with it. Mannattil et al. (2017, p. 5) impose “a minimum temporal separation (equal to the autocorrelation time …) between the near neighbors” when they apply Cao’s statistics; they leave the autocorrelation time undefined, and the app takes the e-folding lag, which the sample autocorrelation always reaches, since it sums to −1/2 over lags 1 … n − 1. nonlinearTseries::getCaoParameters has no window, so Cao’s E and E* are the module’s own R: maximum norm, as Cao specifies, neighbours from the package’s k-d tree at k = 2w + 2 – which always holds one point outside the window – and a brute-force search past 64. False nearest neighbours are read off the same search, so they skip the same points. This exclusion is separate from the recurrence analysis’s own Theiler window.
Validation. At window 0 the module’s E and E* match getCaoParameters to 4 × 10⁻¹⁶. Without the window, an AR(1) with φ = 0.95 at τ = 10 has a time neighbour as its nearest neighbour at 21% of points at d = 1 and 99% at d = 8. In the app’s own simulation – 20 runs per cell, at the mutual-information delay – the window moved Cao’s pick of m in 10 and 9 runs for AR(1) series with φ = 0.8 and 0.95 at n = 250, in 9 and 11 at n = 1,000, and in 6 and 3 for a noisy sine at the two lengths, while a jitter-only control moved it in none of 120; the shift has no fixed direction (−0.7 on average at φ = 0.8, +0.9 at φ = 0.95, n = 1,000), and the median E2(2) at φ = 0.95 rose from 0.84 to 0.98.
The radius is the order statistic of the pairwise distances that puts the recurrence rate at its target – 5% by default – on the z-scored series. A distance fixed in advance would give each series its own density of recurrences, and DET, LAM and the line lengths all move with that density; fixing the rate instead holds the density constant, so the measures compare across series and the radius becomes a reported by-product. The target is met directly rather than searched for: the k-th smallest Euclidean distance between embedded points outside the Theiler window is the radius at which crqa – counting distances up to the radius, in both triangles, over the pairs the window leaves (rr_denom = "valid") – reports the target rate, where crqa::optimizeParam searches a band iteratively. Every distance tied at that order statistic counts, so a discrete series can overshoot the target, which the card notes.
With several groups, auto-recurrence by default shares one delay, one dimension and one radius across them – the medians of the groups’ own estimates, and the radius that sets their pooled rate to the target. A comparison of groups by recurrence measures is a comparison at one set of parameters: Wallot and Leonardi (2018, p. 19) advise that “a single radius parameter r should be picked for the whole sample”, and embed the whole sample alike. Estimated per group, the parameters move with each group’s own dynamics – in the app’s own simulations of noisy oscillators the automatic delay differed between conditions, and under one shared embedding the sign of DET’s difference between them reversed – so a difference in a measure can be a difference in the settings. Each group’s delay is first estimated by the delay rule and the shared delay is their median, rounded half up; each group’s dimension is then estimated at that shared delay, as multidimensional recurrence does, so the dimensions being pooled all describe one lag. The median, the rounding and the pooled rate are the app’s own rules: the one radius is the distance that puts the rate pooled over every group’s pairs outside the Theiler window at the target, so each group’s own rate becomes a result rather than the target. The sharing runs across the groups of one series and never across different series, which are different observables. A group whose own estimate failed takes the shared one rather than leaving the comparison, and the parameter table keeps each group’s own estimates beside the shared ones. Off, each group keeps its own parameters, as with one group.
A categorical series recurs on an exact match of categories – radius 0, neither z-scored nor embedded unless τ or m is typed – and its recurrence rate is read from the data, not targeted. Category codes are labels, among which “no meaningful `distance’ norm among categories can be defined” (Coco et al. 2021, p. 2), so two time points recur when, and only when, they hold the same category, and Wallot and Leonardi (2018, p. 19) set the radius “to 0 or to a tiny value” for categorical data. Exact-match recurrence on symbol sequences is Orsucci et al.'s (1999), who applied it to text; Dale, Warlaumont and Richardson (2011, p. 2) carried it to nominal cross-recurrence of behavioural streams, “simply setting the radius, ε, equal to zero so that only exact matches will be considered instances of recurrence”, and a categorical run cites both. Z-scored and embedded as numbers, the codes would make the distance between two categories depend on how they happen to be numbered, and their ties at the radius would push the rate above any target. At radius 0 the rate is fixed by the data, so there is no target to meet and no sensitivity table to draw. The surrogate test of E2 is not run, since its IAAFT surrogates and Cao’s E2 read numeric values. A typed τ or m embeds the series, and two embedded points then recur only when every coordinate matches.
The Theiler window defaults to the series’ autocorrelation time and leaves out every pair at most that many steps apart, a typed window meaning the same. Points beside the main diagonal recur because neighbouring observations are alike, and they form long diagonal lines that reflect that tangential motion rather than a return to a state: Marwan (2011, p. 7) warns that without “an appropriate corridor along the LOI (the Theiler window), Lmax will be artificially large”, and Kraemer and Marwan (2019, p. 10) set the window “in the order of the decorrelation time or the delay”. The module takes the decorrelation time to be the autocorrelation time it already uses for the neighbour exclusion – the first lag w at which the autocorrelation falls below 1/e – floored at 1; Theiler (1986) introduced the exclusion itself. Kraemer and Marwan exclude |i − j| ≤ w, and crqa’s tw excludes |i − j| < tw, so the module passes tw = w + 1 and reports w; a typed window is passed the same way, so a typed 6 gives what an automatic 6 gives, and 0 leaves out the main diagonal alone – every point trivially recurs with itself. A categorical series’ codes have no autocorrelation worth the name, so its window is the autocorrelation time of its category indicators, pooled: the autocovariances of each category’s 0/1 indicator summed, and divided by their sum at lag 0. At two categories this is the series’ own autocorrelation, and like it it sums to −1/2 over lags 1 … n − 1, so it always falls below 1/e; the pooling is the app’s own rule, as no source sets a window for nominal series. Under Same embedding and radius for all series every group takes one window, the largest of the groups’ own, for the pooled radius search and for each group’s measures, so every group’s rate counts the same pairs; a group too short for it is refused rather than given a narrower one.
The minimum line length is 2. A line of two points is the shortest run that is a line at all, and crqa’s own default for diagonal and vertical lines alike.
Counting the main diagonal is an opt-in that leaves out no pair – crqa’s tw = 0 – and disables the Theiler window rather than reading it. Every embedded point recurs with itself, so the main diagonal – the line of identity – is a line as long as the series whatever its dynamics: counted, it adds one recurrence per point to RR and one line of that length to DET, L, Lmax and ENTR, recurrences that carry nothing about the dynamics, which is why Marwan et al. (2007) leave it out of the quantification and why the option is off by default and noted on the card with interpretation on. A window of any width w ≥ 0 excludes |i − j| ≤ w, the diagonal included, so the two settings contradict and the window is not read while the diagonal is counted. The radius search, the measures and the pseudo-pair and pseudo-group tests then count the same cells, so the target rate is met over the matrix the measures read and the real and pseudo sets are compared on one footing; in the shared modes every group counts the diagonal, as every group shares one window otherwise. Cross-recurrence has no line of identity to count or leave out, so the option is not offered there.
The recurrence plot draws every pair up to 1,000 embedded points and b × b blocks above; the measures always read the full matrix. At 5,000 embedded points the matrix holds 25 million cells, more than a plot can show pixel for pixel, so the picture – and only the picture – aggregates: each block is shaded by the share of its pairs that recur, relative to the densest block, which keeps the structure visible at any recurrence rate, and the note under the plot gives b and the darkest share.
The key measures are re-run at target rates of 2, 5 and 10% with the embedding and the Theiler window held, and with several groups the table says whether their order changes. A fixed rate makes the measures comparable across series, but which rate is a choice no source settles: Marwan (2011, p. 2) recommends “to study the sensitivity (or robustness) of the results of the recurrence analysis on the parameters”, and Wallot and Leonardi (2018, p. 19) accept a comparison of samples when the recurrence measures, “or at least the direction of the effects observed in those measures”, converge as the parameters are varied. The module varies the radius alone – the delay and the dimension have their own estimates and diagnostics on the card – over three rates around the 5% default, at the cost of three more radius searches and measure runs per series. With several groups what is checked is the direction, not the size: a measure on which two groups swap places between two rates reads Changes, and the note under the table says which group is higher then depends on the radius. RR enters the comparison only under one radius for all groups, where it is a result; with a radius per group it is the target itself. Between series the rows follow the same reasoning: cross-recurrence, whose overall rate the radius sets, reads its profile’s rate at lag 0, its peak and the peak lag in RR’s place, and joint recurrence reads JRCI and JRR, which the series’ own radii do not fix. DET, LAM and TT are the rows because in the app’s own simulations they were the measures whose readings held as the settings varied, while L, Lmax and ENTR moved with the delay and the window. A categorical series has no target rate, so no table.
Below 250 observations the card notes that the recurrence measures are unstable, a threshold that is the app’s own. No source sets a minimum length for these measures – Wallot and Leonardi (2018, p. 18) suggest that for “nominal data or data with strong, distinctive dynamics – as few as 10–30 data points might already be sufficient” – so the module’s floor stays at 30 observations, and the note marks where, in the app’s own simulations of autoregressive, oscillating and categorical series, the measures stopped depending on the settings: at about 100 observations Cao’s method and false nearest neighbours often left the dimension unsettled, and a comparison between groups kept its direction across delay, dimension and target rate in only some of the settings tried, while from 250 DET, LAM and TT kept it in nearly all. The note is a judgement, so it appears with interpretation on alone; the card already states the length.
The surrogate test of E2 is Ramdani et al.'s variation coefficient VE2, ranked two-sided among IAAFT surrogates – 39 at 5% or 199 at 1%. Cao (1997, p. 45) states that for random data E2(d) “will be equal to 1 for any d” and that deterministic data have some d with E2(d) ≠ 1, but gives no band for a finite sample, and estimateEmbeddingDim judges nothing. Ramdani, Bouchara & Casties (2007, p. 5) summarise E2 by VE2, the ratio of its standard deviation to its mean over d = 1 … 9, and test it against surrogates, warning (p. 12) that VE2 alone “cannot be used to obtain reliable information on the nature of the underlying process”. Their null is a Gaussian linear process; its IAAFT surrogates (Schreiber & Schmitz 1996) keep both the amplitude spectrum and the value distribution, so the module iterates its own until the rank order stops changing – nonlinearTseries::FFTsurrogate is plain phase randomisation, which keeps the spectrum but not the values. A two-sided rank test at level α needs 2/α − 1 surrogates: 199 at α = 0.01, Ramdani’s level, or 39 at 0.05, the setting of Mannattil et al. (2017, pp. 5–6) and the default; the series is rejected when its VE2 lies outside the surrogates’ range. Each surrogate is embedded with the series’ τ and neighbour exclusion, so it differs from the series only in the structure the null denies. Inside the range the card says the series is consistent with linear correlated noise – the reading Cao (1997, p. 46) gives an AR(1), whose E2 stays near 1; above it the structure goes beyond linear noise and needs no note; below it E2 varies less than in the surrogates, a side the method gives no reading of, and the card’s line says only that. The test replaced a fixed tolerance – E2 within 0.1 of 1 at every dimension – which had no source and depended strongly on the length.
Validation. In the app’s own simulation the old tolerance fired its “looks stochastic” note on white noise in 1% of runs at n = 40, 55% at 240 and 98% at 1,000. Under the test, 2 of 30 linear-noise series were rejected at a nominal 5% in prototyping; an AR(1) with φ = 0.9 at n = 500 lies inside its surrogates’ range, and a Hénon series of 400 points lies above all 199 of its surrogates.
The test needs 250 observations and nine values of E2, and has no ceiling but the Off option. Ramdani et al. validated it on series of 1,000, 500 and 250 points and state no minimum (p. 5); 250 is the shortest length they tested, and the one at which their single failure occurred (p. 11), so the module goes no shorter. VE2 reads E2 at d = 1 … 9, which needs E* up to d = 10, and the dimension cap min(15, n/2τ) reaches that only when n ≥ 20τ; a shorter series is skipped with a line rather than tested over fewer dimensions than the statistic is defined on. Within the card’s 5,000 observations the test has no upper limit, so Off is the way to skip its cost.
Validation. One Cao pass takes about 0.2 s at n = 1,000 and 1.8 s at 5,000 in the browser, so 39 surrogates take about 70 s and 199 about 6 minutes per series at 5,000.
Cao’s E1 and E2, false nearest neighbours and the test run whether m is estimated or typed. VE2 reads E2 across nine dimensions whatever m the recurrence analysis then uses, so a typed m leaves the test’s question unchanged, and the card keeps the diagnostics table, the test and both estimates beside the typed m. False nearest neighbours cost nothing beyond Cao’s search, which they are read off, so they run whenever it does.
The test keeps the whole series; Ramdani’s end-point matching is not applied. IAAFT treats the series as periodic, so a mismatch between its first and last values or slopes puts spurious high-frequency power into every surrogate, which then differs from the series for a reason unrelated to determinism. Ramdani et al. (pp. 5–6) guard against it by testing the sub-series that minimises Schreiber and Schmitz’s (2000) end-point mismatch, (γjump + γslip)/2. Measured, the test holds its level on the whole series, on the worst-matched cut and under strong skew alike, so the module does not give up a share of the series for a protection that buys nothing here.
Validation. In the app’s own simulation – AR(1) series with φ = 0.95 and, for skew, the exponential of an AR(1) with φ = 0.9, each replicate drawn at twice the length and cut three ways: the first n, the end-matched segment and the worst-matched one – the test at 39 surrogates (nominal 5%) rejected 3%, 3% and 5% of series at n = 250, 5%, 4% and 4% at n = 500 (6% on the first n and on the matched cut under skew), and 0%, 4% and 2% at n = 1,000; at 199 surrogates (nominal 1%) and n = 500 it rejected none of 98 worst-matched cuts and none of 100 skewed series.
Cross-recurrence embeds both series at one delay and one dimension, the larger of their own estimates, uses no Theiler window and sets the radius over every pair of points. A cross-recurrence plot compares the states of two series (Zbilut, Giuliani & Webber 1998; Marwan & Kurths 2002), so both must live in one phase space: Marwan et al. (2007) advise that “if the embedding parameters are estimated from both time series, but are not equal, the higher embedding should be chosen”, Coco et al. (2021) that the delay and the dimension “have to be the same too”, and Wallot and Leonardi (2018, p. 10) that “over-embedding is less problematic compared to under-embedding”. Each series’ own delay and dimension come from the single-series rules, the larger of each is taken, and both series are z-scored, since they need not share a scale. No Theiler window applies: the plot has no line of identity – no point recurs trivially with the other series’ point at the same time – and its synchronous diagonal is the stretch the method reads, so Coco and Dale (2014, p. 10) set the window to 0 for cross-recurrence, where crqa’s default window would blank that diagonal. With no self-pairs to leave out, the radius is the order statistic of all the cross-distances that puts the rate at the target. A categorical and a numeric series share no space and are refused; two categorical series cross-recur on an exact match, as Dale, Warlaumont and Richardson (2011) apply it. With several groups, each pair keeps its own delay, dimension and radius, a departure from the one set for the whole sample that Wallot and Leonardi (2018, p. 19) recommend: in the app’s own simulations, per-pair parameters gave the cleanest lag-local statistics at about the power of shared ones, while one radius pooled over the pairs mixed the series’ own persistence into them.
The cross-recurrence card leads with the diagonal recurrence profile – its rate at lag 0 and its peak – over ±10% of the embedded points by default, and reads the leader from the asymmetry q(τ). The profile RR_τ, the recurrence rate on the diagonal τ points off the synchronous one, and its asymmetry q(τ) = (RR_τ − RR_−τ)/2 are Marwan et al.'s (2007), who note that q(τ) is “able to determine which system leads the other”; the module counts both on the sparse cross-recurrence matrix rather than through crqa::drpfromts, which builds the dense matrix and took about a hundred times longer for the same profile. The sign follows crqa 2.1.0 – positive when the second series follows the first – where older versions of the package, and the figures of Wallot and Leonardi (2018) drawn with them, ran the other way. No source sets the lag window – Wallot and Leonardi (2018, p. 13) use ±20 lags, Coco et al. (2021) ±100 – so ±10% of the embedded points is the app’s own default, and a typed number replaces it. The leader is the sign of q(τ) averaged over lags 1 to the window’s edge, and a peak reached at several lags reports the one nearest 0. The profile leads because, in the app’s own simulations, its rate at lag 0 and its peak separated coupled from uncoupled pairs in every setting from 250 observations, while the line measures over the whole plot carried little of the coupling and, on categorical pairs, ran against it; the whole-plot RR is no measure at all, since the radius sets it. A peak alone shows nothing – “a maximum is always present in the profile” (Wallot & Leonardi 2018, p. 14) – which is why the coupling test reads these statistics against pseudo-pairs.
Joint recurrence keeps each series in its own phase space – its own z-score, delay, dimension and radius at the target rate – and multiplies the two recurrence matrices cell by cell. A joint recurrence is a pair of times at which both series recur, each in its own space (Romano et al. 2004), so the series need share neither units nor dimension: “the joint recurrences are still well-defined, in contrast to the cross recurrences” (Marwan et al. 2007). Each series is therefore estimated and embedded on its own and its radius set to its own target rate, as Marwan et al. (2007), Wallot, Roepstorff and Mønster (2016, p. 8) and Wallot and Mønster (2025, p. 11) hold each subsystem’s rate fixed, and with several groups the parameters stay each series’ own for the same reason. crqa embeds forward from a series’ start, so the two embedded series are cut to one length, point i of each starting at observation i, and crqa reads their product as a precomputed plot. Both plots have a line of identity, so the window is the RQA one – the longer of the two series’ autocorrelation times – not 0, under which the whole main diagonal would count as a line. JRR carries each series’ own rate, so the card leads with JRCI = JRR / RR² (March, Chapman & Dendy 2005, p. 10; Wallot & Mønster 2025), which is 1 when the two series’ recurrences fall independently cell by cell; where ties leave the own rates apart, JRR / RR divides by their geometric mean and JRCI by their product. Independence cell by cell is the wrong yardstick for series that recur in runs – autocorrelated or periodic series raise JRCI above 1 with no coupling – which the card notes with interpretation on. No leader is read, since joint recurrence compares the two series at the same times only.
Multidimensional recurrence places the series as the coordinates of one space – at the median of their own delays, each embedded e times so that k × e reaches the largest of their own dimensions – and with several groups leaves them unembedded at one radius for all groups by default. MdRQA reads k series as one multidimensional series (Wallot, Roepstorff & Mønster 2016), so one delay serves every coordinate, and the dimension a single series needs is reached by embedding each fewer times – their example embeds three signals that need six dimensions twice each, “3 · 2 = 6” (p. 10). The delay is the median of the series’ own delays, each from the delay rule, rounded half up – the rule the shared auto-recurrence mode uses, and the app’s own choice. It replaced the first minimum of the mutual information averaged over the series (Wallot & Mønster 2018, p. 3), whose curve can fail on noisy oscillations as the single-series one does, and crqa::mdDelay is not used, since its lags come back one too high. Each series’ dimension is estimated at that delay. With several groups, Wallot and Leonardi (2018, p. 19) pick one radius for the whole sample, and a radius tuned to each group’s target hides the coupling in the radius itself: in the app’s own simulations a per-group radius inverted the line measures of phase-locked oscillators, while one radius in one unembedded space turned them the right way and made RR the clearest signal – the setting Tomashin, Gordon and Wallot (2026, p. 12) recommend for heart-rate coupling. So one radius sets the rate pooled over the groups to the target, the series stay unembedded unless a dimension is typed, and each group’s RR is its outcome, counted over the pairs outside one Theiler window, the largest of the groups’ own, so that every group’s rate counts the same pairs. The per-group mode stays an option and reports each group’s radius as its measure, Wallot and Leonardi’s remedy when the rate is held at the target. A shared-radius RR rises with how regular and persistent a group’s own series are as well as with their coupling, so it is read against pseudo-groups at one radius.
No coupling test is offered within one set of series: every null tried for a single pair either over-rejected or had no power. The module first ranked cross-recurrence’s RR, DET and L against IAAFT surrogates of the second series at the observed radius. IAAFT keeps a series’ values and spectrum but not an oscillator’s coherence from cycle to cycle, and in the app’s own simulations it rejected independent oscillators of one period far more often than its level while having little power elsewhere, so the test was withdrawn. Nulls that rearrange the partner in time cannot test the whole-plot measures: RR over every pair of points depends only on the two sets of embedded states, which a circular shift, a twin surrogate or a block shuffle all keep, and a wrapped shift otherwise differs only in the embedded vectors that span the seam – “the state space trajectory is invariant under the shifting operation with periodic boundary condition, except for those few vectors that include both the last and the first point” (Andrzejak et al. 2003, p. 4) – which at the app’s embedding windows are not few, and which made it over-reject on persistent pairs. Yuan and Shou’s (2024) truncated time-shift test on a lag-local statistic is valid for any stationary partner and would cost nothing, reading the profile the card already draws, but it had power only for coupling near lag 0 at about a thousand observations, and none for joint recurrence under each series’ own embedding. The measures between series are therefore descriptive, as the card says with interpretation on, and inference runs at the level of the sample.
With one pair per group, cross- and joint recurrence test the real pairs against pseudo-pairs, re-pairing the second series across the groups – 999 random re-pairings, or every one up to six groups – on lag-local statistics, p one-sided from the rank of the real pairs’ mean. In dyadic research the inference runs over the sample, by “the creation of so-call false-pairs, extracting the diagonalwise profiles from a surrogate pair of time-series which come from the same experimental condition, but different participants” (Wallot & Leonardi 2018, p. 15); “a random pairing of virtual pairs is the preferred approach” (Coco & Dale 2014, p. 5). Pseudo-pairs keep whatever every pair shares – the task, a stimulus, a common rhythm – so a shared period cannot pass for coupling, which no surrogate of a single pair achieved; for the same reason the groups must come from one condition, since a tempo or setting particular to a group counts as coupling (Moulder et al. 2018). Re-pairing whole series is a permutation test, exact whenever one role’s series are exchangeable across the groups, however autocorrelated each is (Yuan & Shou 2025, Corollary 4), and its p counts the real pairing among the re-pairings, so it is never 0 (Phipson & Smyth 2010); up to six groups the at most 720 re-pairings are all counted. A test on the pairwise values themselves reuses each series in many pairs – “Parametric tests, such as the one-sample t-test, should thus never be used to test the significance of pairwise ISCs” (Nastase et al. 2019) – and in the app’s own simulations the paired t, Wilcoxon and Welch tests had less power. A pseudo-pair is computed as a real pair is – its own delay, dimension and radius, both series aligned on their start and cut to the shorter – and a group whose pair the app cannot embed leaves the design whole, so every re-pairing draws on the same groups. The statistics are those that carry coupling: cross-recurrence’s rate at lag 0, its rate over the profile’s lags and its peak, since the whole-plot RR is fixed by the radius and the line measures carry little; joint recurrence’s JRR.
Multidimensional recurrence at one radius tests the real groups against pseudo-groups – the first series kept, every other re-ordered across the groups independently – on RR, DET and L, at one radius set over the real grouping and every re-grouping together. Pseudo-groups extend pseudo-pairs to k partners, as Tomashin et al. (2022) built pseudo-triads by “randomly partnering participants’ time-series with others from different groups”; keeping the first series in place and permuting each other role independently makes every re-grouping exchangeable with the real one whenever the groups are. At one radius the coupling sits in the radius, so it must not be fitted to the real groups alone: one radius setting the rate pooled over the real grouping and every re-grouping to the target treats them alike, and the test is then exact under exchangeability, where a radius set over the real groups alone left DET’s size above its level in the app’s own size check on independent oscillator triads. The real groups’ values at the test’s radius therefore differ from their results at the radius set over the real groups, which the card says. RR is tested beside DET and L, since at one radius it is an outcome. Re-grouping separates every pair of series within a group, so the test rejects when any one pair is coupled, not only when all are.
Lempel–Ziv complexity is the LZ76 count, computed as Kaspar and Schuster do, of a symbolisation the user chooses and the card names. Lempel and Ziv’s (1976) complexity counts the components of a left-to-right parsing, each the longest stretch already seen plus one new symbol; Kaspar and Schuster (1987) give the counting procedure the module follows in a few dozen lines of R, so no package is loaded. The same series gives different counts under different symbolisations, which is why the choice is a control and is printed with the result: binary around the median, the standard convention; k equally filled quantile bins, which keep every symbol’s share equal; or ordinal patterns of order 3 (Bandt & Pompe 2002), whose symbols record the local rank order and so give permutation entropy as well. Orders 4 and 5 are not offered: their 24 and 120 patterns need about 8,700 and 180,000 symbols before Lempel and Ziv’s bound (below) is defined. The Shannon entropy of the symbols is the plug-in estimate in nats that descriptive statistics prints, and permutation entropy divides it by its maximum, ln 6.
The complexity ratio divides c(n) by the mean count of its 99 shuffles, not by n / log_k n. The textbook normalisation approaches 1 on random sequences only as n grows, at a rate Lempel and Ziv’s own proof puts at log log n / log n, and its limit depends on the alphabet; for overlapping ordinal patterns it never reaches 1, since consecutive patterns share two values and the pattern sequence’s entropy rate is at most ln 3 against the ln 6 of a free pattern – a ceiling of about 0.61. Hu, Gao & Principe (2006) found the normalised value of random sequences “considerably larger than 1”, and Mateos, Zozor & Olivares (2017) that permutation Lempel–Ziv complexity stays below permutation entropy. Dividing by the mean of same-length shuffles of the same values removes the dependence on length and alphabet by construction – the reference of Lesne, Blanc & Pezard (2009) and Schartner et al. (2015), and the statistic Rapp et al. (2001, p. 4) report as a redundancy, – and costs nothing, since the shuffles are drawn for the test anyway. Rapp’s surrogates are i.i.d. equiprobable symbols rather than shuffled values: the two nearly coincide for binary and quantile symbols, but for ordinal patterns only the value shuffle is valid (below).
Validation. In the app’s own simulation of white noise – 1,000 replicates per length up to 1,000 – the textbook normalisation read 1.37, 1.20 and 1.06 at n = 25, 100 and 1,000 for binary symbols, 0.90–0.94 at every length for ten quantile bins, and 0.86, 0.76 and 0.66 for ordinal patterns, still falling to 0.63 at 5,000.
“Less complex than” or “not distinguishable from”, never “random”. Lempel and Ziv’s Theorem 5 (1976, p. 78) shows a de Bruijn sequence – fully deterministic – reaching c(n) ≥ n / log n, so a count as high as noise’s does not make a series random; a ratio near 1 or a non-rejection says only that the order of the values could not be told from that of its surrogates.
Two nulls of 99 surrogates each, ranked one-sided: the shuffle asks for any temporal structure, the second row for structure beyond a linear process seen through any monotone rescaling. A one-sided rank test at level α needs 1/α − 1 surrogates (Schreiber & Schmitz 2000, p. 6, after Theiler et al. 1992), so 99 support α = 0.01. The p is (rank + 1)/(M + 1) with ties counted against the series, and no z-score is printed: the counts are integers, a normal reference is not size-controlled, and Schreiber and Schmitz (p. 6) “discourage the common practice” of reading significance “from the number of ‘sigmas’”. Each surrogate keeps the series’ values and is symbolised afresh: shuffling the ordinal symbol sequence instead would break the overlap that consecutive patterns of any series share, and call white noise structured. A shuffle tests the null of an i.i.d. process (Nagarajan, Szczepański & Wajnryb 2007), so any autocorrelation rejects it, and the second row asks the question beyond that. Because every symbolisation reads ranks alone, its null can be a linear Gaussian process seen through any monotone rescaling: the series’ ranks, tied values sharing their average, are mapped to Gaussian quantiles, an IAAFT surrogate of them is drawn, and the series’ values are put back in its rank order.
Validation. In the app’s own simulation the shuffle test rejected 0.5–3.7% of i.i.d. series at a nominal 5% at every length – conservative, since a count of only a few distinct values ties often – while a z against ±1.645 rejected 7.7% at n = 20 and at n = 100; shuffling the ordinal symbols instead called i.i.d. noise less complex than chance in 37% of series at n = 30, 82% at n = 50 and every series from n = 100.
The second null is IAAFT of the Gaussianised ranks, after phase-randomised, raw-value IAAFT and AAFT surrogates failed on skewed or persistent noise. Phase-randomised surrogates of the values – Rapp et al.'s (2001) second null, nonlinearTseries::FFTsurrogate – are Gaussian, so a skewed series was rejected for its distribution rather than its dynamics; IAAFT on the raw values flattened the spectrum enough under strong skew to do the same; and AAFT, Theiler et al.'s (1992) amplitude-adjusted surrogates, fixed the skew but over-rejected persistent linear noise, mostly through the end-point mismatch of a finite series. IAAFT of the Gaussianised ranks holds its level on the whole series, and since it reads ranks it gives identical results under any monotone rescaling, so it needs neither end-point matching nor a skew correction. The two rows cost 26–39 s per series at the 10,000-observation ceiling, depending on the symbolisation.
Validation. In the app’s own simulation – AR(1) series with φ = 0.95 at n = 250, 500 and 1,000, 100 replicates per length, 99 surrogates – IAAFT of the ranks rejected 4–8% at α = 0.05 and 0–2% at 0.01 across the three lengths and the binary, quantile (4) and ordinal symbolisations, and 2–6% at 0.05 on end-matched segments; AAFT rejected 8–10% for binary, 22–24% for quantile and 4–8% for ordinal symbols at 0.05. On the exponential of an AR(1) with φ = 0.9 (n = 500, binary symbols), phase-randomised and raw-value IAAFT surrogates rejected every series, AAFT 5%.
A categorical series is counted on its categories and ranked against shuffles of them alone. A categorical series is already a symbol sequence, so the LZ76 count reads the categories themselves, the alphabet being the number of categories the series takes – which also sets the length from which Lempel and Ziv’s bound holds, below – and the selected symbolisation, which orders or bins numeric values, does not apply. The shuffle null carries over unchanged: shuffling the categories keeps their frequencies and destroys only their order. The second null does not: it reads the series’ ranks, categories have none, and a linear process seen through a monotone rescaling has no categorical counterpart. A first-order Markov surrogate would keep the transitions between categories and ask for structure beyond them, but it is not offered, so the series is ranked against its 99 shuffles alone, and the note under the table says that no surrogate keeps the series’ autocorrelation.
A series with fewer distinct values than a tenth of its observations gets a ties note under the surrogate table. When the values come from rounding or binning a continuous process, every surrogate can match only the autocorrelation of the tied ranks, which the coarsening attenuates, so the surrogates are less persistent than the process behind the data and c(n) looks low against them – the IAAFT row can then reject a linear process seen through the rounding. The shuffle row is exact under ties and needs no note. The threshold is measured, not sourced: the excess at a fixed number of levels grows with n, so the cut scales with n, and a tenth of the observations covers every elevated case measured. The note states the count as a fact and, with interpretation on, its consequence.
Validation. In the app’s own simulation – AR(1) series with φ = 0.9 cut into k equally filled levels, 100 replicates per length, 99 surrogates, rejection at α = 0.05 for binary, quantile (4) and ordinal symbols – the IAAFT row read 16, 38 and 34% at k = 5 and n = 250, back to 7, 6 and 4% at k = 20; at n = 500, 35, 58 and 62% at k = 5, 13, 10 and 9% at k = 20 and 8, 2 and 5% at k = 50; at n = 1,000, 12, 30 and 24% at k = 10 and 5, 13 and 4% at k = 50 – against 5, 5 and 3% on the continuous series. Every clearly elevated cell lies below n/10 distinct values; the one borderline cell, n = 1,000 at k = 100 (9% for quantile symbols), sits on the threshold itself.
At least 100 symbols and at most 10,000 observations, with a note below the length at which Lempel and Ziv’s bound holds. The ratio and the tests compare the series with surrogates of its own length, so they need no asymptotic length; what a short series lacks is power, so the module refuses below 100 symbols – 102 observations for ordinal patterns. The ceiling is cost: each of the 2 × 99 surrogates is symbolised and counted. Lempel and Ziv’s Theorem 2 bounds the count, with , and the bound means nothing until – from 361 symbols for a binary alphabet, 366 for three symbols, 475 for four and 808 for six; below it c(n) has no absolute scale, which the note says, while the ratio still reads. Kaspar and Schuster (1987, p. 844) likewise found the binary normalised count within 5% of its limit only beyond 10³ symbols.
Validation. In the app’s own simulation the shuffle test detected binary-symbolised AR(1) noise with φ = 0.6 in 11, 20, 31, 41 and 72% of series at n = 20, 30, 50, 100 and 200.
Cluster series
Cluster series lives in Time series and clusters one series per group – its missing points dropped, each series variable on its own. Time series already owns what the method needs: the time column’s intake, a grouping variable that makes each group one series, and the transform stack. Every step of the Cluster module – its dissimilarity, its bootstrap draws, its gap reference sets – reads one complete-case matrix of cases by variables, which series of different lengths do not fill, so Cluster is unchanged and the method reuses its R helpers and its dendrogram and silhouette plots. A series’ missing points are dropped rather than interpolated, so the distances read observed values alone; the elastic distances compare series of different lengths, so nothing needs filling.
DTW is the symmetric step pattern with local cost |x − y|, normalised by N + M and computed in the module’s own R, vectorised over the pairs. The recursion is the dtw package’s default, symmetric2 – a diagonal step weighted twice, a horizontal or vertical one once (Sakoe & Chiba 1978) – run over every pair at once, shorter series padded and masked so that pairs of different lengths share one pass. dtw::dtwDist loops over the pairs in R and was more than twenty times slower on the engine, and library(dtw) attaches proxy, which masks stats::dist and stats::as.dist, so no package is loaded. Every symmetric2 path’s weights sum to N + M, so dividing by N + M puts pairs of different lengths on one scale – the normalisation Giorgino (2009) gives for this step pattern.
The warping window is a Sakoe-Chiba band of 10% of the longest series, at least 1 point, widened for a pair to its length difference. An unbounded warp can match a long stretch of one series to a single point of the other. Paparrizos and Gravano (2015) find a fixed-share window “more realistic for an unsupervised setting such as clustering” than one tuned on labels, which clustering does not have, and Holder, Middlehurst and Bagnall (2024) found unsupervised tuning no better; the window is shown in points and can be typed. A pair whose lengths differ by more than the window has no warping path that joins both ends inside it, so that pair alone takes a band of its length difference, and the card counts those pairs.
MSM is offered beside DTW, its split/merge cost c defaulting to 0.5 standard deviations – scaled by the pooled within-series standard deviation outside z-scores – and not normalised by length. In the clustering benchmarks MSM did better than DTW: Holder, Middlehurst and Bagnall (2024) found MSM and TWE best with k-medoids, and Paparrizos and Bogireddy (2025, Table 3) give PAM an adjusted Rand index of 0.231 with MSM against 0.201 with DTW; MSM is also a metric (Stefan, Athitsos & Das 2013), which DTW is not. The benchmarks tune c on a grid against labels, which clustering cannot, so the default is the fixed unsupervised value of Paparrizos et al. (2020), 0.5, which Paparrizos and Bogireddy use for PAM with MSM. Those benchmarks z-score every series, so 0.5 is in standard deviations; under no normalisation or mean-centring the module multiplies c by the pooled within-series standard deviation – each series’ deviations from its own mean, pooled – so that the default means the same in any units. That scaling is the app’s own rule, which no source applies, and the card states c beside the cost in the data’s units. Dividing by N + M, as DTW is, would break the triangle inequality, so MSM is left unnormalised and the card notes when the lengths differ. The recursion is transcribed from Stefan et al.‘s Fig. 10 and the authors’ code rather than from later restatements – Lines and Bagnall’s, and Holder et al.'s Algorithm 3 – which carry typos.
DTW and MSM are not run below 20 observed points per series, a threshold that is the app’s own. No source tests DTW below about 20 points, nor MSM below 15 – the shortest series in the UCR archive – and a window of 10% rounds to nothing on a series of a few points. A few repeated measurements per person are pointed instead to Cluster’s Euclidean distance on the time points as variables, for the reasons its method notes give, and to growth mixture models.
The recursions are capped at 5 million series pairs × points for DTW and 1.5 million for MSM. Both run over every pair at once, so they hold matrices of pairs by the longest length: DTW two of them, 40 MB of doubles apiece at its cap, and MSM its row terms, which peaked near 290 MB at its cap on the engine. A larger run holds a notice rather than exhausting the browser’s memory.
The series are clustered by PAM, or hierarchically with average or complete linkage; Ward’s, centroid, median and single linkage are not offered. PAM needs nothing but the dissimilarities and is sound on a non-metric one such as DTW (Kaufman & Rousseeuw 1990). Ward’s, centroid and median linkage are defined through centroids in a Euclidean space, which DTW distances do not have (Murtagh & Legendre 2014), and they produced inversions on the engine; single linkage ranks last among the linkages in Paparrizos and Bogireddy (2025). A hierarchical cluster has no medoid of its own, so its representative is the member with the smallest total distance to the rest, which on a PAM partition is PAM’s own medoid.
k is the user’s or, left blank, the one with the highest average silhouette width from 2 to the largest k compared, 10 by default; the stability bootstrap and the gap statistic are not offered. The silhouette reads any dissimilarity, so it serves DTW and MSM unchanged, and the silhouette diagram at the chosen k shows which series sit between clusters. Cluster’s stability bootstrap would have to resample whole series, and the gap statistic needs a full distance matrix for every reference set, untested with DTW, so neither is carried over, nor are MDS or FANNY.
Normalisation defaults to none, and a constant series under z-scores is left out and named. When every series shares one scale – ratings, say – a difference in level is part of what distinguishes the series, so the default keeps it; mean-centring and z-scores drop the level, and z-scores the spread as well, for series on different scales or compared by shape. A constant series has no z-score; it is listed with the series left out rather than dropped in silence.
Growth mixture models
Growth mixture models live in Time series, on lcmm’s hlme, with each group one person and time rescaled to 0–1. The method needs data in long form – a person, a time and a value per row – which the time column and the grouping variable already give, and it finds the trajectory groups Cluster’s distances on raw scores miss: on four waves “Euclidean clustering mainly separated patients by overall symptom burden (trajectory level), whereas LCMMs more often distinguished groups according to change over time (trajectory slope)” (Julià et al. 2026, p. 12). lcmm installs and fits on the engine; flexmix’s random-intercept mixture took tens of seconds per start there and stopped below lcmm’s log-likelihood on the same data. Time runs from 0 at the first observed time to 1 at the last, so the intercept is a class’s mean at the first time and the linear coefficient its change over the span whatever the time variable’s units – the app’s own choice. Persons are fitted at the times they were observed, so neither equal spacing nor equal numbers of visits is needed.
The default is a random-intercept growth mixture with class-specific variance, compared by BIC with the common-variance fit; latent class growth and random slopes are not offered. A latent class growth model – no random effect, every person on their class’s trajectory – needs extra classes to absorb persons’ differences in level: for data from K growth mixture classes “a larger number of classes will be needed” under it (Herle et al. 2020), “LCGA should not substituted for GMMs to avoid nonconvergence issues or to simplify estimation” (McNeish, Harring & Bauer 2023), and on the app’s engine probes its BIC kept falling past the true count. A random slope as well let the slope variance absorb the slope classes on the probes, its BIC choosing one class on four waves, so the random effect is the intercept alone. Holding the random-intercept variance equal across classes is the usual constraint, and it “performs quite poorly” on classes whose variances differ (McNeish, Harring & Bauer 2023, p. 2), so each class’s variance is fitted (nwg = TRUE) and the common-variance fit is set beside it, BIC choosing the class count and the variance together, or the variance alone at a typed count. Latent class growth survives only as the first stage of the staged start.
The level-removed model centres each person on their own mean and fits a mixture with no random effect, so its classes differ in the shape of change alone. Heggeseth and Jewell (2018) show how a Gaussian mixture on raw trajectories can miss differences in the shape of growth when persons differ in level, and remove the level by centring each person before the fit; with the level gone a random intercept has nothing to model, so the mixture is an independence one. A person with one observation centres to 0 and carries no shape, so they are left out. Each mean is taken over the person’s own time points, so with unequal visits it covers different stretches of the period – Heggeseth and Jewell expect centring to hold up only when each person is observed across the whole of it – which the card notes. Its staged start is the latent class growth stage alone, there being no random-intercept stage to extend to.
A linear trajectory needs 3 distinct time points and a quadratic one 4. A polynomial of degree d has d + 1 coefficients per class, and through exactly d + 1 time points it leaves nothing to tell the trajectory from the persons’ variation around it – the identification rule Berlin, Parra and Williams (2014, p. 4) give. Beyond that and the 3 persons a mixture needs at all – the app’s own floor – no minimum is set on persons or waves: the sources grade accuracy rather than setting a floor, so the card grades the run (below).
Every class count is fitted from a staged start and then random starts until the best log-likelihood is reached by 3 fits, capped at 50 – a replication stop whose constants are the app’s own. A mixture likelihood has local maxima, and convergence does not show that a fit reached the global one: on the app’s engine probes, fits lcmm reported converged stopped at clearly inferior maxima, some with an empty class. Hipp and Bauer (2006) take the evidence of a global maximum to be the best log-likelihood replicated from different starts, and GRoLTS (item 9) relays their advice of at least 50 to 100 start sets; fifty full starts at every class count proved impractical on the engine, so the module stops once the best is replicated. The staged start fits a latent class growth model from 10 short random starts and starts the growth mixture from its estimates; short random starts of 10 iterations then follow in batches of 10, the best 2 of each batch run to convergence, until 3 converged fits – the staged start among them – lie within 0.01 of the best log-likelihood, or 50 starts have run. The batch, the 2 carried, the 3 replications, the cap and the tolerance are the app’s own constants; no source sets them. Only fits lcmm reports converged count, the card gives each class count’s starts and replications, and with interpretation on it flags a count that fell short. The common-variance fit starts from the class-specific fit’s estimates. The random starts are drawn under the reproducibility seed.
BIC chooses the class count, with SABIC, relative entropy and the smallest class beside it, and the one-class model is always fitted. BIC is taken with the number of persons as the sample size. SABIC’s lighter penalty over-extracted where BIC held on the app’s engine probes, so it is shown rather than consulted; the one-class model stands in the table because the first question is whether there are classes at all. ΔBIC is graded on Raftery’s (1995) grades of evidence, as on the module’s other comparison tables.
The bootstrap likelihood ratio test is opt-in, compares consecutive class counts within the class-specific model, and refits each of its 99 default samples from a light staged start. The likelihood ratio of k − 1 against k classes has no chi-square reference, since the smaller model sits on the boundary of the larger, so its distribution is simulated: samples are drawn from the k − 1 class fit at each person’s observed times, both class counts are refitted on each, and p counts the samples whose ratio reaches the data’s, the data among them (McLachlan 1987). A sample’s fits start from 5 short random starts rather than the full replication stop, which keeps a sample to seconds, and a sample either fit fails to converge on is left out and counted. Even so a comparison takes minutes, so the test is off by default. Its samples are drawn under the bootstrap seed.
The classes’ adequacy is read on Lennon et al.'s and Herle et al.'s thresholds, and their average posterior probability and odds of correct classification are Nagin’s. Every class is to have an average posterior probability above 0.70, odds of correct classification above 5 and relative entropy above 0.5 (Lennon et al. 2018, Table 1), and at least 5% of the persons (Herle et al. 2020); the measures are Nagin’s (2005), the odds being those of a class’s assignments against those of its estimated share. An average posterior probability near 1 sends the odds towards infinity, so the card prints 1000 or more as > 1000 – a cut that is the app’s own. Relative entropy is , 1 when every person is assigned with certainty. The thresholds flag, with interpretation on; they never withhold a class.
Classes are flagged as near-parallel when their trajectories, each centred on its own mean, differ by less than a quarter of the gap between their means – a ratio that is the app’s own. Under a random intercept, classes can still split the persons by level, which is not the change the method is run to find; the note names such pairs and points to the level-removed model (Heggeseth & Jewell 2018). The comparison is the largest difference between the two centred estimated trajectories against 0.25 times the difference of their mean levels; no source sets the ratio.
The sample-size note reads Kim’s (2012) Table 2 at the run’s class count, time points and class separation, interpolating between his 2- and 6-class conditions. Kim’s simulation gives the persons needed for accurate growth mixture estimates by class separation and by 2 or 6 classes, at the numbers of time points tabulated; the module takes the largest tabulated number not above the median observations per person – the 4-point value below 4 – interpolates linearly between 2 and 6 classes and rounds to 10, the interpolation being the app’s own. Separation is read from relative entropy, high at 0.90 or above, after McNeish, Harring and Bauer’s (2023) high- and low-separation conditions of 0.90 and 0.70. Below a median of 4 observations per person a note says the simulations found – Kim (2012) and Diallo, Morin and Lu (2017) – tested no fewer than 4 time points. The notes grade the run and gate nothing, since the sources grade accuracy rather than setting a floor.
Imputation, missing data, and dropped rows
A blank series value is kept in place and filled per card, never by dropping its row, and the global missing-data pass is left to act upstream. ts() reads no time column – position is time – so deleting an incomplete row moves every later observation one period earlier and misaligns the seasons, while a kept NA keeps the grid and lets each fit decide: Arima and auto.arima take a gap through their Kalman filter, the lag-walk forecasters naive, rwf and snaive step over it, stlf interpolates inside mstl on its own, and the fits and tests that take no NA – ses, holt, hw, the unit-root and KPSS tests, Box.test, stl, spec.pgram, breakpoints – are handed an na.interp fill, which follows the series’ trend and season, and the fill is counted on the card. The forecasting card’s ets and thetaf take no NA either and get the same fill, while the forecasters beside them keep fitting through the gap; the fill is redone on every training slice – the full series, the holdout’s and each cross-validation origin’s – so no value past a slice’s end shapes it, and accuracy is scored against the observed values alone, so a filled point never scores. The only rows the module drops are those with no place on the axis – an unreadable time, or a blank group under a grouping variable – and their count is reported on the pre-flight and in every card’s warning. The global missing-data pass runs on the dataset before any module reads it, so the module cannot switch it off and does not claim to: listwise deletion removes the incomplete rows before the time axis is read, and they reappear as gaps in the spacing diagnostics rather than as missing values; single-value imputation fills every blank in a column with one constant, the flattest fill a seasonal series can take, and leaves nothing for a card to disclose. The manual describes both and recommends pairwise deletion, under which the blanks reach the cards as NA and each card’s own fill is the one applied.
Validation. On the airline table with three months blanked – May 1953, November 1956, February 1959 – the forecasting card races all seven methods, ETS and Theta on the filled series (3 values filled), and ranks Auto-ARIMA first at CV RMSE 27.4, ahead of ETS at 30.4 and Theta at 33.3; under listwise deletion the pre-flight reads 141 observations, 3 gaps and 0 missing values.
Reproducibility
Citations follow the run, not the repertoire: forecast and its paper always, tseries only when a stationarity test was selected, strucchange only when the break search ran, and each method from the branch that computed it. A reference list naming every method the module offers would be useless as a Method paragraph, so each runner cites what it did. The pre-flight cites KPSS because ndiffs decides by one, Box-Cox and Guerrero because it estimates λ, the super smoother because tsoutliers fits one, and STL and the strength measure only at a frequency above 1. Exploration cites the ACF and PACF, the Ljung-Box test, the periodogram, Fisher’s g and the Bonferroni bound behind its seasonal-period search whatever the options, each stationarity test only when it was ticked, the decomposition method and the 3·MAD rule only when a decomposition ran. The fitted cards cite their model family – the smoother chosen, ARIMA and the automatic search in auto mode, dynamic harmonic regression with the search in harmonic mode, the forecasters that raced – with the three information criteria and MASE where the card prints them, Hyndman & Kostenko and Hyndman (2014) with each minimum-sample line, Burnham, Anderson & Huyvaert only when a Δ column was graded, each diagnostic only when it was on, rolling-origin cross-validation and the anomaly rule only when they ran; and the transform stack cites the super smoother and STL only with Replace outliers on, Box-Cox only with the override on and Guerrero only when λ was estimated rather than typed. Nonlinear dynamics cites crqa and its papers, recurrence quantification and the delay embedding whenever the recurrence section ran, the recurrence plot when it was drawn, nonlinearTseries with the mutual-information delay or Cao’s method when either ran, the autoregressive spectrum (Akaike 1969) and the quarter-period delay (Tan et al. 2023) when the spectral rule set a delay, false nearest neighbours with Cao’s method, the autocorrelation-time window when a neighbour exclusion applied or the Theiler window was estimated, Theiler (1986) when either window applied, Kraemer & Marwan (2019) when the Theiler window was estimated, Orsucci et al. (1999) and Dale, Warlaumont & Richardson (2011) when a series was read as categorical, Marwan (2011) and Wallot & Leonardi (2018) with the key measures across target rates, Wallot & Leonardi (2018) also when the groups shared one embedding and radius, Ramdani’s test with IAAFT and surrogate data when the test ran, Zbilut, Giuliani & Webber (1998) and Marwan & Kurths (2002) when a pair was cross-recurred, Romano et al. (2004) and Wallot & Mønster (2025) when a pair was joint-recurred, Wallot, Roepstorff & Mønster (2016) for multidimensional recurrence, with Tomashin, Gordon & Wallot (2026) at one radius for all groups, Moulder et al. (2018), Yuan & Shou (2025) and the permutation test whenever a coupling test ran, and Tomashin, Gordon & Wallot (2022) with the test against pseudo-groups; its Lempel–Ziv section cites the complexity, surrogate data and Shannon entropy, IAAFT only when a numeric series was counted, and permutation entropy for ordinal patterns. Cluster series cites cluster and its paper, DTW (Sakoe & Chiba 1978; Giorgino 2009; Paparrizos & Gravano 2015) or MSM (Stefan, Athitsos & Das 2013; Paparrizos et al. 2020) as run, PAM or the linkage used, and the silhouette, with forecast and the outlier cleaner only when Replace outliers was on. Growth mixture models cite lcmm and its paper, the growth mixture or – for the level-removed model – Heggeseth & Jewell (2018) with group-based trajectories, Hipp & Bauer (2006) for the start replication, BIC, SABIC and relative entropy, Nagin’s average posterior probability and odds when a model of more than one class is presented, McLachlan (1987) when the bootstrap test ran, Raftery (1995) when ΔBIC was graded, and Lennon et al. (2018) with Herle et al. (2020), Heggeseth & Jewell (2018) and the sample-size sources only with the notes that cite them. The seeded draws are the Shapiro-Wilk sub-sample above 5,000 residuals, argued with the residual diagnostics, and on the nonlinear-dynamics card the jitter of Cao’s method, under the reproducibility seed, and the surrogates of both surrogate tests and the random re-pairings and re-groupings of the coupling tests, under the bootstrap seed, since they resample for an inference; the random starts of growth mixture models, under the reproducibility seed, and the samples of their bootstrap likelihood ratio test, under the bootstrap seed; nothing else in the module draws a random number.