PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Machine Learning/J.P. Morgan

Test whether samples follow a binomial distribution

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's understanding of statistical hypothesis testing, goodness-of-fit assessment for discrete distributions, parameter estimation for parametric models, and interpretation of inferential results.

  • medium
  • J.P. Morgan
  • Machine Learning
  • Data Scientist

Test whether samples follow a binomial distribution

Company: J.P. Morgan

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Onsite

You collect a dataset that you believe comes from a binomial process. Each observation is a count of successes. - You have i.i.d. samples \(x_1,\dots,x_m\), where each \(x_i\) is the number of successes out of \(n\) trials. - You want to test whether the sample distribution is consistent with \(\text{Binomial}(n, p)\) for some (possibly unknown) \(p\). **Question:** What statistical test(s) would you use to assess whether the sample distribution follows a binomial distribution, and how would you perform the test (hypotheses, parameter estimation, test statistic, assumptions, and interpretation)?

Quick Answer: This question evaluates a candidate's understanding of statistical hypothesis testing, goodness-of-fit assessment for discrete distributions, parameter estimation for parametric models, and interpretation of inferential results.

Related Interview Questions

  • Explain Core ML Concepts - J.P. Morgan (medium)
  • Explain Overfitting and Transformer Basics - J.P. Morgan (medium)
J.P. Morgan logo
J.P. Morgan
Jan 22, 2026, 12:00 AM
Data Scientist
Onsite
Machine Learning
1
0
Loading...

You collect a dataset that you believe comes from a binomial process. Each observation is a count of successes.

  • You have i.i.d. samples x1,…,xmx_1,\dots,x_mx1​,…,xm​ , where each xix_ixi​ is the number of successes out of nnn trials.
  • You want to test whether the sample distribution is consistent with Binomial(n,p)\text{Binomial}(n, p)Binomial(n,p) for some (possibly unknown) ppp .

Question: What statistical test(s) would you use to assess whether the sample distribution follows a binomial distribution, and how would you perform the test (hypotheses, parameter estimation, test statistic, assumptions, and interpretation)?

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More J.P. Morgan•More Data Scientist•J.P. Morgan Data Scientist•J.P. Morgan Machine Learning•Data Scientist Machine Learning
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.