重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
npx skills add https://github.com/lyndonkl/claude --skill market-mechanics-betting市场机制 使用量化框架将信念(概率)转化为行动(投注、决策、资源分配)。
核心原则: 如果你以 X% 的概率相信某事,你应该愿意以特定的赔率进行投注。
为何重要:
在以下情况使用:
在以下情况不要使用:
你想做什么?
1. 计算优势 - 确定你是否有优势 2. 优化投注规模(凯利公式) - 投注多少 3. 极端化聚合预测 - 调整群体智慧 - 改进预测评分 - 管理多个投注 - 深入探讨方法论 - 返回主预测工作流
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
确定你是否有投注优势。
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
来源: 预测市场(Polymarket, Kalshi)、投注赔率、共识预测、基准率
将投注赔率转换为概率:
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%
运行你的预测流程后,陈述:你的概率: ___%
Edge = Your Probability - Market Probability
解释:
最小优势阈值:
| 背景 | 最小优势 | 理由 |
|---|---|---|
| 预测市场 | 5-10% | 费用约 2-5%,需要缓冲 |
| 体育博彩 | 3-5% | 有效市场 |
| 私人投注 | 2-3% | 仅模型不确定性 |
| 高确信度 | 8-15% | 需要显著优势 |
If Edge > Minimum Threshold → Calculate bet size (Kelly)
If 0 < Edge < Minimum → Pass (edge too small)
If Edge < 0 → Consider opposite bet or pass
下一步: 返回菜单或继续凯利规模计算
计算最优投注规模以最大化长期增长。
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
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)
最大化财富对数的期望值(长期增长率)。
示例:
你的获胜概率:70%
市场赔率:1.67(十进制)→ 净赔率 (b):0.67
p = 0.70, q = 0.30
f* = (0.67 × 0.70 - 0.30) / 0.67 = 0.252 = 25.2%
完整凯利建议:投注 25.2% 的资金
完整凯利的问题: 高方差、对模型错误敏感、心理难度大
解决方案:分数凯利
Actual bet = f* × Fraction
Common fractions:
- 1/2 Kelly: f* / 2
- 1/3 Kelly: f* / 3
- 1/4 Kelly: f* / 4
建议: 对于大多数投注,使用 1/4 到 1/2 凯利。
原因: 将方差降低 50-75%,仍能捕捉大部分增长,对模型错误更稳健。
实际考虑因素:
最终检查:
下注。
下一步: 返回菜单
聚合多个预测时调整群体智慧。
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
问题: 当你对预测取平均值时,会得到向 50% 的回归。
研究: Good Judgment Project 发现聚合预测比个体更准确,但系统性地过于温和。极端化(推离 50%)提高了准确性,因为多个预测者共享共同信息,而简单平均“过度计算”了共享信息。
从多个来源收集预测。确保预测是独立的,预测者使用了良好的流程,并且拥有类似的信息可用。
Average = Sum of forecasts / Number of forecasts
Extremized = 50% + (Average - 50%) × Factor
Where Factor typically ranges from 1.2 to 1.5
示例:
平均值:77.6%
因子:1.3
Extremized = 50% + (77.6% - 50%) × 1.3 = 85.88% ≈ 86%
选择因子:
| 情况 | 因子 | 理由 |
|---|---|---|
| 预测者高度相关 | 1.1-1.2 | 弱极端化 |
| 中等独立 | 1.3-1.4 | 中等极端化 |
| 非常独立 | 1.5+ | 强极端化 |
| 高专业知识 | 1.4-1.6 | 信任信号 |
默认: 如果不确定,使用 1.3。
合理性检查:
下一步: 返回菜单
改进预测准确性评分。
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
Brier Score = (1/N) × Σ(Probability - Outcome)²
Where:
- Probability = Your forecast (0 to 1)
- Outcome = Actual result (0 or 1)
- N = Number of forecasts
范围: 0(完美)到 1(最差)。越低越好。
解释:
| Brier 分数 | 质量 |
|---|---|
| < 0.10 | 优秀 |
| 0.10 - 0.15 | 良好 |
| 0.15 - 0.20 | 一般 |
| 0.20 - 0.25 | 低于一般 |
0.25 | 差
基线: 随机猜测(总是 50%)给出 Brier = 0.25
Brier 分数 = 校准误差 + 分辨率 + 不确定性
校准误差: 你的 70% 预测是否在 70% 的时间内发生?(衡量偏差) 分辨率: 你为不同结果分配不同概率的频率如何?(衡量区分度)
策略 1:修复校准
策略 2:改进分辨率
策略 3:收集更好的信息
错误方法: “永远不要预测低于 10% 或高于 90%”(操纵)
正确方法: 预测你的真实信念。如果是 5%,就说 5%。接受你偶尔会得到大的 Brier 惩罚。在许多预测中,诚实会胜出。
规则: 通过准确来最小化 Brier 分数,而不是通过安全。
下一步: 返回菜单
管理多个投注及其相关性。
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
问题: 如果投注相关,真实风险敞口高于单个投注的总和。
相关性示例:
简化启发式方法:
何时对冲:
对冲示例:
整体看待组合。减少相关投注,尽可能保持独立性。
每周审查: 检查概率是否改变,评估对冲机会,如果需要则再平衡 重大新闻后: 更新概率,考虑对冲,重新计算凯利规模 每月审计: 组合相关性检查,资金调整,绩效审查
下一步: 返回菜单
深入探讨方法论。
📄 投注理论基础
📄 凯利公式深入探讨
📄 评分规则与校准
下一步: 返回菜单
使用优势计算、凯利规模、极端化和适当评分,将信念转化为最优决策。
bayesian-reasoning-calibration 配合进行概率更新📁 resources/
准备开始了吗?从上面的菜单中选择一个数字。
每周安装
57
仓库
GitHub 星标
45
首次出现
Jan 24, 2026
安全审计
安装于
opencode48
cursor44
gemini-cli43
codex42
github-copilot41
claude-code37
Market mechanics translates beliefs (probabilities) into actions (bets, decisions, resource allocation) using quantitative frameworks.
Core Principle: If you believe something with X% probability, you should be willing to bet at certain odds.
Why It Matters:
Use when:
Do NOT use when:
What would you like to do?
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
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
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%
After running your forecasting process, state: Your probability: ___%
Edge = Your Probability - Market Probability
Interpretation:
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 |
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
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
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).
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
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.
Practical considerations:
Final check:
Place bet.
Next: Return to menu
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
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.
Gather predictions from multiple sources. Ensure forecasts are independent, forecasters used good process, and have similar information available.
Average = Sum of forecasts / Number of forecasts
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.
Sanity checks:
Next: Return to menu
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
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.
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
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)
Strategy 1: Fix Calibration
Strategy 2: Improve Resolution
Strategy 3: Gather Better Information
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
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
The problem: If bets are correlated, true exposure is higher than sum of individual bets.
Correlation examples:
Simplified heuristic:
When to hedge:
Hedging example:
View portfolio holistically. Reduce correlated bets, maintain independence where possible.
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
Deep dive into the methodology.
📄 Scoring Rules and Calibration
Next: Return to menu
Convert beliefs into optimal decisions using edge calculation, Kelly sizing, extremizing, and proper scoring.
bayesian-reasoning-calibration for probability updates📁 resources/
Ready to start? Choose a number from themenu above.
Weekly Installs
57
Repository
GitHub Stars
45
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode48
cursor44
gemini-cli43
codex42
github-copilot41
claude-code37
AI代理协作核心原则:提升开发效率的6大Agentic开发原则指南
7,600 周安装
deepTools:NGS数据分析工具包 - ChIP-seq/RNA-seq/ATAC-seq质量控制与可视化
55 周安装
scikit-bio Python生物信息学库:序列分析、系统发育、多样性计算与微生物组数据处理
55 周安装
Python DICOM处理教程:pydicom读取医学影像、元数据操作与格式转换
55 周安装
治疗计划撰写模板与工具 - 专业LaTeX模板、AI图表生成、法规合规
55 周安装
Geniml:基因组区间机器学习Python包,支持BED文件嵌入与单细胞ATAC-seq分析
55 周安装
PennyLane量子计算库:量子机器学习、量子化学与硬件集成全指南
55 周安装