Learning objectives
- Create labels that can be audited independently of future outcomes.
- Measure annotator agreement before using chart labels in research.
Prerequisites: Understand candidate definitions, confirmation timing and data availability.
Mechanism and interpretation
A locked annotation protocol specifies the price universe, adjustments, bar construction, pattern inequalities, tolerances, confirmation times and ambiguous-case labels. Annotators should see only the information allowed at the decision point. Hiding later outcomes reduces the temptation to label a profitable path as a clean setup and an unprofitable one as something else.
Record all candidate windows and reasons for rejection, not only attractive screenshots. For two annotators, basic agreement is the fraction of identical labels. Cohen's kappa additionally adjusts for agreement expected from their marginal label frequencies:κ=(observed−expected)/(1−expected). It is a diagnostic of labeling consistency, not a measure of trading edge. Rare labels can make agreement statistics counterintuitive, so retain the confusion table.
Worked case · synthetic data
In a synthetic 50-window review, both annotators say yes on 10, both no on 30, and disagree on 10, split 5 each way. Observed agreement 40/50=80%. Each says yes 15/50=30%, so expected agreement is 0.3²+0.7²=58%. Kappa=(0.80−0.58)/(1−0.58)≈0.5238. This identifies substantial unresolved labeling variation despite a seemingly high raw agreement.
Failure modes and context
Agreement can be high because both reviewers share the same unclear assumptions. Kappa does not certify validity, and prevalence affects it. Resolve ambiguous rules on a development set, then lock the revised protocol before a new evaluation set. Keep outcome analysis separate so a performance result cannot retroactively redefine the positive labels.
Practice assignment
For 40 windows, both say yes 8, both no 24, A-only yes 4 and B-only yes 4. Compute observed agreement, each yes rate, expected agreement and kappa. State what should happen to ambiguous cases after the protocol is frozen.
Worked answer
Observed agreement 32/40=80%; each yes rate 12/40=30%; expected agreement 58%; kappa≈0.5238. Apply the frozen ambiguity policy, retain the disagreement or abstention label, and document any later protocol revision as a new version. Do not resolve the old cases by looking at which subsequent trades made money.
Check your understanding
Question 1
What is observed case agreement?
- 80%
- 58%
- 30%
Reveal answer and reasoning
A. 80%
Forty of 50 labels match across the two annotators.
Question 2
What does kappa assess here?
- Expected strategy return
- Guaranteed pattern validity
- Label consistency beyond marginal chance agreement
Reveal answer and reasoning
C. Label consistency beyond marginal chance agreement
It compares observed agreement with a baseline derived from label frequencies.
Question 3
Why hide future outcomes during labeling?
- They change historical prices
- They can bias which setups appear valid
- They are never relevant to later evaluation
Reveal answer and reasoning
B. They can bias which setups appear valid
Outcome-blind annotation keeps the definition from being chosen to favor successful examples.
