MathFin
Map / Choice · Portfolio choice / MathFin.Choice.Performance.BetSizeSigmoid

Sigmoid bet-sizing function

MathFin.Choice.Performance.BetSizeSigmoidMSC 91G10JEL G11 source

López de Prado (Advances in Financial Machine Learning, Wiley 2018, ch. 10) sizes a bet from the divergence x = f - p between the forecast price f and the current market price p via the sigmoid m(x) = x / √(w + x²) (w > 0 a width parameter), rather than a hard threshold.

This file proves the three structural properties that justify using m as a bet-sizing map: it is odd, bounded in (-1,1), and strictly increasing in x whenever w > 0. It also ties m to the Kelly criterion: fed the z-statistic z = (p − ½)/√(p(1 − p)) of a predicted win probability p (scaled by √w), the sigmoid returns exactly 2p − 1, the Kelly fraction of an even-money bet (kellyFraction p 1, Choice/Performance/Ratios.lean). López de Prado's probability-based size 2Φ(z) − 1 (ch. 10) is a different map and is not treated here.

Main definitions

  • betSize: the bet-sizing sigmoid m(x) = x / √(w + x²) with width parameter w.

Main results

  • betSize_odd: m w (-x) = -m w x.
  • betSize_mem_Ioo: m w x ∈ (-1, 1) for w > 0.
  • betSize_strictMono: w > 0 → StrictMono (m w ·).
  • betSize_sqrt_mul_zScore: m w (√w · z) = kellyFraction p 1 = 2p − 1 for 0 < p < 1.

References

  • J. L. Kelly, A new interpretation of information rate [Kelly1956]
  • López de Prado, Advances in Financial Machine Learning [LopezDePrado2018], ch. 10

Tags

bet sizing, López de Prado, sigmoid, Kelly criterion, machine learning for finance, MSC 91G10, JEL G11

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

mf-bet-size-sigmoid-zscore-kelly · portfolio_and_performance.json · full statement
Sigmoid Bet Size of the Probability z-Score Is the Even-Money Kelly Fraction

For a predicted win probability 0 < p < 1 with z-statistic z = (p − ½)/√(p(1 − p)) and any width w > 0, López de Prado's sigmoid bet size m(x) = x/√(w + x²) at x = √w·z equals 2p − 1, the Kelly fraction (p·b − (1 − p))/b of an even-money bet (b = 1). López de Prado's probability-based size 2Φ(z) − 1 is a different map and is not covered.

Declarations 7

defMathFin.betSizesource
ℝ → ℝ → ℝ

The bet-sizing sigmoid m(x) = x / √(w + x²).

theoremMathFin.betSize_oddsource
∀ (w x : ℝ), betSize w (-x) = -betSize w x
theoremMathFin.betSize_mem_Ioosource
∀ {w : ℝ}, 0 < w → ∀ (x : ℝ), betSize w x ∈ Set.Ioo (-1) 1
theoremMathFin.mul_sqrt_add_sq_lt_of_nonnegsource
∀ {w : ℝ}, 0 < w → ∀ {p q : ℝ}, 0 ≤ p → p < q → p * √(w + q ^ 2) < q * √(w + p ^ 2)

Core monotonicity step: for 0 ≤ p < q and w > 0, p · √(w+q²) < q · √(w+p²).

theoremMathFin.mul_sqrt_add_sq_ltsource
∀ {w : ℝ}, 0 < w → ∀ {a b : ℝ}, a < b → a * √(w + b ^ 2) < b * √(w + a ^ 2)

The key cross-multiplied inequality behind strict monotonicity, for any reals a < b (not just nonnegative ones).

theoremMathFin.betSize_strictMonosource
∀ {w : ℝ}, 0 < w → StrictMono (betSize w)
theoremMathFin.betSize_sqrt_mul_zScoresource
∀ {w p : ℝ}, 0 < w → 0 < p → p < 1 → betSize w (√w * ((p - 1 / 2) / √(p * (1 - p)))) = kellyFraction p 1

The sigmoid of the probability z-score is the even-money Kelly fraction. For a predicted win probability 0 < p < 1, let z = (p − ½)/√(p(1 − p)) be the z-statistic of p against ½. For every width w > 0, m w (√w · z) = 2p − 1 = kellyFraction p 1, the Kelly fraction of an even-money bet (Choice/Performance/Ratios.lean). The width only rescales the argument, and w + w z² = w / (4 p (1 − p)), so √w·z / √(w + w z²) = 2p − 1.