Variance strategy selector

From lyndonkl/claude · View interactive version

Variance strategy selector is an AI agent skill from the GitHub repository lyndonkl/claude. Given a current win probability and a downside asymmetry flag, recommends a variance-seeking, neutral, or variance-minimizing posture and emits a numeric multiplier (typically 0.8-1.3) for downstream consumers to apply to boom-bust scores, position sizes, or bet sizes. Favorites minimize variance; u

How to use this skill

Skill file

Variance Strategy Selector

Table of Contents

Example

Scenario: A fantasy manager is 15% behind their opponent with 3 lineup slots left to decide this week. Losing this week eliminates them from playoff contention.

Inputs:

Band classification: win_probability < 0.40 -> posture = "seek", base multiplier range 1.15-1.30.

Asymmetry amplification: downside_asymmetry > 0.8 -> shift multiplier further from 1.0 by +0.10 on the seek side. Base 1.20 + 0.10 = 1.30.

Slot-count dampening: slots_to_decide = 3, below the 5-slot threshold -> no dampening applied.

Outputs:

Consumer application (downstream skill applies the multiplier):

adjusted_player_score = base_score x (1 + (boom_bust_score - 0.5) x (variance_multiplier - 1))

A boom-bust score of 0.8 (high-variance player) with multiplier 1.30 gets a +9% boost relative to a steady player.

Workflow

Copy this checklist and track progress:

Variance Strategy Selection Progress:
- [ ] Step 1: Collect inputs (win_probability, downside_asymmetry, slots_to_decide)
- [ ] Step 2: Classify win-probability band (seek / neutral / minimize)
- [ ] Step 3: Apply downside-asymmetry amplification
- [ ] Step 4: Apply slot-count dampening
- [ ] Step 5: Clamp multiplier to valid range and validate monotonicity
- [ ] Step 6: Emit structured output with rationale

Step 1: Collect inputs

See resources/template.md for input validation rules.

Step 2: Classify win-probability band

Apply the three-band rule:

Within the "seek" band, pick the base multiplier proportional to how far below 0.40 the probability is: base = 1.15 + (0.40 - win_probability) x 0.375, clamped to 1.30. Within "minimize", mirror: base = 0.90 - (win_probability - 0.60) x 0.25, clamped to 0.80.

See resources/methodology.md for the underlying right-tail / left-tail logic.

Step 3: Apply downside-asymmetry amplification

If the loss is catastrophic, the underdog must swing harder and the favorite must protect harder. The adjustment is symmetric around 1.0.

Step 4: Apply slot-count dampening

With many independent decisions, the Central Limit Theorem diversifies variance on its own. Pushing the multiplier hard across many slots is redundant.

See resources/methodology.md for the math.

Step 5: Clamp and validate monotonicity

Step 6: Emit structured output

Return the four required fields:

Validate using resources/evaluators/rubric_variance_strategy_selector.json. Minimum standard: average score of 3.5 or above.

Common Patterns

Pattern 1: Heavy underdog, must-win (fantasy sports)

Pattern 2: Heavy favorite, large portfolio / many slots

Pattern 3: Even matchup (poker mid-stack)

Pattern 4: Mild favorite, one decisive decision (racing / options expiry)

Guardrails

  1. Bands are hard, not fuzzy. Do not interpolate the posture label across 0.40 and 0.60 thresholds. Posture is categorical (seek / neutral / minimize); the multiplier is continuous within each band. Consumers rely on the categorical label for branching logic.
  1. Asymmetry amplifies, never reverses. A catastrophic downside makes a favorite more conservative and an underdog more aggressive. It never flips the direction. If the computed multiplier would cross 1.0 because of an asymmetry shift, clamp at 1.0 and recheck inputs.
  1. Slot dampening applies to the distance from 1.0, not to the multiplier itself. Implementation: final = 1.0 + (pre_dampening - 1.0) x min(1.0, 5 / slots). Dampening 1.30 across 10 slots gives 1.15, not 0.65.
  1. Edge cases at probability 0 and 1. If win_probability = 0, posture is "seek" with maximum multiplier (1.30 pre-asymmetry, 1.40 post); the analogy is a lottery ticket -- variance is the only path to a non-zero outcome. If win_probability = 1, posture is "minimize" with maximum damp (0.80 pre-asymmetry, 0.70 post); any variance is pure downside. Document these explicitly in the rationale.
  1. The multiplier is a nudge, not a command. It biases the downstream optimizer; it does not replace the optimizer. A 1.30 multiplier does not mean "start only boom-bust players." It means "up-weight boom-bust scores by 30% relative to stable scores within whatever optimization the consumer runs."
  1. Downside asymmetry is not the same as win probability. A heavy underdog in week 1 of a season has low win probability but low asymmetry (plenty of chances to recover). The same underdog in week 20 has high asymmetry (last chance). Ask for both inputs; do not infer one from the other.
  1. Independence assumption underlies slot dampening. Central-limit diversification works when slot outcomes are independent. If slots are highly correlated (e.g. all pitchers on the same team, all tech stocks in a portfolio), dampening is weaker. Flag this assumption in the rationale when the consumer domain is known to be correlated.
  1. Domain-neutral by design. This skill does not know whether the decision is a fantasy lineup, a portfolio, a poker session, or a race. It emits a scalar. The consumer attaches domain-specific meaning. Do not hard-code domain jargon in the rationale -- use neutral terms like "high-variance options" and "stable options."

Quick Reference

Three-band rule:

| Win probability | Posture | Base multiplier range |

|---|---|---|

| < 0.40 | seek | 1.15 - 1.30 |

| 0.40 - 0.60 | neutral | 1.00 |

| > 0.60 | minimize | 0.80 - 0.90 |

Asymmetry shift (applied when downside_asymmetry > 0.8):

| Posture | Shift |

|---|---|

| seek | +0.10 |

| neutral | 0 |

| minimize | -0.10 |

Slot dampening:

if slots_to_decide > 5:
    factor = max(0.5, 5 / slots_to_decide)
    multiplier = 1.0 + (multiplier - 1.0) x factor

Full computation sketch:

def variance_strategy(p_win, asym, slots):
    # 1. Band
    if p_win < 0.40:
        posture = "seek"
        base = 1.15 + (0.40 - p_win) * 0.375
        base = min(base, 1.30)
    elif p_win > 0.60:
        posture = "minimize"
        base = 0.90 - (p_win - 0.60) * 0.25
        base = max(base, 0.80)
    else:
        posture = "neutral"
        base = 1.00

    # 2. Asymmetry
    if asym > 0.8 and posture == "seek":
        base += 0.10
    elif asym > 0.8 and posture == "minimize":
        base -= 0.10

    # 3. Slot dampening
    if slots > 5:
        factor = max(0.5, 5 / slots)
        base = 1.0 + (base - 1.0) * factor

    # 4. Clamp
    multiplier = max(0.70, min(1.40, base))
    return posture, multiplier

Key resources:

Inputs required:

Outputs produced:

Referenced by (consumers):

Principle reference: Game Theory Principles #6 (Variance-seeking as underdog -- the "cope" principle) in yahoo-mlb/context/frameworks/game-theory-principles.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.