Repository navigation
Expand file tree
/
Copy pathcandidate_cases.html
More file actions
26 lines (25 loc) · 6.12 KB
/
Copy pathcandidate_cases.html
File metadata and controls
26 lines (25 loc) · 6.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Advanced Quant Case Discussions</title><style>
:root{color-scheme:light;--ink:#182332;--muted:#526171;--line:#ccd5df;}
*{box-sizing:border-box}body{font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#f3f5f7;margin:0;line-height:1.6}
main{max-width:1000px;margin:32px auto;padding:52px 64px;background:white;border:1px solid #e0e5eb}
h1,h2,h3,h4{color:#000;line-height:1.2;break-after:avoid}h1{font-size:34px;margin:0 0 18px}h2{font-size:25px;margin:46px 0 17px}h3{font-size:19px;margin:26px 0 12px}h4{font-size:15px;margin:20px 0 8px}
p{margin:10px 0 15px}li{margin:6px 0}ul,ol{padding-left:24px}a{color:#24548c;text-underline-offset:3px}nav{margin:24px 0 32px}nav a{display:inline-block;margin:3px 16px 3px 0}
.meta{color:var(--muted);font-size:14px}.label{font-weight:700;margin-bottom:6px}
pre{font-family:Consolas,"Courier New",monospace;font-size:13px;line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7f9;border:1px solid #dce2e9;padding:16px;margin:10px 0 18px;tab-size:4}
code{font-family:inherit}table{width:100%;border-collapse:collapse;margin:18px 0 26px;font-size:14px;break-inside:auto}
th,td{border:1px solid var(--line);padding:10px 12px;vertical-align:middle;text-align:left}th{background:#223951;color:#fff;font-weight:600}tbody tr:nth-child(even){background:#f5f8fb}tr{break-inside:avoid}thead{display:table-header-group}
.question{margin-top:48px;padding-top:1px}.answer{margin-top:25px}.small{font-size:13px}.rule{margin-top:22px;font-weight:700}
footer{margin-top:44px;color:var(--muted);font-size:12px}.toolbar{max-width:1000px;margin:20px auto 0;font-size:14px}
@media(max-width:720px){main{margin:0;padding:24px 20px;border:0}h1{font-size:29px}pre{font-size:12px;padding:12px}table{font-size:12px}th,td{padding:7px}.toolbar{padding:0 20px}}
@media print{@page{size:A4;margin:17mm}body{background:white;font-size:10.5pt;line-height:1.4}main{max-width:none;margin:0;padding:0;border:0}h1{font-size:25pt}h2{font-size:18pt;margin-top:24pt}h3{font-size:14pt}h4{font-size:11pt}pre{font-size:9pt;line-height:1.3;padding:9pt;break-inside:avoid}table{font-size:9pt}th,td{padding:6pt}a{color:inherit;text-decoration:none}.toolbar,nav{display:none}.question,.case{break-before:page}.meta{font-size:9pt}footer{font-size:8pt}.notes{height:32mm;border-bottom:1px solid #ccc}.print-break{break-before:page}}
</style></head><body><div class="toolbar">Advanced revision 2 | 26 October 2026 | Candidate copy without answers</div><main><h1>Advanced Quant Case Discussions</h1><p>The interviewer will select one case, introduce further constraints and agree one small component to implement. Define the contract, explain your design, and use a concrete example or failure trace to test it.</p><section class="case"><h2>Case A Covariance service</h2><p>A Python service calculates a covariance matrix for 4,000 variables and evaluates q = v.T @ C @ v for user-supplied vectors. Data has missing observations, a changing variable universe and occasional corrections. The process has a 2 GB working-memory budget. A pairwise-deletion implementation returns the following three-variable diagnostic matrix and a negative value of q. Diagnose the numerical and data issues, define a coherent contract, and design an implementation and validation strategy. A short prototype of one component is sufficient.</p><pre><code>C = [[1.0, 0.9, 0.9],
[0.9, 1.0, -0.9],
[0.9, -0.9, 1.0]]
v = [-1.0, 1.0, 1.0]
reported q = -2.4</code></pre></section><section class="case"><h2>Case B Monte Carlo sensitivities</h2><p>A simulation estimates F(theta) = E[exp(theta*Z)] for standard normal Z, then differentiates it numerically. You are given F(theta) = exp(theta^2/2) and F'(theta) = theta*exp(theta^2/2) as check identities. The estimate becomes unstable as h becomes small. Diagnose whether the implementation is incorrect, statistically inefficient or both. Propose a trustworthy streaming and parallel implementation, its uncertainty estimate and a reproducibility contract. Use theta = 0.2; no finance knowledge is required.</p><pre><code>import numpy as np
def sensitivity(theta,h,n,seed):
rng=np.random.default_rng(seed)
plus=np.exp((theta+h)*rng.standard_normal(n))
minus=np.exp((theta-h)*rng.standard_normal(n))
differences=(plus-minus)/(2*h)
return differences.mean(),differences.std(ddof=1)/np.sqrt(n)</code></pre></section><section class="case"><h2>Case C Event time features</h2><p>Design a service that emits entity-level features from event-time windows. Records have entity_id, event_id, event_time, available_time, revision and value; a revision can withdraw an event. Deliveries can repeat. Normal arrivals are at most two minutes late, but administrative corrections can refer to any historical date. The process can crash between writing output and checkpointing state. Explain the state model, publication contract, replay behaviour and tests, and implement one agreed component.</p></section><section class="case"><h2>Case D Review the forecasting pipeline</h2><p>Review the supplied bullet-sales forecasting challenge as the prospective owner of its Python pipeline. Establish which requested outputs the source data identifies, define the information available at each forecast origin, and design a reproducible process that supports corrections and historical evaluation. After the first data-contract issues are discussed, the interviewer will supply assumptions so you can proceed to design and one small implementation. Fitting a forecasting model is not required.</p><table><thead><tr><th>Input</th><th>Columns</th></tr></thead><tbody><tr><td>bullets_sales.csv</td><td>Date, Maker, Model, Bullets, Channel, Quantity</td></tr><tr><td>handgun_sales.csv</td><td>Date, Maker, Model, Quantity</td></tr></tbody></table><p>TF denotes sales together with firearms and RS denotes replacement sales. The original requested output is a 12-month replacement-sales forecast by bullet type and aggregated by handgun maker and model.</p></section><footer>Senior Quantitative Analysis | Advanced revision 2 | 26 October 2026</footer></main></body></html>