# Half-Kelly Position Sizing Calculator & Ruin Cap API

- **Canonical HTML**: https://quantdesk.fastmesh.dev/seo_geo/half-kelly-position-sizing-calculator-api.html
- **Target Query**: `half Kelly position sizing calculator API` (`calculator`)
- **Source Family**: `prediction_spread` | **MCP Tool**: `quantdesk_risk_simulate` | **Pricing**: $0.05 per 10,000-trial sizing audit ($0 on HTTP 422)
- **Seed**: `42` | **Trials**: `10000` | **Receipt SHA-256**: `c926396276b76f1de8c09cb090c99bf5e21248e9ab038dcd74ec4ae9a0e622b6`

## Direct Answer
Compute conservative Half-Kelly capital allocation caps directly from 10,000-trial Decimal Monte Carlo jump-diffusion return distributions—paired with ruin probability, max drawdown, and VaR 99 constraints to stop autonomous agents from over-sizing noisy signals.

## Fractional Half-Kelly Sizing Formula with Hard Institutional Cap
- Full Kelly Fraction: f* = mu_excess / sigma^2 over the modeled horizon.
- Half-Kelly Hard-Capped Fraction: half_kelly_cap = clamp(Decimal('0.5') * (mu_excess / sigma^2), Decimal('0.0'), Decimal('0.25')).
- Ruin Probability Check: ruin_probability = Pr(terminal_capital <= ruin_floor) across 10,000 seeded trials; when mu_excess <= 0, half_kelly_cap strictly collapses to 0.0.

## Deterministic 10,000-Trial Risk Metrics (Seed 42)
- P5 / P50 / P95 Return: -8.56% / +6.20% / +21.69%
- Mean / Std Return: +6.35% / 9.25%
- VaR 95 / CVaR 95: 8.56% / 13.11%
- VaR 99 / CVaR 99: 15.90% / 19.50%
- Max Drawdown (95th) / Ruin Probability: 11.27% / 0.00%
- Half-Kelly Cap: 25.00%
- Top Tornado Driver: `volatility` (swing 6.10%, variance share 37.4%)

## Key Engineering Capabilities
- Prevents full-Kelly variance blowups by cutting theoretical sizing in half and enforcing a strict 25% institutional single-event cap.
- Couples expected edge directly with fat-tail jump shocks (jump_prob, jump_mean) so binary catalysts never look deceptively low-volatility.
- Outputs exact decimal_exact string values alongside signed receipt_sha256 for automated risk-gate audits.

## Remote `/mcp` Invocation Example
```bash
curl -fsSL -X POST "https://quantdesk.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "quantdesk_risk_simulate", "arguments": {"expected_return": 0.068, "volatility": 0.28, "jump_prob": 0.05, "jump_mean": -0.15, "horizon_days": 21, "initial_capital": 100000, "seed": 42, "trials": 10000}}}'
```

## Frequently Asked Questions
### Why use Half-Kelly capped at 25% instead of uncapped Full Kelly?
Full Kelly maximizes asymptotic log growth only when mean and variance are known with zero estimation error. Under parameter uncertainty and binary jumps, Half-Kelly cuts drawdown variance by 75% while preserving 75% of theoretical growth rate.

### What does half_kelly_cap return when expected edge is negative?
Whenever post-fee expected excess return is zero or negative, half_kelly_cap deterministically clamps to 0.0000.

### Is half_kelly_cap personalized investment advice?
No. It is a deterministic mathematical calculation over caller-supplied parameters and public disclosure metrics, provided strictly as quantitative engineering software.

## Compliance & Zero-Resale Policy
Agent-WallStreet-Desk is a deterministic quantitative public-disclosure extraction and Monte Carlo risk modeling engineering tool only. It is NOT investment advice under the U.S. Investment Advisers Act of 1940, NOT a broker-dealer, and provides ZERO asset management, trade execution, or custody. 100% legal public regulatory disclosures and public market data only (zero MNPI, zero paywall bypass). Strictly $0 billed on empty, unchanged, fake-200, SSRF-blocked, or HTTP 422 responses. Zero client trading strategy, portfolio holdings, or watchlist retention or resale (zero_resale_policy: true). Support: support@fastmesh.dev.
