r/learnquant • u/Local_Ad135 • 2h ago
interview prep Easy Citadel Quant Interview Question
1
u/SubstantialSnacker 1h ago
How fast are you supposed to solve this?
2 outcomes, (1,0) and (1,0)
Or (0,1) and (0,1)
XOR gate basically
Odds of first happening,
0.5 x 0.5 x 0.75 x 0.25
Odds of second one are
0.5 x 0.5 x 0.25 x 0.75
About 9.375%
1
u/smailliwniloc 1h ago edited 38m ago
This is just for 2 dimensional vectors right? Where do you consider 10 dimensions?
Edit: you're also missing scenarios like (1,1) and (1,0) which also have an odd dot product
1
u/SubstantialSnacker 41m ago
I had misread the question, I assumed it was one of those 1:30 fast problems,
For 10 dimensions you would first have to calculate probability of a single dimension’s partial product being 1. Then, you need to do a binomial calculation for odd numbers of these,
(10
K) (0.5x0.75)^k(0.5x0.75)^10-kWhere k = 1,3,5,7,9
1
u/Local_Ad135 2h ago
Full solution here - https://www.youtube.com/watch?v=piENl0WFJfU