← 返回 Skills 市场
rsquaredsolutions2026

Expected Value Calculator

作者 rsquaredsolutions2026 · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
153
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install agentbets-ev-calculator
功能描述
Calculate expected value for any sports bet or prediction market position. Supports American odds, decimal odds, implied probability, and Kalshi contract pri...
使用说明 (SKILL.md)

Expected Value Calculator

Calculate the expected value of any bet given offered odds and your estimated true probability.

When to Use

Use this skill when the user asks about:

  • Expected value of a bet
  • Whether a bet is +EV or -EV
  • Is this bet worth taking at these odds
  • Breakeven probability for given odds
  • Comparing EV across multiple bets
  • Finding the best value bets on a slate
  • How much edge they have on a line

Odds Conversion Reference

Before computing EV, convert all inputs to decimal odds:

Format Example To Decimal Odds
American (+) +150 1 + odds/100 = 2.50
American (-) -200 1 + 100/
Decimal 2.50 Already decimal
Implied Prob 40% 1/prob = 2.50
Kalshi price $0.40 1/price = 2.50

Operations

1. Single Bet EV

Calculate expected value for one bet. User must provide: odds (any format) and their estimated true probability.

python3 -c "
import sys

odds_input = sys.argv[1]
true_prob = float(sys.argv[2]) / 100 if float(sys.argv[2]) > 1 else float(sys.argv[2])

# Convert to decimal odds
if odds_input.startswith('+'):
    decimal_odds = 1 + int(odds_input) / 100
elif odds_input.startswith('-'):
    decimal_odds = 1 + 100 / abs(int(odds_input))
elif odds_input.startswith('$') or odds_input.startswith('0.'):
    price = float(odds_input.replace('$', ''))
    decimal_odds = 1 / price
else:
    decimal_odds = float(odds_input)

implied_prob = 1 / decimal_odds
ev_per_dollar = true_prob * decimal_odds - 1
edge = true_prob - implied_prob

print(f'Offered odds: {odds_input} (decimal {decimal_odds:.3f})')
print(f'Implied probability: {implied_prob:.1%}')
print(f'Your true probability: {true_prob:.1%}')
print(f'Edge: {edge:+.1%}')
print(f'EV per \$1: {ev_per_dollar:+.4f}')
print(f'EV per \$100: {ev_per_dollar * 100:+.2f}')
print(f'Verdict: {\"✅ +EV — BET\" if ev_per_dollar > 0 else \"❌ -EV — PASS\"} ')
" "ODDS" "TRUE_PROB_PERCENT"

## About

Built by [AgentBets](https://agentbets.ai) — full tutorial at [agentbets.ai/guides/openclaw-ev-calculator-skill/](https://agentbets.ai/guides/openclaw-ev-calculator-skill/).

Part of the [OpenClaw Skills series](https://agentbets.ai/guides/#openclaw-skills) for the [Agent Betting Stack](https://agentbets.ai/guides/agent-betting-stack/).
安全使用建议
This skill appears coherent and low-risk: it runs a local python3 one-liner using only the odds and probability you pass in and does not send data elsewhere. Before installing, verify you trust the skill source (registry owner) and that python3 on the host is the expected interpreter. Be aware the script uses simple parsing and may mis-handle some input formats (e.g., '40%' or unusual odds strings); if you need broader input support or stricter validation, request an updated SKILL.md or a version that runs a small packaged script with explicit input validation. If you want extra caution, run the single python command locally yourself to confirm its behavior before enabling the skill for automated use.
功能分析
Type: OpenClaw Skill Name: agentbets-ev-calculator Version: 1.1.0 The skill provides a Python-based expected value calculator for sports betting and prediction markets. While the logic in SKILL.md is aligned with its stated purpose, the recommended execution pattern (python3 -c "..." "ODDS" "TRUE_PROB_PERCENT") is vulnerable to shell injection if the AI agent populates the placeholders with unsanitized user input containing shell metacharacters. No evidence of intentional malice, data exfiltration, or persistence was found, but the lack of input sanitization in the command template constitutes a significant security vulnerability.
能力评估
Purpose & Capability
Name/description, required binary (python3), and runtime instructions all align with computing expected value for bets and prediction-market positions. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
Runtime instructions are an inline python3 command that reads two command-line arguments (odds and estimated probability) and prints EV, edge, and a verdict. The instructions do not access files, environment secrets, or network endpoints. Minor implementation caveats: the script's input parsing is simplistic (e.g., percent detection uses a >1 numeric check, limited handling of formats like '40%' or other variants), which may misinterpret some inputs but is not a security issue.
Install Mechanism
No install spec; instruction-only skill. This minimizes disk writes and supply-chain risk. The only runtime requirement is python3 being available on PATH.
Credentials
No environment variables, credentials, or config paths are requested. The declared requirements match what the skill does.
Persistence & Privilege
always:false and user-invocable:true (defaults). The skill does not request persistent or elevated privileges and does not modify system or other-skill configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agentbets-ev-calculator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agentbets-ev-calculator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Add attribution links to agentbets.ai guides
v1.0.0
Initial release — AgentBets OpenClaw Skills series
元数据
Slug agentbets-ev-calculator
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Expected Value Calculator 是什么?

Calculate expected value for any sports bet or prediction market position. Supports American odds, decimal odds, implied probability, and Kalshi contract pri... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 153 次。

如何安装 Expected Value Calculator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentbets-ev-calculator」即可一键安装,无需额外配置。

Expected Value Calculator 是免费的吗?

是的,Expected Value Calculator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Expected Value Calculator 支持哪些平台?

Expected Value Calculator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Expected Value Calculator?

由 rsquaredsolutions2026(@rsquaredsolutions2026)开发并维护,当前版本 v1.1.0。

💬 留言讨论