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
- Direction probability over a horizon: 1D, 1W, 1M, 3M.
- Return quantiles.
- Regime probability: risk-on, range, risk-off, high-vol.
- Event probability: earnings beat, drawdown risk, guidance cut.
- A scenario tree with explicit assumptions and falsifiers.
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:
- condition on the regime: oversold in an uptrend is not oversold in a downtrend;
- normalize with percentiles or z-scores instead of comparing raw values across assets;
- combine with trend, volume, breadth, and fundamentals;
- test parameter robustness instead of cherry-picking RSI(14);
- backtest with walk-forward, costs, and multiple-testing corrections;
- record the RSI value, regime, and forecast together so calibration can say whether RSI helped.
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:
- features are z-scored with the fit window's mean and population standard deviation;
- priors are
N(0, 100²)for the fixed effects andN(0, tau²)for offsets, withtau = 1.0by default; - the fit is MAP by Newton, stopping at
max|delta theta| < 1e-10and failing after 200 iterations rather than returning an unconverged number; p_upis the posterior median under a Laplace approximation, with a 90% interval fromsigmoid(eta ± 1.6448536269514722 · sd);- a probe whose entity, sector, or regime was unseen contributes a zero offset and reports
seen=no. A new ticker is a fact, not missing data.
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
- Point-in-time memory: the
as_ofcut that makes all of this honest. - Operations: running and gating an instance.