สูตรเคลลี่ (Kelly Criterion)Kelly Criterion
สูตรทางคณิตศาสตร์ที่บอกสัดส่วนเงินเดิมพันที่ทำให้พอร์ตโตเร็วที่สุดในทางทฤษฎี และเหตุผลที่เทรดเดอร์ส่วนใหญ่ใช้แค่เศษเสี้ยวของมันThe formula for the bet fraction that grows an account fastest in theory, and why most traders use only a fraction of it.

ในบทความนี้ · 7
In this article · 7
สูตรเคลลี่ (Kelly Criterion) เป็นสูตรจากทฤษฎีสารสนเทศที่ตอบคำถามว่า "ถ้ารู้ความได้เปรียบของตัวเองแน่นอน ควรเสี่ยงกี่ % ของพอร์ตต่อครั้ง เพื่อให้พอร์ตโตเร็วที่สุดในระยะยาว" ฟังดูน่าใช้ แต่ในการเทรดจริง เราไม่เคยรู้ความได้เปรียบแน่นอน และตัวเลขที่สูตรให้มักสูงจนพอร์ตแกว่งหนักเกินรับไหว บทความนี้อธิบายสูตร วิธีคิด และเหตุผลที่ควรใช้อย่างระมัดระวังมาก
สูตร
สำหรับระบบที่ไม้ชนะได้ R เท่าของไม้แพ้ (ไม้แพ้เสีย 1 หน่วย)
f* = W − (1 − W) ÷ R
f*= สัดส่วนของพอร์ตที่เสี่ยงต่อไม้ (เงินที่จะเสียถ้าโดน SL)W= อัตราชนะ (ทศนิยม)R= กำไรเฉลี่ยต่อไม้ชนะ ÷ ขาดทุนเฉลี่ยต่อไม้แพ้
ถ้า f* ออกมาเป็น 0 หรือติดลบ แปลว่าระบบไม่มีความได้เปรียบ สูตรบอกว่า "ไม่ควรเทรด"
| อัตราชนะ (สมมติ) | R | สูตร | Kelly |
|---|---|---|---|
| 50% | 2.0 | 0.50 − 0.50 ÷ 2 | 25% |
| 40% | 2.0 | 0.40 − 0.60 ÷ 2 | 10% |
| 55% | 1.0 | 0.55 − 0.45 ÷ 1 | 10% |
| 40% | 1.5 | 0.40 − 0.60 ÷ 1.5 | 0% |
| 35% | 1.5 | 0.35 − 0.65 ÷ 1.5 | -8.3% |
สังเกตแถว 40% กับ R 1.5 ได้ 0% พอดี ซึ่งตรงกับค่าคาดหวัง 0.40 × 1.5 − 0.60 × 1 = 0 (ดู ค่าคาดหวัง)
ทำไม Kelly ถึงให้การเติบโตสูงสุด
สูตรมาจากการหาค่า f ที่ทำให้อัตราการเติบโตเฉลี่ยต่อไม้ (แบบลอการิทึม) สูงที่สุด
การเติบโตต่อไม้ = W × ln(1 + f × R) + (1 − W) × ln(1 − f)
เสี่ยง 25% (เต็ม Kelly): 0.5 × ln(1.5) + 0.5 × ln(0.75) = 0.2027 − 0.1438 ≈ 0.0589 ต่อไม้ เสี่ยง 12.5% (ครึ่ง Kelly): 0.5 × ln(1.25) + 0.5 × ln(0.875) = 0.1116 − 0.0668 ≈ 0.0448 ต่อไม้ เสี่ยง 50% (สองเท่า Kelly): 0.5 × ln(2) + 0.5 × ln(0.5) = 0.3466 − 0.3466 = 0 ไม่โตเลย ครึ่ง Kelly ได้การเติบโตประมาณ 0.0448 ÷ 0.0589 ≈ 76% ของเต็ม Kelly แต่เสี่ยงต่อไม้แค่ครึ่งเดียว ส่วนการเสี่ยงเกิน Kelly ไปสองเท่า ทำให้การเติบโตระยะยาวเป็นศูนย์ ถ้ามากกว่านั้นพอร์ตจะหดลงในระยะยาว ทั้งที่ระบบมีความได้เปรียบ
นี่คือบทเรียนที่สำคัญที่สุดของ Kelly: เสี่ยงน้อยกว่า Kelly เสียการเติบโตไปนิดเดียว แต่เสี่ยงมากกว่า Kelly ทำลายการเติบโตอย่างรวดเร็ว ความผิดพลาดสองทางไม่สมมาตรกัน
ความแกว่งของเต็ม Kelly
แม้เต็ม Kelly จะโตเร็วที่สุดในทางทฤษฎี แต่พอร์ตแกว่งรุนแรงมาก
0.75^4 ≈ 0.316 พอร์ตเหลือประมาณ 31.6% หรือ ลดลง 68.4% ที่ครึ่ง Kelly (12.5%): 0.875^4 ≈ 0.586 ลดลงประมาณ 41.4% ที่ 1% ต่อไม้: 0.99^4 ≈ 0.961 ลดลงประมาณ 3.9% สำหรับระบบที่ชนะ 50% การแพ้ 4 ไม้ติดกันไม่ใช่เรื่องหายาก
ปัญหาใหญ่: เราไม่รู้ W และ R จริง
สูตรต้องการอัตราชนะและ R ที่ "จริง" ของอนาคต แต่เรามีแค่ค่าประมาณจากอดีต ซึ่งมักดีเกินจริงจากโชคหรือการปรับระบบให้พอดีกับข้อมูล (ดู Overfitting)
คิดว่าชนะ 50% R = 2 → Kelly 25% ถ้าอัตราชนะจริงเป็น 45% → Kelly จริง = 0.45 − 0.55 ÷ 2 = 0.175 = 17.5% การเสี่ยง 25% จึงเท่ากับประมาณ 1.43 เท่าของ Kelly จริง ซึ่งอยู่ในโซนที่เสียการเติบโตและแกว่งหนักขึ้นมาก
นี่คือเหตุผลที่ผู้ใช้ Kelly ส่วนใหญ่ใช้ เศษส่วนของ Kelly เช่น ครึ่ง หรือหนึ่งในสี่ เพื่อเผื่อความผิดพลาดของการประเมิน
ใช้ Kelly อย่างระวัง
- คำนวณ W และ R จากข้อมูลจริงจำนวนมาก (หลายร้อยไม้) หลังหักต้นทุน
- ใช้ค่าที่ระมัดระวัง เช่น ลดอัตราชนะลงเล็กน้อยก่อนใส่สูตร
- ใช้แค่ 1/4 ถึง 1/2 ของผลลัพธ์ และตั้งเพดานความเสี่ยงต่อไม้ที่ยอมรับได้ เช่น ไม่เกิน 1–2%
- ใช้ Kelly เป็น "เพดานบนทางทฤษฎี" มากกว่าตัวเลขที่ใช้จริง ถ้าความเสี่ยงที่ใช้อยู่สูงกว่า Kelly แปลว่าเสี่ยงเกินที่สมเหตุสมผลแน่นอน
- ถ้า Kelly ออกมาใกล้ 0 หรือติดลบ อย่าเพิ่มล็อต ให้กลับไปดูระบบ
จุดอ่อน / ข้อผิดพลาดที่พบบ่อย
- ใช้เต็ม Kelly กับข้อมูลน้อย ตัวเลขจาก 30 ไม้อาจทำให้ Kelly สูงเกินจริงมาก
- ลืมว่าไม้ไม่ได้อิสระ การแพ้มักมาเป็นกลุ่ม ความแกว่งจริงจึงมากกว่าที่คำนวณ
- เปิดหลายไม้พร้อมกัน Kelly ในรูปแบบนี้คิดแบบทีละไม้ ถ้าเปิดหลายไม้ที่สัมพันธ์กัน ความเสี่ยงรวมเกินที่สูตรคิดไว้ (ดู ความสัมพันธ์และความเสี่ยงซ้อน)
- ไม่นับข้อจำกัดภายนอก เช่น เพดานขาดทุนรายวันของบัญชีสอบกองทุน ซึ่งมักบังคับให้เสี่ยงต่ำกว่า Kelly มาก
- ราคากระโดดข้าม SL ทำให้ไม้แพ้จริงใหญ่กว่า 1 หน่วย ทำให้ Kelly จริงต่ำกว่าที่คำนวณ
สรุป
f* = W − (1 − W) ÷ Rบอกสัดส่วนเสี่ยงที่โตเร็วที่สุดในทางทฤษฎี- เสี่ยงต่ำกว่า Kelly เสียการเติบโตนิดเดียว เสี่ยงเกิน Kelly ทำลายการเติบโตเร็วมาก
- เต็ม Kelly แกว่งรุนแรง แพ้ 4 ไม้ที่ 25% = -68.4%
- เราไม่รู้ W และ R จริง จึงใช้แค่ 1/4–1/2 Kelly และมีเพดานความเสี่ยงต่อไม้
- Kelly ติดลบ = ระบบไม่มีความได้เปรียบ
The Kelly criterion is a formula from information theory that answers: "If I knew my edge exactly, what percentage of my account should I risk per bet to grow it fastest over the long run?" It sounds attractive, but in real trading you never know your edge exactly, and the number the formula gives is usually so large that the account swings harder than most people can bear. This article covers the formula, the reasoning behind it, and why to use it with great care.
The formula
For a system whose winners make R times what a loser loses (a loser loses 1 unit):
f* = W − (1 − W) ÷ R
f*= fraction of the account to risk per trade (what you lose at the stop).W= win rate, as a decimal.R= average win ÷ average loss.
If f* is zero or negative, the system has no edge and the formula says "do not trade".
| Win rate (hypothetical) | R | Formula | Kelly |
|---|---|---|---|
| 50% | 2.0 | 0.50 − 0.50 ÷ 2 | 25% |
| 40% | 2.0 | 0.40 − 0.60 ÷ 2 | 10% |
| 55% | 1.0 | 0.55 − 0.45 ÷ 1 | 10% |
| 40% | 1.5 | 0.40 − 0.60 ÷ 1.5 | 0% |
| 35% | 1.5 | 0.35 − 0.65 ÷ 1.5 | -8.3% |
The 40% / 1.5 row gives exactly 0%, matching its expectancy 0.40 × 1.5 − 0.60 × 1 = 0 (see Expectancy).
Why Kelly maximizes growth
The formula is the f that maximizes the average (logarithmic) growth per trade:
Growth per trade = W × ln(1 + f × R) + (1 − W) × ln(1 − f)
Risk 25% (full Kelly): 0.5 × ln(1.5) + 0.5 × ln(0.75) = 0.2027 − 0.1438 ≈ 0.0589 per trade. Risk 12.5% (half Kelly): 0.5 × ln(1.25) + 0.5 × ln(0.875) = 0.1116 − 0.0668 ≈ 0.0448 per trade. Risk 50% (double Kelly): 0.5 × ln(2) + 0.5 × ln(0.5) = 0.3466 − 0.3466 = 0. No growth at all. Half Kelly keeps about 0.0448 ÷ 0.0589 ≈ 76% of full Kelly's growth while risking half as much per trade. Double Kelly gives zero long-run growth, and beyond that the account shrinks over time even though the system has an edge.
This is Kelly's most important lesson: betting less than Kelly costs a little growth; betting more than Kelly destroys growth quickly. The two errors are not symmetric.
How violent full Kelly is
Full Kelly may grow fastest in theory, but the swings are brutal.
0.75^4 ≈ 0.316: about 31.6% of the account is left, a 68.4% drop. At half Kelly (12.5%): 0.875^4 ≈ 0.586, down about 41.4%. At 1% per trade: 0.99^4 ≈ 0.961, down about 3.9%. For a system that wins 50%, four losses in a row is not rare.
The big problem: you do not know W and R
The formula needs the true future win rate and R. You only have estimates from the past, which are often too good because of luck or a system tuned to its data (see Overfitting).
You believe 50% at R = 2 → Kelly 25%. If the true win rate is 45%, true Kelly = 0.45 − 0.55 ÷ 2 = 0.175 = 17.5%. Risking 25% is then about 1.43 times true Kelly, in the zone where growth falls and swings get much worse.
That is why most people who use Kelly bet only a fraction of Kelly, such as a half or a quarter, to allow for estimation error.
Using Kelly carefully
- Compute W and R from a large sample of real trades (hundreds), after costs.
- Be conservative: shade the win rate down a little before using the formula.
- Use only 1/4 to 1/2 of the result, with a hard cap on risk per trade you can accept, such as 1–2%.
- Treat Kelly as a theoretical ceiling, not the number you trade. If your current risk is above Kelly, you are certainly risking too much.
- If Kelly comes out near zero or negative, do not add size. Go back to the system.
Weaknesses and common mistakes
- Full Kelly on little data. Numbers from 30 trades can inflate Kelly badly.
- Assuming independent trades. Losses cluster, so real swings are bigger than calculated.
- Several trades at once. This form of Kelly is per trade. Several correlated positions together exceed what the formula intended (see Correlation and Exposure).
- Ignoring outside limits, such as a prop account's daily loss limit, which usually forces risk far below Kelly.
- Gaps through stops make real losers bigger than 1 unit, so true Kelly is lower than calculated.
Summary
f* = W − (1 − W) ÷ Rgives the theoretically fastest-growing risk fraction.- Under-betting Kelly costs a little; over-betting destroys growth fast.
- Full Kelly swings violently: four losses at 25% = -68.4%.
- You never know W and R exactly, so use 1/4–1/2 Kelly with a hard cap per trade.
- Negative Kelly means the system has no edge.
