17 questions total
· 5 probability, 5 statistics and modeling, 4 quantitative finance, and 3 coding.
Headlands : 17 Questions, Shuffled
Closest numbers Given 2 to 10^5 distinct integers, find the minimum absolute difference and print every pair that attains it. Print the smaller number first in each pair and print the pairs in ascending order.
Evaluating a backtest A backtest gives a trading strategy an annualized Sharpe ratio of 8. After k days of live trading, cumulative P&L is zero. How large would k have to be before you question the backtest? State your assumptions and justify your answer.
Two-child conditional probability A has two children, and the older child is a girl. Let p1 be the probability that both are girls. B has two children, and at least one is a boy. Let p2 be the probability that both are boys. How do p1 and p2 compare?
Cross-validation When cross-validation is used to evaluate predictive models, what kinds of error or variability can it reduce?
Central limit theorem Let X1, ..., X75 be independent and identically distributed, each with mean 2 and variance 3. Use the central limit theorem to approximate P(X1 + ... + X75 > 120). You may assume P(|Z| < 2) ≈ 0.95 for a standard normal Z.
Maximum portfolio Sharpe ratio Infinitely many trading strategies each have an annualized Sharpe ratio of 1, identical volatility, and pairwise correlation R, where R is between 0 and 1. What is the maximum achievable portfolio Sharpe ratio as a function of R? Justify your answer.
Relative exam performance A student scored 70 in maths, where the mean was 60 and the standard deviation was 15, and 72 in science, where the mean was 68 and the standard deviation was 6. Assuming normally distributed scores, in which subject did the student perform better relative to the class?
Minimum character replacements Given a list of lowercase words, return the minimum number of character replacements needed for each word so that no two adjacent characters are equal. Each character may be replaced with any other character.
Poisson distribution When is a Poisson distribution appropriate for modeling an observed quantity? Give an example of a quantity for which it would be a poor fit.
OLS with an orthogonal regressor In a simple OLS regression with regressor x1, let t1 be the t-statistic for its coefficient. Add a second regressor x2 that is orthogonal to x1. How does t1 change? Justify your answer.
Sharpe ratio with perfect predictions A model perfectly predicts the daily returns of stock GAUSS (R² = 1). The stock’s daily returns are independent standard normal draws. Define annualized Sharpe as sqrt(252) times the mean of the model’s daily returns divided by their standard deviation. Approximately what Sharpe ratio would you expect?
Parents falling ill The probability that at least one parent falls ill is 20%. The probability that the father falls ill is 12%, and the probability that both parents fall ill is 5%. What is the probability that the mother falls ill?
Moving average Given a vector of n floats and a window size k, return the mean of each contiguous window of length k in better than O(nk) time. Extend the function so that non-finite values affect only the windows containing them.
Correlation and covariance How do correlation and covariance respond to changes in scale? What units do they have, and what kinds of relationships do they measure?
Mutually exclusive events What does it mean for two events to be mutually exclusive? Describe their overlap and how mutual exclusivity relates to independence.
Closed-form Sharpe ratio with perfect predictions A model perfectly predicts the daily returns of stock GAUSS (R² = 1). The stock’s daily returns are independent standard normal draws. Derive a closed-form expression for the model’s annualized Sharpe ratio, defined as sqrt(252) times its mean daily return divided by its daily return standard deviation. You may use the standard normal density f(x) = exp(-x²/2) / sqrt(2π).
Statistical tests Compare z-tests, t-tests, and chi-square tests in terms of their assumptions, which population parameters need to be known, and statistical power where applicable.
Headlands Quantitative Researcher Interview Experience: Seventeen OA Questions Across Four Topics
Online Assessmenthard
Published
Curated and edited by PracHub
Practice the questions from this interview
Return all integer pairs with the smallest absolute differenceCoding & Algorithms
Assess zero live profit after a high-Sharpe backtestStatistics & Math
Compare two-child probabilities under different informationStatistics & Math
Explain which uncertainty cross-validation can reduceMachine Learning
Approximate a sum probability using the central limit theoremStatistics & Math
Derive portfolio Sharpe for equally correlated strategiesStatistics & Math
Compare exam performance using standardized scoresStatistics & Math
Minimize replacements needed to separate equal neighboring lettersCoding & Algorithms
Identify when a Poisson count model is appropriateStatistics & Math
Analyze an OLS t-statistic after adding an orthogonal regressorStatistics & Math
Derive Sharpe from perfect forecasts of standard normal returnsStatistics & Math
Recover an illness probability using inclusion-exclusionStatistics & Math
Compute rolling means without spreading non-finite valuesSoftware Engineering Fundamentals
Compare covariance and correlation under changes of scaleStatistics & Math
Distinguish mutually exclusive events from independent eventsStatistics & Math
Compare z-tests, t-tests, and chi-square testsStatistics & Math
Discussion
Loading comments…