← JP Morgan Interview Insights
I went straight to chi-square and it was fine but I fumbled when they pushed on the Kolmogorov-Smirnov side of things.
Start by clarifying the data structure and what 'follows a binomial distribution' means in context, then outline a two-part strategy: first check the binomial assumptions (fixed n, independent trials, constant p), then apply goodness-of-fit tests such as the chi-square or likelihood ratio test. Discuss the assumptions and limitations of each test, and mention alternatives like the exact binomial test or dispersion checks when assumptions are violated.
Pro tip: Emphasize that in practice, overdispersion is common and can invalidate the standard chi-square test; suggesting a check for overdispersion (e.g., comparing variance to mean) shows deeper statistical maturity and practical awareness.
Ask whether the data are counts of successes in a fixed number of trials per observation, and confirm the null hypothesis that the counts follow Binomial(n, p) for some p. This ensures you understand the structure before choosing a test.
Check that the number of trials n is fixed and known, trials are independent, and the probability of success p is constant across trials. Violations (e.g., varying n or p) mean the binomial model may not be appropriate.
Use a chi-square goodness-of-fit test comparing observed frequencies of each possible count (0 to n) to expected binomial probabilities, or a likelihood ratio test (G-test). For small samples, consider exact tests or Monte Carlo methods.
Note that the chi-square test requires expected frequencies of at least 5 in each bin, which may require pooling categories. It also assumes independent observations and may be sensitive to overdispersion. The likelihood ratio test has similar assumptions but can be more powerful.
If assumptions are violated, consider using a beta-binomial model to account for overdispersion, or a dispersion test. Also, discuss the impact of parameter estimation (p estimated from data) on degrees of freedom.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.