Connect the signal to the risk decision

A prediction becomes useful through a decision. In this trading context, providing liquidity offers potential spread capture, while accumulated inventory changes exposure to the next market move. The order book signal, existing position and cost of offsetting exposure belong in the same modeling problem.

The depth panel measures resting bid and ask size across selected levels. Its imbalance is (B − A) / (B + A). At the nearest four levels, the rounded shares are 62% bid depth and 38% ask depth, with an imbalance of +0.23; the skew weakens across more levels. The measurement depends on the chosen depth window.

The premium panel connects signed inventory q to a local delta offset. With option units n, multiplier m = 1 and delta Δ, q + nmΔ = 0. Calls with Δ = +0.5 offset short inventory; puts with Δ = −0.5 offset long inventory. Fixed unit premium 2 gives n = 2|q| and total purchase premium 4|q| currency units. Inventory is measured in underlying units.

That fixed unit price produces the V shaped total premium curve. Delta changes with the market, requiring recalculation as exposure changes; the local offset leaves other risks. The panels make the depth window and hedge sizing assumptions explicit.

Test the model using information available at the time

The research tooling creates chronological training and test windows with a configurable embargo between them. Feature selection runs on the training slice; the estimator fits the selected columns and predicts the later test slice. Keeping selection inside each experiment limits one route by which evaluation data could influence the model.

The gap needs to match label horizons, overlapping feature windows and upstream publication times. Backward as of joins and explicit dependencies expose the intended information flow, but revised observations or a poorly timed join can still cross the boundary. Chronological splitting alone cannot establish that every input was available.

The PCA figure answers a separate question about feature geometry. Projection coordinates and variance fractions use the same centered six dimensional dataset. Colors identify input groups; their overlap describes structure, while predictive value still requires chronological evaluation.

ANALYSIS

Feature geometry and variance from the same data

PC2 · dimensionless72 samples
PC1 · dimensionless
Explained variance6 components
Fraction of total sample variance
Input group AInput group BInput group CPC1 + PC2: 87.4% of variance
The projection and variance bars use the same centered six dimensional dataset. Colors identify input groups; overlap shows their structure in feature space.

Keep the model and its input contract together

The dependency graph records how source data feeds derived features. Saved model metadata preserves ordered feature dependencies and relevant graph nodes beside the serialized estimator. A team reviewing the model can inspect the columns and transformations it expects rather than recover that contract from a notebook session.

Rolling predictions and a final fitted estimator have different identities. The final model is fitted after evaluation and did not generate every earlier fold’s predictions. A reproducible comparison needs the fitted instance associated with each period; the final artifact alone cannot supply that history.

These records support a reproducible handoff, alongside the corresponding data, configuration and compatible software. They also guide investigation: an unexpected result can be checked against changed inputs, feature order or model choices before proposing an explanation.

FOLLOW THE EVIDENCE

Keep the path from feature to evaluation

  1. Resolve feature dependencies

    A selected feature depends on prior transformations and inputs. Keep their identities alongside the modeled signal.

    feature graph → required inputs
  2. Select and evaluate chronologically

    Select features and fit within earlier windows, then inspect predictions from later windows.

    earlier fit → later predictions
  3. Keep evidence after the run

    Save model metadata and predictions; retain simulation records as a separate view of configured execution assumptions.

    model identitypredictionssimulation records
A score is easier to examine when the feature path, fitted model and later predictions survive the run. Simulation records retain their own execution assumptions.

Inspect what the simulation actually recorded

The simulator consumes nonempty prediction output and retains metrics, tick history and execution history. The artifact reader validates required files and schemas, so a missing record remains distinguishable from an unusual simulated result.

Curve definitions matter when comparing runs. The reader can filter by time, retain the last equity value in each resampling bucket and normalize from the initial recorded value. A missing or zero starting value leaves normalization unavailable.

Execution histories connect aggregate changes to simulated orders and quantities. They provide evidence for investigating model predictions, inventory handling and configured execution assumptions. They do not establish achievable live fills or trading returns.

For a team commissioning model evaluation, the useful deliverable is this linked record: inputs, feature selection, fitted instances, later predictions and simulation artifacts. It supports a concrete decision about what to investigate or implement next while keeping market measurements, test results and economic outcomes distinct.