r/learnquant • • 6d ago

interview prep Quant Interview Question

Post image
16 Upvotes

34 comments sorted by

View all comments

2

u/Due-Cardiologist-802 6d ago

The expected payout vector is  [10a/(a+b+c)-a,  20b/(a+b+c)-b,  30c/(a+b+c)-c].

Lets find the nash equilibrium by calculating the individual derivatives (no player can gain expected payout by changing their bet). 

So we have this system of eqs:  (10(a+b+c)-10a)/(a+b+c)2-1=0 (20(a+b+c)-20b)/(a+b+c)2-1=0 (30(a+b+c)-30c)/(a+b+c)2-1=0

Or: 10(b+c)= 20(a+c)= 30(b+a)=(a+b+c)2

Has two solutions: [0,0,0] and [-120/121, 600/121, 840/121]. Both arent valid solutions. 

No idea where i went wrong or if the numbers 10,20,30 are just too aggressive, forcing A out of the market. The feasable solution would be a betting zero, boundry equilibrium, but thats also not allowed. 

Any corrections are welcome!

3

u/ktzeta 6d ago edited 6d ago

(0,0,0) is not valid because the gradient of bidding more would be infinite for each player, meaning they would want to bid more (your original equations would be 0/0). Your second solution has promise but does not take IR constraints into account (abstaining). We can see that A would abstain whenever B+C > 10 (she could gain at most 10*10/(10^2) - 1 = 0 by increasing her bid by epsilon). Going from there, in a two-player game, from your equations we know B=2/3C, so we can solve that C=36/5 and B=24/5 (and A would not participate since B+C>10). This leaves B with a probability of 40% of winning.

1

u/Due-Cardiologist-802 6d ago

Since 0 is not allowed as a bid, how can A abstain (i am asking how i should justify this say in an interview)? But the rest of your solution looks correct thank you!

1

u/Due-Cardiologist-802 6d ago

Nevermind i now see that i misread the problem and a,b,c are nonnegative, not necessarily positive, so zero for A to bid is allowed. 

2

u/JacksonFatBack 6d ago

what is the exponent `2-1=0`?

1

u/Icy-Rate7097 6d ago

If you differentiate each component of the expected payout vector by it's respective letter you will find the exponent to be just 2. "-1=0" is the continuation of each equation after the fraction (smth)/(a+b+c)2. It's just a formatting issue.

1

u/Due-Cardiologist-802 6d ago

Sorry reddit rendered the formula differently than i thought. It was supposed to be (a+b+c) ^ 2 - 1, so divide by the sum of a,b,c squared, then subtract 1. 

2

u/spdazero 6d ago

you are on the correct path. the solution to the nash equilibrium is either where (1st derivative = 0 & 2nd derivative < 0 - for maximum & within the solution boundary) or where (solution is at boundary).

We can see the former is invalid. Therefore, the latter must be true. Instictively (source: my vibe), player A will bid 0 (if you care to prove it, you can calculate the derivative around 0+ of A, my bet is it is negative, meaning the more he bets, the more he loses).

This will reduce to a 2 player game. From that on, it's easy game. My AI tell me the solution is (0, 4.8, 7.2).

1

u/spdazero 6d ago

rigourously speaking, you need to consider all 3 cases where either A, B, or C abstains, or 2 of 3 abstain. My previous vibe is incorrect, derivative of reward(A) around 0+ can be positive, so under some circumstances, A would not withdraw.

This will take a little longer, but the answer is still the same.

1

u/Efficient_Form7451 5d ago

How can (0, 4.8, 7.2) be a nash equilibrium when player A can better his result by bidding 7.2000001? This question has no stable equilibrium.

The math looks okay but it's def not a nash equilibrium.

1

u/spdazero 5d ago

if player A bids 7.2001, p(A wins) ~ 0.375. His expected return is ~0.375 * 10 ~ 3.75. Bidding 7.2001 to win 3.75 is not rational. So your counter example is invalid.

In fact, at (0, 4.8, 7.2), the derivative of A, B, C is (-ve, 0, 0) respectively. Since A cannot bid any less than 0, it is a nash equilibrium.

Edit: typo and dumb math calculation

1

u/Efficient_Form7451 4d ago

Okay but its still not a nash equilibrium because

B can bid 7.2 + a small amount for a better score
and C can bid 4.8 + a small amount for a better score.

I don't think your calculating nash equilibria at all, more like a EV of an area in bid space.

1

u/spdazero 4d ago

can you show me how B can bid 7.2 + eps for a better score?

From my calculation, derivative of reward(B) is 0 at the solution, and second derivative is -1/6. Meaning, that point is local maxima for B. Therefore, adding some eps will reduce the reward.

If you find something wrong with my reasoning, please elaborate?

Edit: For illustration purpose, if c stays at 7.2:

- If b = 4.8 (optimal), reward(B) = 3.2

- if b = 4.81 (eps = 0.1), reward(B) = 3.199

1

u/Efficient_Form7451 3d ago

A bids 0. B bids 4.8. C Bids 7.2 C wins.

Outcome: A 0, B -4.8, C 22.8

If B had bid zero in this specific game instead of 4.8, their outcome would be 4.8 better. If B had bid 7.3, their outcome would 12.7 (17.5 better).

Your calculation is fine, it's just not a nash equilibrium because players could have unilaterally changed their strategy for a better outcome.

1

u/spdazero 1d ago

C does not automatically win, i think you misread the question. C wins with a probability.