Bentrix Docs
HomePricingDashboard

Quantiles

A few levels of a distribution — the 5th, 50th and 95th percentile of a return or a price — drawn as a fan with its median bold, and measured by how often reality fell inside.

01In plain words

A model that knows it can be wrong may answer with a spread instead of one value: the next close is below 1.0820 with only 5 % chance, below 1.0850 with 50 % chance, below 1.0880 with 95 % chance. Each of those levels is a quantile. The 50 % one is the middle guess, called the median; the outer ones say how wide the model thinks the possible outcomes are.

02An everyday example

A travel app says your trip takes 25 minutes, usually between 20 and 35. The 25 is the middle guess; 20 and 35 are how early and how late it could reasonably be. Quantiles say the same about a price.

Quantiles: the middle line bold, the band between the outer levels shaded A drawing of the idea, not a picture of the application.

03How to read it on the chart

  • The bold line is the median: the model's middle guess.
  • The thinner lines are the other levels, such as the 5 % and 95 % ones.
  • The shaded band between the outermost lines is the range the model thinks the outcome will most likely fall in. A wide band means the model is unsure; a narrow band means it is confident.

04Giving it a meaning

A quantile output is usually read rather than acted on. Its measures show whether the band is as wide as it should be.

05Watch out for

  • A narrow band is not a correct one. Check the coverage: if the 95 % line really is above the outcome 95 % of the time, the band is honest. If it is only 70 %, the model is too sure of itself.

06For programmers: what to hand Bentrix

Its levels ([0.05, 0.5, 0.95] — the builder reads them from the first step where they are not given) and one {"q": {"0.05": …, "0.5": …, "0.95": …}} a step.

spec = bentrix.Output.quantiles("ret_q", "EURUSD", anchor_ms, {"0.05": 1.0820, "0.5": 1.0850, "0.95": 1.0880})

07What the pane shows

A line per level, the median bold, and the band between the outermost levels faintly filled.

08What is measured

For each level, the pinball loss (the standard score of a quantile) and its coverage — the share of steps whose close fell at or below it. A well-made 95th percentile has a coverage near 0.95.

09What it does not tell you (more)

A narrow fan is not a sure one: read its coverage before trusting its width.

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