Skip to content

About

Quant trading interview practice: probability, statistics, real reported interview questions. Website + Android/iOS app from one codebase.

Topics

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Theo

Formerly Quant Trainer. "Theo" is trader shorthand for theoretical value.

Interview practice for quant trading: probability, statistics, mental maths and market making, with an adaptive coach and real questions candidates report from trading firms. It runs as a website and an Android app from one codebase.

Quality Deploy Release License: MIT

Open the app · Explore with sample data · Android APK · Research report

Home screen with the coach's next recommendation

Coach and skill map A reported interview question On a phone
Coach Interview question Phone home

Technical highlights

  • A learner model chosen by out-of-sample evaluation. The coach estimates your chance of answering each of its 84 skills. I compared seven models (per-skill Beta, Elo, Bayesian Knowledge Tracing, Performance Factor Analysis and others) prequentially on simulated learners, with two structurally different ground truths and bootstrap CIs. The original per-skill estimate turned out to be biased by the app's own question selection. Elo beat it under both truths (log loss −0.046 and −0.024, 95% CIs clear of zero) and now drives the coach. → research/REPORT.md
  • Every answer checked twice, by different methods.
    • In the app, Monte Carlo simulations are tested against the exact answers within 5 standard errors.
    • In CI, a separate Python derivation of every interview answer (exact fractions, the Bellman equation, Markov chains, a linear program for a poker game) must match what the app serves: 63/63 agree.
    • This caught a widely circulated wrong answer to a reported Jane Street question (10.2; the correct value is 8.15).
  • Diagnoses the kind of mistake, not just whether you were wrong. Wrong answers are classified as complement slip, percent vs decimal, factor of 2, variance vs SD, rounding, and so on, and the advice targets that slip. Missed questions return on a spaced-repetition schedule.
  • Trading games with testable engines.
    • Figgie bots value cards with the exact Bayesian posterior over the 12 possible decks; tests check it is calibrated and that full bot games conserve cards and chips.
    • Bet sizing is scored by expected log-growth against Kelly, so a lucky run can't hide over-betting.
    • The daily challenge is generated from the date with a seeded RNG, so everyone gets the same questions without a server.
  • One codebase, website + native app.
    • Plain HTML/JS with no build step, deployed as an offline-capable PWA.
    • Wrapped with Capacitor for Android and iOS. CI builds the APK and a signed Play Store bundle.
    • Platform differences (storage, export, back button) live in one module.
  • Engineering hygiene.
    • ESLint; unit tests run in Node and the browser.
    • Playwright end-to-end tests on desktop and a touch phone, including offline mode.
    • axe accessibility checks and WCAG AA colour contrast; Lighthouse in CI.
    • A Content Security Policy, and schema validation that stops an imported progress file from injecting script.

What's inside

Interview plan Pick the firm and date; get a daily checklist weighted to what that firm tests, with a countdown on the home screen.
Topic guides Static pages per topic (key results and a worked example of each question type) generated at deploy, alongside the firm guides.
Handbook A full work-through course in 31 chapters, from fractions through linear algebra and stochastic calculus to factor models. Each has step-by-step worked examples, diagrams, predict-first simulations, numeric and concept checks, homework on paper, and a place to explain the idea in your own words. Finished chapters come back for spaced review, each part ends in a mixed exam, and there's a final exam.
Search One box across questions, topics, both handbooks' chapters, formula cards, speed tricks, case studies and screens; / opens it on a keyboard.
Coach Tracks 84 skills, diagnoses error types, ranks what to practise next with reasons, and offers a 15-question diagnostic and one-tap drills.
Practice 15 topics and 84 randomised question generators with worked solutions and a "check by simulation" button. Adaptive mixed practice.
Interview questions 732 questions. A question library of general puzzles (rewritten from open collections, filterable by topic and difficulty), plus ones candidates report from 25 firms (Jane Street, SIG, Optiver, IMC, Citadel Securities, Five Rings, Two Sigma, Flow Traders, Wincent, Akuna, Da Vinci, DRW, Hudson River Trading, Jump, Maven, Eclipse, Old Mission, Belvedere, Squarepoint, Valkyrie, Virtu, Tibra, Tower Research, D. E. Shaw and Mako), plus classic puzzles and practice questions, clearly labelled. Every part has 3–5 hints that build up without giving the answer. Tick questions off or flag them unsure to come back to. Each is sourced, with follow-ups, and every numeric answer is re-derived independently in Python. Behavioural questions come with a structure to aim for. Timed mock-interview mode.
Today Time practised today by area of the app, against a daily goal in minutes, with the last 14 days and any earlier day from the Progress heatmap. Time counts only while you're active on a practice screen.
Mistakes to review Every wrong answer comes back after 1, 3, 7 and 21 days until mastered.
Daily challenge The same 5 questions for everyone each day (seeded from the date, no server), one attempt, with a shareable result and streak.
Quant dev handbook A second course, in 17 chapters, on data structures and algorithms for quant developer and SWE interviews: complexity, Python, two pointers, sliding windows, hashing, stacks, linked lists, trees, heaps, graphs, binary search, sorting and intervals, backtracking, dynamic programming, greedy, algorithms on live market data, and an interview method. Every Python listing is tested against brute force.
Weak spots An adaptive learner. It pools everything you have answered (topic drills, interview questions, handbook checks, mental maths, market making) into one estimate per interview skill area, then runs 12-question sessions on the weakest. A miss steps down a level and brings the area back; two right steps up.
Citadel SSE prep A study plan for one interview: 54 questions across nine tracks (including statistics and regression, and equity quant) written in a plain Markdown format and imported by tools/import-content.js. Each card runs attempt, hints, submit, solution against a target time. Answers can be fractions, percentages or expressions, read by a safe evaluator. Every attempt is logged, and a plan page shows mastery by track and a countdown. Includes spaced repetition, a 45-minute mock with a report, a market-making simulator where the value is a real draw and bots trade on noisy signals, a mastery heatmap by tag, and pandas drills marked by hidden tests in the browser.
Flow training For Zetamac's + and −: sorts every answer into eight kinds of sum (carry, borrow, numbers ending in 8 or 9, crossing 100) and shows which ones drop you out of automatic recall into step-by-step working. A rhythm drill paces you at the edge of your fast mode (a staircase that quickens after three on the beat and eases after a miss), and method drills teach a faster route for your slowest kind of sum, then time it.
Coding (SWE) Software engineering interview practice, starting with Optiver's SWE internship: 18 problems built from candidate reports (class-design problems from its online assessment, data structures from technical rounds, two debug-the-trading-code exercises), with an editor that runs Python (Pyodide) or JavaScript in a web worker against hand-written, random and large tests. Solving one unlocks a link to the matching LeetCode problem, where there is one. Follow-up questions an interviewer asks once the code works. A timed 20-question knowledge quiz drawn from 75 questions (data structures, algorithms, operating systems, concurrency, networking, C++, Python, performance, memory, databases). Design discussions for the talking part of a technical interview: six problems (order book, market data feed handler, LRU cache, rate limiter, pre-trade risk check, best price across venues), each with clarifying questions first, hints, interviewer pushbacks, a diagram, a model answer and a self-scored rubric. Tech screening practice: six code-review exercises on realistic trading code (model reviews ranked by severity, improved versions, deployment plans, fundamentals follow-ups) and a timed 45-minute mock. A countdown checklist for your interview date. References are cross-checked in CI against brute-force Python versions, and every testable claim about Python behaviour and every design sketch is checked in research/verify_internals.py.
Phone-screen mock A full timed first round in the order a 45–60 minute trading phone screen runs: introduce yourself, mental maths, probability and expected value, market making where information is revealed mid-quote, and a behavioural question. Each part can be practised alone.
Stories Write and rehearse your answers to "tell me about yourself", "why trading", "why this firm", "pitch me a trade" and the classic behavioural questions, field by field, with word counts and a speaking timer.
Think aloud Talk a reported question through out loud against the clock, record yourself (kept on the device), see pace and filler words, then score yourself against what interviewers listen for.
Mental maths The "80 in 8" format with net scoring, answered as multiple choice or typed; "60 in 6", the format of Flow Traders' arithmetic test (60 multiple-choice questions in 6 minutes with whole numbers, decimals, fractions and percentages); and Zetamac (default settings or your own; answers go through the moment they're right). A pacing chart after each run shows where you lost momentum. Slow and missed questions come back afterwards with the fast method worked on their own numbers, and slow question types return as spaced, timed speed reps.
Formula cards 43 results to know cold, and a deck of 30 Python internals cards (how lists, dicts, deques and heaps work inside and what they cost, the GIL, memory), as flip cards on a spaced schedule.
Firm guides A free, searchable page per firm: its process and every question with a worked solution.
Speed tricks 22 short guides to faster arithmetic (decimal places, fraction arithmetic, near-100 multiplication, squaring, fractions, last-digit checks, guessing strategy under negative marking…), each with a drill that walks through the trick.
Online tests The kinds of screen many firms use before interviews. A number sequences trainer: 30 kinds of pattern in three levels, practice that explains every answer, timed tests of 15, 24 and 26 questions, and accuracy and speed per pattern. Seven short cognitive games covering the skills game-based assessments such as Optiver's Zap-N measure (rule switching, checking detail, working memory, making a target number, timing, multitasking and risk), playable one at a time or all in a row. Digit span and running totals.
Figgie Jane Street's card trading game against three bots (Bayesian, flow-following and noise), with the Bayesian maths from your hand on request.
Make me a market The live interview format: quote a two-sided price, the interviewer trades against you, you re-quote. Scored on width, P&L and moving with the flow.
Bet sizing 20 bets with known odds; you choose the stake. Compared with Kelly and half-Kelly, scored by expected log-growth so luck doesn't count.
Market making Quote on hidden dice against informed and noise traders.
Estimation & calibration Range quoting on 43 fact-checked quantities; checks whether your 90% ranges really contain the answer 90% of the time.
Themes Notebook, Night desk, Chalkboard and Terminal, with a ticker tape of your numbers, milestone stamps and an optional closing bell. Every theme is checked for WCAG AA contrast in CI.
Progress Charts of accuracy, speed, 80-in-8, calibration and every game over time, an activity heatmap, and speed against target by topic.
Case studies 14 real market events (LTCM, Black Monday, Volmageddon, negative oil, …) as statistics lessons, with sources.

Run it

npm run serve                     # then open http://localhost:8765/www/

No build step: any static file server works, and opening www/index.html directly works too (without offline mode).

npm install
npm test                          # unit tests: generators, simulations, security, coach
npm run lint
npm run test:e2e                  # Playwright, desktop + phone, with accessibility checks
pip install -r research/requirements.txt
npm run verify                    # Python re-derivation vs the app's answers
npm run research                  # learner-model study → research/REPORT.md

How it's built

  • Code: www/ is the whole app: views in js/views/, the coach and Elo model in js/coach.js, storage and input validation in js/core.js. See docs/ARCHITECTURE.md.
  • Website: every push to main is tested and deployed to GitHub Pages; Netlify and Vercel configs are included.
  • Android and Play Store: tagging a version builds the APK. Releases and Play Store signing are covered in docs/RELEASING.md.
  • Privacy: all progress stays on the device. See the privacy notice.

Contributing

If you've had a quant interview, the most useful thing you can add is a question you were asked. The question form takes two minutes. See CONTRIBUTING.md.

Acknowledgements

Interview questions are paraphrased from public candidate reports and linked to their sources; firms' names are used only to attribute those reports.

License

MIT

About

Quant trading interview practice: probability, statistics, real reported interview questions. Website + Android/iOS app from one codebase.

Topics

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages