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 trendwhite_noise, trend, composite |
white_noise · contract_index_mismatch · 03white_noise · contract_quantile_crossing · 03 |
trend · point_accuracy · 10trend · point_accuracy · 02 |
white_noise · shift_equivariance · 03 |
|
Persistencear1, random_walk, composite |
ar1 · forecast_contract · 08 |
ar1 · interval_coverage · 08random_walk · point_accuracy · 10ar1 · point_accuracy · 05 |
||
Seasonalityseasonal, composite |
seasonal · contract_index_mismatch · 03seasonal · contract_point_shape · 02 |
composite · interval_coverage · 04seasonal · point_accuracy · 05 |
||
Parameter changescomposite |
composite · point_accuracy · 11 |
|||
Jumpsmerton_jump_diffusion, composite, markov_switching |
merton_jump_diffusion · point_accuracy · 11 |
|||
Volatility clusteringgarch |
garch · point_accuracy · 11 |
|||
Hidden regimesmarkov_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 · 06ar1 · sample_scores · 09 |
ar1 · reference_covariance · 09composite, merton_jump_diffusion, garch, markov_switching · reference_covariance · 12 |
What the gaps mean¶
- Forecast contract. A contract does not depend on the family:
Forecast.validatechecks 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. Thehorizon_truncation,nonfinite_pointandsample_axis_swapfault 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.
PASSandFAILcome only from directcovariance_dependence_checkcalls 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 passchecks=[dependence()]on real data, which has no reference, so the check returnsUNSUPPORTED. Regime switching with jumps has an approximate reference, so tutorial 12 shows the check returningUNSUPPORTEDthere 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.