APPLIED STUDY · ORIGINAL LESSON
Learning plan and prerequisites
Before you begin: Understand percentages, candle event definitions and the difference between a positive price change and an executed profitable trade.
- Calculate conditional outcome fractions with the right denominator
- Compare a pattern sample with a matching non-pattern baseline
- Distinguish probability direction from trade profitability
Mechanism and interpretation
A candle label is useful in a prediction study only relative to a clearly defined outcome and comparison. Choose the future horizon, price source and positive-outcome rule before counting. For example, positive might mean a later close strictly above the signal close after three completed bars. That rule describes a price outcome, not a filled trade after spread, slippage and charges. Every eligible event needs a fully observed outcome; an unfinished horizon is missing, not automatically negative.
Use a two-by-two count: pattern with positive outcome, pattern with nonpositive outcome, no pattern with positive outcome, and no pattern with nonpositive outcome. The pattern hit fraction divides the first count by all pattern events. The non-pattern baseline divides non-pattern positive events by all non-pattern events. Their difference is measured in percentage points. The reverse probability, the fraction of all positive outcomes preceded by the pattern, uses another denominator and can be very different. Neither a pattern's rarity nor an impressive-sounding hit fraction establishes an advantage over the prevailing environment.
Worked case — synthetic data
A synthetic dataset contains 2,000 eligible observations. A predefined candle pattern appears 100 times; 60 have positive future outcomes and 40 have nonpositive outcomes. Among the other 1,900 observations, 1,140 are positive and 760 nonpositive. Pattern hit fraction is 60/100 = 60%. Non-pattern baseline is 1,140/1,900 = 60%. Overall positive fraction is 1,200/2,000 = 60%.
The pattern's incremental difference is zero percentage points and its fraction relative to the non-pattern baseline is one. It has no observed lift under this comparison, despite the 60% figure. The reverse probability is only 60/1,200 = 5%: five percent of all positive observations carry the pattern label. It would be incorrect to replace this denominator with 100 merely because that number appears in the headline hit-rate calculation.
Context and failure modes
A pooled baseline can conceal different instruments, sessions or volatility regimes. Compare like with like using strata declared before inspecting the result. Adjacent signal horizons can overlap, so raw counts alone do not establish independent evidence or a reliable confidence interval. Return magnitudes also matter: frequent small gains can coexist with infrequent larger losses. Base-rate comparison is an essential question, but it does not by itself produce a complete trading simulation or a causal explanation.
Practice task
A second synthetic sample has 1,000 observations. There are 200 pattern events with 130 positive outcomes. Of 800 non-pattern events, 480 are positive. Calculate both conditional positive fractions, their difference in percentage points and the overall positive fraction. State what the difference does and does not establish.
Worked practice answer
Pattern hit fraction is 130/200 = 65%, while the non-pattern baseline is 480/800 = 60%. The observed difference is five percentage points. Overall, 610 of 1,000 outcomes are positive, or 61%. This is an observational difference for the declared sample and horizon. It does not establish causation, out-of-sample persistence or net profitability, and it still requires an appropriate uncertainty assessment.