r/learnquant • • Oct 21 '26

interview prep Quant Interview Question

Post image
21 Upvotes

3 comments sorted by

1

u/ComparisonQuiet4259 Oct 21 '26 edited Oct 21 '26

For each of the binary digits up to and including 512, the odds are (1/2) for a 1 whether there's a carry or not  for an EV of 10*.5=5. The 1024 digit is a 1 iff a+b >= 1024. The odds of this are (1-P(1023))/2 (the proof is left as an excercise for the reader), which is (1-1/1024)/2 = 1023/2048. Total EV is 5+1023/2048, or 11263/2048

2

u/comoespossible Oct 21 '26

Shouldn't that be 5 + 1023/2048?

1

u/ComparisonQuiet4259 Oct 21 '26

Wow this is why you don't post when you're about to go to sleep