/bet-sizing
Determine how much capital to allocate to individual positions within a portfolio. Use when the user asks about position sizing, the Kelly criterion, fractional Kelly, risk budgeting, or conviction weighting. Also trigger when users mention 'how much to put in one stock',
$ npx -y skills add JoelLewis/finance_skills --skill bet-sizing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/bet-sizing
Context preview
The summary Claude sees to decide when to auto-load this skill.
Determine how much capital to allocate to individual positions within a portfolio. Use when the user asks about position sizing, the Kelly criterion, fractional Kelly, risk budgeting, or conviction weighting. Also trigger when users mention 'how much to put in one stock',
SKILL.md
bet-sizing.SKILL.mdname: bet-sizing
description: "Determine how much capital to allocate to individual positions within a portfolio. Use when the user asks about position sizing, the Kelly criterion, fractional Kelly, risk budgeting, or conviction weighting. Also trigger when users mention 'how much to put in one stock', 'maximum position size', 'how concentrated should my portfolio be', 'number of holdings', 'VaR budget per position', 'how big a bet', or ask about scaling position sizes with volatility."
Bet Sizing
Core Concepts
Kelly Criterion (Discrete)
For a binary bet with payoff odds b, win probability p, and loss probability q = 1-p:
f* = (b*p - q) / b
where f* is the optimal fraction of wealth to wager. The Kelly criterion maximizes the expected logarithm of wealth (geometric growth rate) over repeated bets.
Properties:
- f* = 0 when edge = 0 (no bet when there is no advantage)
- f* < 0 when negative edge (the formula tells you to bet the other side)
- f* > 0 only when b*p > q (positive expected value)
Note: the reference script's `discrete_kelly` clamps negative Kelly fractions to 0 (no bet) rather than returning a negative value — it does not recommend taking the other side.
Kelly Criterion (Continuous / Investment)
For a normally distributed investment return with expected excess return mu-r_f and variance sigma^2:
f* = (mu - r_f) / sigma^2
This gives the fraction of total wealth to allocate. For example, an asset with 8% expected excess return and 20% volatility: f* = 0.08 / 0.04 = 2.0 (200% of wealth — implying leverage).
Fractional Kelly
Full Kelly sizing is theoretically optimal but practically too aggressive because:
- It assumes perfect knowledge of probabilities and payoffs
- It produces large drawdowns (the expected drawdown of full Kelly is significant)
- Estimation error in parameters can turn optimal into catastrophic
Practical approach: use a fraction of Kelly, commonly:
- **Half Kelly (f*/2):** Achieves 75% of the growth rate with substantially lower variance and drawdown risk
- **Third Kelly (f*/3):** Even more conservative; appropriate when parameter uncertainty is high
- **Quarter Kelly (f*/4):** Suitable for highly uncertain estimates
The key insight: the growth rate curve is flat near the peak. Reducing from full Kelly to half Kelly only sacrifices 25% of growth but reduces risk dramatically.
Risk Budgeting
Allocate risk (not capital) across positions. The total risk budget is the maximum acceptable portfolio risk (e.g., 10% VaR or 5% tracking error).
**VaR-based budgeting:**
- Total VaR budget: e.g., $1M at 95% confidence
- Allocate across positions: Position VaR_i <= allocated VaR_i
- Position VaR = w_i * sigma_i * z_alpha * Portfolio Value
**Tracking error budgeting (for active managers):**
- Total active risk budget: e.g., 4% tracking error
- Allocate across bets: each active bet consumes a portion of tracking error
- Size active positions so that sum of risk contributions equals total risk budget
Maximum Position Sizes
Hard limits on individual positions to prevent concentration risk:
**Liquidity-based limits:**
- Position < X% of average daily volume (ADV) — common limits: 10-25% of ADV
- Ensures ability to exit within a reasonable time frame (e.g., 5-10 trading days)
**Risk-based limits:**
- Position risk contribution < X% of portfolio volatility (e.g., max 10% of portfolio risk)
- Single position < X% of portfolio value (common: 5% for diversified, 10% for concentrated)
**Regulatory/mandate limits:**
- Mutual fund: no more than 5% in a single name (diversified fund) or 25% (non-diversified)
- Index tracking: weight cannot deviate from benchmark by more than specified amount
Conviction Weighting
Size positions proportional to the strength of the investment thesis:
- **High conviction (largest positions):** Strong edge, deep research, multiple confirming factors
- **Medium conviction:** Solid thesis but some uncertainty or limited information
- **Low conviction (smallest positions):** Early-stage idea, limited edge, or purely diversification-motivated
Framework: Score each position on edge strength (1-5) and certainty (1-5). Size proportional to the product: edge * certainty.
Optimal Number of Positions
Trade-off between diversification and conviction:
- **Concentrated (10-20 positions):** High conviction, deep research. Each position is 5-10% of the portfolio. Appropriate when the manager has genuine skill and edge.
- **Diversified (50-100 positions):** Lower conviction per position but broader risk reduction. Each position is 1-3%. Appropriate for systematic or factor-based strategies.
- **Very diversified (100+):** Index-like. Risk comes from factor tilts, not individual positions.
Volatility Scaling
Adjust position sizes inversely with volatility to maintain consistent risk per position:
Adjusted size = Target risk / Current volatility
When volatility doubles, position size halves, keeping the dollar risk constant. This is a core principle in managed futures and risk-targeting strategies.
Anti-Martingale (Kelly-like) Sizing
Increase position sizes after gains (wealth grows, so Kelly fraction applied to larger base) and decrease after losses. This contrasts with martingale strategies (doubling down after losses) which can lead to ruin.
Kelly naturally implements anti-martingale sizing: bet a constant fraction of current wealth, so absolute bet size grows with wealth and shrinks with losses.
Key Formulas
| Formula | Expression | Use Case | |---------|-----------|----------| | Kelly (Discrete) | f* = (b*p - q) / b | Binary bet sizing | | Kelly (Continuous) | f* = (mu - r_f) / sigma^2 | Investment position sizing | | Half Kelly | f = f* / 2 | Practical conservative sizing | | Growth Rate at Kelly | g* = (mu - r_f)^2 / (2*sigma^2) | Maximum geometric growth | | Growth Rate at f | g(f) = f*(mu - r_f) - f^2*sigma^2/2 | Growth rate for any fraction | | Volatility-Scaled Size | w = target_risk
Read more
name: bet-sizing description: "Determine how much capital to allocate to individual positions within a portfolio. Use when the user asks about position sizing, the Kelly criterion, fractional Kelly, risk budgeting, or conviction weighting. Also trigger when users mention 'how much to put in one stock', 'maximum position size', 'how concentrated should my portfolio be', 'number of holdings', 'VaR budget per position', 'how big a bet', or ask about scaling position sizes with volatility."
Bet Sizing
Core Concepts
Kelly Criterion (Discrete)
For a binary bet with payoff odds b, win probability p, and loss probability q = 1-p:
f* = (b*p - q) / b
where f* is the optimal fraction of wealth to wager. The Kelly criterion maximizes the expected logarithm of wealth (geometric growth rate) over repeated bets.
Properties:
- f* = 0 when edge = 0 (no bet when there is no advantage)
- f* < 0 when negative edge (the formula tells you to bet the other side)
- f* > 0 only when b*p > q (positive expected value)
Note: the reference script's `discrete_kelly` clamps negative Kelly fractions to 0 (no bet) rather than returning a negative value — it does not recommend taking the other side.
Kelly Criterion (Continuous / Investment)
For a normally distributed investment return with expected excess return mu-r_f and variance sigma^2:
f* = (mu - r_f) / sigma^2
This gives the fraction of total wealth to allocate. For example, an asset with 8% expected excess return and 20% volatility: f* = 0.08 / 0.04 = 2.0 (200% of wealth — implying leverage).
Fractional Kelly
Full Kelly sizing is theoretically optimal but practically too aggressive because:
- It assumes perfect knowledge of probabilities and payoffs
- It produces large drawdowns (the expected drawdown of full Kelly is significant)
- Estimation error in parameters can turn optimal into catastrophic
Practical approach: use a fraction of Kelly, commonly:
- **Half Kelly (f*/2):** Achieves 75% of the growth rate with substantially lower variance and drawdown risk
- **Third Kelly (f*/3):** Even more conservative; appropriate when parameter uncertainty is high
- **Quarter Kelly (f*/4):** Suitable for highly uncertain estimates
The key insight: the growth rate curve is flat near the peak. Reducing from full Kelly to half Kelly only sacrifices 25% of growth but reduces risk dramatically.
Risk Budgeting
Allocate risk (not capital) across positions. The total risk budget is the maximum acceptable portfolio risk (e.g., 10% VaR or 5% tracking error).
**VaR-based budgeting:**
- Total VaR budget: e.g., $1M at 95% confidence
- Allocate across positions: Position VaR_i <= allocated VaR_i
- Position VaR = w_i * sigma_i * z_alpha * Portfolio Value
**Tracking error budgeting (for active managers):**
- Total active risk budget: e.g., 4% tracking error
- Allocate across bets: each active bet consumes a portion of tracking error
- Size active positions so that sum of risk contributions equals total risk budget
Maximum Position Sizes
Hard limits on individual positions to prevent concentration risk:
**Liquidity-based limits:**
- Position < X% of average daily volume (ADV) — common limits: 10-25% of ADV
- Ensures ability to exit within a reasonable time frame (e.g., 5-10 trading days)
**Risk-based limits:**
- Position risk contribution < X% of portfolio volatility (e.g., max 10% of portfolio risk)
- Single position < X% of portfolio value (common: 5% for diversified, 10% for concentrated)
**Regulatory/mandate limits:**
- Mutual fund: no more than 5% in a single name (diversified fund) or 25% (non-diversified)
- Index tracking: weight cannot deviate from benchmark by more than specified amount
Conviction Weighting
Size positions proportional to the strength of the investment thesis:
- **High conviction (largest positions):** Strong edge, deep research, multiple confirming factors
- **Medium conviction:** Solid thesis but some uncertainty or limited information
- **Low conviction (smallest positions):** Early-stage idea, limited edge, or purely diversification-motivated
Framework: Score each position on edge strength (1-5) and certainty (1-5). Size proportional to the product: edge * certainty.
Optimal Number of Positions
Trade-off between diversification and conviction:
- **Concentrated (10-20 positions):** High conviction, deep research. Each position is 5-10% of the portfolio. Appropriate when the manager has genuine skill and edge.
- **Diversified (50-100 positions):** Lower conviction per position but broader risk reduction. Each position is 1-3%. Appropriate for systematic or factor-based strategies.
- **Very diversified (100+):** Index-like. Risk comes from factor tilts, not individual positions.
Volatility Scaling
Adjust position sizes inversely with volatility to maintain consistent risk per position:
Adjusted size = Target risk / Current volatility
When volatility doubles, position size halves, keeping the dollar risk constant. This is a core principle in managed futures and risk-targeting strategies.
Anti-Martingale (Kelly-like) Sizing
Increase position sizes after gains (wealth grows, so Kelly fraction applied to larger base) and decrease after losses. This contrasts with martingale strategies (doubling down after losses) which can lead to ruin.
Kelly naturally implements anti-martingale sizing: bet a constant fraction of current wealth, so absolute bet size grows with wealth and shrinks with losses.
Key Formulas
| Formula | Expression | Use Case | |---------|-----------|----------| | Kelly (Discrete) | f* = (b*p - q) / b | Binary bet sizing | | Kelly (Continuous) | f* = (mu - r_f) / sigma^2 | Investment position sizing | | Half Kelly | f = f* / 2 | Practical conservative sizing | | Growth Rate at Kelly | g* = (mu - r_f)^2 / (2*sigma^2) | Maximum geometric growth | | Growth Rate at f | g(f) = f*(mu - r_f) - f^2*sigma^2/2 | Growth rate for any fraction | | Volatility-Scaled Size | w = target_risk
A collection of Claude Code skill plugins for financial services. 91 skills across 7 domain plugins teach Claude investment management, regulatory compliance, advisory workflows, trading operations, and more — so it can assist with finance questions, build
Other skills on finance-skills.
- /advisor-dashboards
Design, build, and optimize dashboards for RIA practice management with AUM tracking, revenue analytics, and KPI frameworks. Use when the user asks about tracking firm-level metrics, monitoring advisor productivity, measuring organic growth rate, analyzing client retention and
Open skill - /client-onboarding
Design and implement end-to-end client onboarding workflows from prospect intake through funded account, covering KYC verification, document collection, e-signature, and custodian submission. Use when the user asks about building a digital onboarding flow, integrating identity
Open skill - /client-reporting-delivery
Design, generate, and deliver client performance reports across all channels, covering quarterly reports, tax reporting, portal integration, and compliance review. Use when the user asks about building or redesigning report templates, choosing what to include in quarterly or
Open skill - /client-review-prep
Prepare advisors for client review meetings by assembling context packages, performance summaries, drift analysis, talking points, and meeting agendas. Use when the user asks about preparing for a client review, building a pre-meeting checklist, generating talking points for an
Open skill - /crm-client-lifecycle
Design and optimize CRM systems and client lifecycle workflows for advisory firms, covering segmentation, household management, service tiers, and retention analytics. Use when the user asks about client segmentation models, building household structures, defining service tier
Open skill - /fee-billing
Build and manage advisory fee billing operations from fee schedule design through calculation, collection, revenue recognition, and compliance disclosure. Use when the user asks about tiered or breakpoint fee schedules, billing cycle configuration, AUM valuation for billing,
Open skill

