Skip to content
All library documents

Sizing Repeated Positive-Expectation Bets with Kelly and Risk Limits

Article Quant Q&A · Author: IAlreadyHaveAKey

Summary

The document considers how often and how heavily to trade a favorable card-drawing wager when capital is finite. It distinguishes the decision to accept a positive-expectation trade from sizing repeated bets, and presents expected utility as a way to formalize preferences over wealth. With logarithmic utility, maximizing expected log wealth corresponds to Kelly sizing, which balances growth against the risk of losing capital needed for future opportunities.

The discussion contrasts this with maximizing expected dollars, which can encourage excessive wagers, and also gives a risk-control perspective based on possible losses and capital limits. Numerical calculations and a simulation are reported for the stated card game, but depend on assumptions such as fair draws, repeated reshuffling, accurate payoff modeling, and no borrowing cost. The authors also flag counterparty risk and model error; aggressive Kelly sizing can be fragile if those assumptions fail.

Key ideas

  • Positive expected value does not determine how much capital to stake.
  • Expected utility provides a framework for choosing whether to accept a wager.
  • Kelly sizing maximizes expected log wealth and accounts for the effect of losses on future capital.
  • Risk limits and model uncertainty can justify less aggressive sizing than an idealized calculation.

Tags

Full text
# Deciding how many trades to make


# Deciding how many trades to make












I recently sat a technical interview with a prop trading and market making firm. I didn't pass the interview, and I was wondering about answering one of the questions they asked me.

So the interviewer had a deck of cards and said that each card is worth it's face values, with A = \$1, J = \$11, Q = \$12 and K = \$13. He then dealt out three cards face down and told me that he was willing to trade them with me for \$15. So I could choose to sell them to him for \$15 or buy them off him for \$15. Now I know the expected value of the 3 cards is \$21, so I should obviously choose to buy them off him to make an expected profit of \$6 per trade. But he also asked me how many times I wanted to make the trade, and I don't know how to answer that question. What goes into the decision making process to determine the number of times you execute a trade? He said I started off with \$1000

## Answer by Dale C (score 6, accepted)

https://quant.stackexchange.com/a/40150

If this was actually for Optiver, essentially they were just looking for you to be able to intuitively size your bets using the same logic that the Kelly Criterion sizes bets, without actually deriving it.

Essentially you should've deduced something like:

- Playing this game correctly is always non negative EV, so you want to place as much money in total at it as possible (so bet more).

- You have a finite source however and ever hitting 0 is a permanent loss of EV in future turns you could've kept playing this game (so bet less).

- You have a finite number of turns (at least in Optiver) (so bet more).

Synthesising all this you should be able to assume that,

- The higher the EV of the individual offer the more you should bet (obviously).

- The more turns you play, the closer you get to the end of the game, the more you should bet (EV being equal). In fact when they say its the last turn, you should always go all in. (Addresses point 3).

- The less money you have, the less you should bet, and in fact if you're self consistent, it should be proportional. (Addresses point 2)

This is all just qualitative Kelly Criterion.

They don't really care about risk aversion or utility theory based on my experience, in fact they stated they just want you to maximise dollar value.

## Answer by Matthew Gunn (score 10)

https://quant.stackexchange.com/a/40072

As the problem is currently formulated, you have a binary decision (whether to buy the cards or not) and a single state variable (your current wealth). I'm assuming the deck is reshuffled every play.

A policy function will be a function $f: \mathbb{R} \rightarrow \{0, 1\}$ that will say whether to buy or not buy the cards as a function of your wealth. It takes your wealth (a real number) and maps it to a binary outcome of 0 or 1 denoting whether to play or not.

How to find a sensible $f$? If your preferences over risk satisfy the Von Neumann-Morgernstern axioms, those preferences can be represented by an expected utility function. You can then compare the expected utility of buying the cards vs. not buying the cards and find which is higher.

As an example, I will use $u(x)=\log(x)$ which is the same objective of the Kelly criterion.

### Expected Utility Theory

Let $w$ be a scalar denoting your wealth, $X$ a random variable denoting the sum of the three cards, and $u(x)$ a Bernoulli utility function whose curvature formalizes a notion of risk aversion.

For $w=1000$, we can simply compare $u(w)$ with $\operatorname{E}[u(X+w-15)]$ where $u(x)$ is perhaps something like $u(x) = \log x$.

#### How much would we be willing to for this gamble?

Find the price $p$ such that you're indifferent between having wealth $w$ and playing the game. Solve for $p$ in:

$$u(w) = \mathrm{E}[ u(w + X - p) ] $$

MATLAB code to do this:

```
cards = ones(4,1) * (1:13); % Matrix of all the cards
deck = cards(:);  % vectorize it
three_card_hands = combnk(deck, 3); % all combinations of 3 card hands
X = sum(three_card_hands, 2); % sum across columns to get a vector with all 3 card sums
w = 1000; % set initial wealth
myfun = @(p) mean(log(X+w-p)) - log(w)
p = fzero(myfun, 15)
```

I compute that at a wealth of \$1000 and using log utility you'd be willing to pay 20.9798 for the 3 cards. At a wealth or $w=50$, you'd still be willing to pay 20.3 for the cards. If you had only \$15, you'd still buy the cards because $\log(15) < \operatorname{E}[\log(15 + X - 15)]$. You always buy!

A useful, related concept is the certainty equivalent which I discuss in this answer.

#### Classic Kelly criteria

Kelly betting is to choose a bet size to maximize the expected growth rate of your wealth (i.e. your geometric average return). You can show this is equivalent to maximizing expected log wealth (i.e. equivalent to a log utility function). (Quick argument here)

(Digression: maximizing your expected wealth typically leads to solutions where you bet everything on any positive expected value bet but go broke almost certainly. That's horribly dumb! Expected wealth is a poor objective. Kelly's insight is that maximizing the expected logarithm of wealth has far better properties)

The classic Kelly betting question of what fraction of your wealth to bet is a different question than the one presented by the original poster. For fun, we can solve for the Kelly fraction $\alpha$. Our wealth is $w$ so our wager in dollars is $\alpha w$:

\begin{equation} \begin{array}{*2{>{\displaystyle}r}} \mbox{maximize (over $\alpha$)} & \operatorname{E}[\log(w + \alpha w (X - 15))] \\ \end{array} \end{equation}

Solve this with MATLAB code:

```
a = fmincon(@(a) -sum(log(w+a*w*(X/15-1))), 1)
```

I find optimal $\alpha^* \approx 1.2488$, that is, the Kelly fraction is to spend $\approx 124.88\%$ of your wealth each bet.

Note this can never take you below zero, because you can lose at most $\frac{12}{15}=80\%$ of your bet when you draw three aces. If the worst case happens of drawing three aces, the leveraged bet of 124.88% (implicitly borrowing at 0% interest rate), then you lose 99.9% of your wealth! In the median case, you add 50% to your wealth. (Yes, Kelly betting is quite aggressive.)

#### Risk of ruin? (Monte-Carlo simulation)

In a quick Monte-Carlo sim I wrote of 1 million runs of up to 2000 plays, the minimum wealth I ever had was 960, and the minimum ending wealth (after 2000 plays) was 11533.

The game is fantastically attractive at a price of 15.

### Thinking more broadly

As @Attack68's answer describes, you almost certainly want to bring in classic, trading risk control techniques.

A real risk here is counterparty risk or risk the game is somehow different than what I've modeled here. (eg. why the heck would your counterparty play this insane game? Are you getting scammed?) If you lose more than \$40 playing this game, it raises serious questions that something is wrong and you're not playing the game modeled.

It can be useful to have risk controls robust to model misspecification. Playing an aggressive strategy that assumes your model is exactly correct can be quite dangerous. Wall Street has many stories of funds/firms blowing up due to risk outside the model.

(Update: 2021; I corrected a typo in the Kelly section.)

## Answer by Attack68 (score 4)

https://quant.stackexchange.com/a/40138

I have asked broadly similar questions in interviews to traders. Generally one is looking for candidates to evaluate the strength of the trade and consider their loss limits - there is a limit on the precise quantitative calculations a candidate can be expected to make.

In the interview I would have commented the following:

- the maximum loss is \$12, and the maximum gain \$24.

- the expected gain is \$6 and therefore this instinctively reflects an intuitively sound trade. If you went further and guessed the standard deviation of the return at \$6 then you have a Sharpe Ratio of 1.0 which is often considered very attractive, but not worth risking everything you own.

- How much of your capital do you expose? I.e say you have a 95% VaR of \$100 then you can probably buy around 10 copies of the trade.

After the turn you expect a 6% return with upside potential, which is an heuristically respectable sum.

Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.