Edit this page on GitHub ↗

Forecasts and calibration

Janus forecasts probabilities and scenarios, not prices. The output is a distribution plus the reasoning that produced it, written down before the outcome.

Forecast types

RSI is a feature, not a signal

The most common failure in a market agent is treating an indicator as an instruction. Janus treats RSI as one input among many:

The baseline model

LogisticDirectionModel is a dependency-free logistic regression over rsi_14, trend, and breadth. Features are standardized before fitting, the model carries a ModelCard, and to_dict / from_dict include hyperparameters as well as coefficients, so a run is reproducible.

It is a baseline, not a trading strategy. There are no transaction costs and no claim of alpha.

Hierarchical pooling

janus.forecast.hierarchical adds partial pooling. The intercept and slopes are global; entity, sector, and regime each carry an offset with a shared Gaussian prior. A group with four rows borrows strength from the pool instead of being trusted on its own.

The choices are visible in the artifact:

Scoring

Every prediction is scored after the outcome:

Metric Use
Brier score Binary events
Log loss Probabilistic forecasts
Reliability curve / ECE Calibration
Quantile coverage Interval forecasts

A forecast that is accurate but overconfident is not a good forecast. Calibration is the point; accuracy without it is luck with better marketing.

Walk-forward, not one split

The evaluation harness is built around walk-forward windows, costs, and multiple-testing awareness. A single train/test split on a non-stationary series is a story, not evidence.

BeliefBench

BeliefBench is the evaluation surface for the loop: given a point-in-time record, does the system produce forecasts that are both accurate and calibrated, and does the review layer attribute the result correctly?

Read next