Skip to content
Wildflower
Join free
Statistics for traders

Free Trading School · Level 4 · Course 4.0

Real pattern or random result

Lesson 12 of 17 in Statistics for tradersModule 3: Randomness and real patterns

Testing and making it your own · Statistics for traders

Real pattern or random result

Wildflower Trading School · Lesson 4.0.3.4

Wildflower

A test can look good just by chance. So the useful question isn't 'is this result good?' It's 'how often would chance alone produce a result this good?' By the end of this lesson, you'll know how to ask that about a log, how to read the answer, and why trying lots of ideas makes a good-looking result easier to find by accident.

1 of 8

What you'll learn

  • Picture a world with no real effect. Ask how often that world would make your result.
  • Compare with random entries. Keep your exits and make the entries random.
  • Read the answer with care. No cut-off line turns a result into proof.
  • Count your tries. Testing many ideas makes a good result easier to find by accident.
  • Check new trades. See if it holds on trades you didn't use to build it.

Exercise

  1. Pick one result from your own log, such as a run of wins or a good week.
  2. Write down how many ideas or changes you tried before it.
  3. Then ask the question from this lesson: if your rules had nothing in them, how often would a result like this turn up?

Quick check

  1. 1. Random entries match a result 1 time in 5. What does that mean?

  2. 2. You test 20 ideas that have nothing in them, each with a 1 in 20 chance of looking good. About how likely is at least one to look good?

  3. 3. Random entries with a 1R stop and a 2R target, with no lean in price, reach the target about…

0 of 3 answered.

Finished this lesson?

Tick it off and keep your place

Make a free account and we'll remember where you are, so “Comparing against random trades” is waiting next time.

Read the full notes

A good result can happen by chance, so the question is how often rules with nothing in them would produce a result this good.

  • Imagine a world where nothing real is going on, and ask how often that world would produce your result. If often, the result is weak evidence; if rarely, it's harder to explain away.
  • A keeps your exits and makes the entries random. With a and a 2R and no lean in price, a random entry reaches the target about 1 time in 3 (before ).
  • Made-up example: +6R in 20 trades needs 9 wins out of 20 at +2R and −1R. Random entries get 9 or more wins about 19 times in 100, close to 1 in 5. The course log can't show its rules add anything.
  • The answer is not the chance your rules work. It's the chance that rules with nothing in them would match you. There is no line where a result becomes true.
  • Trying many ideas makes a good result easier to find by accident: with 20 ideas that each have a 1 in 20 chance of fooling you, the chance at least one does is 1 − 0.95²⁰ ≈ 64%. See Overfitting.
  • Four questions: how often would random entries match it; how many trades and what rough range; how many versions were tried; does it hold on trades not used to build it ()?

Worked example

Made-up numbers

Random entries against +6R

Made-up numbers: 20 random entries, 1R stop, 2R target, a 1 in 3 chance of reaching the target, before costs.

  1. 8 wins: 8 × 2 − 12 × 1 = +4R. 9 wins: 9 × 2 − 11 × 1 = +7R
  2. So +6R or better needs 9 or more wins out of 20
  3. Chance of 9 or more wins at 1 in 3 each: about 0.19
  4. About 19 random logs in 100 match or beat +6R

The +6R is the kind of result random entries produce about one time in five.

Your turn

Drill

Made-up numbers · random entries with your exits match or beat your result in 10 of 200 random logs

Trading is risky, and you can lose money. Past results, real or made-up, don't tell you what comes next. This lesson explains how to read numbers. It isn't advice.