FastPrepEstimate X from the Sum of Two Normals
Problems/Estimate X from the Sum of Two Normals

Estimate X from the Sum of Two Normals

Susquehanna International Group (SIG) logoSusquehanna International Group (SIG)● EasyINTERNONSITE INTERVIEW

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: In an onsite round, the candidate had to guess one of two independent, zero-mean normal variables when only their total is observed and both variances are known. The report adds that the discussion stayed with the mean of that guess.

The report gives no numbers. Here, X is the variable to estimate. The variances are whole numbers from 1 to 10^6, and the observed total z is any real number from -10^6 to 10^6. The answer is the expected value of X given that the total equals z. Answers within 10^-9 (absolute or relative) are accepted, and the examples use our own numbers.

Our version is about 85% the same as the reported question.

X and Y are independent random variables. Both are normally distributed with mean 0. X has variance varX, and Y has variance varY.

You cannot see X or Y. You only see their sum Z = X + Y, and it equals z.

Return E[X | Z = z], the expected value of X given that the sum equals z. Your answer is accepted if its absolute error or its relative error is at most 10^-9.

Function

estimateXFromSum(varX: int, varY: int, z: double) → double

Examples

Example 1

varX = 1varY = 1z = 2.0return = 1.0

X and Y have the same variance, so they play the same role: E[X | Z = 2] equals E[Y | Z = 2]. The two guesses must add up to the known sum, 2, so each one is 1. The answer is 1.

Example 2

varX = 4varY = 1z = 10.0return = 8.0

The sum has variance 4 + 1 = 5, and X brings 4 of it. So X gets the share 4/5 of the sum. The answer is 4/5 × 10 = 8.

Example 3

varX = 1varY = 3z = -2.0return = -0.5

X brings 1 of the total variance 1 + 3 = 4, so its share is 1/4. The answer is 1/4 × (-2) = -0.5. A negative sum gives a negative guess.

Constraints

  • 1 <= varX <= 10^6
  • 1 <= varY <= 10^6
  • -10^6 <= z <= 10^6

More Susquehanna International Group (SIG) interview questions

  • Extract Company Tickers from NewsONSITE INTERVIEW · Seen Jul 2026
  • AKQ Betting Game EquilibriumONSITE INTERVIEW · Seen May 2025
  • Correct Three Protractor ReadingsONSITE INTERVIEW · Seen May 2025
  • Catch Fish with Reusable BaitsOA · Seen Nov 2026
  • Bold Play to Reach a GoalOA · Seen Nov 2026
  • Cats, Truth and Who Has MoreOA · Seen Nov 2026
  • Counting Cows by Their LegsOA · Seen Nov 2026
  • Enough Muffins for the LineOA · Seen Nov 2026
  • Expected Consecutive Pairs Among Chosen NumbersOA · Seen Nov 2026
  • Four-by-Four Boundary GridOA · Seen Nov 2026

Similar questions at other companies

  • Plus OneDruva · ONSITE INTERVIEW
  • Rotate a Flat Image ClockwiseGoogle · ONSITE INTERVIEWGoogle interview questions
  • Matrix MultiplicationeBay · ONSITE INTERVIEWeBay interview questions
  • Maximum Product of Three IntegersPelatro · ONSITE INTERVIEW
  • Climbing StairsAmazon · ONSITE INTERVIEW
  • Maximum 69 NumberHSBC · ONSITE INTERVIEWHSBC interview questions
  • Roman to IntegerKotak Mahindra Bank · PHONE SCREEN · ONSITE INTERVIEWKotak Mahindra Bank interview questions
  • Exact-Sixty Dice Game ValueJane Street · ONSITE INTERVIEWJane Street interview questions
  • Find the Missing Number from 1 to nHyperVerge · ONSITE INTERVIEW
  • Alternating Index Square SumAccenture · ONSITE INTERVIEWAccenture interview questions

Interview reports that mention this question

  • SIG Quant Research Intern Interviews: 60 Experiences

Susquehanna International Group (SIG) interview experiences

  • SIG Quant Researcher Experienced Hire Interviews: 11 Experiences
  • SIG Quant Researcher New Grad Interviews: 49 Experiences
  • SIG Quant Researcher Intern Interviews: 1 Experience
  • SIG Quant Second-Round Tech Screen: 1 Experience
All Susquehanna International Group (SIG) interview questionsSee Susquehanna International Group (SIG) hiring insights
Saved
class Solution {
    public double estimateXFromSum(int varX, int varY, double z) {
        // Write your code here.
    }
}
Checking account…