When Two Percentages Cancel: Hidden Direction in Same and Heads

A binary stream can be viewed in at least two natural ways. We can count its values—Heads and Tails—or we can count the relation between consecutive values—Same and Different. These views appear to describe different aspects of the stream.

But a simple subtraction reveals that they overlap in a surprisingly precise way:

SamePercentage - HeadsPercentage

This expression does not merely compare sameness with a preference for Heads. One entire class of transitions cancels out, leaving a directional measurement of what happened after Tails.

The Four Transitions

Every counted transition belongs to one of four classes:

HH  Head followed by Head
HT  Head followed by Tail
TH  Tail followed by Head
TT  Tail followed by Tail

Same transitions are:

Same = HH + TT

Transitions ending in Heads are:

Heads = HH + TH

Subtracting the second from the first gives:

Same - Heads
= (HH + TT) - (HH + TH)
= TT - TH

The HH contribution disappears completely.

SamePercentage - HeadsPercentage measures whether a preceding Tail was followed more often by another Tail or by a Head.

Its interpretation is direct:

  • A positive value means TT exceeded TH: Tails showed persistence.
  • A negative value means TH exceeded TT: Tails showed reversal.
  • A value near zero means neither direction dominated.

A subtraction between two broad percentages has secretly isolated one directional half of the transition table.

The Mirror Measurement

The corresponding Heads-side expression is:

SamePercentage - TailsPercentage

Here:

Same - Tails
= (HH + TT) - (HT + TT)
= HH - HT

This time TT cancels. What remains measures whether a preceding Head was followed more often by another Head or by a Tail.

We can provisionally name the pair:

  • Tail Continuation Balance: Same - Heads = TT - TH
  • Head Continuation Balance: Same - Tails = HH - HT

These are raw directional balances. They preserve both the direction of the effect and the amount of the stream that contributed to it.

The Pair Reconstructs the Familiar Geometry

Let:

D_T = Same - Heads
D_H = Same - Tails

Adding them gives:

D_T + D_H
= 2 × SamePercentage - 100
= SamePercentage - DiffPercentage

Their sum is the overall balance between persistence and alternation.

Subtracting them gives:

D_T - D_H
= TailsPercentage - HeadsPercentage

Their difference is the ordinary value imbalance, viewed from the opposite direction.

The two directional measurements therefore form a small coordinate system:

  • Their sum describes Same versus Different.
  • Their difference describes Tails versus Heads.

This is more than a numerical coincidence. It shows that the value-space and relation-space descriptions of a binary stream are algebraically intertwined. The directional transition balances sit between them.

Why ClassicMetaGuess Is a Natural Probe

TruthInTheFlip does not only record Heads and Tails. Its central experiments anticipate the relation between flips.

ClassicMetaGuess observes whether the most recent transition was Same or Different and anticipates the opposite relation next:

Same      → anticipate Different
Different → anticipate Same

Its opposite, AntiMetaGuess, anticipates continuation in the relation stream:

Same      → anticipate Same
Different → anticipate Different

These two strategies are nearly ideal instruments for this subject because neither gives Heads or Tails a privileged role. If every Head in a stream were renamed Tail and every Tail renamed Head, its Same/Different relations would remain unchanged, and both strategies would make the same relational choices.

ClassicMetaGuess probes alternation in the relation stream. AntiMetaGuess probes persistence in that stream. They are complementary views of whether Same tends to follow Different and whether a relation tends to repeat itself.

The new directional metrics ask a different but adjacent question:

How is the observed Same/Different balance distributed across transitions beginning with Heads and transitions beginning with Tails?

The strategy and the metric should therefore not be collapsed into one idea. The anticipation strategy is an active rule that selects a relation for the next flip. The directional balance is a descriptive property reconstructed from the outcomes. One acts; the other measures.

Their relationship is valuable precisely because they remain distinct. A relation-symmetric strategy can be compared with source measurements that reveal whether its apparent behavior was carried equally by both sides of the binary alphabet.

Exploring Quant.tkr with TruthInTheFlip Farm

The archived Quant.tkr record gives us a concrete source for exploring these identities. A rolling window keeps the measurement local while absTotal preserves the position in the full experiment.

The Tail Continuation Balance can be emitted with:

offset#SamePercentage,negate#HeadsPercentage

The Head Continuation Balance is:

offset#SamePercentage,negate#TailsPercentage

A Farm command for both is:

csv tracker window by_total 100B file "Quant.tkr" absTotal SamePercentage HeadsPercentage TailsPercentage offset#SamePercentage,negate#HeadsPercentage offset#SamePercentage,negate#TailsPercentage

The overall Same/Different balance reconstructed from the pair is:

scale#offset50#SamePercentage,2

That produces:

2 × (SamePercentage - 50)
= SamePercentage - DiffPercentage

A broader export can place the reconstructed geometry beside the anticipation record:

csv tracker window by_total 100B file "Quant.tkr" absTotal AnticipatedPercentage ZScore SamePercentage HeadsPercentage offset#SamePercentage,negate#HeadsPercentage offset#SamePercentage,negate#TailsPercentage scale#offset50#SamePercentage,2

This does not claim that a contemporaneous source balance caused the anticipation result. It puts the two trajectories in a common record so their shape, settlement and possible relationships can be examined.

A Standardized Directional Score

The same cancellation can be expressed through the existing Z-scores. Because ZScoreSame and ZScoreHeads use the same sample total and the same 50 percent reference:

ZScoreSame - ZScoreHeads

is proportional to TT - TH. However, simply subtracting two Z-scores does not automatically produce another correctly scaled Z-score. They are derived from the same transitions and are therefore correlated.

Under an independent fair-source model, a naturally scaled Tail-directional score is:

(ZScoreSame - ZScoreHeads) / sqrt(2)

The corresponding Farm expression is:

scale#offset#ZScoreSame,negate#ZScoreHeads,0.7071067811865476

The Heads-side mirror is:

scale#offset#ZScoreSame,negate#ZScoreTails,0.7071067811865476

These scores make directional behavior more comparable across sample sizes. They should still be introduced with care: their interpretation depends on the fair independent null and on the tracker’s counting boundaries.

The Boundary Quirk

The raw identities are exact because SamePercentage, HeadsPercentage and TailsPercentage are calculated over the same counted observations.

A conditional question requires an additional step:

P(T after T) - P(H after T)

The raw Tail Continuation Balance can be written as:

P(previous T) × [P(T after T) - P(H after T)]

Dividing by the proportion of preceding Tails would remove the weighting. However, the tracker directly exposes the distribution of current Heads and Tails, not a separate count of the prior values participating in the recorded transitions.

Those distributions can differ at the two endpoints of a finite interval. At billions of flips the numerical difference is vanishingly small, but it is still a conceptual distinction. The raw balance is exact; a conditional version using TailsPercentage as its denominator is an extremely close finite-window approximation.

Relating the Source to Strategy Selection

TruthInTheFlip also records how often a strategy selected Same and how often that choice succeeded. This permits a second family of comparisons.

The strategy’s Same-selection posture is:

BetSamePercentage - SamePercentage

In Farm form:

offset#BetSamePercentage,negate#SamePercentage

This asks whether the strategy selected Same more often than Same actually occurred. It describes the strategy’s posture, not its accuracy.

A more performance-oriented quantity is Same Selection Lift:

BetSameWinRate - SamePercentage

In Farm form:

offset#BetSameWinRate,negate#SamePercentage

A positive value says that Same occurred more frequently among the conditions where the strategy selected Same than it did across the window as a whole. The Different-side mirror is:

offset#BetDiffWinRate,negate#DiffPercentage

These measurements become especially relevant to strategies such as BetSamePersistence2. That experiment uses an independent inner anticipation record to decide whether the next outer window should favor Same or Different. Selection Lift can help distinguish merely choosing the locally common side from identifying conditions where that choice performed better than the window’s general baseline.

What the Subtraction Is Saying

The original expression now has several compatible readings:

SamePercentage - HeadsPercentage
= TT - TH
= weighted Tail-conditioned persistence
= one directional component of Same versus Different

Its greatest value may be conceptual. Heads/Tails and Same/Different are often treated as separate summaries. Yet when their percentages are placed in the same algebra, they reveal the directional transitions hidden underneath.

ClassicMetaGuess and AntiMetaGuess approach the stream from relation-space without preferring either value. The new balances approach it from the transition table and recover the contribution of each starting value. Together they provide a layered view:

  1. The source produces Heads and Tails.
  2. Consecutive values produce Same and Different.
  3. An anticipation strategy acts on that relation stream.
  4. Directional balances reveal where the observed relational structure was carried.

Nothing new has been inserted into the record. The information was already present. The subtraction simply gives it a name and a place from which it can be seen.

github.com/johnwaynecornell/TruthInTheFlip

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


The reCAPTCHA verification period has expired. Please reload the page.

This site uses Akismet to reduce spam. Learn how your comment data is processed.