Overfitting odds
overfitting_oddsOverfitting check: how many attempts plain chance needs to produce the track record you were shown. Give the wins, the losses and how many versions were tried: you get the exact binomial odds of one try reaching it, the odds once somebody shows you the best of N, and how many tries would make it an even bet. Arithmetic only — no market data, no model, no opinion. A 62% win rate over 100 trades is one thing on the first try, nothing on the fiftieth.
Use when you are shown a win rate, a backtest or a signal channel's record and need to know whether luck explains it. Needs no coin. For what a named rule did on real prices use strategy_grid_lookup; to place a return among real accounts, leaderboard_rank_check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wins | Yes | Winning trades. | |
| tries | No | How many versions were tried before this one was shown to you. Defaults to 1, which is almost never true. | |
| losses | No | Losing trades. Give this or trades. | |
| trades | Yes | Total trades. | |
| baseline | No | Probability a single trade wins by chance. Defaults to 0.5. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | false when we do not hold that data. Never a zero standing in for an answer. | |
| error | No | no_data when ok is false. | |
| reason | No | Why, in one sentence, and what we do have instead. | |
| reading | No | The same three numbers in one sentence. | |
| odds_one_try | No | P(at least this many wins) for a single attempt. Exact binomial, not simulated. | |
| win_rate_pct | No | The win rate. | |
| odds_best_of_tries | No | Same result, once you take the best of the attempts made. | |
| tries_for_even_odds | No | Attempts needed for chance alone to reach it half the time. |