Home/Glossary/Sample size
Statistics & testing

What is sample size?

Sample size is the number of independent cases a statistic is based on; the smaller it is, the more a win rate or average can differ from the true value by chance alone.

A hit rate from 20 trades and one from 2,000 trades can show the same percentage and mean very different things. The uncertainty in a rate shrinks with the square root of the sample, so four times as many cases halve the error. Cases also have to be independent: five overlapping signals during one rally are closer to one case than to five. CryptoPatterns.ai drops overlapping occurrences and reports any result under 30 cases as “too few to tell” rather than as a number.

Formula
Standard error of a rate ≈ √(p × (1 − p) ÷ n); a 95% range is roughly the rate ± 2 standard errors

Why it matters

Small samples are where most impressive trading statistics come from. A strategy with no edge will show a high win rate over a short stretch fairly often, and screenshots of those stretches are what circulate. Checking the number of cases first is the quickest filter for whether a figure deserves attention.

Example

Say two signals both show a 60% hit rate. Signal A has 25 cases: the standard error is √(0.6 × 0.4 ÷ 25) ≈ 9.8 points, so the true rate could plausibly be anywhere from about 40% to 80%. Signal B has 1,000 cases: the standard error is about 1.5 points, giving roughly 57% to 63%. Only B tells you much.

Common mistakes

  • Counting overlapping signals as separate cases.
  • Pooling many coins on the same crash day and treating each as independent. A market-wide move is closer to one piece of evidence.
  • Treating 30 cases as enough. It is a floor below which nothing should be read, not a level above which everything can.

Questions

How many trades do I need to trust a win rate?

There is no single number, but with 100 independent trades a win rate near 50% is still uncertain by about ±10 points, and with 400 by about ±5. Smaller edges need larger samples to tell apart from luck.

Why does CryptoPatterns.ai hide results under 30 cases?

Because a percentage from fewer cases is mostly noise, and showing it invites reading meaning into it. Those results are labelled “too few to tell” in the pattern library.

Related terms

Part of the crypto trading glossary. Definitions are educational, not financial advice.