ValidationIntermediate26 min read

Ten good trades: what you still do not know

Work through a ten-trade example to understand Wilson intervals, uncertain expectancy, clustered outcomes and sample sizes chosen for precision.

A clear jar with a few dark and pale pebbles, including one fuchsia pebble, on a large cream tabletop: a small sample beside a much larger unknown.
Conceptual photograph: a handful of observations leaves much outside the sample.

The tenth trade closes, and the spreadsheet looks reassuring. Seven rows are green, three are red, and the cell labelled win rate says seventy percent. You can already imagine a report with that number in large type. Yet a second question is harder to answer: how different could the underlying success rate be while still producing a small record like this one?

The problem is not that ten observations contain no information. They do. The problem is asking them to settle a more precise question than they can support. Ten trades might reveal a broken execution rule, a large recurring fee or an obvious concentration around one announcement. They usually leave considerable uncertainty about a long-run frequency, and even more questions about the money attached to that frequency.

We will follow one deliberately hypothetical record through several decisions. Nothing here is a historical result, a forecast for a robot or evidence about an Atlas product. The arithmetic is reproducible; the assumptions are part of the example. We will distinguish the result observed from the precision achieved, then ask what kind of additional observations would actually help.

1. Decide what a trade is before counting one

A broker statement counts transactions for accounting. An analysis needs a unit that matches its question. Opening one position in five pieces does not automatically create five independent experiments. Closing a position through three partial exits does not necessarily create three fresh tests of the entry rule. If the question concerns a complete trading decision, the natural record may be the combined result of that decision after every fill, fee and exit.

For our example, a trade means one completed decision under an unchanged rule. A win means a strictly positive result after the specified cost; every other outcome would be a non-win. There are no zero outcomes in the example. In a real study, deciding whether flat trades count as failures, a separate category or exclusions changes the target. That decision belongs in the protocol before the outcomes are inspected.

The initial statistical model is intentionally restrictive. Each completed decision has the same unknown probability of winning, and its binary outcome is independent of the others. This is the independent and identically distributed, or iid, Bernoulli model. It does not say that markets normally behave this way. It defines the conditions under which the simple binomial calculation below has its intended interpretation.

Also specify the population you want to describe. A rule used only during one session does not acquire evidence about other sessions merely because the rows are numerous. A sample gathered from one instrument says little about a modified rule on another instrument without additional assumptions. A denominator is a research choice, not just the number of lines a platform exports.

This distinction is practical when records disagree. A statement might contain twelve fills, ten completed decisions and six event groups. None of those counts is intrinsically fraudulent or correct for every purpose. Report the count relevant to the estimate, preserve the other counts, and explain how the records map to one another. Otherwise an innocent reporting convention can masquerade as additional statistical information.

2. Read seven wins out of ten literally

Our ten decisions contain seven wins and three losses. Dividing seven by ten gives an observed win rate of seventy percent. That is an exact description of these rows, subject to correct labels. It is not an exact measurement of the unknown probability that generated them. Repeating the same experiment under the same model would generally produce a different count, even if the underlying probability never changed.

To see why, temporarily suppose the probability were one half. There are 1,024 equally likely ordered sequences of ten binary outcomes. Of those sequences, 120 contain exactly seven wins, 45 contain eight, ten contain nine and one contains ten. Together, 176 sequences contain at least seven wins. The probability of that event is therefore 17.1875 percent under this deliberately simple assumption.

That calculation is not the probability that the rule has no advantage. It is a probability of possible data under a specified probability model. Nor does a fifty percent win rate define economic break-even for every trading rule. We use it here because the small example can be counted completely by hand. The official SciPy documentation distinguishes the hypothesised success probability, the observed proportion and the test result. SciPy binomial test.

The first sensible decision is therefore modest: retain the record and investigate its uncertainty. Rejecting the rule solely because the record is small would discard information; promoting it solely because the fraction looks attractive would overread that information. A short favourable record can justify further observation without justifying confidence in a precise rate.

Notice how strongly one additional outcome moves this display. An eleventh win would give eight wins in eleven, about 72.7 percent. An eleventh loss would give seven in eleven, about 63.6 percent. A dashboard showing several decimal places cannot remove that sensitivity. The arithmetic may be accurate to many digits while the inference remains broad.

3. Give the percentage an interval

An interval makes the uncertainty easier to discuss. We will use a two-sided Wilson score interval at a nominal ninety-five percent confidence level, without continuity correction. Wilson uses the count and sample size to construct limits that stay within the possible probability range. NIST supplies the formula, and SciPy explicitly distinguishes Wilson from its exact and continuity-corrected options. NIST interval formula; SciPy interval methods.

For seven wins in ten independent trials, the Wilson limits are approximately 39.7 percent and 89.2 percent. This is a wide interval around a striking headline number. It includes probabilities below one half as well as probabilities well above it. The interval is not symmetric around the observed seventy percent, which is normal for this construction rather than a calculation error.

Write the calculation using the observed fraction p-hat, the number of observations n and the normal critical value z, approximately 1.96. The denominator adjusts both the centre and the half-width. The displayed formula is a mathematical procedure under the stated model; it is neither a prediction of the next outcome nor a historical estimate from a product.

d = 1 + z² / n
centre = (p̂ + z² / (2n)) / d
v = p̂(1 − p̂) / n + z² / (4n²)
half-width = z × √v / d
interval = centre ± half-width

The confidence level describes the repeated-sampling behaviour of the procedure. It does not assign a ninety-five percent probability to the particular fixed parameter being inside these particular realised limits. Wilson is an approximate procedure, so nominal confidence is not an exact coverage guarantee at every possible sample size and probability. Its usefulness here is to replace an unsupported impression of precision with an explicit, conditional calculation.

The assumptions travel with the interval. If the ten results are copies of the same event, or the rule was selected because this was its best ten-trade window, those limits do not automatically describe the uncertainty of the actual research process. Showing an interval is an improvement only when its label also says what was counted and how the sample was chosen.

Wilson intervals at the same observed seventy percent win rate: seven of ten, thirty-five of fifty, seventy of one hundred and two hundred eighty of four hundred.
Figure 1. Same observed rate, different precision. These hypothetical fixed-size samples assume iid binary outcomes; the dashed line marks the example's 68.3% economic threshold.

4. Even ten wins do not identify a perfect rule

Suppose a different, prespecified ten-trade sample contained ten wins. That would be stronger evidence against a fifty percent success probability than seven wins. Under independent trials with that probability, ten consecutive wins have probability one in 1,024. It would be wrong to claim that a small sample can never challenge a hypothesis. The strength of evidence depends on both the observations and the question.

Nevertheless, the observed hundred percent is not proof of a perfect success rate. The two-sided ninety-five percent Wilson interval for ten wins in ten runs from about 72.2 percent to one hundred percent. A rule with a materially lower success probability can sometimes generate a perfect small sample. Rejecting one probability and estimating it precisely are different achievements.

The exact Clopper–Pearson interval provides another construction under the binomial model. For ten wins in ten, its two-sided ninety-five percent lower limit is about 69.2 percent; for seven wins in ten, its limits are about 34.8 and 93.3 percent. Exact refers to the binomial coverage construction, not to perfect knowledge of trading conditions. Its conservatism can produce wider limits. NIST exact binomial construction.

Choose the method before shopping for a favourable answer. Reporting only whichever lower limit clears a commercial threshold turns a methodological comparison into another selection exercise. A useful report can state the primary method, explain its assumptions and present a sensitivity comparison where it affects a decision. It should not imply that an interval with more decimals is automatically more reliable.

This also explains why an all-green screenshot is incomplete evidence. We need to know whether it covers a prespecified window, how many other windows were viewed, and whether the ten positions were separate opportunities. An extreme fraction still needs a sampling story. Without that story, even a correct exact calculation can answer the wrong question with impressive numerical accuracy.

5. Translate uncertainty into the actual payoff question

Return to seven wins in ten. Now specify the money attached to each label. A winning decision earns one R before costs; a losing decision loses two R before costs. Every decision costs 0.05 R. Here R is a common fixed accounting unit, not a promise about maximum realised loss or a percentage of an account. All payoffs are hypothetical and deliberately constant within each outcome category.

The net payoffs are therefore positive 0.95 R and negative 2.05 R. Seven winners contribute 6.65 R, while three losers contribute negative 6.15 R. The total is positive 0.50 R across ten decisions, or positive 0.05 R per decision. The large-looking win fraction has produced only a small positive sample mean because losses are larger than gains.

Under these fixed payoff assumptions, expected net payoff equals three times the win probability minus 2.05, measured in R. The break-even probability is therefore 2.05 divided by three, about 68.3 percent. The relevant threshold comes from the payoffs and costs, not from the visual appeal of seventy percent. A comparison with one half would miss the economic question in this example.

E(net R) = 0.95p − 2.05(1 − p) = 3p − 2.05
p_break-even = 2.05 / 3

Because this transformation increases with p, applying it to the Wilson limits gives approximately negative 0.860 R to positive 0.627 R per decision. This is a transformed confidence interval for expected payoff under fixed, known payoffs and the original binary model. It is not a prediction interval for the next trade, nor a range containing all possible future account outcomes. The sample mean’s positive sign has not settled the sign of the underlying expectation.

Real payoffs introduce additional uncertainty: winning amounts vary, losing amounts vary, and costs may depend on market conditions. Estimating all three from the same ten observations would require more than a binomial interval. Win-rate precision is only one input to expectancy precision. The deliberately simple payoff model lets us isolate that input before making the problem more complicated.

Net expectancy as a line against win probability: zero at sixty-eight point three percent, observed mean positive zero point zero five R at seventy percent, and a wide transformed interval.
Figure 2. The ten-trade mean is +0.05 R, but the transformed Wilson interval spans −0.860 R to +0.627 R. This calculation holds the two payoffs and cost fixed.

6. More rows can sharpen an answer without changing it

Imagine separate fixed-size studies that all happen to observe a seventy percent win fraction. Thirty-five wins in fifty give Wilson limits of approximately 56.2 and 80.9 percent. Seventy wins in one hundred give approximately 60.4 and 78.1 percent. Two hundred eighty wins in four hundred give approximately 65.3 and 74.3 percent. Figure 1 places these intervals on the same scale so their widths can be compared directly.

These are constructed comparisons, not an assurance that an expanding real record will maintain its early fraction. Their point is that sample size changes precision even when the estimate stays still. An unchanged percentage can become better supported. Conversely, an improving percentage can remain uncertain if the sample is still tiny. Reading only the point estimate loses both possibilities.

The four-hundred-trade interval still includes our 68.3 percent break-even threshold. Thus four hundred independent observations at a seventy percent observed rate do not make the payoff conclusion unambiguous under this interval. That is not a universal minimum failure. It reflects the narrow gap between the observed fraction and the threshold imposed by the particular payoff structure.

Consider the first extension of the actual hypothetical record. If the next ten decisions contain another seven wins, the total becomes fourteen in twenty. The Wilson interval is then approximately 48.1 to 85.5 percent, while the mean stays at positive 0.05 R. If instead the next ten contain three wins, the total becomes ten in twenty: a fifty percent observed rate and a mean of negative 0.55 R. Neither continuation is asserted as a forecast.

An observation plan must tolerate both paths. If you would call the first path confirmation but explain away the second as an irrelevant regime, the rule for learning is asymmetric. Specify in advance which changes would make the estimate less favourable, which would reveal a different population, and which would expose a data error. Additional observations become useful when they are allowed to change the conclusion.

7. Ten positions can share one piece of news

Now remove the assumption that every row brings a separate event. Picture ten positions opened around the same announcement. Seven finish positive and three negative because entries, instruments and exits differ. The statement still contains seven wins in ten. But a common surprise may have influenced all ten outcomes. We cannot infer independence merely from different ticket numbers or different symbols.

Contrast that record with ten decisions exposed to ten genuinely separate hypothetical events, with independence stipulated for the illustration. The raw count and win fraction match. The sampling model does not. In the announcement record, a repeated experiment would need to expose the strategy to new announcements, not just issue more tickets during the original announcement. Figure 3 makes this difference visible without pretending to measure the actual correlations.

The cluster-inference literature explains why ignoring within-group dependence can understate uncertainty and why having few groups is a separate problem. Cameron and Miller discuss these issues in regression settings; their paper is not a trading-specific correction for a win-rate spreadsheet. Cameron and Miller, cluster-robust inference.

For the small trading record, start by preserving event identifiers and overlapping holding periods. Ask which common shocks could make outcomes move together. A day may be a reasonable grouping in one design and an inadequate one in another. A position held across several days can connect adjacent daily groups. Calendar separation alone does not prove that groups are independent.

More instruments do not necessarily mean more independent evidence. Several currency pairs can share exposure to the same currency or event. The accounting view in our guide to portfolio gross and net exposure helps identify shared positions, although exposure overlap and statistical dependence are not identical measurements. The aim is to understand where new information could come from before attaching a smaller error bar to a larger row count.

Two sets of ten trade outcomes with seven wins each: the first assigns each trade to a separate event; the second connects all ten trades to one announcement.
Figure 3. Identical ticket counts can represent different event coverage. Connections indicate shared event membership, not an estimated correlation or ten perfectly identical outcomes.

8. Effective sample size is a model comparison

A simplified calculation can show the scale of the issue. Suppose there are one hundred binary observations in twenty independent clusters of five observations each. Assume every observation has the same variance and every pair within a cluster has correlation 0.4. Assume zero correlation across clusters. These are imposed features of a mathematical example, not estimates recovered from our ten trades.

For the equally weighted mean, summing variances and within-cluster covariances gives a variance multiplier of one plus four times 0.4, or 2.6, relative to one hundred independent observations with the same marginal variance. Dividing one hundred by 2.6 gives approximately 38.5. This number matches the variance of the mean to that of a hypothetical independent sample; it does not create thirty-eight and a half actual events.

D = 1 + (m − 1) × ρ = 2.6
n_eff = n / D = 100 / 2.6 ≈ 38.5

The calculation works here because group sizes, weights, variances and the correlation structure were specified. Unequal cluster sizes, different exposures, serial dependence between groups or correlation that changes with market conditions alter the calculation. Estimating correlation from a handful of groups can itself be very uncertain. Effective sample size is an explanation of a variance under assumptions, not a universal conversion rate for trades.

In particular, do not replace ten with a guessed effective count inside a binomial formula and call the result an exact confidence interval. The binomial model describes an integer count of independent binary trials with a common probability. A variance-equivalent number does not supply that distribution. It may help with rough planning, but defensible inference needs a method appropriate to the actual grouping and available number of groups.

There is still a useful design lesson. If collecting another ticket in an existing group mostly repeats the same exposure, collecting a new suitably separate event may add more information. That is a reason to describe both trades and groups in the report. It is not permission to declare every group independent or to estimate a reliable uncertainty band from two announcements simply because the accounting now looks organised.

9. Looking repeatedly changes the stopping question

Suppose you calculate an ordinary ninety-five percent interval after every trade and stop collecting as soon as its lower limit exceeds the economic threshold. You then present that selected interval as if the sample size had been fixed in advance. The calculation at each checkpoint may be implemented correctly, but the procedure that chose the checkpoint is different from the fixed-size experiment used to interpret it.

This matters because a fluctuating record has multiple chances to cross a boundary. Watching it until it looks persuasive preferentially selects favourable fluctuations. A stopping rule is part of the evidence, not an administrative detail added after the analysis. The number of checkpoints and the rule for ending observation should be available to someone who is trying to reproduce the conclusion.

For a simple study, choose the sample size or end date beforehand and identify the primary analysis at that point. It is still reasonable to monitor for execution failures or risk limits; stopping for safety does not require pretending that an early statistical success has been established. If monitoring changes which data are reported, explain that change and reconsider the inference rather than silently reusing the original label.

When decisions genuinely require continuous statistical monitoring, confidence sequences offer a different framework with coverage designed to hold across observation times under stated assumptions. Howard and colleagues develop such time-uniform methods. They are not ordinary Wilson intervals recalculated frequently, and their assumptions still need to match the process. Howard and colleagues, confidence sequences.

The practical choice is between a defined fixed analysis and a justified sequential analysis, not between looking at the screen and refusing to look. Keep operational monitoring and evidential claims distinct. A dashboard can reveal a data outage immediately while the research conclusion remains pending. That separation prevents a necessary operational habit from becoming an undocumented search for the most flattering sample length.

10. Selecting a winner changes the meaning of its sample

The ten-trade record may have another hidden history: it was the best of many candidates. Imagine twenty independent candidate records, each consisting of ten iid trials with a true success probability of one half. In this artificial construction, each candidate has the 17.1875 percent chance calculated earlier of showing at least seven wins. We now ask whether any of the twenty looks that good.

The probability that none does is the probability of fewer than seven wins raised to the twentieth power. Subtracting that from one gives approximately 97.7 percent for at least one candidate reaching seven wins. This is an exact consequence of the invented independent-candidate model. Real strategies often share data and outcomes, so the numerical result should not be transferred to a real search without its dependence structure.

The lesson is narrower and more useful than saying every selected strategy is worthless. The selected record does not describe the whole search. A reader needs the number of candidates, the variations considered and the selection criterion. Otherwise the final ten rows can look surprising while the process that produced them was quite likely to find something similar.

Selection can involve parameters, instruments, start dates, exit rules or the definition of a win. It can even involve choosing which statistic to headline after seeing the outcomes. Recording only the final rule leaves those choices invisible. Keep a research log that distinguishes the rule chosen before an evaluation from choices influenced by that evaluation’s results.

A new prespecified evaluation of the selected rule can answer a fresh question, provided the sample is genuinely new for that purpose and its dependence is addressed. It does not erase the search history, and it cannot guarantee future stability. It gives the researcher a defined opportunity to be contradicted. That is the feature missing when the same attractive ten rows are repeatedly repackaged as discovery, confirmation and demonstration.

11. Ask how precise the answer needs to be

An arbitrary rule such as needing one hundred trades hides the reason for observing them. Start instead with a precision target for a defined parameter. Under an iid binary model, a familiar normal planning approximation uses the largest possible Bernoulli variance, one quarter. With a ninety-five percent critical value of 1.96, the approximate sample size is the square of that value times one quarter, divided by the squared desired margin.

For margins of ten, five and two percentage points, rounding upward gives 97, 385 and 2,401 independent observations respectively. These are planning approximations, not exact Wilson-width guarantees and not minimum counts that validate trading strategies. They describe how expensive tighter precision can become under a deliberately favourable independence assumption. Figure 4 shows the change in scale.

n ≈ 1.96² × 0.25 / h²
h ∈ {0.10, 0.05, 0.02}

Halving a margin requires roughly four times as many observations in this approximation. That relationship makes the research tradeoff concrete. A reader who needs to distinguish probabilities separated by only two percentage points is asking a more demanding question than a reader who needs only a broad description. A sample-size target should follow the decision’s required precision.

Precision planning also differs from planning a hypothesis test with specified power. To plan detection, you must specify an alternative and the chance of detecting it, as well as the false-positive criterion. NIST’s sample-size treatment for proportions includes those ingredients. Its test-planning formula should not be mistaken for our simpler margin calculation. NIST sample sizes for testing proportions.

In the payoff example, an uncertainty margin of five percentage points would still be large relative to the gap between seventy percent and the 68.3 percent threshold. A broad description of win frequency and a decision about positive expectancy require different precision. Before commissioning more observations, write which of those tasks matters. Otherwise reaching the planned number can feel like success while leaving the actual decision unresolved.

Independent-observation budgets of ninety-seven, three hundred eighty-five and two thousand four hundred one for approximate margins of ten, five and two percentage points at ninety-five percent confidence.
Figure 4. Approximate planning budgets using the worst-case binary variance. The dot areas scale with observation counts; the formula does not account for dependence, selection or changing probabilities.

12. Time and rare losses do not fit inside a win count

Even an adequate precision budget can leave the sample unrepresentative of the intended use. A high-frequency rule might collect hundreds of positions during a short episode. A low-frequency rule might require years to collect the same count. Those records differ in calendar coverage, operational conditions and the possibility that the rule or market changed while evidence accumulated. More trades and more time answer overlapping but distinct questions.

Suppose a separate hypothetical study tracks a specifically defined rare loss event and sees none. Under iid trials, the exact one-sided ninety-five percent upper bound for its probability is about 25.9 percent after ten observations and 3.0 percent after one hundred. These values solve the probability of observing zero events at the proposed upper probability. They do not describe the seven-win record, which already contains ordinary losses.

q_upper = 1 − 0.05^(1/n)
Condition: zero specified events observed

The example shows why absence of a particular failure is not evidence that its probability is negligible. It says even less about how large that failure might be. A win-rate table compresses outcomes into two labels, so a small ordinary loss and a catastrophic loss can occupy the same category. Frequency precision cannot identify an unobserved loss severity. Keep the payoff record alongside the binary classification.

Extending the calendar is not an automatic solution either. If trading conditions change, pooling old and new decisions may estimate a mixture rather than the current process. Report relevant periods and rule versions without selecting them to improve the conclusion. A long history with changing definitions is not interchangeable with a long history of one stable, consistently measured question.

The appropriate response is to state what coverage the sample actually offers. Perhaps it describes completed decisions in a specified session across a limited set of event conditions. That can be useful evidence within those boundaries. Turning it into a claim about every future market condition requires assumptions the row count cannot supply, however many digits appear in the confidence limits.

13. Preserve the information needed to challenge the estimate

A useful small-sample record includes more than a win flag. Retain the decision identifier, rule version, entry and completion times, instrument, gross outcome, costs, net outcome and the common unit used to compare decisions. Include an event grouping where the design supports one, while allowing that grouping to be questioned. The objective is to make the sample’s construction visible enough for another analyst to reconstruct it.

Do not quietly drop open positions because they lack final labels. At a cutoff date, open and closed decisions can differ systematically: losers may remain open longer, or winners may exit sooner. A completed-trade analysis must describe its inclusion rule and outstanding positions. Waiting for a prespecified cohort to finish answers a different question from inspecting whichever trades happened to close by an attractive date.

Likewise, keep rejected orders, missing prices and unresolved accounting cases visible as data-quality issues. They may not enter the same binary denominator, but their absence can affect what the reported sample represents. If a cost correction changes a small gain into a loss, update both the amount and the label. The uncertainty calculation cannot repair a denominator assembled from inconsistent definitions.

Resampling the observed rows many times does not create new market events. With a small record, a bootstrap can only rearrange outcomes it has seen, unless a model adds other possibilities. If rows share events, independently resampling them also destroys the grouping. A grouping-aware analysis may be appropriate, but a handful of groups remains a handful of groups after extensive computation.

For this reason, the audit trail matters as much as the displayed interval. It reveals whether a change in the estimate came from new observations, corrected records, a different inclusion rule or another strategy version. Those are different forms of learning. Combining them into a single growing sample without explanation can make an apparently improving precision measure increasingly difficult to interpret.

14. Decide what the next observation is meant to resolve

At the end of the ten-trade example, we know the observed rate is seventy percent and the observed mean is positive 0.05 R under the specified payoffs. Under iid binary assumptions, the Wilson interval remains broad and its transformed payoff interval includes negative expectation. We have also identified questions that the binomial calculation cannot settle: shared events, selection, stopping, varying payoffs and changing conditions.

The next research decision should respond to those particular gaps. If the ten tickets came from one announcement, seek a design with additional relevant events rather than celebrating additional tickets from that same episode. If the rule was selected from many alternatives, define a fresh evaluation. If the labels ignore costs, fix the accounting before treating a larger count as progress.

Where the assumptions are reasonably defensible, write the precision target and the planned analysis point. Preserve unfavourable outcomes under the same rules as favourable ones. If observation must be sequential, choose and justify a sequential method before using a crossing as the reason to claim success. The next sample should be capable of changing your mind.

There is no contradiction between finding ten trades interesting and refusing to treat them as a settled estimate. A small sample can reveal what to measure next. A clear interval can show that an attractive fraction does not yet answer the payoff question. A careful event map can explain why another month of genuinely different situations would be more informative than another hundred near-duplicate rows.

If you are ready to practise this review on a concrete record, visit the TradeAndRoll demo. Begin by documenting the unit counted, costs and event coverage, then state the precision the available sample can support. The useful deliverable is a claim whose limits can be inspected, not a winning percentage detached from the process that produced it.

Sources

Back to the Blog