kelly-criterion
Kelly Criterion computes the mathematically optimal fraction of your bankroll to risk on each trade, balancing growth against ruin risk. The skill implements the Kelly formula with practical guidance on fractional sizing (0.25x–0.5x recommended), edge estimation from trade history, and portfolio-level adjustments for correlated positions.
Kelly Criterion calculates the optimal bet size that maximizes long-term capital growth given your win rate and payoff ratio.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-06-24
Kelly Criterion calculates the optimal bet size that maximizes long-term capital growth given your win rate and payoff ratio. Kelly Criterion computes the mathematically optimal fraction of your bankroll to risk on each trade, balancing growth against ruin risk. The skill implements the Kelly formula with practical guidance on fractional sizing (0.25x–0.5x recommended), edge estimation from trade history, and portfolio-level adjustments for correlated positions.
Use it when
- Kelly Criterion calculates optimal bet size by combining your win rate, average win size, and average loss size into a single formula.
- Fractional Kelly reduces full Kelly sizing by a conservative multiplier—typically 0.25x or 0.5x—to protect against estimation error.
Verify before relying
Read SKILL.md below before installing (5 files). Open directory: indexed for reading, not audited.
Install
agiprolabs/claude-trading-skills/kelly-criterion · repository language: Python
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is kelly criterion bet sizing and how does it work?
Kelly Criterion computes the mathematically optimal fraction of your bankroll to risk on each trade, balancing growth against ruin risk. The skill implements the Kelly formula with practical guidance on fractional sizing (0.25x–0.5x recommended), edge estimation from trade history, and portfolio-level adjustments for correlated positions.
How do I calculate optimal position size using Kelly?
Kelly Criterion calculates optimal bet size by combining your win rate, average win size, and average loss size into a single formula. The skill helps you estimate edge and win rate from trading data, then applies the Kelly formula to determine what fraction of your bankroll to risk per trade. Fractional Kelly (0.25x–0.5x) is recommended for practical trading to reduce drawdown risk.
What is fractional Kelly and why use 0.25x or 0.5x?
Fractional Kelly reduces full Kelly sizing by a conservative multiplier—typically 0.25x or 0.5x—to protect against estimation error and real-world volatility. Kelly Criterion's full formula assumes perfect edge knowledge; fractional Kelly for practical trading applications acknowledges that your edge estimate may be wrong, smoothing growth curves and lowering catastrophic ruin risk while still outperforming fixed-size betting.
How do I estimate edge and win rate from my trading data?
Kelly Criterion guides you to extract three metrics from your trade history: win rate (winning trades ÷ total trades), average win size (mean profit on winners), and average loss size (mean loss on losers). These feed directly into the Kelly formula to compute your true edge. The skill helps validate that your edge is positive and statistically meaningful before sizing positions.
Can Kelly Criterion manage multiple correlated positions?
Yes. Kelly Criterion addresses managing multiple correlated positions with Kelly sizing by adjusting allocations across your portfolio. When positions move together, naive Kelly sizing on each independently can over-leverage your total exposure. The skill provides portfolio-level adjustments to account for correlation, ensuring your combined risk stays within acceptable bounds.
When should I use fractional Kelly for meme token trades?
Apply conservative Kelly to high-uncertainty meme token trades by using fractional Kelly at 0.25x or lower. Meme tokens have unpredictable volatility and edge estimation is unreliable; fractional Kelly reduces position size dramatically, cutting ruin risk while preserving long-term growth. Full Kelly is dangerous here; conservative fractional sizing is the practical approach.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
Kelly Criterion — Optimal Bet Sizing
The Kelly criterion is the mathematically optimal bet size that maximizes long-term geometric growth of capital. Developed by John Kelly at Bell Labs in 1956, it answers a precise question: given a known edge, what fraction of your bankroll should you risk to maximize the compounding rate?
Core insight: Betting too small leaves growth on the table. Betting too large increases ruin risk and actually reduces long-term growth. Kelly finds the exact optimum between these extremes.
Practical insight: You should almost never use full Kelly. Estimation error in your edge means full Kelly will overbets in practice. Use fractional Kelly (0.25x to 0.5x) for real trading.
The Kelly Formula
For a binary outcome (win or lose):
f* = (p * b - q) / b
Where:
- f* = optimal fraction of bankroll to bet
- p = probability of winning
- q = probability of losing (1 - p)
- b = payoff ratio (average win / average loss)
Equivalent forms:
``` f = p - q / b f =
(truncated - see the full file via the links below)
File tree — 5 files
skills/kelly-criterion/SKILL.md
skills/kelly-criterion/references/kelly_derivation.md
skills/kelly-criterion/references/practical_kelly.md
skills/kelly-criterion/scripts/kelly_calculator.py
skills/kelly-criterion/scripts/kelly_from_trades.py
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Calculate optimal bet size using Kelly criterion formula”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
Position Sizing provides five methods to determine trade size based on account risk, volatility, edge probability, and market liquidity. Fixed fractional sizing—risking a set percentage per trade—is recommended for most traders, while Kelly criterion applies mathematical optimization for quantified edges. The skill combines all methods to apply the most conservative constraint, ensuring your position size aligns with your risk tolerance and market conditions.
Bet Sizing guides you through position sizing frameworks including the Kelly criterion for maximizing long-term wealth growth, fractional Kelly approaches for practical risk management, and risk budgeting methods. Learn to scale positions by volatility, set concentration limits, and weight bets by conviction strength.
Market Mechanics Betting translates your forecasts into actionable betting strategies through quantitative frameworks. It guides you through edge calculation against market odds, optimal bet sizing via Kelly Criterion, aggregated forecast adjustment, and scoring refinement—helping you move from belief to disciplined decision-making.
Edge Detection finds positive expected value by measuring the gap between your calibrated model probability and market odds, then recommends bet sizing via Kelly criterion to grow bankroll responsibly. It ranks bets by edge magnitude, shops across books for best lines, and tracks closing line value to confirm whether your model has real signal.
Risk Management establishes a survival-first framework for protecting trading capital through drawdown thresholds, daily and weekly loss limits, and concentration controls across tokens and strategies. It includes automated circuit breakers triggered by consecutive losses or volatility spikes, recovery math tables, and crypto-specific safeguards for smart contract, rug pull, and MEV risks.
pandas-ta extends pandas with 130+ technical indicators callable via `df.ta` on OHLCV DataFrames. It covers trend, momentum, volatility, volume, and overlap categories, with built-in strategies for scalping, mean reversion, and trend following. Designed for crypto markets with guidance on 24/7 volatility adjustments, low-liquidity tokens, and timeframe-specific indicator selection.