Two Sigma Interview Questions 2026

100 Questions Unlock all questions ↓
Filter
Topic area
Difficulty

Filters apply to the free questions below.

Practice Bank

Two Sigma Quant Interview Practice

↗

A building's status panel receives three independently triggered alerts during its daily self-test. A fire alert occurs with probability \(\frac{1}{5}\), a water-leak alert with probability \(\frac{1}{4}\), and a low-battery alert with probability \(\frac{1}{10}\).

The panel shows only one message, using the priority order FIRE, then LEAK, then BATTERY. For example, if a leak and a battery warning occur together but there is no fire alert, the screen shows LEAK. If none occur, the display is blank.

Find the probability of each of the four possible screen messages. In particular, does a BATTERY message appear on 10% of tests?

Hint 1

An alert is displayed only when it occurs and all higher-priority alerts fail to occur.

Write \(P(\text{LEAK shown})=P(\text{no FIRE})\times P(\text{LEAK})\), and include the probabilities of no FIRE and no LEAK for BATTERY.

The FIRE message appears whenever the fire condition is active, regardless of the other two: \(P(\text{FIRE})=\frac{1}{5}=0.20\).

LEAK is displayed if there is a leak but no fire: \(P(\text{LEAK displayed})=\frac{4}{5}\cdot\frac{1}{4}=\frac{1}{5}=0.20\). BATTERY is shown only if the battery alert occurs with neither fire nor leak: \(P(\text{BATTERY displayed})=\frac{4}{5}\cdot\frac{3}{4}\cdot\frac{1}{10}=\frac{3}{50}=0.06\). Finally, the display is blank if all three underlying alerts are absent: \(P(\text{blank})=\frac{4}{5}\cdot\frac{3}{4}\cdot\frac{9}{10}=\frac{27}{50}=0.54\).

These outcomes are disjoint and exhaustive. Their total probability is \(\frac{10+10+3+27}{50}=1\), an enumeration check of the complete display mapping. The underlying battery event has probability \(\frac{1}{10}\), but it is hidden whenever a higher-priority alert occurs. Thus a visible 6% frequency does not imply the battery is faulty in only 6% of tests.

Assumptions

  • The three alert indicators are mutually independent Bernoulli variables.

  • Only the highest-priority active alert is displayed, and no alerts produces a blank display.

Final Answer

FIRE: \(\frac{1}{5}\); LEAK: \(\frac{1}{5}\); BATTERY: \(\frac{3}{50}\); blank: \(\frac{27}{50}\). No: BATTERY appears on 6% of tests.

Probability foundations
↗

Every Monday, two departments independently submit funding requests. Department X asks for a uniformly random amount between $0 and $4,000; department Y independently asks for between $0 and $3,000, also uniformly. The treasurer approves both requests only if their combined amount is at most $4,500, and otherwise approves neither. Amounts are continuous, so precise boundary values have probability zero.

Among Mondays when the requests are both approved, what is the probability that X requested more than $3,000? Explain why X's approved-request distribution cannot simply be treated as uniform on its original range.

Hint 1

Measure requests in thousands of dollars. For a fixed \(X=x\), find the length of the Y-interval that satisfies \(x+Y\le4.5\).

The admissible Y-length is 3 for \(0\le x\le1.5\) and \(4.5-x\) for \(1.5<x\le4\). Integrate that width over all x, then over \(x>3\).

In thousands of dollars, let \(X\sim\operatorname{Uniform}(0,4)\) and \(Y\sim\operatorname{Uniform}(0,3)\) independently. Their joint density is \(\frac{1}{12}\) on the 4-by-3 rectangle. Let A denote \(X+Y\le4.5\). For each \(x\in[0,4]\), the accepted Y-length is \(w(x)=\min(3,4.5-x)\), which equals 3 on \([0,1.5]\) and \(4.5-x\) on \((1.5,4]\).

The total accepted area is
\[\int_{0}^{1.5}3\,dx+\int_{1.5}^{4}(4.5-x)\,dx=4.5+4.375=\frac{71}{8}\].
The accepted area with \(X>3\) is
\[\int_{3}^{4}(4.5-x)\,dx=1\].
Because the joint density is constant, it cancels in the conditional probability:
\[P(X>3\mid A)=\frac{1}{71/8}=\frac{8}{71}\].

An independent area check subtracts the excluded triangle and trapezoid from the full rectangle: the feasible area under the horizontal cap for \(x\le1.5\) is \(3\times1.5=4.5\), while the remaining trapezoid has parallel vertical sides of lengths 3 and 0.5 over width 2.5, area \(2.5(3+0.5)/2=4.375\). The numerator's trapezoid between \(x=3\) and \(x=4\) has heights 1.5 and 0.5, area \((1.5+0.5)/2=1\). The accepted widths shrink as x rises, so the conditional density of X is proportional to w(x), not a constant.

Assumptions

  • The independent requests have continuous uniform laws on the stated intervals.

  • Approval is all-or-nothing and is based on the actual sum, with no partial funding.

Final Answer

\(\frac{8}{71}\approx11.27\%\). Conditioning on approval gives larger X requests fewer compatible Y values.

Conditional probability
↗

An archive can restore backups numbered 1, 2, 3, ... in order of age, with no upper limit on the generation \(n\)umber. An audit selects generation \(n\) with probability proportional to \(\frac1{n(n+1)}\). The archive keeps only generations 1 through 8 on-site; an older request must be sent to off-site storage.

Find the constant that turns this rule into a probability distribution on all positive integers, then calculate the probability that an audit requests an off-site generation. What is the general probability of requesting a generation greater than \(k\)?

Hint 1

Decompose \(\frac1{n(n+1)}\) into two adjacent reciprocals and add the first \(m\) terms.

Compute the probability through generation k first, then subtract it from one; do not truncate the law when normalising.

For every positive integer \(n\), \(\frac1{n(n+1)}=\frac1n-\frac1{n+1}\). Thus the finite partial sum is \(\sum_{n=1}^{m}1/[n(n+1)]=1-1/(m+1)\). Taking \(m\to\infty\) gives a total unnormalised mass of 1, so the required constant \(C\) satisfying \(C\sum\frac1{n(n+1)}=1\) is \(C=1\).

The first \(k\) generations carry probability \(1-\frac1{k+1}\). Their complement is therefore \(\Pr(N>k)=\frac1{k+1}\), for any integer \(k\ge0\). In particular, when only generations 1 through 8 are kept locally, the off-site-request probability is \(\Pr(N\ge9)=\Pr(N>8)=\frac19\approx11.11\%\). As a second calculation, the tail itself telescopes: \(\sum_{n=k+1}^{m}(1/n-1/(n+1))=1/(k+1)-1/(m+1)\), whose limit is \(\frac1{k+1}\). The law remains defined over infinitely many possible generations even though storage is finite.

Assumptions

  • The generation label is a positive integer without a finite maximum.

  • All probabilities refer to one audit request, and the weights are exactly proportional to \(\frac1{n(n+1)}\).

  • Off-site storage is needed precisely when \(N>8\).

Final Answer

The normalising constant is 1; \(\Pr(N>k)=\frac{1}{k+1}\), so \(\Pr(N>8)=\frac19\).

Distributions, moments and tails
↗

Two sensor teams test the same three water samples. Each sensor reports the true concentration, in parts per million (ppm), plus its own constant additive offset. Measurements are otherwise exact:

Sample Sensor A Sensor B
1 57 52
2 62 57
3 54 49

Can the team infer either sensor's offset or any sample's true concentration from these paired readings alone? Later, sensor A measures a certified reference and reports 47 ppm. The certificate guarantees only that the reference's true concentration lies between 39 and 41 ppm (inclusive), with 40 ppm as its nominal value.

Find the sensor-offset difference, the nominal offsets and the nominal true concentrations of the three samples. Also give the precise remaining concentration ranges implied by the certificate; do not silently treat its nominal 40 ppm as exact.

Hint 1

Write A's and B's readings as \(x_i+a\) and \(x_i+b\). Look for a change to the unknowns that leaves every shared reading unchanged.

The paired difference pins down \(a-b\). The reference tells you that \(47=c_{\rm ref}+a\) with \(c_{\rm ref}\in[39,41]\), which anchors the previously free common shift to a bounded interval.

Let \(x_1,x_2,x_3\) be the true sample concentrations and \(a,b\) the sensor offsets. The six equations are \(y_{Ai}=x_i+a\) and \(y_{Bi}=x_i+b\). Subtracting any pair gives \(a-b=5\) ppm. They are consistent across all three samples, but do not uniquely determine either offset or the \(x_i\): for any real \(h\), replacing \((x_i,a,b)\) with \((x_i+h,a-h,b-h)\) leaves every measurement unchanged. Thus the six-row linear system in five unknowns has rank four, with one unidentified common-shift direction.

Let \(c\) be the reference's true concentration. Since A reads 47,
\[ a=47-c,\qquad 39\le c\le41 \quad\Rightarrow\quad 6\le a\le8. \]
Because \(b=a-5\), \(b\in[1,3]\). At the nominal \(c=40\), the calibrated offsets are \(a=7,b=2\) ppm, giving
\[ (x_1,x_2,x_3)=(57,62,54)-7=(50,55,47)\ \text{ppm}. \]
Respecting the certificate uncertainty instead gives
\[ x_1\in[49,51],\quad x_2\in[54,56],\quad x_3\in[46,48]\ \text{ppm}. \]
The differences among sample concentrations (5, −3 and −8 ppm, depending on order) are exact: each true level shifts by the same unknown amount. Thus the anchor identifies absolute levels only up to its certified ±1 ppm tolerance. Treating repeated paired samples as extra calibration references would falsely remove this remaining uncertainty.

Assumptions

  • Each unknown sample concentration is common to both readings, and each instrument has one constant offset for all readings.

  • Readings are otherwise exact; the only range uncertainty is the certified interval 39–41 ppm.

  • The reference is measured only by sensor A.

Final Answer

Paired readings identify \(a-b=5\) ppm, but no absolute offsets without the reference. Nominally \((a,b)=(7,2)\) ppm and true samples \((50,55,47)\) ppm. Exact identified ranges: \(a\in[6,8]\), \(b\in[1,3]\), samples \([49,51], [54,56], [46,48]\) ppm.

Estimation and likelihood
↗

A furniture maker has completed 25 deliveries, averaging 40 days from order to arrival. For this exercise, independent delivery times follow a normal distribution with unknown mean \(\mu\) and known standard deviation 8 days. The 25 orders are a random sample, and the next customer's order follows the same distribution independently.

The manager has calculated an interval for the long-run average delivery time and wants to give that same interval to an individual customer. Construct a two-sided 95% confidence interval for \(\mu\) and a two-sided 95% prediction interval for one new delivery. Use \(z_{0.975}=1.96\). Why are the intervals different, and what happens to their widths if the historical sample grows indefinitely?

Hint 1

The sample mean has variance \(\sigma^2/n\). One future delivery has its own variation in addition to uncertainty in the estimated mean.

Derive the distribution of \(T_{\rm new}-\bar T\), using independence: its variance is \(\sigma^2+\sigma^2/n\). In contrast, \(\bar T-\mu\) has variance \(\sigma^2/n\).

Let \(\bar T=40\), \(n=25\) and \(\sigma=8\) days. Under the stipulated normal model, \(\bar T\sim N(\mu,\sigma^2/n)\). A 95% confidence interval for the fixed population mean is

\(\bar T\pm1.96\,\sigma/\sqrt n=40\pm1.96(8/5)=40\pm3.136\),

or \(\boxed{[36.864,43.136]}\) days. This interval's repeated-sample coverage concerns \(\mu\), not a particular order.

For the next independent order \(T_{\rm new}\), the difference \(T_{\rm new}-\bar T\) has mean zero and variance \(\sigma^2+\sigma^2/n=64(1+1/25)\), since the new delivery time is independent of the historical sample. Normality therefore gives the exact (under this model) 95% prediction interval

\(\bar T\pm1.96\,\sigma\sqrt{1+1/n}=40\pm1.96(8)\sqrt{26/25}\approx40\pm15.9905\),

or \(\boxed{[24.0095,55.9905]}\) days. As \(n\to\infty\), the mean CI half-width \(1.96\sigma/\sqrt n\) tends to zero, but the prediction half-width tends to \(1.96\sigma=15.68\) days. Measuring the average more precisely cannot remove the genuine randomness of one customer's delivery time. The intervals are model-based, not a contractual guarantee that 95% of future orders fall in one fixed quoted range.

Assumptions

  • The historical 25 durations and the next duration are independent observations from a normal model with common fixed mean \(\mu\) and known \(\sigma=8\) days.

  • The confidence level and predictive coverage are frequentist over repeated independent samples; \(z_{0.975}=1.96\) is prescribed.

Final Answer

95% mean CI: 36.864–43.136 days. 95% individual prediction interval: approximately 24.009–55.991 days. The prediction interval retains a limiting half-width of 15.68 days, while the mean CI narrows to zero.

Statistical inference and testing
↗

A voluntary coaching course is offered to 100 applicants. Forty choose to attend: 30 pass a later qualification test and 10 fail. Of the 60 who do not attend, 24 pass and 36 fail. Everyone's attendance and outcome are observed, but attendance was not randomly assigned.

Suppose coaching can never turn a person who would have passed without coaching into someone who fails with coaching. For each applicant, define the causal benefit as their outcome with coaching minus their outcome without it, where \(\text{pass}=1\) and \(\text{fail}=0\).

What are the sharpest possible lower and upper bounds on the average causal benefit across all 100 applicants? Exhibit two hypothetical assignments of missing counterfactual outcomes that attain the bounds. How do these bounds compare with simply subtracting the observed pass rates?

Hint 1

Write each person's two potential outcomes as \((Y(0),Y(1))\). Monotonicity rules out \((1,0)\), leaving only \((0,0)\), \((0,1)\) and \((1,1)\).

Only attendees who passed and non-attendees who failed could be of type \((0,1)\). Count those two groups to bound the number actually helped, then construct the extreme assignments.

Let \(D\in\{0,1\}\) denote attendance, \(Y(0)\) the pass indicator without coaching, and \(Y(1)\) the pass indicator with coaching. Everyone reveals only \(Y(D)\). The monotonicity assumption \(Y(1)\ge Y(0)\) permits exactly three potential-outcome types: never pass \((0,0)\), helped \((0,1)\), and always pass \((1,1)\). The individual causal effect equals one only for the helped type, so the population average is the fraction of that type.

An attending applicant who failed must be \((0,0)\), and a non-attending applicant who passed must be \((1,1)\). Neither can have been helped. But each of the 30 attending passers might be either \((0,1)\) or \((1,1)\); each of the 36 non-attending failures might be either \((0,0)\) or \((0,1)\). Therefore the helped count lies between \(0\) and \(30+36=66\), so

\[\boxed{0\le E[Y(1)-Y(0)]\le66/100=0.66}.\]

Both endpoints are feasible. For the lower bound, assign \((1,1)\) to every observed passer and \((0,0)\) to every observed failure. Everyone's unobserved outcome agrees with their observed outcome, so nobody benefits and all four observed counts remain unchanged. For the upper bound, assign \((0,1)\) to all 30 attending passers and all 36 non-attending failures; assign \((0,0)\) to the 10 attending failures and \((1,1)\) to the 24 non-attending passers. Exactly 66 people benefit, the observed data are again identical, and monotonicity holds for every person. Thus the bounds are sharp, not merely conservative.

The treated pass rate is \(30/40=0.75\) and the untreated pass rate is \(24/60=0.40\). Their difference of 0.35 compares two different, self-selected groups. Since we did not observe the counterfactual result for any person, that difference need not equal the causal effect, even though monotonicity ensures the effect cannot be negative.

Assumptions

  • Binary potential outcomes are well-defined and consistent with the observed outcome under the received treatment.

  • No interference between applicants; the effect is measured for these 100 applicants, not a newly sampled population.

  • Monotone treatment response holds person by person: \(Y(1)\ge Y(0)\), with no assumption of random or ignorable participation.

Final Answer

Sharp average causal benefit bounds: 0 to 0.66 (0–66 percentage points). The observed pass-rate difference is \(0.75-0.40=0.35\), an association rather than an identified causal effect.

Regression and predictive modelling
↗

A recycling plant is choosing between two binary classifiers, A and B, that predict whether an item is contaminated (1) or clean (0). Its evaluation labels \(L\) come from rushed human inspections, not from the true status \(Y\). An independent audit finds \(P(L=1\mid Y=0)=0.10\) and \(P(L=0\mid Y=1)=0.40\). Assume that, conditional on the true status, inspection errors are independent of either model's prediction.

The following entries are proportions of all evaluated items, not conditional percentages. Each model was evaluated on the same population:

Model A: \(L=0\) Model A: \(L=1\) Model B: \(L=0\) Model B: \(L=1\)
Predict 0 0.61 0.29 0.40 0.10
Predict 1 0.04 0.06 0.25 0.25

Which model has higher true accuracy, after correcting for label noise? Derive the correction rather than estimating it from raw agreement. When does this correction become mathematically impossible, and why does the conditional-independence assumption matter?

Hint 1

For a fixed model prediction \(m\), split the observed event \(\{M=m,L=1\}\) according to the unobserved true class \(Y\). The independence assumption makes the audit's error rates usable in both pieces.

If \(p_m=P(M=m)\) and \(q_m=P(M=m,L=1)\), then \(q_m=\alpha P(M=m,Y=0)+(1-\beta)P(M=m,Y=1)\). Combine that with the row total \(p_m\) and solve the resulting 2-by-2 system.

Let \(M\in\{0,1\}\) be either classifier's prediction, \(Y\) truth, and \(L\) the noisy reference. Write \(\alpha=0.10\), \(\beta=0.40\), and \(d=1-\alpha-\beta=0.50\). Conditional independence of \(L\) and \(M\) given \(Y\) implies, for each prediction value \(m\),

\[ q_m:=P(M=m,L=1)=\alpha P(M=m,Y=0)+(1-\beta)P(M=m,Y=1). \]

Since \(p_m=P(M=m,Y=0)+P(M=m,Y=1)\), inversion gives

\[ P(M=m,Y=1)=\frac{q_m-\alpha p_m}{d},\qquad P(M=m,Y=0)=\frac{(1-\beta)p_m-q_m}{d}. \]

For A, \((p_0,q_0)=(0.90,0.29)\) yields \(P(M=0,Y=1)=0.40\) and \(P(M=0,Y=0)=0.50\); \((p_1,q_1)=(0.10,0.06)\) yields \(P(M=1,Y=1)=0.10\), \(P(M=1,Y=0)=0\). Therefore A's true accuracy is \(0.50+0.10=0.60\).

For B, \((p_0,q_0)=(0.50,0.10)\) yields \(P(M=0,Y=1)=0.10\), \(P(M=0,Y=0)=0.40\). For \((p_1,q_1)=(0.50,0.25)\), the corresponding entries are \(P(M=1,Y=1)=0.40\), \(P(M=1,Y=0)=0.10\). Hence B's true accuracy is \(0.40+0.40=0.80\). Both inversions imply the same true prevalence \(P(Y=1)=0.50\), a useful consistency check. In contrast, raw agreement with the noisy reference is \(0.61+0.06=0.67\) for A and \(0.40+0.25=0.65\) for B, which ranks them incorrectly.

The label channel maps true class masses to noisy class masses through the matrix \(\left(\begin{smallmatrix}1-\alpha&\beta\\\alpha&1-\beta\end{smallmatrix}\right)\), with determinant \(1-\alpha-\beta\). If \(\alpha+\beta=1\), the two columns coincide: the reference supplies no class information and the inversion is not identifiable.

Why conditional independence is essential. Knowing only \(P(L\mid Y)\) does not determine \(P(L\mid Y,M)\). To see this even for an invertible channel, suppose \(P(Y=1)=1/2\) and keep the same audit rates. One possible predictor sets \(M=Y\) exactly. Another, for every observed \(L\), draws \(M\) independently of \(Y\) from the conditional distribution \(P(Y\mid L)\). Both predictors have the same joint distribution of \((M,L)\), since both satisfy \(P(M\mid L)=P(Y\mid L)\); both share the same \((Y,L)\) law and audit rates. Yet the first is 100% truly accurate, while the second is only \(58/91\approx63.74\%\) accurate. The second construction violates the required conditional independence, showing that the observed label table and marginal noise rates alone cannot identify true risk.

Assumptions

  • The two confusion tables are joint shares of the evaluation population, not conditional on model prediction.

  • Under the stipulated assumption, label noise depends on truth but not on a model prediction once truth is held fixed.

  • The class-noise rates are population probabilities; any finite-sample uncertainty in the audit is outside the question.

  • The true class 1 means contaminated, and model accuracy is \(P(\text{prediction equals truth})\).

Final Answer

Observed-label accuracies are \(67\%\) (A) and \(65\%\) (B), but corrected true accuracies are \(60\%\) (A) and \(80\%\) (B); choose B. The channel is noninvertible when \(\alpha+\beta=1\), where \(\alpha=P(L=1\mid Y=0)\) and \(\beta=P(L=0\mid Y=1)\). Without conditional independence, these marginal label-error rates do not identify true model risk.

Research design and model validation
8

A storekeeper estimates how much liquid a tank supplied during a short test by subtracting its displayed start and end masses. Nothing was added during the…

Unlock the rest

Keep practising with 93 more questions, available hints and full worked solutions.

Explore Premium

Join our Newsletter and Receive the Latest Updates!

Main Links

Trade Courses Assessments Interview Prep Contact Us

Social Media

Facebook Instagram YouTube

Legal

Terms and Conditions Privacy Policy Privacy settings

Talent Acquisition

Looking to hire exceptional quant talent?
See how we can help.

© 2026 EverythingQuant. All Rights Reserved.