Bentrix Docs
HomePricingDashboard

A rank

A place from 0 to 1 among many markets on one date — how tournament-style and cross-sectional models answer — measured by the correlation of the ranks with what you supply, per date.

01In plain words

Some models do not ask will this market rise? but will it do better than the others? For every market in a large group — say 4,000 shares — they give a rank from 0 to 1 on one date: 0 for the market expected to do worst, 1 for the best, 0.5 for the middle.

02An everyday example

A league table ranks the teams. Being in the top quarter says nothing about whether a team played well this season — only that it did better than most of the others. A rank output says the same about markets.

0.5
A rank from 0 to 1, with 0.5 as the middle A drawing of the idea, not a picture of the application.

03How to read it on the chart

  • The line goes from 0 to 1; the faint line at 0.5 is the middle.
  • Above 0.5 the model expects this market to do better than most of the group; below, worse.

04Giving it a meaning

A rank is mostly measured rather than turned into arrows: what matters is whether the markets the model ranked high really did better than those it ranked low.

05Watch out for

  • A high rank in a falling market can still lose money. If every market falls, the best of them may only fall less.
  • A rank needs many markets. One market's rank on its own tells you little; ranks are judged across the whole group on each date.

06For programmers: what to hand Bentrix

One {"value": …} between 0 and 1, the size of the universe it was ranked in, and a horizon in business days ({"business_days": 20}) where it speaks of one. Put one output per market, at the same anchor.

spec = bentrix.Output.rank("cs_rank", "AAPL", date_ms, 0.62, universe=4871, horizon={"business_days": 20})

07What the pane shows

A line from 0 to 1 with 0.5 for reference.

08What is measured

Per date, across the markets ranked on it, the Spearman correlation of the ranks with what came — its mean, its spread, their ratio, and the worst run of its cumulative sum. Two targets are kept apart:

  • The target you supply (output_actual_put) — for instance the residual return a tournament scores on.
  • The raw move over the horizon, from the workbench's own bars, labelled raw — not the residual target.

No top-minus-bottom return is drawn: a rank's measure here is its correlation.

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed