Skip to content

Capability map

Which behaviors of a forecaster does TimeGym exercise, and with what kind of evidence? This page crosses the two. Rows are capabilities a model may need; columns are the four kinds of evidence from How TimeGym decides. The layout follows CheckList's capability by test-type matrix (Ribeiro et al. 2020).

Each entry in a cell names a scenario family, a diagnostic and the tutorial that shows the pair, by number. An empty cell is a gap: no tutorial shows that pair. The check may still run there; forecast contracts, for example, run on every case of every family.

The four kinds of evidence

Column Oracle type Diagnostics When it runs
Forecast contract Partial oracle forecast_contract, contract_<code>, check_<name> On every case, before scoring; checks asked for with checks= on every case that meets the contract
Reference score Simplified data with known results point_accuracy, quantile_accuracy, sample_scores, metric_<name>, interval_coverage On every case that meets its contract; descriptive, never PASS or FAIL
Declared relation Known properties shift_equivariance When called with check_shift_equivariance, for a model that declares the property
Statistical check Statistical metamorphic test reference_covariance With checks=[dependence()], or called with covariance_dependence_check

The diagnostics catalogue gives each diagnostic's statuses, tolerance and evidence. The statistical check ranks its statistic among values computed on draws from the answer key and gets its p-value from rank_alarm; comparing a scorecard with a saved baseline gets the p-value of its paired test from the same function.

The map

Core families are documented in Scenarios and references, composed and financial families in Composed and joint processes.

Capability and scenario families Forecast contract Reference score Declared relation Statistical check
Level and trend
white_noise, trend, composite
white_noise · contract_index_mismatch · 03
white_noise · contract_quantile_crossing · 03
trend · point_accuracy · 10
trend · point_accuracy · 02
white_noise · shift_equivariance · 03
Persistence
ar1, random_walk, composite
ar1 · forecast_contract · 08 ar1 · interval_coverage · 08
random_walk · point_accuracy · 10
ar1 · point_accuracy · 05
Seasonality
seasonal, composite
seasonal · contract_index_mismatch · 03
seasonal · contract_point_shape · 02
composite · interval_coverage · 04
seasonal · point_accuracy · 05
Parameter changes
composite
composite · point_accuracy · 11
Jumps
merton_jump_diffusion, composite, markov_switching
merton_jump_diffusion · point_accuracy · 11
Volatility clustering
garch
garch · point_accuracy · 11
Hidden regimes
markov_switching
markov_switching · point_accuracy · 11
Dependence between targets
Every family, with n_targets of 2 or more
ar1 · contract_target_mismatch · 06 ar1 · point_accuracy · 06
ar1 · sample_scores · 09
ar1 · reference_covariance · 09
composite, merton_jump_diffusion, garch, markov_switching · reference_covariance · 12

What the gaps mean

  • Forecast contract. A contract does not depend on the family: Forecast.validate checks every case before it is scored. The cells show where a tutorial injects a contract fault, and none does so on a composed or financial family. The horizon_truncation, nonfinite_point and sample_axis_swap fault fixtures appear in no tutorial.
  • Reference score. Every row has one, but the composed and financial rows rest on tutorial 11 alone, which reports mean-reference MSE. Parameter changes appear only in its ladder of forecast plots, with the score in each panel title.
  • Declared relation. Shift equivariance is the only declared relation, and only tutorial 03 runs it, on white noise. A relation holds only for a model that declares it, so some of these cells stay empty by design.
  • Statistical check. PASS and FAIL come only from direct covariance_dependence_check calls in tutorials 09 and 12, on reference ensembles with and without a cross-target fault. No tutorial runs the check on a fitted model's samples, or against a jump, volatility or regime fault in one target. Tutorials 02 and 07 pass checks=[dependence()] on real data, which has no reference, so the check returns UNSUPPORTED. Regime switching with jumps has an approximate reference, so tutorial 12 shows the check returning UNSUPPORTED there too.

Keeping the map current

tests/test_docs_catalogue.py fails when a scenario family the code defines has no row, when the evidence table above disagrees with the catalogue's oracle types, when a cell names a diagnostic the catalogue lacks or files it under the wrong column, and when a linked tutorial no longer mentions its family and diagnostic.