market-mechanics-betting

将信念(概率)转化为最优行动建议(下注/弃牌/对冲),包括优势计算、凯利准则下注规模、预测极端化及 Brier 分数优化。用于把概率映射为决策、计算相对于市场赔率的优势、确定最佳下注规模、对聚合预测进行极端化处理或提升 Brier 分数;在用户提及下注策略、凯利准则、优势计算、Brier 分数、极端化或将信念转化为行动时使用。

仓库最近推送
GitHub Stars
206
Forks
28
Issues / PRs
3

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "market-mechanics-betting":https://skillpi.com/zh/skills/deepskill-570a6858500799d5e24dde0fc689607f7912326721a52ea3ce8c89f22d36f784。安装前核对上游来源和版本:https://github.com/lyndonkl/claude。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

将信念(概率)转化为最优行动建议(下注/弃牌/对冲),包括优势计算、凯利准则下注规模、预测极端化及 Brier 分数优化。用于把概率映射为决策、计算相对于市场赔率的优势、确定最佳下注规模、对聚合预测进行极端化处理或提升 Brier 分数;在用户提及下注策略、凯利准则、优势计算、Brier 分数、极端化或将信念转化为行动时使用。

0 下载

介绍来源: third_party · lyndonkl · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
限制与区别
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: market-mechanics-betting
description: Translates beliefs (probabilities) into optimal actions (bet/pass/hedge) using quantitative frameworks including edge calculation, Kelly Criterion bet sizing, forecast extremizing, and Brier score optimization. Use when converting probabilities into decisions, calculating edge against market odds, sizing bets optimally, extremizing aggregated forecasts, improving Brier scores, or when user mentions betting strategy, Kelly Criterion, edge calculation, Brier score, extremizing, or translating belief into action.

Market Mechanics & Betting

Table of Contents


Interactive Menu

What would you like to do?

Core Workflows

1. Calculate Edge - Determine if you have an advantage 2. Optimize Bet Size (Kelly Criterion) - How much to bet 3. Extremize Aggregated Forecasts - Adjust crowd wisdom 4. Optimize Brier Score - Improve forecast scoring 5. Hedge and Portfolio Betting - Manage multiple bets 6. Learn the Framework - Deep dive into methodology 7. Exit - Return to main forecasting workflow


1. Calculate Edge

Determine if you have a betting advantage.

Edge Calculation Progress:
- [ ] Step 1: Identify market probability
- [ ] Step 2: State your probability
- [ ] Step 3: Calculate edge
- [ ] Step 4: Apply minimum threshold
- [ ] Step 5: Make bet/pass decision

Step 1: Identify market probability

Sources: Prediction markets (Polymarket, Kalshi), betting odds, consensus forecasts, base rates

Converting betting odds to probability:

Decimal odds: Probability = 1 / Odds
American (+150): Probability = 100 / (150 + 100) = 40%
American (-150): Probability = 150 / (150 + 100) = 60%
Fractional (3/1): Probability = 1 / (3 + 1) = 25%

Step 2: State your probability

After running your forecasting process, state: Your probability: ___%

Step 3: Calculate edge

Edge = Your Probability - Market Probability

Interpretation:

  • Positive edge: More bullish than market → Consider betting YES
  • Negative edge: More bearish than market → Consider betting NO
  • Zero edge: Agree with market → Pass

Step 4: Apply minimum threshold

Minimum Edge Thresholds:

Context Minimum Edge Reasoning
Prediction markets 5-10% Fees ~2-5%, need buffer
Sports betting 3-5% Efficient markets
Private bets 2-3% Only model uncertainty
High conviction 8-15% Substantial edge needed

Step 5: Make bet/pass decision

If Edge > Minimum Threshold → Calculate bet size (Kelly)
If 0 < Edge < Minimum → Pass (edge too small)
If Edge < 0 → Consider opposite bet or pass

Next: Return to menu or continue to Kelly sizing


2. Optimize Bet Size (Kelly Criterion)

Calculate optimal bet size to maximize long-term growth.

Kelly Criterion Progress:
- [ ] Step 1: Understand Kelly formula
- [ ] Step 2: Calculate full Kelly
- [ ] Step 3: Apply fractional Kelly
- [ ] Step 4: Consider bankroll constraints
- [ ] Step 5: Execute bet

Step 1: Understand Kelly formula

f* = (bp - q) / b

Where:
f* = Fraction of bankroll to bet
b  = Net odds received (decimal odds - 1)
p  = Your probability of winning
q  = Your probability of losing (1 - p)

Maximizes expected logarithm of wealth (long-term growth rate).

Step 2: Calculate full Kelly

Example:

  • Your probability: 70% win
  • Market odds: 1.67 (decimal) → Net odds (b): 0.67
  • p = 0.70, q = 0.30
f* = (0.67 × 0.70 - 0.30) / 0.67 = 0.252 = 25.2%

Full Kelly says: Bet 25.2% of bankroll

Step 3: Apply fractional Kelly

Problem with full Kelly: High variance, model error sensitivity, psychological difficulty

Solution: Fractional Kelly

Actual bet = f* × Fraction

Common fractions:
- 1/2 Kelly: f* / 2
- 1/3 Kelly: f* / 3
- 1/4 Kelly: f* / 4

Recommendation: Use 1/4 to 1/2 Kelly for most bets.

Why: Reduces variance by 50-75%, still captures most growth, more robust to model error.

Step 4: Consider bankroll constraints

Practical considerations:

  1. Define dedicated betting bankroll (money you can afford to lose)
  2. Minimum bet size (market minimums)
  3. Maximum bet size (market/liquidity limits)
  4. Round to practical amounts

Step 5: Execute bet

Final check:

  • [ ] Confirmed edge > minimum threshold
  • [ ] Calculated Kelly size
  • [ ] Applied fractional Kelly (1/4 to 1/2)
  • [ ] Checked bankroll constraints
  • [ ] Verified odds haven't changed

Place bet.

Next: Return to menu


3. Extremize Aggregated Forecasts

Adjust crowd wisdom when aggregating multiple predictions.

Extremizing Progress:
- [ ] Step 1: Understand why extremizing works
- [ ] Step 2: Collect individual forecasts
- [ ] Step 3: Calculate simple average
- [ ] Step 4: Apply extremizing formula
- [ ] Step 5: Validate and finalize

Step 1: Understand why extremizing works

The Problem: When you average forecasts, you get regression to 50%.

The Research: Good Judgment Project found aggregated forecasts are more accurate than individuals BUT systematically too moderate. Extremizing (pushing away from 50%) improves accuracy because multiple forecasters share common information, and simple averaging "overcounts" shared information.

Step 2: Collect individual forecasts

Gather predictions from multiple sources. Ensure forecasts are independent, forecasters used good process, and have similar information available.

Step 3: Calculate simple average

Average = Sum of forecasts / Number of forecasts

Step 4: Apply extremizing formula

Extremized = 50% + (Average - 50%) × Factor

Where Factor typically ranges from 1.2 to 1.5

Example:

  • Average: 77.6%
  • Factor: 1.3
Extremized = 50% + (77.6% - 50%) × 1.3 = 85.88% ≈ 86%

Choosing the Factor:

Situation Factor Reasoning
Forecasters highly correlated 1.1-1.2 Weak extremizing
Moderately independent 1.3-1.4 Moderate extremizing
Very independent 1.5+ Strong extremizing
High expertise 1.4-1.6 Trust the signal

Default: Use 1.3 if unsure.

Step 5: Validate and finalize

Sanity checks:

  1. Bounded [0%, 100%]: Cap at 99%/1% if needed
  2. Reasonableness: Does result "feel" right?
  3. Compare to best individual: Extremized should be close to best forecaster

Next: Return to menu


4. Optimize Brier Score

Improve forecast accuracy scoring.

Brier Score Optimization Progress:
- [ ] Step 1: Understand Brier score formula
- [ ] Step 2: Calculate your Brier score
- [ ] Step 3: Decompose into calibration and resolution
- [ ] Step 4: Identify improvement strategies
- [ ] Step 5: Avoid gaming the metric

Step 1: Understand Brier score formula

Brier Score = (1/N) × Σ(Probability - Outcome)²

Where:
- Probability = Your forecast (0 to 1)
- Outcome = Actual result (0 or 1)
- N = Number of forecasts

Range: 0 (perfect) to 1 (worst). Lower is better.

Step 2: Calculate your Brier score

Interpretation:

Brier Score Quality
< 0.10 Excellent
0.10 - 0.15 Good
0.15 - 0.20 Average
0.20 - 0.25 Below average
> 0.25 Poor

Baseline: Random guessing (always 50%) gives Brier = 0.25

Step 3: Decompose into calibration and resolution

Brier Score = Calibration Error + Resolution + Uncertainty

Calibration Error: Do your 70% predictions happen 70% of the time? (measures bias) Resolution: How often do you assign different probabilities to different outcomes? (measures discrimination)

Step 4: Identify improvement strategies

Strategy 1: Fix Calibration

  • If overconfident: Widen confidence intervals, be less extreme
  • If underconfident: Be more extreme when you have strong evidence
  • Tool: Calibration plot (X: predicted probability, Y: actual frequency)

Strategy 2: Improve Resolution

  • Avoid being stuck at 50%
  • Differentiate between easy and hard forecasts
  • Be bold when evidence is strong

Strategy 3: Gather Better Information

  • Do more research, use reference classes, decompose with Fermi, update with Bayes

Step 5: Avoid gaming the metric

Wrong approach: "Never predict below 10% or above 90%" (gaming)

Right approach: Predict your TRUE belief. If that's 5%, say 5%. Accept that you'll occasionally get large Brier penalties. Over many forecasts, honesty wins.

The rule: Minimize Brier score by being accurate, not by being safe.

Next: Return to menu


5. Hedge and Portfolio Betting

Manage multiple bets and correlations.

Portfolio Betting Progress:
- [ ] Step 1: Identify correlations between bets
- [ ] Step 2: Calculate portfolio Kelly
- [ ] Step 3: Assess hedging opportunities
- [ ] Step 4: Optimize across all positions
- [ ] Step 5: Monitor and rebalance

Step 1: Identify correlations between bets

The problem: If bets are correlated, true exposure is higher than sum of individual bets.

Correlation examples:

  • Positive: "Democrats win House" + "Democrats win Senate"
  • Negative: "Team A wins" + "Team B wins" (playing each other)
  • Uncorrelated: "Rain tomorrow" + "Bitcoin price doubles"

Step 2: Calculate portfolio Kelly

Simplified heuristic:

  • If correlation > 0.5: Reduce each bet size by 30-50%
  • If correlation < -0.5: Can increase total exposure slightly (partial hedge)

Step 3: Assess hedging opportunities

When to hedge:

  1. Probability changed: Lock in profit when beliefs shift
  2. Lock in profit: Event moved in your favor, odds improved
  3. Reduce exposure: Too much capital on one outcome

Hedging example:

  • Bet $100 on A at 60% (1.67 odds) → Payout: $167
  • Odds change: A now 70%, B now 30% (3.33 odds)
  • Hedge: Bet $50 on B at 3.33 → Payout if B wins: $167
  • Result: Guaranteed $17 profit regardless of outcome

Step 4: Optimize across all positions

View portfolio holistically. Reduce correlated bets, maintain independence where possible.

Step 5: Monitor and rebalance

Weekly review: Check if probabilities changed, assess hedging opportunities, rebalance if needed After major news: Update probabilities, consider hedging, recalculate Kelly sizes Monthly audit: Portfolio correlation check, bankroll adjustment, performance review

Next: Return to menu


6. Learn the Framework

Deep dive into the methodology.

Resource Files

📄 Betting Theory Fundamentals

  • Expected value framework, variance and risk, bankroll management, market efficiency

📄 Kelly Criterion Deep Dive

  • Mathematical derivation, proof of optimality, extensions and variations, common mistakes

📄 Scoring Rules and Calibration

  • Brier score deep dive, log score, calibration curves, resolution analysis, proper scoring rules

Next: Return to menu


Quick Reference

The Market Mechanics Commandments

  1. Edge > Threshold - Don't bet small edges (5%+ minimum)
  2. Use Fractional Kelly - Never full Kelly (use 1/4 to 1/2)
  3. Extremize aggregates - Push away from 50% when combining forecasts
  4. Minimize Brier honestly - Be accurate, not safe
  5. Watch correlations - Portfolio risk > sum of individual risks
  6. Hedge strategically - When probabilities change or lock profit
  7. Track calibration - Your 70% should happen 70% of the time

One-Sentence Summary

Convert beliefs into optimal decisions using edge calculation, Kelly sizing, extremizing, and proper scoring.

Integration with Other Skills

  • Before: Use after completing forecast (have probability, need action)
  • Companion: Works with bayesian-reasoning-calibration for probability updates
  • Feeds into: Portfolio management and adaptive betting strategies

Resource Files

📁 resources/


Ready to start? Choose a number from the menu above.

版本历史

  1. 0.1 GitHub ↗
    原版更新说明

    ## What's Changed * Improve writer skill navigation and structure by @lyndonkl in https://github.com/lyndonkl/claude/pull/1 * Consolidate stickiness content and reduce revision to 3 passes by @lyndonkl in https://github.com/lyndonkl/claude/pull/2 * Update README.md to reflect current writer skill structure by @lyndonkl in https://github.com/lyndonkl/claude/pull/3 * Add explicit instructions for AI agents to follow resource file workf… by @lyndonkl in https://github.com/lyndonkl/claude/pull/4 * Change analysis files from /tmp/ to project directory by @lyndonkl in https://github.com/lyndonkl/claude/pull/5 * Add five refined skills to production by @lyndonkl in https://github.com/lyndonkl/claude/pull/6 * Add causal-inference-root-cause skill and fix missing methodology files by @lyndonkl in https://github.com/lyndonkl/claude/pull/7 * Add workflow pattern to 6 completed skills by @lyndonkl in https://github.com/lyndonkl/claude/pull/8 * Add chain-estimation and roleplay-debate skills with optimizations by @lyndonkl in https://github.com/lyndonkl/claude/pull/9 * Add 3 new skills and update writer skill workflow pattern by @lyndonkl in https://github.com/lyndonkl/claude/pull/10 * Add skills #12-13: constraint-based-creativity and data-schema-knowle… by @lyndonkl in https://github.com/lyndonkl/claude/pull/11 * Add skills #14-16: decision-matrix, decomposition-reconstruction, deliberation-debate-red-teaming by @lyndonkl in https://github.com/lyndonkl/claude/pull/12 * Add skills #17-19: design-of-experiments, dialectical-mapping-steelmanning, discovery-interviews-surveys by @lyndonkl in https://github.com/lyndonkl/claude/pull/13 * Add chef-assistant skill and update README by @lyndonkl in https://github.com/lyndonkl/claude/pull/14 * Fix README: Remove links to gitignored scratchpad files by @lyndonkl in https://github.com/lyndonkl/claude/pull/15 * Add skills #14-22: 9 new production-ready skills by @lyndonkl in https://github.com/lyndonkl/claude/pull/16 * Add skills #20-24 and workflow pattern updates by @lyndonkl in https://github.com/lyndonkl/claude/pull/17 * Add skill #25: expected-value by @lyndonkl in https://github.com/lyndonkl/claude/pull/18 * Add skills #26-28: facilitation-patterns, financial-unit-economics, focus-timeboxing-8020 by @lyndonkl in https://github.com/lyndonkl/claude/pull/19 * Add skills #29-30: heuristics-and-checklists, hypotheticals-counterfactuals by @lyndonkl in https://github.com/lyndonkl/claude/pull/20 * Add skills #31-33: information-architecture, kill-criteria-exit-ramps, layered-reasoning by @lyndonkl in https://github.com/lyndonkl/claude/pull/21 * Add Claude Code plugin support by @lyndonkl in https://github.com/lyndonkl/claude/pull/22 * Fix plugin marketplace source path by @lyndonkl in https://github.com/lyndonkl/claude/pull/23 * Add skill #34: mapping-visualization-scaffolds by @lyndonkl in https://github.com/lyndonkl/claude/pull/24 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/25 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/26 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/27 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/28 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/29 * Add skill #59: skill-extraction by @lyndonkl in https://github.com/lyndonkl/claude/pull/30 * Add skill-creator: Transform documents into actionable skills by @lyndonkl in https://github.com/lyndonkl/claude/pull/31 * Update skill count from 58 to 61 in README by @lyndonkl in https://github.com/lyndonkl/claude/pull/32 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/33 * Add d3-visualization skill: comprehensive D3.js implementation guide by @lyndonkl in https://github.com/lyndonkl/claude/pull/34 * Add comprehensive Superforecasting Toolkit with 4 skills and orchestr… by @lyndonkl in https://github.com/lyndonkl/claude/pull/35 * Add "Run in Smithery" badge by @gurdasnijor in https://github.com/lyndonkl/claude/pull/36 * Add Scientific Writing Toolkit with 6 skills and orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/37 * Improve skill invocation rules and update README by @lyndonkl in https://github.com/lyndonkl/claude/pull/38 * Add Geometric Deep Learning skill suite and orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/39 * Decompose writer skill into 4 focused skills + orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/40 * Add GraphRAG skill suite with 5 skills + orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/41 * Decompose cognitive-design skill into 3 focused skills + orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/42 ## New Contributors * @lyndonkl made their first contribution in https://github.com/lyndonkl/claude/pull/1 * @gurdasnijor made their first contribution in https://github.com/lyndonkl/claude/pull/36 **Full Changelog**: https://github.com/lyndonkl/claude/commits/0.1

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • 提供从概率信念到最优下注决策的完整量化框架
  • 涵盖凯利准则、优势计算、预测极端化、Brier分数优化等核心功能
  • 解决预测市场中从概率到行动的高频刚需问题
触发精准95/100

亮点

  • 触发词精准完整,覆盖'下注策略、凯利准则、优势计算、Brier分数、极端化'等关键词
  • description和skill_body中多次重复强化,边界清晰
  • 支持多种触发场景变体
结构规范90/100

亮点

  • Phase/步骤清晰,每个核心功能都有进度检查点
  • 包含端到端示例和具体计算过程
  • frontmatter完整,单文件结构规范
执行可靠88/100

亮点

  • 工具来源明确,凯利公式、极端化因子等均有数学定义
  • 覆盖主要异常情况(分数凯利、相关性调整、对冲策略)
  • 不可逆操作(下注)有最终确认检查清单
证据可验 (前四项均值)91/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。