On this page

Time series analysis

The Time series analysis module turns a column of numbers ordered by time into something you can reason about: cycles you can name, trends you can quantify, models you can forecast from, and break-points you can date. It bundles eight workflows – exploration, smoothing, ARIMA / SARIMA, forecasting, spectral / change-point analysis, nonlinear dynamics, clustering of series and growth mixture models – behind one set of variable pickers and a shared transform stack.

What makes a time series different? Its observations are not independent – each value carries information about the ones before and after it, which is what every method here models and what ordinary tests silently assume away; see autocorrelation and a time series.

  1. Pick a time variable and one or more series
  2. Optionally add a grouping variable or override the auto-detected frequency
  3. Click Check data for the pre-flight report – recommended before fitting anything
  4. Choose an analysis method, and toggle the transform stack and the method’s own options
  5. Click Calculate

Variable roles

The left column holds the variable pickers – the time variable, the series list and two optional accordions – and the right column the method setup, the transform stack and the method-specific options. The entries below follow the left column’s order. A number field anywhere in the panel holding a value outside its range, a decimal where a whole number is asked, or text that is no number is outlined with the allowed range and blocks Calculate and Check data – but only while the field is shown and the run would read it.

  • Time variable – the column that orders the observations; required. Its scale is decided once from the column as a whole: a column with at least one value that only parses as a date – 2024-03-15, 2024-03-15 14:30:00, anything JavaScript’s Date.parse reads – is a date column, otherwise it is a numeric index (1, 2, 3, … or any monotone numeric column). Every row is then read on that scale alone, so a bare 1997 inside an otherwise ISO-dated column is a parse failure, not a year, and a row whose value cannot be read is dropped and counted under Dropped rows; fewer than three parseable rows stop the run with a toast. The rows are sorted by time before any analysis runs, so the file need not be pre-sorted, and date-only values are anchored at local midnight, so plot axes and result tables name the same calendar day in every time zone. The line under the picker shows the auto-detected frequency as soon as a column is chosen – or, when the column parses as neither numeric nor date, says so in place of a frequency.
    • Select time variable – the placeholder shown until a column is chosen; nothing runs before one is.
  • Series – one or more numeric variables, chosen from the list; Deselect all and Invert selection edit the selection. Each series is analysed on its own and its results stacked in the card – except by recurrence between series, which reads them together – and the plots are faceted by series unless the exploration card’s stacking option overlays them. A non-numeric selection is refused at Calculate with a toast – recode it first in data transformation – except under Nonlinear dynamics, which reads a non-numeric series as a sequence of categories.
  • Grouping variable – an optional categorical variable. When it is set, every method runs once per group – its own plots, tests, fit, forecast or break-point search – and the card wraps each group’s output in a Group: {name} section; Cluster series and growth mixture models need it instead, and take each group as one series or one person to compare with the others; recurrence quantification can also give the groups one set of parameters, and between series it takes each group as one set of partners for its coupling tests. A row whose group value is blank is dropped along with the rows whose time cannot be read, and the counter widens to Dropped rows (unparseable time or missing group) so the two causes stay in one number. The time-axis diagnostics – spacing, gaps, duplicates – are measured inside each group, never across the pooled timeline, and one seasonal period is resolved for the whole run: when the groups’ own spacings imply different periods, every result card opens with a warning naming the periods found, all modelled at the one frequency its scope line states, and splitting the analysis by cadence is the remedy when the groups are not comparable.
    • None – the default: every series is one column, analysed over all its rows.
    • Group: {name} – the heading over one group’s results, {name} the group’s value in the grouping variable; every table, plot and note under it was computed on that group’s rows alone.
  • Frequency override – a seasonal period typed by hand, a whole number of observations per cycle, 1 or more. Leave it blank to use the auto-detected frequency. What the number means – twelve for monthly data with a yearly cycle, seven for daily data with a weekly one – is the seasonal period; every method that models a season reads it, and SARIMA’s seasonal row, Holt-Winters, the seasonal naïve forecast and STL + ETS all switch off when it is 1. The pre-flight’s Detected seasonal period row offers a second opinion read off the series itself, with an Apply button that fills this field.

Frequency auto-detection

When the time variable is a date or datetime, the median spacing between consecutive observations chooses a default seasonal period. A spacing shorter than about seventeen hours is read as sub-daily and the cycle is the day itself, the period being the number of observations that fit in one; anything longer snaps to the nearest calendar cadence, judged on the ratio of the spacing to the cadence rather than on their difference, so 28- to 31-day months all read as monthly:

Median spacing Suggested frequency Cycle
Sub-daily observations per day (24 hourly, 3 for 8-hourly, …) per day
Daily 7 per week
Weekly 52 per year
Monthly 12 per year
Quarterly 4 per year
Yearly 1 none assumed
Indeterminate 1 none assumed

When the time variable is numeric, the default is 1 – no seasonality assumed – since a row index carries no cadence; set the override when your index has a natural cycle (12 for a synthetic monthly index). With a grouping variable, the spacing is measured inside each group and the per-group medians are pooled, never read off the interleaved timeline. The active frequency is shown live under the time picker – the suggestion, or the override with the suggestion in brackets – and drives the panel as well: at 1 the seasonal (P, D, Q) row of the ARIMA card is disabled and zeroed, and the Holt-Winters option is available only for periods from 2 to 24.

Pre-flight (Check data)

Click Check data before fitting anything: it runs the data-fitness diagnostic on the selected series and prints one Time series data fitness card – per group when a grouping variable is set, otherwise dataset-wide. It catches what breaks a fit – irregular spacing, heavy missingness, a seasonal period the data does not have, a series too short for one – before you spend time on the fit. It opens with a scope line naming the observations, series, frequency and groups the run saw; dropped rows, gaps and duplicate timestamps are counted in its Time axis table rather than repeated in a warning, though every row is still modelled as one equally spaced period.

Time axis. A key–value table of the axis the run stands on – dataset-wide the four rows below; with a grouping variable only the dropped-row count, the rest moving to the per-group table.

  • Metric – the row’s name, in every key–value table of the module
  • Value – the row’s value; amber marks one worth a look – an irregular axis, a non-positive series, outliers found
  • Observations – in the per-group table, the group’s rows surviving the time parse and the group filter; dataset-wide the count is the scope line’s
  • Regular spacing – Yes when the axis has neither duplicate timestamps nor gaps, No otherwise
  • Gap count – spacings wider than 1.5 × the median spacing of the same group
  • Duplicate timestamps – spacings of exactly zero, two rows at one time
  • Dropped rows (unparseable time) – rows excluded before anything else because their time value could not be read on the column’s scale
  • Dropped rows (unparseable time or missing group) – the same counter when a grouping variable is set, now including the rows whose group value is blank

Time axis (per group). Shown instead of the dataset-wide rows when a grouping variable is set: one row per group with its Observations, Regular spacing, Gap count and Duplicate timestamps, each judged inside the group.

  • Group – the group’s value in the grouping variable

Series: {name}. One key–value table per series – per group and series when grouping is on – followed by a recommendation line.

  • Missing values – the share and count of blank or non-numeric cells, share% (missing/total)
  • Suggested d (ndiffs) – the number of regular differences forecast::ndiffs recommends to reach stationarity, 0 to 2, deciding by KPSS at the assumption test significance level – see differencing; – below eight non-missing values. A note under the scope line names the level d was chosen at – the level the analysis ran at or, since KPSS’s p is tabulated only from 0.01 to 0.10, the nearer end of that span when the level lies outside it. The count belongs to the run: a later change of the level leaves the row as it is, and running again chooses d at the new one – see the level the analysis ran at.
  • Suggested D (nsdiffs) – the number of seasonal differences forecast::nsdiffs recommends, 0 or 1 – see seasonal differencing; – when the frequency is 1 or the series holds fewer than two full cycles
  • Box-Cox λ (auto) – the Guerrero estimate of the variance-stabilising power the Box-Cox transformation would use. When no λ can be estimated the cell says why: Not computed – needs ≥ 10 non-missing values, Not applicable – series has non-positive values, Not estimated – needs more than two seasonal periods or Estimation failed.
  • Detected seasonal period – the period forecast::findfrequency reads off this series’ own spectrum, independent of the configured frequency, 1 when it finds no cycle. When it differs from the active frequency and exceeds 1, a Use detected period {f} prompt under the table offers it, and its Apply button writes the value into the frequency override.
  • Outliers detected – how many points forecast::tsoutliers flags at the configured frequency – see outlier in a time series for what counts as one
  • Outlier positions – the timestamps of those points, the first twelve followed by … and n more, with the time of day when the cadence is sub-daily

A recommendation line follows each table: Seasonal differencing indicated – try SARIMA or Holt-Winters. when a seasonal difference is suggested, Non-stationary – try ARIMA with d ≥ 1. when only a regular one is, Stationarity not rejected – try a stationary ARMA (ARIMA with d = 0). when neither is, and Not enough usable observations – no stationarity test could run. when the series was too short to test. A seasonal series holding fewer than two full cycles adds Fewer than two full seasonal cycles: the seasonal-differencing test (nsdiffs) and the Box-Cox λ estimate cannot run. – how many observations a model needs is not judged here but on the fitted cards, against the model itself, in their minimum-sample lines. With interpretation off, only the no-test line and the cycle line are kept – the advice is dropped. When any series has outliers, one prompt at the bottom of the card, Replace the {count} detected outlier(s), gives the run-wide total, and its Apply button switches Replace outliers on for the next run – one prompt per card, since the transform stack is one switch for the whole analysis. Both prompts are tools rather than advice, so they stay with interpretation off.

Transform stack

Two optional pre-modelling transforms shared by smoothing, ARIMA, forecasting, spectral analysis and nonlinear dynamics – exploration, being descriptive, does not use them. Cluster series takes outlier replacement alone, its missing points left dropped rather than filled, and growth mixture models take neither; while either is selected, the controls it does not take are disabled, with a note in this card saying why. They run in the order listed, outlier replacement first, on each series separately and inside each group, and the forecasting card’s holdout and cross-validation refit them on every training slice. There is no differencing step here – ARIMA’s d order lives on its own card.

  • Replace outliers – forecast::tsclean flags the points that stand out from a robust trend-and-season fit and replaces them by interpolation, filling any missing values along the way; both counts appear in the card’s transform-stack line, and the filled values are never counted as observations – every card’s length checks and minimum-sample lines count the values observed in the raw column, and the smoothing and ARIMA plots mark every replaced point with an Outlier replaced symbol on the observed-vs-fitted overlay, so you can see which observations the model saw differently from the raw line beneath. Useful when isolated spikes dominate a fit you do not want to drop rows from; when the replacement fails the series is left untouched and the line says so.
  • Box-Cox override – fits the model on a power-transformed series and reports the curve, the forecasts and the accuracy measures back on the original scale; the information criteria, parameters and residual diagnostics stay on the transformed scale, and the card says so. Helps when the swings grow with the level – see Box-Cox transformation. A series with fewer than 10 non-missing values or with a zero or negative value is not transformed, nor one whose λ cannot be estimated: the transform-stack line carries the reason rather than leaving the skip silent, and a series that goes through zero needs a shift in data transformation first.
  • λ value – the power to use, one value for every series and group of the run; blank picks λ by Guerrero’s method for each series separately. 0 is the log, 0.5 the square root, 1 no transform – a typed λ gives you reproducible control.

Transform stack summary. Every fitted card but Cluster series’ – whose parameter table counts the outliers replaced – ends with a Transform stack: line listing what actually applied – outliers replaced, missing values imputed (by the outlier cleaner, or by the interpolation the exponential-smoothing fits need), the λ used and where it came from, set in the options or estimated by Guerrero’s method – and, on a warning line under it, what was requested and skipped, with the reason – including, on the forecast card, how many of the holdout and cross-validation training windows were too short for the automatic λ and were fitted untransformed. Nothing is printed when nothing applied and nothing was skipped.

Analysis methods

  • Analysis method – the select that picks one of the eight workflows below; the options card under it changes with the choice, and every method but exploration and growth mixture models reads the transform stack as well as the variable roles – Cluster series its outlier replacement alone.
    • Exploration – plots, ACF / PACF, decomposition and stationarity tests: the descriptive pass, run first on a series you do not know – see Exploration
    • Smoothing – a moving-average or exponential-smoothing curve over the observed values, with residual diagnostics for the model-based methods – see Smoothing
    • ARIMA / SARIMA modelling – one ARIMA or seasonal ARIMA fit per series, automatic or by hand, or a harmonic regression on Fourier terms for a long seasonal period, with its coefficients, information criteria, accuracy and residual checks – see ARIMA and SARIMA modelling
    • Forecasting – a horse-race of seven forecasters – eight above a seasonal period of 24 – ranked by rolling-origin cross-validation or a holdout, with the point forecast and intervals of whichever you activate – see Forecasting
    • Spectral / change-points – a tested periodogram and a Bai-Perron break search with dated confidence intervals – see Spectral / change-points
    • Nonlinear dynamics – recurrence quantification and Lempel–Ziv complexity: how the series’ trajectory returns to states it has passed through, or several series recur together, and how many new patterns its values produce once turned into symbols – see Nonlinear dynamics
    • Cluster series – clusters the series of the grouping variable, one per group, on an elastic distance between them: which series run alike over time – see Cluster series
    • Growth mixture models – finds classes of persons, one per group of the grouping variable, whose trajectories over time differ, fitting a mixture of growth models – see Growth mixture models
Method What it produces Required inputs
Exploration Series plot, seasonal plot, ACF / PACF, decomposition, stationarity tests, detected seasonal periods Time, ≥ 1 series
Smoothing Moving-average or exponential-smoothing curve overlaid on the observed values, plus residual diagnostics Time, ≥ 1 series
ARIMA / SARIMA modelling Coefficient table, information criteria and accuracy, residual diagnostics Time, ≥ 1 series
Forecasting Horse-race across seven forecasters (eight above period 24) with rolling-origin cross-validation and holdout evaluation Time, ≥ 1 series
Spectral / change-points Tested periodogram peaks; Bai-Perron breakpoints with dated confidence intervals Time, ≥ 1 series
Nonlinear dynamics Recurrence measures within a series or between series, recurrence plot and embedding diagnostics with a surrogate test of E2, and with groups a coupling test against pseudo-pairs; Lempel–Ziv complexity ranked among surrogates Time, ≥ 1 complete series (2 between series)
Cluster series Clusters of whole series on a DTW or MSM distance, with silhouettes, medoids and, under a hierarchical method, a dendrogram Time, ≥ 1 series, a grouping variable – each group one series of ≥ 20 points
Growth mixture models Classes of persons by trajectory, compared across class counts by BIC, with each class’s trajectory, size and adequacy and each person’s class Time, ≥ 1 series, a grouping variable – each group one person

Pick Exploration first if you don’t know your series – the ACF, the decomposition and the stationarity verdict together tell you which of the modelling methods to reach for next.

Exploration

The descriptive view of one or more series: no model is fitted, the transform stack is not read, and every plot and test runs per group and series on the raw values. The card opens with a scope line naming the observations, series, frequency and groups it saw and, when the time axis was not a clean regular grid, with the warning that every row is nevertheless modelled as one equally spaced period.

  • Decomposition – the select that picks how each series is split into trend, seasonal and remainder components; whichever runs draws four stacked panels – observed, trend, seasonal, remainder – on one time axis under a heading naming the method, with the remainder’s anomaly points marked. Every decomposition needs a frequency above 1 and at least two full cycles of non-missing values; otherwise the card says which gate stopped it – see decomposition.
    • STL – the default: a robust STL with a periodic seasonal window, so the seasonal shape is fixed across cycles and an outlying month does not bend the trend; the recommended choice for most series
    • Classical additive – observed = trend + seasonal + remainder, the trend a centred moving average and the season the average deviation at each position; assumes a seasonal swing of constant size
    • Classical multiplicative – observed = trend × seasonal × remainder, for a swing that grows with the level; needs a strictly positive series, and is skipped with a note otherwise
    • Skip decomposition – no panels, no strengths and no anomaly points; the ACF, the stationarity tests and the seasonal-period search still run
  • Stack on one axis – overlays every selected series on one set of axes instead of drawing one facet per series; the facets share a time axis, the overlay shares a value axis too, so it suits series on one scale. Off by default.
  • Stationarity tests – the group of three checkboxes below; any combination runs, and the results table holds one row per test with the null it held and the verdict it reached at its own level – see stationarity for what the tests are asking.
    • Augmented Dickey-Fuller (ADF) – on by default; the null is a unit root, tested against a stationary alternative with drift and trend, so rejecting says the series looks stationary
    • KPSS – on by default; the null is stationarity, level or trend, so rejecting says the series looks non-stationary – the opposite reading from ADF, which is why the pair is decisive where either alone is not
    • KPSS null hypothesis – the select under KPSS: which kind of stationarity its null asserts. Match it to ADF’s drift-and-trend model – Trend-stationary – to read the two tests as a pair about the same alternative.
      • Level-stationary – the default: stationary around a constant mean
      • Trend-stationary – stationary around a deterministic straight-line trend, so a trending series with stable fluctuations does not reject
    • Phillips-Perron – off by default; the same unit-root null as ADF, with a non-parametric correction for serial correlation in place of ADF’s lagged differences, and printed as PP (Zτ) in the table since the module runs the t-ratio form that sits on ADF’s scale

The card prints, per group and then per series:

  • Series plot – the observed values over time, one facet per series unless Stack on one axis is on; when a decomposition ran, the remainder’s anomaly points are marked on the line. A point whose value was interpolated to let the decomposition run is never marked, since its remainder is an artefact of the fill.
  • Seasonal plot – drawn whenever the frequency is above 1 and the series holds at least one full cycle: the series is cut into cycles of one seasonal period, the cycles are overlaid on one period axis and coloured from the earliest to the latest, and the per-position mean is drawn over them as the Seasonal mean. The legend names each cycle by the date it opens on – or Cycle n on a numeric index – and keeps only the first and last above twelve cycles. It is the fastest way to see whether the seasonal shape is stable, drifting or growing with the level – see seasonal pattern.
  • ACF / PACF – two panels: the sample autocorrelation and partial autocorrelation at every lag from 1 out to two seasonal periods or more, each bar reaching outside the dashed ±1.96/√n band highlighted. The autocorrelation is a lagged correlation, and the pair is read as ACF and PACF explains – a slow decay says non-stationary, a spike at the seasonal lag says seasonal, and the cut-off pattern suggests ARIMA orders. Needs four non-missing values; a series with missing values is interpolated first and the card says so.
  • Decomposition strengths – one line under the tests when a decomposition ran: the trend strength and the seasonal strength on a 0–1 scale, higher meaning a stronger component – see trend strength and seasonal strength. On a multiplicative decomposition the components are logged before the strengths are taken, so the numbers stay comparable with an additive run.
  • Anomaly summary – one line counting the decomposition-residual anomaly points flagged on the series plot: points whose remainder lies more than three MAD from the remainder’s median. Printed only when there is at least one.
  • Stationarity tests – one table per series, a row per selected test with its Test, Null hypothesis, Lag, Statistic, p and Conclusion; whenever KPSS ran, a note under it says which level each row was judged at, and the joint reading closes the section. A stationarity row’s p is read off a published critical-value table, so a statistic beyond the table’s range prints as a bound – < 0.01 or > 0.10 – rather than an exact number, and KPSS’s table only spans 0.01 to 0.10, so a bound there is routine; a > bound never marks its p or statistic as significant. Needs eight non-missing values; when the table is empty the card says why – no test selected, fewer than eight values, or a failed estimation.
    • Lag – the number of lags the test used: ADF’s lag order of the differenced terms, chosen from the series length, and the truncation lag of KPSS’s and PP’s long-run variance
    • Conclusion – the row’s decision, worded on its own null: Unit root rejected or Unit root not rejected for ADF and PP, Stationarity rejected or Stationarity not rejected for KPSS – or Inconclusive when no p-value could be computed or when a bounded p lies beyond a table endpoint on the same side as the level, so the table cannot settle the test, a note under the table then saying so. Only a rejection is coloured – a rejected unit root green, rejected stationarity amber – since a non-rejection found nothing. The column is hidden with interpretation off. The conclusion names no α, and the level is never a fixed 0.05: ADF and PP read your global significance level, KPSS the assumption test significance level, since its null is stationarity, as a note under the table says whenever KPSS ran – see which level a table reads.
  • Joint reading – one line combining the unit-root verdict with KPSS, since only the pair is decisive: the unit-root test rejecting and KPSS not is a stationary series – around a deterministic trend when the KPSS null was trend-stationarity, so detrend rather than difference; KPSS rejecting and the unit-root test not is a unit root, so difference before modelling; both rejecting points at a deterministic trend, a structural break or changing variance; neither rejecting means the sample cannot separate the two. When ADF and PP disagree with each other, the line says no single verdict can be paired; when any of the tests reads Inconclusive, and with interpretation off, the line is left out.
  • Raw Ljung-Box – one line per series asking whether any serial dependence exists in the raw values, with Q, its lag and p. A significant result – at the assumption test significance level, since the null is no autocorrelation – means the series is worth modelling; a non-significant one says it is essentially white noise. Neither reading is coloured, since serial dependence is what a forecast exploits, not a fault. With interpretation off the line states Q, the lag and p alone, without that reading. Needs eight non-missing values.
  • Detected seasonal periods – one table per series listing every cycle the periodogram holds at your global significance level, found by a stepwise Fisher’s g-test that is independent of the configured frequency, strongest first; a footnote says how many peaks were tested. When no period reaches significance the section is one line saying so, and a series shorter than eight values, one whose gaps could not be interpolated, or one whose periodogram could not be computed gets a note naming the cause instead. The Spectral card’s peak table runs the same test on the same raw series, so a peak reads the same g and p on both cards. Use it to spot a second cycle the single frequency cannot represent – see periodogram.
    • Period (obs) – the cycle length in observations, with the spectral resolution as P ± d, or P (≥ L) for the longest-period bin, whose lower bound L is finite and upper bound unbounded
    • Cycles per obs – the corresponding spectral frequency, 1 / period
    • Fisher’s g – the share of the periodogram concentrated at this peak, taken at the step the peak was tested – after every stronger peak found before it was flattened – which is what makes it a test statistic
    • Share of variance – the same peak’s share of the untouched periodogram, as a percentage; it agrees with Fisher’s g on the first row and falls below it on the rest
    • p – the peak’s p-value, already family-wise adjusted across the whole periodogram, so the global p-value adjustment is not applied on top of it
    • Note – Harmonic of {period} (×n) for a row whose period divides a stronger row’s period by an integer of two or more, within the spectral resolution, or – for a fundamental cycle; harmonic rows are muted. Use the fundamentals to choose a frequency override and the harmonics as confirmation that the fundamental is the right call – see harmonic.

When the ACF / PACF, the stationarity tests and the seasonal-period search ran on an interpolated series – because the series had missing values – a note under the series heading says how many values were filled; those results lean toward smoothness and stationarity, so report the count alongside them. When the interpolation fails, the tests and the raw Ljung-Box are skipped and the note says so.

ADF vs KPSS – why run both? They hold opposite nulls, so agreement is a strong verdict and disagreement says the answer depends on whether trend or unit root is the right description – see unit-root test and KPSS test.

Spectral concentration is not seasonal strength. Fisher’s g measures how peaked the periodogram is at one frequency, independently of the configured frequency; the seasonal strength on the decomposition line measures how much of the variation the configured season explains – a narrow spectral peak can sit beside a modest seasonal strength when the amplitude varies, and the reverse – see trend strength and seasonal strength.

Smoothing

Fits a denoised curve to each series, overlays it on the observed values and, for the model-based methods, checks the residuals it leaves behind. The transform stack runs first, and a series with missing values is interpolated before an exponential-smoothing fit – the fill is counted on the transform-stack line – while a moving average leaves the gaps as gaps. The card opens with the same scope line and warnings as exploration’s.

  • Method – the select that picks the smoother; the controls under it change with the choice – see moving average and exponential smoothing for what each one assumes.
    • Moving average – the default: a symmetric centred mean over a window of k observations, a filter rather than a model, so no likelihood, no information criteria and no residual diagnostics exist for it and the card says so instead of leaving cells blank. Needs at least as many non-missing values as the window.
    • Simple exponential smoothing (SES) – level only, past values weighted geometrically: the one-step-ahead expectation for a series with no trend and no seasonality. Needs four non-missing values.
    • Holt – level and trend, no seasonality; for a trending series without a seasonal pattern. Needs five non-missing values.
    • Holt-Winters – level, trend and seasonality; for a series with both. Available only when the seasonal period is between 2 and 24 – outside that band the option is hidden, with a note under the picker, a selection on it falling back to SES, and it is back in the list once the period is inside the band – and needs two full cycles of non-missing values.
  • Moving-average window – the window size k for the moving average, at least 2; seeded from the active seasonal period – 12 on monthly data – and left alone once you type one. An even window is applied as the 2×m weighted form, which keeps a seasonal average centred on an observation; the curve’s legend and the section heading name the form used, MA(12), centred 2×12.
  • Seasonality – shown for Holt-Winters: the form of the seasonal component.
    • Additive – the default: a seasonal swing of constant size
    • Multiplicative – a swing that grows with the level; needs a strictly positive series, and cannot be combined with a Box-Cox transformation, since the transform already does that job – the option is hidden, with a note, while Box-Cox override is on, the choice falling back to additive, and either case is stated on the card rather than silently ignored
  • Damped trend – shown for Holt and Holt-Winters: flattens the extrapolated trend instead of continuing it as a straight line; almost always the safer choice for anything but a short horizon. Off by default.
  • Diagnostics – the three residual checks below, shown for the exponential-smoothing methods and shared with the ARIMA card; each adds its output under the fit, after a residuals-over-time plot that any of them brings.
    • Ljung-Box test on residuals – on by default: one row asking whether the residuals still carry serial dependence – a significant p, at the assumption test significance level since the null is white-noise residuals, means the model is missing structure. The lag is two seasonal periods on seasonal data and 10 otherwise, capped at a fifth of the residuals, and the degrees of freedom are reduced by the number of parameters the fit estimated; when the series is too short to test more lags than that, the test is skipped with a note.
    • ACF of residuals – on by default: the residual correlogram, with the band at your confidence level; bars inside the band are white-noise residuals
    • Residual normality (Q-Q + Shapiro) – off by default: a Q-Q plot of the residuals and a Shapiro-Wilk row, judged at the assumption test significance level as every normality test in the app is. Useful for the validity of prediction intervals, not for the point forecast. Above 5,000 residuals the test runs on a random draw of 5,000 and the card says so.

Each series gets one section:

Smoothed: {name} ({method}). The observed line with the smoothed curve overlaid, the curve’s legend naming the method – SES, Holt (damped), Holt-Winters (additive) – and an Outlier replaced marker on every point the transform stack changed; then the fit summary, the minimum-sample lines of an exponential-smoothing fit, a note naming the optimizer’s limit when the fit stopped at it – see iteration limit – the parameter table and the diagnostics. When the series is too short for the method – SES, Holt and Holt-Winters count observed values, not the ones interpolated for the fit – falls outside Holt-Winters’ seasonal band, breaks the multiplicative rules or fails numerically, the section holds a notice saying which instead; above a seasonal period of 24, with interpretation on, the notice names STL, or harmonic regression on the ARIMA card, as the alternatives.

  • Window – for a moving average, the window used, as typed or as seeded
  • Smoothed points – for a moving average, the number of observations the curve covers – the window loses half its width at each end of the series
  • Specification – for the exponential-smoothing methods, the fitted state-space form, ETS(error, trend, season), the trend carrying a d when damped: ETS(A,N,N) is SES, ETS(A,Ad,N) damped Holt, ETS(M,A,M) multiplicative Holt-Winters – see exponential smoothing
  • σ (residual scale) – the residual standard deviation of the fit, on the Box-Cox scale when the transform applied
  • RMSE (training set) – the in-sample root mean squared error of the fitted values – see RMSE; on the original scale even under Box-Cox, since the fitted values are back-transformed before scoring
  • MAE (training set) – the in-sample mean absolute error – see MAE
  • MAPE (training set), % – the in-sample mean absolute percentage error – see MAPE
  • Role – in the parameter table, whether a row is a Smoothing parameter – α for the level, β for the trend, γ for the season, φ for the damping – or an Initial state – the level l, the trend b and the seasonal indices s0 … from which the smoothing starts
  • Smoothing parameter – a weight between 0 and 1: near 1 the component follows the latest observation, near 0 it barely moves. An α of 1 on SES is the naïve forecast.
  • Initial state – the level, trend or seasonal index the fit estimated for the start of the series
  • Parameter – the name R reports the estimate under
  • Residual autocorrelation test – the Ljung-Box row’s label, naming the lag and the degrees of freedom the test used; its χ² and p are judged at the assumption level
  • Normality test – the Shapiro-Wilk row’s label, with W and p; a line under it names the draw when the residuals were sampled
  • Interpretation – with interpretation on, a column on both residual rows giving the test’s decision at the assumption level: Residual autocorrelation remains or No significant residual autocorrelation on the Ljung-Box row, Residuals depart from normality or No evidence against normal residuals on the Shapiro-Wilk row; – when no p could be computed. The ARIMA card’s diagnostics read the same.

Every section ends with the transform stack summary and, when Box-Cox applied to an exponential-smoothing fit, a note that the information criteria, parameters and diagnostics are on the transformed scale while the curve and the accuracy row are back-transformed. A moving average under Box-Cox has no residual variance to correct the back-transform with, so its curve is on the median scale and a note under the plot says so.

Minimum sample. Under the fit summary of an exponential-smoothing fit, an ARIMA fit and the forecast card’s ETS, Auto-ARIMA and harmonic-regression rows, one line per model gives the fewest observations at which its prediction intervals are finite beside the series’ observed count – {model} needs at least {min} observations; the series has {n}. The minimum is one more than the model’s parameters: smoothing weights and initial states for ETS, so Holt-Winters needs the seasonal period plus 5, and the coefficients plus the observations differencing consumes for ARIMA. Below it the line says the prediction intervals are not finite and, with interpretation on, turns amber and adds that a naive baseline is the safer forecast. A closing line warns that the minimum holds only for data with almost no randomness – a noisier series needs more.

When to pick which? Moving average for visual smoothing of any series; SES when it has neither trend nor season; Holt when it trends; Holt-Winters when it has both – and on a short or noisy series fall back to SES or Holt and let the forecasting horse-race handle the season – see exponential smoothing.

ARIMA and SARIMA modelling

Fits an ARIMA(p, d, q) – or a seasonal ARIMA(p, d, q)(P, D, Q)[m] when the frequency is above 1 – to each series, after the transform stack, and reports the coefficients, the information criteria, the in-sample accuracy and the residual diagnostics – see ARIMA model. Ten non-missing values are the minimum. Above a seasonal period of 24, in Auto and Manual mode and with interpretation on, the card opens with a warning: the automatic search tends to keep only a seasonal difference there, and a manual seasonal term often fails to converge, so harmonic regression, the third specification, is the usual alternative.

  • Specification – the select between the automatic order search and orders you type.
    • Auto – the default: forecast::auto.arima searches the order grid, adding a constant or a drift term where it helps and choosing d by KPSS at the assumption test significance level, as Suggested d does, with the same note naming the level under the scope line; the model it settles on is named in the section heading
    • Manual – you set (p, d, q), plus (P, D, Q) when the active frequency is above 1, and the card fits your model beside a grid of its neighbouring orders; a blank, decimal or out-of-range order is outlined with its range and blocks Calculate – a seasonal order only while the seasonal row is enabled
    • Harmonic regression (Fourier terms) – a regression on K pairs of sine and cosine waves at the seasonal period, with non-seasonal ARIMA errors chosen by auto.arima – see harmonic regression. The seasonal shape is fixed across cycles and may be any smooth shape, at any period, so it is the choice above a period of 24, where SARIMA degrades. d is fixed first, by KPSS at the assumption level on the residuals of the regression, and held across every K. Hidden, with a note, when the active frequency is 1 – a selection on it falling back to Auto – and back in the list once the frequency is above 1.
  • Selection criterion – for the automatic search and for harmonic regression’s choice of K: AICc (the default), AIC or BIC – the criterion the candidate orders are ranked by; BIC penalises complexity harder and tends to return smaller models. The one that decided the fit is labelled in the summary table – see AIC, AICc and BIC.
  • Number of Fourier pairs (K) – harmonic regression only: left blank (Automatic), the card fits every K from 1 to half the period or 10, whichever is smaller – fewer on a short series – and keeps the one with the lowest selection criterion; a number fixes K, from 1 to half the seasonal period, and the same note then says K fixed at {k} in the options, not chosen by the selection criterion. More pairs draw a more jagged seasonal shape, at two parameters each.
  • p (AR order) – manual mode: the number of autoregressive terms, 0 to 10
  • d (differencing) – manual mode: how many times the series is differenced inside the fit, 0 to 3 – the pre-flight’s Suggested d is the starting point; see differencing
  • q (MA order) – manual mode: the number of moving-average terms, 0 to 10
  • Seasonal orders – the seasonal row, disabled and zeroed with a note when the active frequency is 1, since a seasonal term has no meaning without a period
    • P (seasonal AR) – seasonal autoregressive terms, 0 to 5
    • D (seasonal differencing) – seasonal differences, 0 to 2 – the pre-flight’s Suggested D; see seasonal differencing
    • Q (seasonal MA) – seasonal moving-average terms, 0 to 5
  • Include constant / drift – manual mode, on by default: fits a mean on an undifferenced series and a drift term on a differenced one, as the automatic search does; off, the model runs through the origin of the differenced scale, which is rarely wanted without a reason

The Diagnostics group is the smoothing card’s, with the same defaults: Ljung-Box test on residuals, ACF of residuals and Residual normality (Q-Q + Shapiro), each preceded by the residuals-over-time plot, where a variance that grows with the level or a break in the residual mean shows most plainly. The Ljung-Box degrees of freedom are reduced by the number of coefficients the fit estimated, the constant or drift included.

Each series gets one section:

ARIMA: {name} – {order}. The heading names the fitted model – ARIMA(0,1,1)(0,1,1)[12], the bracketed [m] the seasonal period – and its constant when one was fitted, with drift or with non-zero mean, so the term is visible before the coefficient rows – or, in harmonic mode, the number of Fourier pairs and the error model; under it the summary table, the minimum-sample lines, a note naming the likelihood optimizer’s limit when the fit stopped at it – see iteration limit – the coefficient table, the neighbouring-orders grid in manual mode or the Fourier terms table under an automatic K, the observed-vs-fitted plot with its Outlier replaced markers, and the diagnostics. When the series is too short or the fit fails, the section holds a notice, with R’s own error message when there is one.

  • Specification – the fitted order, as the heading spells it – see reading a SARIMA specification; in harmonic mode K = {k} Fourier pairs [{m}], ARIMA(p,d,q) errors, the number of pairs at period m and the error model, its mean term left to the coefficient table
  • {ic} (selection criterion) – in automatic and harmonic mode, the row of the criterion that decided the fit, labelled so it reads as a decision beside the other two, which are reported for comparison; lower is better for all three, and only between models fitted to the same data on the same scale
  • σ² (residual variance) – the innovation variance of the fit, on the Box-Cox scale when the transform applied; the log-likelihood beside it is what the information criteria are built from
  • MASE (training set) – the in-sample mean absolute scaled error, the error relative to a seasonal naïve forecast on the same series – see MASE; with the RMSE, MAE and MAPE rows, the only original-scale numbers on the card under a Box-Cox transform, since the fitted values are back-transformed before scoring
  • Term – in the coefficient table, the coefficient’s name: ar1, ma1, sar1, sma1, drift, intercept, and in harmonic mode the Fourier terms S1-52, C1-52, S2-52, … – the sine and cosine of each pair, numbered by pair and period; each row carries its estimate, standard error, confidence interval at your global confidence level, z and p-value
  • Neighbouring orders (information criteria) – manual mode only: one row per order in a grid around the chosen one – each of p, q, P and Q varied one step either way, d and D held fixed since criteria across different differencing are not comparable – sorted by AICc with the fitted model in bold and a caption saying so. The fitted row carries its own ΔAICc and grade, so a fitted order that trails a neighbour shows how far; a large gap to the best row is the signal to switch to Auto.
  • Order – a candidate’s ARIMA(p,d,q)(P,D,Q)[m], its AIC, AICc and BIC beside it
  • ΔAICc – the row’s distance from the lowest AICc in the table, 0 for the best; in the Fourier terms table the Δ is on the selection criterion, so the header reads ΔAIC or ΔBIC when that is the one chosen – see AICc
  • Interpretation – with interpretation on, the Δ graded for how much support a model keeps against the best one, each criterion on its own source and a band legend under the table naming it: ΔAICc – and ΔAIC in the Fourier terms table – on Burnham, Anderson and Huyvaert’s continuum, ΔBIC on Raftery’s grades of evidence against the row’s model
    • Preferred – the row with the lowest criterion, Δ = 0
    • Plausible – ΔAICc or ΔAIC up to 7: the data still support the model, and it stays a candidate
    • Equivocal – ΔAICc or ΔAIC above 7 and up to 14: little support left
    • Implausible – ΔAICc or ΔAIC above 14: no meaningful support against the best row
    • Weak evidence against – ΔBIC above 0 and up to 2
    • Positive evidence against – ΔBIC above 2 and up to 6
    • Strong evidence against – ΔBIC above 6 and up to 10
    • Very strong evidence against – ΔBIC above 10
  • Fourier terms (information criteria) – harmonic mode with an automatic K only: one row per K tried, with the error model chosen at it, its AIC, AICc and BIC, the Δ on the selection criterion and, with interpretation on, its grade on that criterion’s own scale, a legend under the table naming it; the fitted K is in bold, and a note names the d held fixed across K so the criteria compare. When the chosen K is the largest the search tried and lies below half the period, a line says K reached the search’s ceiling of {k}; a larger K was not tried. – with interpretation on it adds that the seasonal shape looks jagged or changing over time, which harmonic regression assumes fixed, and suggests a fixed larger K or STL.
  • ARIMA errors – the error model auto.arima chose at that K, ARIMA(p,d,q)

Every section ends with the transform stack summary and, when Box-Cox applied, the note that the information criteria and diagnostics are on the transformed scale while the curve and the accuracy rows are back-transformed.

Significant Ljung-Box on residuals is a bad fit. Residuals that retain serial dependence say the model is missing structure – usually a seasonal term or a higher AR order; refit with Auto and Exhaustive search, or extend the manual specification – see white noise.

Forecasting

Runs a horse-race across seven forecasters on each series – eight above a seasonal period of 24, where harmonic regression joins them – ranks them by validation error, plots them together with the leader highlighted and lets you swap the active method with a click. The transform stack runs first and is refitted on every training slice the validations use – see forecast accuracy for how the race is scored.

  • Horizon – the number of future periods to forecast, 12 by default and at least 1; it is also the length of every validation window
  • Evaluate on holdout – on by default: splits off the last observations as a validation set, refits each method on the rest and scores it there. The holdout is the horizon, or a fifth of the non-missing observations when that is smaller; it needs at least 30 non-missing observations and a training slice of at least 10, and when the series is too short the card says so rather than dropping the block in silence – see holdout evaluation.
  • Rolling-origin cross-validation – on by default: refits every method at several origins and pools the errors across them. Origins sit a full horizon apart, so the evaluation windows are disjoint and no observation is scored twice – see rolling-origin cross-validation.
  • Number of origins – for the cross-validation, 5 by default, 2 to 20. Each origin costs a horizon of length: one needs the horizon plus 10 observations, two twice the horizon plus 10, and so on; when the series cannot support the number asked for, the achievable count is used and the card reports it as {a} of {n} origins.
  • Flag in-sample anomalies – on by default: marks on the plot, for the active method, every observation whose in-sample residual lies more than three MAD from the residuals’ median, as Residual outlier (active model). A point the transform stack replaced is judged against its raw value, so it stays eligible.

The methods raced, each a row of the ranking table:

Method Notes
Naive Last observed value carried forward; the do-nothing baseline
Drift Naive plus the straight line through the first and last observation
Seasonal naïve Last value from the same season; needs frequency > 1
ETS Automatic exponential smoothing, picking the error / trend / season form by AICc
Auto-ARIMA auto.arima over the same grid as the ARIMA card’s automatic search
Theta Decomposition into theta lines plus SES; competitive on the M3 and M4 competitions
STL + ETS STL decomposition followed by ETS on the seasonally adjusted series; needs frequency > 1 and two full cycles
Harmonic regression Fourier terms with ARIMA errors, K chosen by AICc; raced only above period 24
  • Naive – the last observed value carried forward; the baseline every other method has to beat – see naïve forecasts
  • Drift – the naive forecast plus the average change per period, the straight line through the first and last observation
  • Seasonal naïve – the value from the same position one cycle earlier; needs a frequency above 1 and at least one full cycle, and reads Not applicable otherwise
  • ETS – automatic exponential smoothing: forecast::ets picks the error, trend and seasonal form by AICc – see exponential smoothing; fits an interpolated copy of a series with missing values
  • Auto-ARIMA – auto.arima with the ARIMA card’s default search – stepwise, AICc, d by KPSS at the assumption level – see ARIMA model
  • Theta – the theta method: a decomposition into theta lines forecast by SES and a drift; fits an interpolated copy of a series with missing values
  • STL + ETS – an STL decomposition, ETS on the seasonally adjusted series and the seasonal component added back; needs a frequency above 1 and two full cycles
  • Harmonic regression – the ARIMA card’s harmonic regression with an automatic K chosen by AICc, raced only when the seasonal period is above 24; K is chosen afresh on every holdout and cross-validation training slice, and the row names the full-data fit, K = {k} Fourier pairs [{m}], ARIMA(p,d,q) errors, with the search-ceiling line when K stopped at it. Needs one full period of observations. Each K search costs seconds per fit, so expect the race to take minutes per series.

Each series gets one section:

Forecast: {name}. The observed values with every fitted method drawn in its own colour, the active method thickened, banded with its 95% prediction interval and carrying the residual-outlier markers, and a dashed line at the last observation; under it the validation line, the ranking table, the minimum-sample lines of ETS, Auto-ARIMA and harmonic regression, a note for each method whose full-data fit stopped at its optimizer’s limit, naming the method and the limit – see iteration limit – and the forecast values of the active method. Future timestamps step in calendar months on a monthly, quarterly or yearly cadence, clamped to each target month’s length, so a forecast anchored on 31 January lands on 28 February; every other cadence extends by its constant spacing. When no method could be fitted, the section is one warning line.

  • Validation summary – one line under the plot: how many cross-validation origins scored at the forecast horizon, Rolling-origin CV: {n} origins at the forecast horizon – or the reason it was skipped, naming the length the gate requires – and the holdout’s size, or its reason; with neither, the methods are listed in their original order
  • Rank (CV RMSE) – the ranking table’s first column, its header naming the metric that decided the order: the cross-validation’s RMSE when at least one origin scored, else the holdout’s – Rank (holdout RMSE) – and a bare Rank with – in every row when no validation ran. Only rows the deciding metric scored are numbered; a method it never scored sorts after them, and one that could not be fitted sorts last. Methods whose scores print the same at the current precision share a rank, 1=; when such a tie includes the method made active at first, a note under the table names the tied methods and says the active one won on the exact value.
  • Method – the forecaster’s name, with a Use button that makes it the active method – redrawing the plot’s band and markers and rebuilding the forecast values – and ✓ Active on the row that already is. A method the series never qualified for reads Not applicable, with the reason as a tooltip; one whose fit broke reads Failed.
  • Cross-validation – the column group of the four accuracy metrics pooled across the origins that every fitted method reached; shown only when the cross-validation scored at least one origin
  • Holdout – the same four metrics on the holdout window; shown only when the holdout ran. The two groups score different data, so they are never lined up as one column – see holdout evaluation.
  • RMSE – root mean squared error, on the series’ own scale; the metric the ranking uses – see RMSE
  • MAE – mean absolute error, on the series’ own scale – see MAE
  • MASE – mean absolute scaled error, the error relative to a seasonal naïve forecast on the training slice, comparable across series and groups – see MASE. With interpretation on, a MASE smaller than every naive row’s – Naive and Seasonal naïve – scored in the same validation prints green, and a note under the table says so: at a multi-step horizon the naive rows, not 1, are the benchmark. A validation block in which no naive row scored marks nothing.
  • MAPE – mean absolute percentage error, undefined – a – – when any scored actual is zero or negative – see MAPE

Forecast values: {method}. The active method’s forecast for each future period, rebuilt whenever you press Use: the point forecast and the bounds of its two prediction intervals – see prediction interval.

  • Period – the future timestamp, with the time of day when the cadence is sub-daily, or the next index values on a numeric axis
  • Forecast – the point forecast, the mean of the forecast distribution; on the original scale, bias-corrected, when Box-Cox applied
  • 80% interval – its Lower and Upper bounds, the range the value is expected to fall in four times out of five
  • 95% interval – the wider pair, the band the plot draws

Every section ends with the transform stack summary.

Naive isn’t a strawman. Beating naive – or seasonal naïve when the frequency is above 1 – on a stable series is harder than it sounds; a favourite that does not outperform the baseline by a useful margin is not earning its complexity – see naïve forecasts.

Spectral / change-points

Frequency-domain and structural-break tools. Enable at least one of the two checkboxes – both off blocks the run with a toast. The transform stack runs first, missing values are interpolated and the fill is counted on the transform-stack line, and each series closes with a line stating how many observations were actually observed out of the total, {name}: {n} of {total} observations. – the length gates below count real values, not the values the interpolation filled in.

  • Periodogram – on by default: a tapered, detrended periodogram of each series on the true Fourier grid, plotted as the raw comb on a log scale with a modified-Daniell smoothed spectrum drawn over it – the smooth is there to read shape, and the bandwidth used is stated under the plot – and a table of the strongest peaks, each tested against a white-noise spectrum. Needs eight observed values and a non-constant series; skipped with the reason otherwise – see periodogram.
  • Bai-Perron change-points – off by default: strucchange::breakpoints places up to as many breaks as the minimum segment allows and picks their number by BIC, then draws the series with a dashed line at each break, a horizontal segment-mean line in every segment and a shaded 95% confidence band for each break date, and lists the breaks in a table. Needs twenty observed values and the strucchange package – when it cannot be loaded the periodogram still runs and the breakpoint section carries the warning – see structural break.
  • Break model – the select under the checkbox: what is allowed to change at a break.
    • Mean shift (level only) – the default: a constant within each segment, so a trending series reads as a staircase of level steps; use it when you expect a flat-between-jumps series
    • Level + trend – a straight line within each segment, so a break is a change of level or slope
  • Minimum segment size (%) – 15 by default, 5 to 45: the share of the series every segment must span, which also caps how many breaks can be placed; the card reports the resulting length in observations, so a clamped value is visible.

The periodogram section prints, per series, the plot and a table of up to five peaks in the order the stepwise Fisher’s g test behind the exploration card’s Detected seasonal periods finds them – fewer when the test stops early – a peak whose period exceeds half the observed record dropped, since one or two observed cycles are not evidence of a period, though the plot keeps the whole spectrum. The test reads the series before the transform stack, as the exploration card does, so a peak gets the same g and p on both cards; when outlier replacement or Box-Cox changed the plotted series, a note under the table says the peaks were tested before them. When the series’ gaps cannot be interpolated, the table is replaced by a note and the plot draws a straight-line fill:

  • Period (observations) – the cycle length, 1 / frequency
  • Frequency (cycles/obs) – the raw spectral frequency, cycles per observation whatever the configured frequency
  • Spectral power – the ordinate at that frequency on the untapered periodogram the test reads, so power, g and p in a row come from one spectrum
  • Fisher’s g – the peak’s share of the periodogram at the step it was tested, after every stronger peak found before it was flattened, tested against a white-noise spectrum – the number the exploration card prints for the same peak
  • p – the peak’s p-value under the white-noise null, family-wise across the periodogram; the columns are omitted, and the caption says so, when the test could not run
  • Interpretation – with interpretation on, each peak’s decision on its p at your global significance level, the cut the exploration card’s Detected seasonal periods apply to the same peak: Periodic component or Not distinguishable from white noise; – when no p could be computed

Breakpoints: {name}. The plot, then either the table below or a line saying no breakpoint was detected and, with interpretation on, that there is no evidence of a change – in the mean, or in level or slope under Level + trend – and a note naming the break model and the minimum segment in observations.

  • Observation – the index of the last observation before the break, 1-based
  • Time – the time value at that observation, with the time of day when the cadence is sub-daily
  • 95% CI from – the earliest time the break date is compatible with, clamped to the record; the shaded band on the plot
  • 95% CI to – the latest; the columns are omitted when no interval could be computed
  • Mean before – the mean of the segment ending at the break, on the original scale even when Box-Cox applied
  • Mean after – the mean of the segment that follows

Periodogram vs ACF. Both reveal cyclical structure at different resolutions: the ACF at integer lags, the periodogram at every frequency up to half a cycle per observation – a clean peak at frequency 1/12 on monthly data is the spectral signature of the yearly cycle that also spikes the ACF at lags 12, 24, 36 – see periodogram.

Change-points are shifts in the fitted relationship. The mean level under the mean-shift model, the level or slope under level + trend – never a change in seasonality or variance; for those, run the search on the residual after removing trend and season – see structural break.

Nonlinear dynamics

Reads the shape of each series’ trajectory rather than fitting a linear model to it, in two sections, each behind its own checkbox: recurrence quantification counts how often and how regularly the series returns to states it has been in before, and Lempel–Ziv complexity counts how many new patterns appear as its values, turned into symbols, are read in order. Recurrence quantification can also read several series together – each pair, or all of them at once – as Recurrence of sets. Enable at least one – both off blocks the run with a toast. A non-numeric series is taken as a categorical one: recurrence quantification counts two time points as recurrent only where their categories match exactly, and Lempel–Ziv complexity takes the categories as its symbols. A series with missing values is refused by both sections, since an interpolated stretch would add recurrences and symbols of its own; otherwise the transform stack runs first on a numeric series – a categorical one is read as it is – and each series closes with the line {name}: {n} of {total} observations. and the transform stack summary. The card opens with the same scope line as exploration’s.

  • Recurrence quantification – on by default: embeds each series in delay coordinates, marks every pair of time points whose embedded states lie within a radius of each other, and measures the lines those pairs form – see Recurrence quantification: {name} for the section it prints. Needs 30 to 5,000 observations.
    • Recurrence of – what recurs with what: each series with its own past, or several series with one another; every mode between series needs at least two series and takes the observation limits above for each. The delay, dimension, radius and window below then follow the rule the mode’s entry gives.
      • Each series with itself (auto-recurrence) – the default: each series on its own, in the section described under Recurrence quantification: {name}
      • Each pair of series (cross-recurrence) – each pair of series in one phase space, the states of the first recurring in the second: both series z-scored and embedded at one delay and one dimension, the larger of the two series’ own estimates, with no Theiler window, and one radius setting the rate over all pairs of points to the target – see Cross-recurrence quantification: {a} × {b}. Two categorical series cross-recur on an exact match of categories; a categorical series beside a numeric one is refused.
      • Each pair of series, each in its own phase space (joint recurrence) – each pair of series, a pair of times counting as a joint recurrence when both series recur at them, each in its own phase space: each series keeps its own z-score, delay, dimension and radius at the target rate, both are cut to one length from their start, and the Theiler window is the longer of the two series’ own. Series on different scales, or a categorical one beside a numeric one, can be paired – see Joint recurrence quantification: {a} × {b}.
      • All series in one phase space (multidimensional) – all the selected series at once, as the coordinates of one embedded point: the delay is the median of the series’ own delays, rounded half up, each series’ own dimension is estimated at that delay, and each series enters with the smallest number of delay coordinates e for which k × e – k the number of series – reaches the largest of those dimensions; the Theiler window is the longest of the series’ own. With a grouping variable, One radius for all groups, series not embedded changes this. A categorical series beside a numeric one is refused – see Multidimensional recurrence quantification: {names}.
    • One radius for all groups, series not embedded – multidimensional recurrence with a grouping variable; on by default: every group’s series sit unembedded in one space, one radius sets the recurrence rate pooled over the groups to the target, and one Theiler window – the largest of the groups’ own, unless typed – serves every group, so each group’s RR is the outcome the groups compare on. A typed embedding dimension still embeds the series. Off, each group takes its own delay, dimension, window and radius, which holds its RR at the target, and the radius is what the groups differ in.
    • Test coupling against pseudo-groups – under one radius for all groups; on by default: each group is one set of partners recorded under the same condition, and the groups’ recurrence is compared with that of pseudo-groups, every series but the first re-ordered across the groups – see Coupling: real groups against pseudo-groups
    • Test coupling against pseudo-pairs – cross- and joint recurrence with a grouping variable; on by default: each group is one pair of partners recorded under the same condition, and each pair’s recurrence is compared with that of pseudo-pairs, the second series re-paired across the groups – see Coupling: real pairs against pseudo-pairs. Within one pair, or one set of series, no coupling test is offered.
    • Same embedding and radius for all series – auto-recurrence with a grouping variable; on by default: in every group, each series takes the median of the groups’ own delays and the median of the groups’ own dimensions estimated at that delay, both rounded half up, one Theiler window – the largest of the groups’ own – and one radius setting the recurrence rate pooled over the groups to the target, so each group’s RR is a result. The sharing runs across the groups of one series, never across different series; a group whose own estimate failed takes the shared one, and a typed τ, m or window applies to every group as always. The parameter table shows the shared values beside the group’s own. Off, each group takes its own delay, dimension, window and radius, as with one group.
    • Delay τ – the lag between the coordinates of an embedded point, a whole number from 1. Left blank (Automatic), it is estimated per series: a quarter of the series’ dominant period when its autoregressive spectrum peaks at a period of at most half the series, at least four times its height at frequency 0; otherwise the first minimum of the average mutual information, or the first zero of the autocorrelation function when the mutual information has no minimum; when none applies the section is skipped with a note asking for a typed τ. A categorical series is not embedded – τ is 1 unless typed. The parameter table’s row of the same name gives the value and, under Basis, the rule that set it – for the spectral rule, the period it quartered. Between series a typed τ applies to every series, and the estimates combine as the Recurrence of mode’s entry says, or as Same embedding and radius for all series does across groups.
    • Embedding dimension m – how many delayed copies of the series make one embedded point, 1 to 20. Left blank (Automatic), it is Cao’s method – the dimension at which Cao’s E1 levels off – or, when E1 does not level off within the dimensions tested, false nearest neighbours; the parameter table’s row names the source, and when neither settles the section is skipped with a note asking for a typed m. A categorical series takes m = 1 unless typed. A typed m drives the recurrence analysis while Cao’s E1 and E2, false nearest neighbours, the diagnostics table and the surrogate test of E2 still run, and the parameter table shows Cao’s estimate and the false-neighbour estimate beside yours. Between series a typed m applies to every series – in multidimensional recurrence it is the dimension of the whole space – and the estimates combine as the Recurrence of mode’s entry says, or as Same embedding and radius for all series does across groups.
    • Surrogate test of E2 – the select that sets whether, and at which level, Cao’s E2 is tested against linear-noise surrogates – see Surrogate test of E2 for the table it prints. Shown for auto-recurrence alone, it runs on numeric series of at least 250 observations, whether m was estimated or typed; a categorical series gets a line saying it was not run.
      • Off – no test; the E1 / E2 table and the recurrence measures stay
      • 39 surrogates (5% level) – the default
      • 199 surrogates (1% level) – five times the cost: each surrogate is one more pass of Cao’s method, about two seconds at 5,000 observations, so a long series takes minutes per series and group
    • Profile lags (±) – cross-recurrence alone: how many lags either side of the synchronous diagonal the diagonal recurrence profile covers, a whole number from 1; left blank, 10% of the embedded points
    • Recurrence rate (%) – the share of pairs of embedded points that count as recurrent, 5 by default, 0.1 to 50: the radius is set to the distance that gives this rate, so every series is read at the same density of recurrences, and the parameter table reports the radius it took. A categorical series has no target: its radius is 0, an exact match of categories, and its rate follows from the data. Cross-recurrence counts the rate over all pairs of points of the two series, joint recurrence sets each series’ own rate to the target and lets the joint rate follow, and with one radius for all groups the target is the rate pooled over the groups.
    • Theiler window – 0 or more: pairs of embedded points at most this many steps apart in time are left out of the recurrence matrix and of every measure read from it, so a wider window drops the recurrences that only reflect neighbouring observations being alike; 0 leaves out the main diagonal alone – each point recurring with itself – which only Count the main diagonal brings back. Left blank (Automatic, the default), it is the series’ autocorrelation time, the first lag at which its autocorrelation falls below 1/e, and at least 1 – for a categorical series, that of its category indicators, pooled over the categories. With Same embedding and radius for all series on, every group takes one window, the largest of the groups’ own, and a group too short for it is skipped with a note. Between series, joint recurrence takes the longer of the two series’ autocorrelation times and multidimensional recurrence the longest of its series’, one window for all groups – the largest of their own – under one radius for all groups; cross-recurrence has none, and the field is hidden. The parameter table’s row gives the window, where it came from and the pairs it excludes; a window that covers every pair skips the section with a note.
    • Minimum line length – 2 by default, at least 2: the shortest run of recurrent points that counts as a line – diagonal for DET and the diagonal-line measures, vertical for LAM and TT
    • Count the main diagonal – auto-, joint and multidimensional recurrence; off by default. On, no pair is left out – every point’s recurrence with itself counts – and the Theiler window field is disabled; the radius search, RR and the coupling tests against pseudo-pairs and pseudo-groups all count the same cells, and with one embedding and radius, or one radius, for all groups every group counts the diagonal too. The parameter table’s Theiler window row reads –, its basis saying that no pair is excluded and the main diagonal is counted, and with interpretation on a note says that counting it inflates RR, DET and the line measures. Hidden for cross-recurrence, whose plot has no main diagonal to leave out.
    • Recurrence plot – on by default: draws the recurrence matrix of each series, pair or shared space under its measures – see Recurrence plot
  • Lempel–Ziv complexity – on by default: turns each series into a sequence of symbols, counts the patterns that appear as it is read from left to right, and ranks that count among surrogate series – see Lempel–Ziv complexity: {name} for the section it prints. Needs at least 100 symbols and at most 10,000 observations.
    • Symbolisation – how the values become symbols, the choice the count depends on most; the section’s measures table names the one used
      • Binary around the median – the default: 1 for a value at or above the median, 0 below it
      • Quantile bins – k equally filled bins cut at the series’ quantiles, one symbol per bin
      • Ordinal patterns (order 3) – each symbol is the rank order of three consecutive values, one of six patterns, so the sequence is two symbols shorter than the series; equal values are ranked by time. Adds permutation entropy to the measures.
      • The categories themselves – not offered in the select: what a categorical series takes whatever is selected, one symbol per category, and what the measures table then names
    • Number of bins – for Quantile bins only: k, 4 by default, 3 to 10

The card prints, per group and then per series, a recurrence quantification section and a Lempel–Ziv complexity section – each only when its checkbox is on – followed by the observed-count line and the transform stack summary. Under a Recurrence of mode between series, the recurrence sections come after each group’s series instead – one per pair, or one for all series – and the coupling tests follow the last group.

Recurrence quantification: {name}. The recurrence measures, the parameter table that produced them with its notes, the key measures across target recurrence rates, the recurrence plot, the embedding dimension diagnostics and the surrogate test of E2. A series the analysis cannot take holds a notice instead, naming why: missing values, fewer than 30 or more than 5,000 observations, a constant series, no delay found, no embedding dimension settled, fewer than 10 embedded points at the delay and dimension used, or a Theiler window that covers every pair. With interpretation on, a series of fewer than 250 observations gets a note that the recurrence measures are unstable at that length, and that how series compare by them can change with the analysis parameters.

  • Measure – the row’s name, in each key–value table of the card
  • Recurrence rate (RR, %) – the share of pairs of embedded points, outside the Theiler window, that lie within the radius. The radius is chosen to make it the target, so it describes the setting rather than the series; when distances tie at the radius the rate overshoots, and a note under the table gives both rates. Under Same embedding and radius for all series the one radius sets the rate pooled over the groups instead, so each group’s own rate is a result: a note under the parameter table says it counts the recurrent pairs outside the Theiler window as a share of all pairs outside it, and another gives the pooled rate when ties move it off the target. A categorical series’ rate is the share of pairs whose categories match, so it describes the series.
  • Determinism (DET, %) – the share of recurrent points that lie on diagonal lines of at least the minimum length: stretches where the trajectory runs alongside a course it took before. A periodic or deterministic series reads high, noise low.
  • Mean diagonal line length (L) – the average length of those diagonal lines, in embedded points – how long the series keeps following a course it has followed before
  • Longest diagonal line (Lmax) – the longest of them
  • Diagonal line entropy (ENTR, nats) – the Shannon entropy of the diagonal line lengths, in nats: higher when the lengths are more varied – see entropy
  • Laminarity (LAM, %) – the share of recurrent points that lie on vertical lines of at least the minimum length: states the series lingers in
  • Trapping time (TT) – the average length of those vertical lines – how long the series stays in one state
  • Diagonal lines – how many diagonal lines were counted
  • Parameter – in the parameter table, the setting or estimate the row reports
  • Basis – where the row’s value came from – an estimate, the options or a rule – or, for the windows, what it leaves out
  • This group’s own delay τ – under Same embedding and radius for all series, the delay this group’s series would have taken on its own, with the rule that set it as its basis; the Delay τ row holds the median the groups share
  • This group’s own embedding dimension m – likewise the group’s own dimension, estimated at the shared delay – Cao’s method at the shared delay, or false nearest neighbours when Cao’s E1 did not level off; the Embedding dimension m row holds the median the groups share
  • Cao’s method – shown when Cao’s method did not set m, because you typed m or false nearest neighbours took over: Cao’s own estimate, or – with the highest dimension tested when its E1 did not level off
  • False nearest neighbours – shown when false nearest neighbours did not set m, because Cao’s method did or you typed m: the first dimension at which fewer than 1% of points have a false nearest neighbour, or – with the highest dimension tested when the fraction stayed at 1% or above. With interpretation on, a note under the table says when the two estimates differ that the reconstruction – and every measure read from it – is uncertain.
  • Neighbour exclusion (Cao, false nearest neighbours) – the series’ autocorrelation time, the first lag at which its autocorrelation falls below 1/e: the neighbour searches of Cao’s method and of false nearest neighbours skip points that close in time. It reads Neighbour exclusion (Cao) when the neighbour search failed, so no false-neighbour fraction was read off it.
  • Categories – for a categorical series, how many categories it takes
  • Radius (standard deviations) – the distance within which two embedded points count as recurrent, in standard deviations of the z-scored series; with one radius for all groups, its basis names how many groups share it. A categorical series, never z-scored, has a Radius row of 0 instead: two time points recur only on an exact match of categories.
  • Embedded points – the number of delay vectors the series yields, n − (m − 1)τ; the recurrence matrix has this many rows and columns
  • Recurrence plot – the recurrence matrix as an image: embedded point i across, j up, a dark cell where the two states recur, so the picture is symmetric about its main diagonal. Diagonal lines are the stretches DET counts and vertical bands the states LAM counts. Above 1,000 embedded points each cell is a block of b × b points shaded by the share of its pairs that recur, relative to the darkest block, and a note under the plot gives b and that share; the measures are always computed on the full matrix.

Key measures across target recurrence rates. A table under every numeric series’ parameter table repeating the analysis at target recurrence rates of 2, 5 and 10%, one column each, with the embedding and the Theiler window unchanged, so only the radius moves: RR, DET, LAM and TT per row. A measure that holds its reading across the three columns does not hang on the target you chose. With Same embedding and radius for all series or One radius for all groups, series not embedded on, each column takes one radius for all groups, as the run itself does. Between series the table follows each pair’s or space’s parameter table: cross-recurrence, which holds its own rate at the target, reads the rate at lag 0, the rate at the peak and the peak lag in place of RR, and joint recurrence reads JRCI and JRR, each series’ radius set to its own rate at the column’s target. A categorical series, whose rate is not targeted, gets no table.

  • Groups’ order across the rates – with several groups, whether the groups keep their order on the row’s measure across the three rates; RR is compared only when one radius for all groups makes it a result, and reads – otherwise, while joint recurrence’s JRR, which no radius sets, is always compared. With interpretation on, a note under the table says that where the order changes, which group is higher on that measure depends on the radius.
    • Same – no two groups swap places between rates
    • Changes – at least two groups swap places between two of the rates

Embedding dimension diagnostics. A table with one row per dimension m tested – up to 15, or n / 2τ when that is smaller – shown whenever Cao’s method ran; false nearest neighbours are read off the same neighbour search.

  • E1(m) – Cao’s ratio of how far nearest neighbours lie apart at dimension m + 1 against m; it rises and levels off near 1 once m is large enough, and Cao’s estimate is the first m at which it reaches 0.95 and changes by less than a tenth to the next
  • E2(m) – Cao’s companion ratio, read off the next values themselves: near 1 at every m for a series whose future does not depend on its past, away from 1 at some m for a deterministic one – the quantity the surrogate test reads
  • Tied neighbours (%) – the share of points whose nearest neighbour at m coincides with them, a tie in every coordinate; those points are left out of E1 and of the false-neighbour fraction. Shown when any point is tied. With interpretation on, when more than half the points are tied at m = 1, a note under the parameter table says the dimensions Cao’s method and false nearest neighbours pick are unreliable on the series.
  • False neighbours (%) – the share of points whose nearest neighbour at m is false: adding the next coordinate moves it far apart, or puts it beyond twice the series’ standard deviation. Counted over the points whose neighbour is not tied; the false-neighbour estimate is the first m below 1%.

Surrogate test of E2. Whether E2 varies across the dimensions more than it would in linear correlated noise: its variation coefficient VE2 is ranked among the same statistic on IAAFT surrogates of the series, which keep its values and amplitude spectrum and are embedded with the same delay and neighbour exclusion. A note under the table defines VE2; the test is skipped with a line when the series is categorical or has fewer than 250 observations, when the dimension cap leaves fewer than nine values of E2 – a series shorter than 20τ, the line naming the length needed – or when it fails.

  • VE2 of the series – the standard deviation of E2(m) over m = 1–9 divided by its mean
  • VE2 of the surrogates, minimum – the smallest VE2 among the surrogates
  • VE2 of the surrogates, maximum – the largest; a series VE2 outside the range from the minimum to the maximum rejects linear Gaussian noise, seen through any monotone transform, at the level below
  • IAAFT surrogates – how many surrogates were computed: 39 or 199 as selected, or fewer, with a note, when some failed
  • Level (two-sided) – the test’s level, 2 / (surrogates + 1): 5% at 39, 1% at 199

With interpretation on, a note reads the result: inside the surrogates’ range, that linear stochastic structure is not rejected – the series is consistent with linear correlated noise, so the recurrence measures may describe noise rather than deterministic structure; below every surrogate, that E2 varies less than in the surrogates, a side the method offers no reading of; above every surrogate, no note.

Cross-recurrence quantification: {a} × {b}. One section per pair of series, in each group, under Each pair of series (cross-recurrence): the diagonal recurrence profile with its plot, the parameter table, a table of each series’ own delay and dimension with their bases – the estimates the shared ones were taken from – the measures over the whole plot, the key measures across target recurrence rates and the cross-recurrence plot. The plot sets the first series’ embedded points across and the second’s up, so it is not symmetric, and its main diagonal is where the two series are in the same state at the same time. The parameter table’s Theiler window reads –: the plot has no line of identity, and its synchronous diagonal counts. A pair the analysis cannot take holds a notice instead, naming the series and why – a categorical series beside a numeric one among the reasons.

Diagonal recurrence profile. The cross-recurrence section’s lead: the recurrence rate RR_τ on each diagonal τ points off the synchronous one, over the profile lags either side, as a table and a plot; at τ > 0 the second series follows the first by τ points. A note under the plot defines RR_τ and q(τ), another says, when the maximum is reached at several lags, that the peak shown is the one nearest 0, and with interpretation on a third names the series that leads.

  • Recurrence rate at lag 0 (%) – RR_τ at τ = 0: how often the two series are in the same state at the same time
  • Recurrence rate at the peak (%) – the largest RR_τ within the profile lags, the coupling where it is strongest
  • Peak lag – the τ of that peak: positive when the second series follows the first, negative when it leads, 0 when they move together
  • Asymmetry, mean of q(τ) – q(τ) = (RR_τ − RR_−τ) / 2, averaged over lags 1 to the profile’s edge: positive when the first series’ states recur in the second more often later than earlier – the first leads – and negative when the second leads

Measures over the whole plot. RR, DET, L, Lmax, ENTR, LAM, TT and the line count, read over the whole cross-recurrence plot as their recurrence quantification namesakes are; RR is the target, which the radius sets. With interpretation on, a note says that these measures carry little of the coupling between the two series and can run against it – the profile is where coupling shows.

  • Embedded points per series – in cross- and joint recurrence, how many embedded points each series yields; joint recurrence cuts both series to the same number, point i of each starting at observation i

Joint recurrence quantification: {a} × {b}. One section per pair of series, in each group, under Each pair of series, each in its own phase space (joint recurrence): the measures read over the joint recurrence plot, led by JRCI; a table of each series’ own Delay τ and Embedding dimension m with their bases, its Radius (standard deviations) and the Recurrence rate (RR, %) that radius gave; the parameter table; the key measures across target recurrence rates; and the joint recurrence plot, dark where both series recur. A note defines a joint recurrence and how JRCI reads, a categorical series is noted as recurring on an exact match of categories, and with interpretation on a note says that autocorrelated or periodic series recur in runs, which raises JRCI above 1 with no coupling between them. No leader is read: joint recurrence compares the two series at the same times only.

  • Joint recurrence coupling indicator (JRCI = JRR / RR²) – the joint rate against the rate two independent series would give, RR² for each series’ own rate RR: 1 when the two series’ recurrences fall independently cell by cell, 1 / RR when every recurrence is joint; when ties at a radius leave the two own rates apart, RR² is their product
  • Joint recurrence rate (JRR, %) – the share of pairs of times, outside the Theiler window, at which both series recur; it carries each series’ own rate, so it is read through JRCI
  • JRR / RR – the joint rate as a share of each series’ own: how often a recurrence of one series is also a recurrence of the other – their geometric mean when ties leave the two own rates apart
  • Target recurrence rate (%) – in joint recurrence, and in multidimensional recurrence with a radius per group, the rate each series’ – or each group’s – own radius is set to, over the pairs outside the Theiler window; a categorical series’ rate follows from the data

Multidimensional recurrence quantification: {names}. One section per group under All series in one phase space (multidimensional): the recurrence measures of the shared space – led, with several groups each at its own radius, by Radius (standard deviations), then the measure the groups differ in – the parameter table, a table of each series’ own delay and dimension when they were estimated, the key measures across target recurrence rates and the multidimensional recurrence plot. Under one radius for all groups, a note under the parameter table says that RR counts the recurrent pairs outside the Theiler window as a share of all pairs outside it, another gives the rate pooled over the groups when ties move it off the target, and with interpretation on a note at the foot of the card says that at one radius a group’s RR rises with how regular and persistent its own series are as well as with their coupling.

  • Delay coordinates per series – e, how many delayed copies of each series an embedded point holds: the smallest e with k × e reaching the largest of the series’ own dimensions, or the dimension set in the options; 1 when the series are not embedded
  • Phase-space dimension – k × e, the coordinates of one embedded point

Coupling: real pairs against pseudo-pairs. After the groups, under Test coupling against pseudo-pairs: one row per pair of series and measure, the mean over the groups’ real pairs against the mean over pseudo-pairs – the first series of one group with the second of another, each computed as a real pair is, with its own delay, dimension and radius, both series cut to the shorter from their start. The second series is re-paired across the groups 999 times at random, or in every order when there are at most six groups, and a line under the table gives the groups and the re-pairings. A pair that ran in fewer than two groups, or whose pseudo-pairs are too short to embed, is skipped with a notice, and a group whose pair did not run is left out and counted. With interpretation on, notes say that pseudo-pairs share whatever every group shares, so the groups should come from one condition, and, for cross-recurrence, that coupling at a lag away from 0 can leave the rate at lag 0 below the pseudo-pairs’. Multidimensional recurrence’s test reads the same way, against pseudo-groups.

  • Pair – the two series, first × second
  • Recurrence rate over the profile’s lags (%) – the cross-recurrence rate over every diagonal within the profile lags: coupling at any lag inside the profile. Cross-recurrence is tested on it, on the rate at lag 0 and on the rate at the peak; joint recurrence on JRR.
  • Real pairs, mean – the measure averaged over the groups’ own pairs
  • Pseudo-pairs, mean – the same averaged over the pseudo-pairs
  • p – one-sided: the share of re-pairings – or of re-groupings, for pseudo-groups – whose mean is at least the real one’s, the real pairing counted among them
  • Interpretation – with interpretation on, each row’s decision at your global significance level: Real pairs recur more than pseudo-pairs or No evidence of coupling beyond pseudo-pairs – for pseudo-groups, Higher in real groups than in pseudo-groups or No evidence of coupling beyond pseudo-groups

Coupling: real groups against pseudo-groups. After the groups, under Test coupling against pseudo-groups: one row each for RR, DET and L, the mean over the real groups against the mean over pseudo-groups – each keeping the first series of one group and taking every other series from a group drawn for it, all cut to the shortest from their start and placed in one space in the same Theiler window. Every series but the first is re-ordered across the groups independently, 999 times at random or in every order when those number at most 999, and p reads as for pseudo-pairs. One radius, which a note gives, sets the rate pooled over the real grouping and every re-grouping to the target, so the real groups’ values here differ from their results at the radius set over the real groups alone. A measure some group leaves undefined is not tested, and with interpretation on notes say that the groups should come from one condition and that the test rejects when any one pair of series within the groups is coupled, not only when all of them are.

  • Real groups, mean – the measure averaged over the real groups, at the test’s radius
  • Pseudo-groups, mean – the same averaged over the pseudo-groups

Without a grouping variable, or with these tests off, the measures between series are descriptive, and with interpretation on a note at the foot of the card says that no test of coupling within one set of series is offered: surrogates that keep a series’ values and spectrum gave false positives on independent series sharing a rhythm, and shifting a series in time either gave false positives or left no power.

Lempel–Ziv complexity: {name}. The complexity measures and the surrogate table that ranks the count, with their notes. A series the count cannot take holds a notice instead, naming why: missing values, fewer than 100 symbols, more than 10,000 observations, or a constant series.

  • Alphabet size – how many distinct symbols the symbolisation allows: 2, k, or 6 for ordinal patterns; for a categorical series, the number of categories it takes
  • Symbols – the length of the symbol sequence: the series’ length, or two fewer for ordinal patterns
  • Lempel–Ziv complexity c(n) – the number of new patterns met in reading the sequence from left to right, each the longest stretch already seen plus one symbol: a sequence that repeats itself scores low, one that keeps producing new patterns scores high. Its size depends on the length and the alphabet, so it is read against the surrogates of the same series.
  • Complexity ratio (c(n) / mean of the shuffles) – c(n) divided by the mean count of the shuffled surrogates: near 1, the series is as complex as its own values in random order – not distinguishable from its shuffles, which is not the same as random; below 1, less complex
  • Shannon entropy of the symbols (nats) – how evenly the symbols are used, whatever their order – see entropy
  • Permutation entropy (normalised) – for ordinal patterns only: the same entropy over the six patterns divided by its maximum, ln 6, so 1 means every pattern occurs equally often
  • Surrogates – the surrogate table’s row, one per null hypothesis; each row holds 99 surrogates, symbolised afresh exactly as the series was
    • Shuffled values – the values in random order: any temporal structure, plain autocorrelation included, separates the series from them
    • IAAFT surrogates of the ranks – series sharing the autocorrelation of the ranks, each an IAAFT surrogate of the Gaussianised ranks with the values put back in its order: only structure beyond a linear process, seen through any monotone rescaling, separates the series from them
    • Shuffled categories – a categorical series’ one row, in place of the two above: its categories in random order, testing for any temporal structure. Categories have no order, so there is no IAAFT row, and a note under the table says no surrogate keeps the series’ autocorrelation.
  • Tests for – the question the row answers: Any temporal structure or Structure beyond a linear process, under any monotone rescaling
  • Mean c(n) – the surrogates’ average count; the shuffles’ mean is the ratio’s denominator
  • Percentile of c(n) – where the series’ count falls among its surrogates’ counts, ties counting half
  • p – one-sided, for a count below the surrogates’: the number of surrogates counting at or below c(n), plus one, over the number of surrogates plus one
  • Interpretation – with interpretation on, each row’s decision at your global significance level: Less complex than its shuffles or Not distinguishable from its shuffles, Less complex than its IAAFT surrogates or Not distinguishable from its IAAFT surrogates; – when no p could be computed

A note under the table says how the surrogates were made and how p is ranked, and further notes appear when they apply: fewer than 99 IAAFT surrogates could be computed; the series has fewer distinct values than a tenth of its observations, so the IAAFT surrogates match the autocorrelation of the tied ranks rather than of a continuous process the values were rounded or binned from – with interpretation on, the note adds that the IAAFT row can then reject a linear process seen through that rounding; or the sequence is shorter than the length from which Lempel and Ziv’s bound on c(n) holds for its alphabet – 361 symbols for a binary one, 808 for ordinal patterns – and, with interpretation on, the note says to read c(n) against its surrogates rather than on an absolute scale.

Cluster series

Groups whole series by how alike they run over time. Each group of the grouping variable is one series – its rows in time order, its missing points dropped, so series can differ in length – every pair of series is compared on an elastic distance, which lets one series run ahead of or behind the other before their values are compared, and the series are clustered on those distances, each selected series variable on its own. The method needs a grouping variable – without one, Calculate stops with a toast – and at least three series of 20 observed points or more; a shorter series is left out. Of the transform stack it takes Replace outliers alone, before its own normalisation: each series is cleaned in place, its missing points still dropped rather than filled. Box-Cox is disabled while the method is selected, and a note in the Transform stack card says why – a λ estimated per series would put the series on different scales. The card opens with a scope line naming the groups and the observations it read.

  • Distance – how two series are compared, the same for every pair:
    • Dynamic time warping (DTW) – the default: aligns the two series by stretching and compressing time within the warping window, then sums the absolute differences between the aligned values, divided by the two series’ lengths together, so series of different lengths compare
    • Move-split-merge (MSM) – turns one series into the other by moving values up or down, at a cost equal to the change, and by splitting a value into two or merging two into one, at the split/merge cost each. It is not divided by length: each point by which two series differ in length adds at least that cost, and a note under the parameter table says so when the lengths differ.
  • Normalisation of each series – what each series is rescaled by before the distances, on its own values alone:
    • None (keep the level) – the default: the values as they are, so series at different levels lie far apart whatever their shapes; for series that share one scale
    • Mean-centre – each series minus its own mean: the level drops out, and the swings stay in the data’s units; the parameter table reads Mean-centred
    • z-score – each series minus its mean, over its standard deviation: level and spread drop out, and only the shape is compared. A constant series has no z-score and is left out and named.
  • Warping window (points) – DTW only: how far, in points, the alignment may shift one series against the other, 1 or more. Blank (the default) is 10% of the longest series’ length, at least 1; a pair whose lengths differ by more than the window is warped within its length difference instead, and a note counts those pairs. A wider window lets more of a difference be explained by timing.
  • Split/merge cost (c) – MSM only: 0.5 by default, 0 or more – the price of one split or merge, in standard deviations: as it stands under z-scores, otherwise multiplied by the pooled within-series standard deviation, so the same c means the same in any units. A larger c makes stretching dearer than moving values, so the series are compared more point for point.
  • Clustering method – how the series are grouped from their distances:
    • PAM (k-medoids) – the default: chooses k series as medoids, each its cluster’s most central member, and assigns every series to the nearest – see a medoid
    • Hierarchical, average linkage – merges the series into a tree, the distance between two clusters being the mean distance between their members, and cuts it at k; the card adds the dendrogram – see hierarchical clustering and average linkage
    • Hierarchical, complete linkage – the same, with the distance between the two clusters’ farthest members – see complete linkage
  • Number of clusters (k) – 2 to 20; blank (the default) takes the k with the highest average silhouette width among those compared. A k needs at least one more series than clusters, or the variable holds a notice instead.
  • Largest k compared – 10 by default, 2 to 20: the silhouette comparison runs from k = 2 to this, or to one fewer than the series clustered when that is smaller, and a typed k is added to it

Cluster series: {name}. One section per series variable: the parameter table, with notes on the series left out – those under 20 observed points and, under z-scores, the constant ones, each named with how many of the groups they are – then the average silhouette width by k, the clusters, the cluster membership and the plots. With interpretation on, when series were left out as too short, a note points to Cluster’s Euclidean distance on the time points as variables for short trajectories. A variable the method cannot cluster holds a notice instead, naming why: fewer than 3 series left to cluster, a k needing more series than are left, more series pairs × points than the distance’s recursion holds in memory – 5 million for DTW, 1.5 million for MSM – or distances that could not be computed.

The parameter table restates the options the run used, each under Basis with where it came from – Normalisation of each series, Distance, the Warping window (points) or the Split/merge cost (c), the Clustering method and the Number of clusters (k) – and adds the rows below. Notes under it count the pairs warped within their length difference, say when MSM compared series of different lengths, and name any series the outlier replacement failed on, clustered as observed.

  • Series clustered – how many series entered the distances, after those left out
  • Points per series – the observed points of the shortest and the longest series clustered, or one number when every series has the same length
  • Outliers replaced – with Replace outliers on: in the parameter table, the points replaced over all the series, and under Basis in how many series; in the membership table, each series’ own count
  • Split/merge cost in the data’s units – MSM outside z-scores: c times the pooled within-series standard deviation, which its basis gives – the cost the distances were computed at
  • Average silhouette width – the mean of the series’ silhouette widths, from −1 to 1 – see the silhouette; in the parameter table at the chosen k, in the by-k table at each k compared, in the clusters table over each cluster’s members

Average silhouette width by k. A table, and a plot beside the silhouette plot, of the average silhouette width at each k compared; when the k field is blank, the chosen k is the highest.

  • k – the number of clusters the row’s partition has

Clusters. One row per cluster at the chosen k.

  • Cluster – the cluster’s number, 1 to k; in the membership table, the cluster the series is in
  • Series – how many series the cluster holds
  • Medoid – the series that represents the cluster: PAM’s medoid or, under a hierarchical method, the member with the smallest total distance to the cluster’s others

Cluster membership. One row per series, headed by the grouping variable’s name, in cluster order and within a cluster from the widest silhouette down.

  • Nearest other cluster – the cluster the series lies nearest to after its own, the one it would join if moved
  • Silhouette width – how much nearer the series lies to its own cluster’s members than to the nearest other cluster’s, from −1 to 1: near 1 well placed, near 0 between the two, below 0 nearer the other

Under the tables the card draws the plots, then the medoids over time.

  • Silhouette plot – one bar per series, its silhouette width, grouped by cluster
  • Dendrogram – hierarchical methods only: the tree the series were merged in, cut at k – see a dendrogram
  • Cluster medoids: {name} – each cluster’s medoid series over time as it was clustered – mean-centred or z-scored when the normalisation did so, the axis saying which – each line joined across the times its series was not observed at; the legend names the clusters as Cluster {n}: {name}, the medoid’s group

Growth mixture models

Finds classes of persons whose trajectories differ: each person belongs to one of several classes, each class with its own mean trajectory over time, and the model estimates both the classes and each person’s probability of belonging to each. Each group of the grouping variable is one person, observed at the values of the time variable – persons may be observed at different times and a different number of times – and each series variable is modelled on its own. The method needs a grouping variable – without one, Calculate stops with a toast – and a person with no observed value is left out and named. The transform stack does not apply: both its checkboxes are disabled while the method is selected, and a note in the Transform stack card says each person’s few observations are modelled as observed. Every class count is fitted from many starting values, so a run takes minutes – about 3 to 5 for 1–4 classes at 300 persons × 8 time points, more with more persons, time points or classes. The card opens with a scope line naming the persons and the observations it read.

  • Model – the mixture fitted:
    • Growth mixture with a random intercept – the default: each class has its own mean trajectory, and each person their own level around it – a random intercept, whose variance is fitted for each class and common to all, BIC choosing between the two – so classes can differ in level, in change or in both
    • Level removed: each person centred on their own mean – each person’s values minus their own mean, then a mixture with no random intercept, so the classes group persons by the shape of their change alone. A person with a single observation, which centring sets to 0, is left out and named. When persons have different numbers of observations, a note says each mean is taken over different time points – with interpretation on, a second adds that centring holds up only when each person is observed across the whole period.
  • Trajectory – the shape of each class’s mean trajectory; a variable observed at fewer distinct time points than it needs holds a notice instead:
    • Linear – the default: a straight line, needing 3 time points
    • Quadratic – a curve with a time² term, so a class can rise and level off or fall and recover; needs 4 time points
  • Number of classes – 1 to 8. Blank (the default) presents the model with the lowest BIC among those compared, which picks the class count and, under the random-intercept model, its variance together; a typed count is presented at the lower-BIC variance. A count needs at least one more person than classes.
  • Largest number of classes compared – 4 by default, 2 to 8: models are fitted from 1 class up to this – or up to a typed count above it, or to one fewer than the persons when that is smaller – and each class count costs more than the last
  • Bootstrap likelihood ratio test – off by default: tests each class count against one fewer on samples drawn from the smaller model – see Bootstrap likelihood ratio tests. Costly: every sample refits both class counts, about 10–20 seconds a sample at 300 persons × 8 time points, so 99 samples take 15–30 minutes per comparison.
    • Bootstrap samples – 99 by default, 1 or more: the samples drawn for each comparison

Growth mixture: {name}. One section per series variable: the parameter table of the presented model, then the models compared, the bootstrap likelihood ratio tests when they ran, the classes, the class trajectories and the class membership. A variable the method cannot fit holds a notice instead, naming why: fewer than 3 persons with observations, fewer distinct time points than the trajectory needs, a typed class count needing more persons than there are, a one-class model that could not be fitted, or no converged fit at the typed class count.

The parameter table restates the Model, the Trajectory and the Number of classes, the last with Lowest BIC or Set in the options under Basis, and adds the rows below.

  • Persons modelled – the persons fitted, after those left out
  • Observations per person – the fewest and the most observations a person has, with the median under Basis when they differ
  • Distinct time points – how many different times the persons are observed at; its basis names the first and the last, which the model reads as 0 and 1
  • Class counts compared – 1 to the largest class count fitted
  • Random-intercept variance – under the random-intercept model: in the parameter table, with more than one class, whether the presented model fits the variance for each class (Class-specific) or one for all (Common), whichever gave the lower BIC; in the models table, each row’s structure, One class for the one-class model; in the classes table, each class’s variance – how widely its persons’ levels spread around its trajectory
  • Starting values – how each class count was started: a staged start – a mixture with no random intercept, fitted from short random starts, whose estimates start the full model – then short random starts in batches until enough fits reach the best log-likelihood; its basis gives the numbers, and Random starts the rule
  • Relative entropy – how clearly the model assigns the persons to classes, from 0 to 1: 1 when every person’s probability of their own class is 1; in the parameter table for the presented model, in the models table for each
  • Residual standard deviation – the spread of a person’s observations around their own trajectory – their class’s, raised or lowered by their random intercept

Models compared. One row per model fitted: the one-class model, then each class count – under the random-intercept model twice, with class-specific and with common variance, the common fit starting from the class-specific fit’s estimates – each with its log-likelihood, parameters, BIC and SABIC. The presented model is in bold, and a dash marks a model with no converged fit. With interpretation on, ΔBIC is graded on Raftery’s grades of evidence against the model, a legend under the table naming them, a note lists any class count at which fewer than 3 fits reached the best log-likelihood within 50 random starts – a possible local maximum – and another says that convergence alone does not show the best fit has been found.

  • Classes – the model’s class count
  • Log-likelihood – the fit’s log-likelihood, the best any of its starts reached – see log-likelihood
  • Parameters – the number of parameters the model estimates, which BIC and SABIC charge for
  • BIC – the Bayesian information criterion, with the number of persons as the sample size; lower is better, and the lowest picks the presented model unless the class count is typed – see BIC. The parameter table gives the presented model’s.
  • SABIC – the sample-size adjusted BIC, a lighter penalty per parameter, shown beside BIC
  • ΔBIC – the model’s BIC minus the lowest BIC; 0 for the model BIC prefers
  • Smallest class – the share of persons assigned to the model’s smallest class
  • Random starts – the short random starts run beyond the staged start: in batches of 10, each of 10 iterations, the best 2 of each batch carried to convergence, until 3 converged fits – the staged start counting as one – reach within 0.01 of the best log-likelihood, or 50 starts have run; – for the one-class model, which needs none
  • Fits at the best log-likelihood – how many of the converged fits reached the best log-likelihood, out of all the converged fits; only fits meeting lcmm’s convergence criteria count

Bootstrap likelihood ratio tests. With Bootstrap likelihood ratio test on, one row per class count against one fewer, within the model chosen in the options – under the random-intercept model, with class-specific variance. Each sample is drawn from the fit with one class fewer and refitted at both class counts from a staged start of 5 random starts; a sample either fit fails to converge on is left out.

  • Comparison – the two class counts, {a} vs {b} classes
  • Likelihood ratio – twice the difference in log-likelihood between the two fits on the data
  • p – the share of samples whose likelihood ratio is at least the data’s, the data counted among them: a small p says the extra class fits better than samples from the smaller model do
  • Samples fitted – the samples both fits converged on, out of those drawn

Classes. One row per class of the presented model. A class no person is assigned to is named in a note under the table. With interpretation on, warnings name the classes with an average posterior probability below 0.70, odds of correct classification below 5 or under 5% of the persons, and a relative entropy below 0.5, beside a line stating those thresholds; a note names the pairs of classes whose trajectories are near-parallel and differ mainly in level, which may reflect level rather than change, and points to the level-removed model; and a note compares the persons with the number Kim (2012) needed for accurate estimates at this class count, number of time points and class separation – read as high from a relative entropy of 0.90 – with another when the median person has fewer than 4 observations.

  • Class – the class’s number; in the membership table, the class the person is assigned to
  • Persons assigned – the persons whose highest posterior probability is this class’s
  • Assigned (%) – the same as a share of the persons
  • Estimated share (%) – the class’s share as the model estimates it, every person weighted by their probability rather than assigned
  • Average posterior probability – the mean probability of this class among the persons assigned to it: how surely its members belong
  • Odds of correct classification – the odds of assigning the class’s members to it against the odds its estimated share alone would give: 1 is no better than chance, and a value of 1000 or more reads > 1000

Class trajectories. The coefficients of each class’s mean trajectory, with time running from 0 at the first time point to 1 at the last, then two plots.

  • Intercept – the class’s mean at the first time point
  • Time – on a linear trajectory, the class’s change from the first time point to the last; on a quadratic one, its slope at the first time point, the change over the whole span being the time and time² terms together
  • Time² – quadratic trajectories only: the curvature – positive bends up, negative down
  • SE (intercept) – the standard error of the coefficient beside it, as are SE (time) and SE (time²)
  • Estimated class trajectories: {name} – each class’s mean trajectory as the model estimates it, one line per class over the observed span – centred on each person’s mean under the level-removed model
  • Observed means by assigned class: {name} – the mean observed value at each time point of the persons assigned to each class, to set beside the estimated lines; drawn when there are at most 30 distinct time points

Class membership. One row per person, headed by the grouping variable’s name, in class order and within a class from the highest posterior probability down.

  • Posterior probability – the model’s probability that the person belongs to the class they are assigned to; a value near 1 / k leaves the person between classes

Imputation, missing data, and dropped rows

Every method here needs one regularly spaced numeric vector per series, so the module keeps rows rather than dropping them and fills a gap only where a card says so. Before anything runs, a row whose time value cannot be read on the column’s scale is dropped, and so is a row whose group value is blank when a grouping variable is set; the count is the pre-flight’s Dropped rows (unparseable time) row – Dropped rows (unparseable time or missing group) with grouping – and every result card opens with a warning naming it when it is above zero. A blank or non-numeric cell in a series stays in place as a missing value: the row is kept, since removing it would move every later observation one period earlier, and the pre-flight’s Missing values row counts the blanks per series.

What each card then does with the gaps: the pre-flight interpolates a copy of the series for its difference counts and its period search; exploration does the same for the ACF / PACF, the stationarity tests, the raw Ljung-Box, the decomposition and the seasonal-period search, says under the series heading how many values it filled, and draws the series plot with the gaps; smoothing interpolates before an exponential-smoothing fit and counts the fill on the transform stack summary, while a moving average leaves a hole in its curve around the gap; ARIMA fits through the gaps; on the forecasting card Naive, Drift, Seasonal naïve and Auto-ARIMA fit through them, STL + ETS fills them inside its own decomposition, and ETS and Theta fit an interpolated copy – marked * in the ranking, with the fill counted on the transform stack summary – while their accuracy is still scored on the observed values alone; spectral / change-points interpolate and count the fill on the transform-stack line; nonlinear dynamics fills nothing and refuses a series with missing values in both its sections; Cluster series fills nothing either but drops each series’ missing points, so the series it compares can differ in length, and growth mixture models fit each person at the time points they were observed at. Whatever fills a gap, every card applies its length checks, and its minimum-sample lines, to the observed values alone. With Replace outliers on, every fitted card’s series but Cluster series’ is filled along with its outliers before any method sees it, and the summary counts the two apart – see imputation for what a filled value costs.

The global missing-data setting acts on the dataset before the module reads it, so it is not switched off here. Under the default pairwise deletion the blanks reach the cards as the missing values above; under listwise deletion a row blank on any variable selected in the Variables dialog is gone before the time axis is read, and the pre-flight shows the loss as gaps rather than as missing values, since a thinned series is no longer regularly spaced; under imputation the blanks arrive filled with the column’s mean, median, mode or a constant, and no card can tell a filled value from an observed one – see listwise deletion. The fills the cards make themselves follow the series’ own trend and season, which a column-wide constant cannot, so pairwise deletion is the setting to run this module under.

Reporting checklist

Method:

  • Time variable, series, and grouping variable if any
  • Frequency used, and whether it was auto-detected or overridden; note when groups disagreed on cadence
  • Pre-flight summary: regularity, gaps / duplicates, missingness, and any outliers replaced
  • Transforms applied (Box-Cox λ if used), and any that were requested but skipped
  • Analysis method – Exploration, Smoothing, ARIMA / SARIMA modelling, Forecasting, Spectral / change-points, Nonlinear dynamics, Cluster series or Growth mixture models – and its options:
    • Decomposition type, stationarity tests run, and the KPSS null used
    • Smoothing method, window or seasonality type, and whether the trend was damped
    • ARIMA: auto, manual or harmonic regression; the selection criterion and whether the search was exhaustive; if manual, the chosen (p, d, q)(P, D, Q)[m] and whether a constant was included; for harmonic regression, whether K was automatic or fixed
    • Forecasting: methods raced, holdout size, CV origins achieved, horizon
    • Spectral: periodogram and / or breakpoints, with the break model and minimum segment size
    • Nonlinear dynamics: for recurrence quantification, the delay τ and embedding dimension m with how each was chosen – for the delay, the rule the parameter table names – the target recurrence rate and the radius it gave, the Theiler window and whether it was the autocorrelation time or typed, with groups whether one embedding and radius was shared, the minimum line length and the neighbour exclusion, and the surrogate test’s count and level; any series read as categorical, with its exact-match radius of 0; for Lempel–Ziv complexity, the symbolisation – with k for quantile bins, or the categories themselves – and the 99 surrogates per null; the seeds the surrogates were drawn under
    • Recurrence between series: the mode – cross-, joint or multidimensional recurrence – and how it set the delay, dimension, radius and Theiler window, with the profile lags for cross-recurrence; with a grouping variable, whether the groups shared one embedding and radius or one radius, and whether the coupling test against pseudo-pairs or pseudo-groups ran
    • Cluster series: the grouping variable whose groups are the series, the distance – DTW with its warping window, or MSM with its split/merge cost c and, outside z-scores, the cost in the data’s units – the normalisation of each series, the clustering method, k and whether it was chosen by the average silhouette width, with the range compared, and whether outliers were replaced
    • Growth mixture models: the grouping variable whose groups are the persons, the model – random-intercept growth mixture or level removed – the trajectory, the class counts compared and whether the class count was chosen by BIC or set, the random-intercept variance structure, the start rule, and the bootstrap likelihood ratio test’s samples when it ran
  • Number of rows analysed, with the dropped-row count, and how missing values were handled – the fills each card reported, and the global missing-data setting the run was made under

Results:

  • Stationarity verdict per test (statistic, p-value or bound, conclusion) and the joint reading
  • Decomposition trend / seasonal strengths where reported
  • Detected seasonal periods (period ± resolution, Fisher’s g, p, and the number of peaks tested) – flagging the configured frequency, the strongest fundamental, and any harmonic structure
  • For ARIMA: full specification including any constant – for harmonic regression the number of Fourier pairs and the error model – AIC / AICc / BIC, training-set accuracy, the model’s minimum sample beside n, residual Ljung-Box result, an explicit note on residual whiteness, and any fit that stopped at its optimizer’s limit
  • For smoothing: the fitted specification and parameters, the residual diagnostics, and any fit that stopped at its optimizer’s limit
  • For forecasting: the winning method, the metric that decided the ranking, and its CV / holdout figures; report at least one baseline (naive or seasonal naïve) for context
  • For periodogram: the dominant period(s), their power, and their Fisher’s g p-values
  • For breakpoints: the break dates with their confidence intervals, and the segment means
  • For recurrence quantification: RR, DET, L, Lmax, ENTR, LAM and TT with the number of embedded points; the key measures across target rates of 2, 5 and 10% when a conclusion rests on a measure, and, with several groups, any measure whose groups’ order changes; any note that the series is too short for stable measures; Cao’s and the false-neighbour estimates when they disagree; the series’ VE2 against the surrogates’ range, and the reading
  • For recurrence between series: for cross-recurrence the rate at lag 0, the peak’s rate and lag and the asymmetry, with the measures over the whole plot; for joint recurrence JRCI, JRR and JRR / RR, with each series’ own parameters and rate; for multidimensional recurrence the measures with the radius – the one shared, or each group’s as its measure; for a coupling test, each row’s real and pseudo means and p, with the number of groups and of re-pairings or re-groupings
  • For Lempel–Ziv complexity: c(n) and the complexity ratio, each surrogate row’s percentile and p with the question it tests, the entropies, and any ties or short-sequence note
  • For Cluster series: the number of series clustered and their lengths, any left out and why, the average silhouette width at the chosen k and by k, each cluster’s size, medoid and average silhouette width, and the membership
  • For growth mixture models: the persons and time points modelled, the models compared with their BIC, SABIC and relative entropy, the starts used and the fits at the best log-likelihood, the presented model’s class shares, average posterior probabilities and odds of correct classification, its coefficients and random-intercept variances, the bootstrap likelihood ratio tests when run, and any adequacy, near-parallel or sample-size note

Reproducibility

Every analysis prints the underlying R code to the R console – you can inspect, copy, or re-run the exact commands. The module uses forecast for the difference counts and the period search, the ACF / PACF, the exponential-smoothing, ARIMA and harmonic-regression fits, the forecasters, the outlier scan and replacement, the Box-Cox transform and its λ, the accuracy measures and the interpolation of missing values; tseries for the ADF, KPSS and Phillips-Perron tests; base R’s stats for the STL and classical decompositions, the periodogram, the Ljung-Box and Shapiro-Wilk tests and the autoregressive spectrum of the recurrence delay; strucchange for the Bai-Perron breakpoints and their confidence intervals, loaded only when the break search is on; and, loaded only for nonlinear dynamics, crqa for the recurrence measures and nonlinearTseries for the delay estimate and the nearest-neighbour search – Cao’s E1 and E2, false nearest neighbours, the IAAFT surrogates and the Lempel–Ziv count are the module’s own R code. Cluster series loads cluster for PAM, the hierarchical tree and the silhouettes – its DTW and MSM distances are the module’s own R code – and growth mixture models load lcmm, whose hlme fits every model. The unit-root verdicts and the seasonal-period significance read your global significance level; KPSS, the Ljung-Box tests and the residual Shapiro-Wilk row, whose null is that the series or the residuals are fine, read the assumption test significance level, as does the KPSS test by which the pre-flight and auto-ARIMA choose d; p-value formatting follows the global p-value setting; the confidence level sets the ARIMA coefficient intervals and the band of the residual ACF, while the forecast prediction intervals are fixed at 80% and 95%. Four steps draw random numbers: above 5,000 residuals the Shapiro-Wilk row is judged on a draw of 5,000 taken under Reproducibility seed, and the card names the draw; Cao’s method adds a jitter of a millionth of the smallest gap between values under the same seed; the random starts of growth mixture models are drawn under it too; and the surrogates of the E2 test and of Lempel–Ziv complexity, like the random re-pairings and re-groupings of the coupling tests and the samples of the growth mixtures’ bootstrap likelihood ratio test, are drawn under Bootstrap seed – leave a seed empty for fresh draws each run, or set an integer for stable ones; every other number the module prints is deterministic. Citations for the packages and methods that ran appear at the top of the output card and follow the run – a stationarity test you did not select, a diagnostic you switched off or a decomposition that did not run is not cited. The reasoning behind the module’s thresholds, fallbacks and refusals is on its method notes.

Common pitfalls

Misspecifying the frequency. Frequency is observations per cycle, not a sampling rate – twelve for monthly data with a yearly cycle, seven for daily data with a weekly one. At 1 the seasonal naïve forecast, Holt-Winters, STL + ETS and the seasonal (P, D, Q) row of SARIMA all switch off, and above 24 Holt-Winters is unavailable and the ARIMA card warns and points at harmonic regression. The auto-detected suggestion under the time picker covers the common cases, and the pre-flight’s Detected seasonal period row offers a second opinion read off the series itself – override only when you have a non-standard cycle.

SARIMA / Holt-Winters on a short series. A seasonal model spends parameters on its season – Holt-Winters at a period of 12 needs 17 observations before its prediction intervals are even finite – and on a short, noisy series those parameters absorb noise rather than signal. The minimum-sample line under each fit puts the model’s floor beside your n, but the floor assumes almost no randomness: on a short series prefer naive baselines, ETS without seasonality or simple exponential smoothing, and escalate to a seasonal model only with a clear margin above its minimum.

Reading ADF or KPSS as if one test settled it. Both have low power on near-unit-root series, and a non-rejection isn’t proof of stationarity – it’s failure to reject. Read the Joint reading line rather than a single row, keep the KPSS null matched to the ADF model, and cross-check against the suggested d, the visual decay of the ACF, and substantive knowledge of the series.

Forecasting without a baseline. A model that doesn’t beat Naive – or Seasonal naïve when the frequency is above 1 – isn’t earning its complexity. The horse-race always races Naive, and Seasonal naïve whenever the frequency allows it: keep them in your reporting even when ETS or Auto-ARIMA wins, so the reader can see how much the better model bought you.

Comparing forecast metrics across the wrong things. RMSE and MAE are on the series’ own scale, so a “better” number on a different series or group means nothing – use MASE for that. And never read a CV figure against a holdout figure: they’re computed on different data, which is why the table keeps them in separate column groups and ranks on one of them only.

Choosing the wrong break model. The mean-shift model has no slope, so it explains any trend as a staircase of level steps and will happily report several breaks in a series that only trends. If the series trends, use Level + trend – and if the two models disagree about how many breaks exist, that disagreement is itself the finding.

Reporting in-sample fit instead of out-of-sample error. A low ARIMA AIC means the model fits the training data well; it doesn’t tell you how the model will forecast. The forecasting card’s holdout and rolling-origin CV column groups are the quantities to quote when the analysis is about prediction.

Comparing recurrence measures read at different settings. DET, LAM, the line lengths and their entropy all move with the recurrence rate, the delay, the embedding dimension, the Theiler window and the minimum line length, and an automatic τ, m or Theiler window can differ from series to series. Compare series only at the same settings – across groups, Same embedding and radius for all series sets them for you; otherwise type τ, m and the window once the estimates are known and keep one target rate – report all five, and check the key measures across target recurrence rates before leaning on a difference: where the groups’ order changes across the rates, which group is higher depends on the radius. Below 250 observations the measures shift with the settings, and the card says so.

Reading recurrence between series as coupling. Two independent series that share a rhythm, or that change slowly, recur together more often than chance alone would make them: JRCI rises above 1 for autocorrelated or periodic series, the measures over the whole cross-recurrence plot carry little of the coupling and can run against it, and at one radius for all groups a group’s RR rises with its series’ own regularity. Within one set of series these measures are descriptive; the evidence for coupling is the test against pseudo-pairs or pseudo-groups, with the groups recorded under one condition.

Reading “not distinguishable” as random. A Lempel–Ziv ratio near 1, or a row reading Not distinguishable from its shuffles, says the order of the values could not be told from a shuffle at this length – not that the series is random: a fully deterministic sequence can be as complex as noise, and a short series leaves the test little power. Report the wording the card uses.

Reading a rejected E2 test as chaos. A VE2 above every surrogate rejects linear correlated noise seen through a monotone transform, and so does a drifting, nonstationary series or a nonlinear stochastic one; it is evidence of structure beyond linear noise, not proof of low-dimensional deterministic dynamics.

Clustering series by their level. Under None (keep the level) DTW and MSM compare the values as they stand, so series at different levels land in different clusters whatever their shapes. To group by the course a series takes, choose Mean-centre or z-score in Normalisation of each series, and for a few repeated measurements per person – fewer than the 20 points the method needs – use Growth mixture models instead.

Reading growth mixture classes as kinds of person. A class is a component of the mixture that fits the trajectories best, not evidence of a distinct group of people: a spread of trajectories that is merely not normal within one population is fitted by several classes too, and a class count whose best log-likelihood few starts reached may be a local maximum. Read the class count against Fits at the best log-likelihood, the adequacy notes and the smallest class, and report the classes as a summary of how the trajectories spread unless something outside the model backs them.