bet-sizing

Calculate optimal position sizes using Kelly criterion and risk budgeting frameworks.

164|33|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/JoelLewis/finance_skills --skill bet-sizing-joellewis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bet-sizing
Source: https://github.com/JoelLewis/finance_skills/tree/main/plugins/wealth-management/skills/bet-sizing
Command: npx skills add https://github.com/JoelLewis/finance_skills --skill bet-sizing-joellewis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps investors and traders determine the optimal amount of capital to allocate to individual positions within a portfolio, preventing over-concentration and maximizing risk-adjusted returns.

Core Features & Use Cases

  • Kelly Criterion: Calculate theoretically optimal bet sizes for both discrete and continuous investments.
  • Fractional Kelly: Apply conservative fractions (half, third, quarter Kelly) to mitigate risk from estimation errors.
  • Risk Budgeting: Allocate risk across positions based on VaR or tracking error limits.
  • Volatility Scaling: Adjust position sizes inversely with volatility to maintain consistent risk exposure.
  • Use Case: A portfolio manager wants to size a new stock position. They estimate an 8% expected excess return and 20% volatility. This skill can calculate the full Kelly (200% allocation, highly leveraged) and suggest a more practical half Kelly (100% allocation) or quarter Kelly (50% allocation) to balance growth and risk.

Quick Start

Calculate the half Kelly bet size for an investment with 8% expected excess return and 20% volatility.

Frequently Asked Questions about bet-sizing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate optimal position sizing for an investment portfolio?

Optimal position sizing is calculated using the Kelly criterion and risk budgeting frameworks. This process computes optimal capital fractions for discrete bets and continuous returns by mathematically balancing expected excess return against volatility.

What is fractional Kelly and when should I use it for risk management?

Fractional Kelly applies a conservative fraction—such as half, third, or quarter—to the full Kelly bet size. It is used to mitigate risk from estimation errors, preventing over-concentration while still targeting risk-adjusted growth.

How do I size portfolio positions using volatility scaling?

Volatility scaling adjusts position sizes inversely with asset volatility to maintain consistent risk exposure. This ensures that highly volatile assets receive smaller capital allocations within the overall portfolio construction process.

Does numpy support Kelly criterion calculations for continuous investment returns?

Yes, numpy supports the precise mathematical computations required for Kelly criterion calculations. It handles the array operations needed to process continuous investment returns, volatility scaling, and conviction weighting efficiently.

How does risk budgeting allocate capital across portfolio positions?

Risk budgeting allocates capital by assigning specific risk limits, such as Value at Risk or tracking error, to individual positions. This framework distributes risk exposure across the portfolio rather than allocating strictly by capital amount.

What are the limitations of using full Kelly for portfolio construction?

Full Kelly sizing can suggest highly leveraged allocations, such as a 200% position, which introduces severe over-concentration risk. Estimation errors in expected return or volatility can drastically amplify losses when using the full fraction.