Apply & Screen
Math/CS/olympiad/research signal on resume; fast online math or coding OA (Optiver/Citadel/Two Sigma style).
Quant & Hedge Funds / 2026-2027 Recruiting Cycle
Citadel and Citadel Securities run rigorous technical gauntlets across probability, statistical modeling, market microstructure, and bare-metal C++/Python performance. Candidates are judged on exact derivations, latency awareness, and execution discipline under pressure.
Math/CS/olympiad/research signal on resume; fast online math or coding OA (Optiver/Citadel/Two Sigma style).
45-min live expected value, Bayes, optimal stopping, or systems coding drill with step-by-step mental math.
Live two-sided quoting, order-book mechanics, adverse selection skewing, or low-latency C++/Python debugging.
4–5 rounds across desk traders & researchers testing probabilistic calibration under changing rules.
Isolated textbook probability riddles
Online assessment + 4-5 technical rounds (math, C++/Python, research) focused on adverse-selection spreads, Kelly sizing, and real-time EV updates
Out of 36 equally likely outcomes, 6 sum to 7 and 5 sum to 8. By independence and memorylessness, all non-{7, 8} rolls reset the game without biasing the winner, so P(8 before 7) = 5 / (5 + 6) = 5/11 (45.45%). On each roll, the termination probability is p = (6 + 5)/36 = 11/36. The stopping time is Geometric(11/36), giving E[N] = 1/p = 36/11 ≈ 3.27 rolls.
Modern x86_64 CPUs manage cache coherence at 64-byte cache-line granularity (MESI/MOESI protocols). False sharing occurs when two threads on separate cores write to logically independent variables (e.g., adjacent `std::atomic<uint64_t>` stats counters) that happen to share the same 64-byte cache line. Every write invalidates the line in the other core's L1 cache, forcing repeated cross-core coherence traffic (~40-100 ns per write instead of ~1 ns L1 hits). Fix: align per-thread hot structs or atomics to cache-line boundaries using `alignas(64)` (or `std::hardware_destructive_interference_size`) so each core owns an exclusive line.
Passive orders face asymmetric selection: small uninformed sell orders are absorbed by the 400 shares ahead of you (leaving you unfilled), whereas large informed sell sweeps clear the entire bid level—filling your order right before mid-price drops. Measure adverse selection via post-trade markout curves: Markout(tau) = side * (mid(t + tau) - fill_price) across horizons tau = 10 ms, 100 ms, 1 s, 10 s. Decompose realized PnL into captured half-spread minus adverse selection cost: side * (mid(t) - fill_price) - side * (mid(t) - mid(t + tau)). If queue position is poor and order-book imbalance turns strongly negative, cancel before being picked off.
Since W_t ~ N(0, t), write W_t = sqrt(t) * Z with Z ~ N(0, 1). Using E[Z^4] = 3 gives E[W_t^4] = 3 * t^2. Since E[W_t^2] = t, Var(W_t^2) = E[W_t^4] - (E[W_t^2])^2 = 3 * t^2 - t^2 = 2 * t^2. For 0 <= s <= t, decompose W_t = W_s + (W_t - W_s); because increments are independent and zero-mean, E[W_s * W_t] = E[W_s^2] + E[W_s] * E[W_t - W_s] = s + 0 = min(s, t).
Virtual dispatch adds an 8-byte vptr per object, executes an indirect call through the vtable, blocks compiler inlining, and risks branch-target-buffer (BTB) misprediction (~15-20 cycles) on polymorphic streams. CRTP resolves calls statically at compile time via templates, enabling full inlining and zero vptr overhead—ideal for fixed compile-time strategy/exchange policies, though incompatible with heterogeneous containers. `std::variant` with `std::visit` keeps closed sets of runtime-heterogeneous message types contiguous by value (zero heap allocation/pointer chasing) using a compact jump table, though size equals max alternative plus tag.
Gross annualized return = Sharpe * Vol = 2.5 * 8% = 20.0%. Daily trading cost = daily turnover * cost per dollar = 0.40 * 0.0003 = 0.00012 (1.2 bps/day). Annualized cost drag = 252 * 0.00012 = 3.024%. Net annualized return = 20.0% - 3.024% = 16.976%. Assuming cost drag has negligible variance relative to strategy PnL, net volatility stays ~8%, so Net Sharpe = 16.976% / 8% = 2.12.
Represent X = rho * Y + sqrt(1 - rho^2) * Z where Z ~ N(0, 1) is independent of Y. Conditioning on Y = y immediately gives E[X | Y = y] = rho * y and Var(X | Y = y) = 1 - rho^2 (homoscedastic, independent of y). For the positive orthant probability, Sheppard's theorem gives P(X > 0, Y > 0) = 1/4 + arcsin(rho) / (2 * pi). Sanity check: rho = 0 gives 1/4; rho = 1 gives 1/4 + 1/4 = 1/2; rho = -1 gives 0.
With N = 500 assets and T = 250 observations (T < N), the sample covariance matrix S has rank at most T - 1 = 249, meaning at least 251 eigenvalues are strictly zero and S is non-invertible. Even when T > N modestly, Marchenko-Pastur theory shows sample eigenvalues spread violently—small eigenvalues are biased downward and large ones upward—so `S^(-1)` loads massive levered positions onto noisy zero-risk illusions. Ledoit-Wolf shrinks S toward a well-conditioned target F (such as scaled identity or constant-correlation matrix): Sigma_hat = (1 - delta) * S + delta * F, selecting delta analytically to minimize expected Frobenius error E[||Sigma_hat - Sigma||_F^2], ensuring full rank and stable weights.
A Python loop executes interpreter bytecode, dynamic type checks, and heap-allocated `PyFloatObject` boxing/unboxing on every scalar element, blocking CPU SIMD instructions. Vectorized NumPy runs tight C loops over contiguous raw IEEE-754 buffers with AVX2/AVX-512 SIMD. In C-contiguous (row-major) layout, elements along a row sit at stride 8 bytes, so row reductions (`axis=1`) stream sequentially through L1 cache lines; column reductions (`axis=0`) jump by `n_cols * 8` bytes per step, causing cache misses and TLB thrashing on wide matrices unless transposed or Fortran-ordered.
Run a three-way attribution: (1) Compare paper mid-to-mid IC against post-execution realized IC—if paper IC is intact while realized IC fell, the culprit is execution slippage/adverse selection; (2) Inspect the intraday/multi-day decay curve and pre-trade price drift—crowding manifests as alpha front-running (IC migrating to shorter horizons) and elevated left-tail correlation during quant de-leveraging episodes; (3) Condition paper IC on market volatility, cross-sectional dispersion, and factor-neutral residuals—if conditional IC within matched historical dispersion buckets is unchanged, it is a regime lull rather than permanent decay.
Let U, V ~ i.i.d. Uniform(0, 1). For U < V (half the unit square), the three lengths are U, V - U, and 1 - V. A triangle exists iff every piece is strictly less than 1/2: U < 1/2, V > 1/2, and V - U < 1/2. In the unit square [0, 1]^2, this region is the right triangle with vertices (0, 1/2), (1/2, 1/2), and (1/2, 1), which has area 0.5 * (1/2) * (1/2) = 1/8. By symmetry for V < U, another congruent region adds area 1/8. Total probability = 1/8 + 1/8 = 1/4 (25%).
Use the ATM Black-Scholes approximation C ≈ 0.4 * S * sigma * sqrt(T) (exact factor 1/sqrt(2*pi) = 0.3989). Solving 8 ≈ 0.4 * 100 * sigma * 1 yields implied vol sigma_imp ≈ 20%. ATM call delta is N(0.5 * sigma * sqrt(T)) = N(0.10) ≈ 0.50 + 0.4 * 0.10 = 0.54. Under continuous delta-hedging, instantaneous PnL is 0.5 * Gamma * S^2 * (sigma_real^2 - sigma_imp^2) * dt. Since realized vol (25%) exceeds implied vol (20%) by +5 vol points and ATM vega ≈ 0.4 * S * sqrt(T) = $40 per 100 vol points ($0.40 per vol point), expected path-dependent gamma profit is roughly +5 * $0.40 = +$2.00 (exact value depends on path-weighted dollar gamma).
Allocate a power-of-2 array `buf[N]` so index wrapping uses bitwise `idx & (N - 1)`. Place `head` (consumer read index) and `tail` (producer write index) on separate 64-byte cache lines (`alignas(64)`) and keep cached local copies of the remote index to minimize cross-core reads. Producer checks space using `head.load(memory_order_acquire)`, writes payload to `buf[t & mask]`, then publishes via `tail.store(t + 1, memory_order_release)`. Consumer checks availability with `tail.load(memory_order_acquire)`, reads payload, then commits `head.store(h + 1, memory_order_release)`. Acquire-release pairs establish a happens-before edge for payload visibility without expensive `memory_order_seq_cst` full fences.
Model cumulative PnL as arithmetic Brownian motion dX_t = mu * dt + sigma * dW_t. Its scale function is s(x) = exp(-2 * mu * x / sigma^2). The probability of hitting -D before +U starting from 0 is (1 - exp(-2*mu*U/sigma^2)) / (exp(2*mu*D/sigma^2) - exp(-2*mu*U/sigma^2)). Letting U -> infinity yields the exact infinite-horizon drawdown probability P(max drawdown >= D) = exp(-2 * mu * D / sigma^2) = exp(-2 * SR * (D / sigma)). For SR = 2.0, a 1-sigma drawdown (D = sigma) has probability exp(-4) = 1.83%; halving Sharpe to 1.0 jumps that probability to exp(-2) = 13.5%, and expected drawdown depth scales inversely with SR.
Bulb m is toggled once for each positive divisor of m. Divisors pair up as (d, m/d) unless d = m/d, meaning m has an odd number of divisors iff m is a perfect square. Thus exactly 10 bulbs remain ON: 1, 4, 9, 16, 25, 36, 49, 64, 81, and 100. Using the sum-of-squares formula n(n + 1)(2n + 1)/6 for n = 10 gives 10 * 11 * 21 / 6 = 385.
Structure around institutional risk discipline: (1) Immediate containment—state the exact anomaly detected, how you tripped the circuit breaker or reverted within minutes to cap financial/data blast radius; (2) Root-cause isolation—trace the failure to a concrete invariant violation (e.g., stale feed timestamp, unguarded NaN propagation, race condition) rather than vague blame; (3) Systemic fix—detail the automated pre-trade assertion, replay test, and monitoring alert added so the class of bug cannot recur.
Enter the license key emailed after checkout to unlock all 26 firm banks and unlimited timed scoring in this browser.