Compare Two Alexa Intent Classifiers With a Paired Significance Test

Last updated: November 29, 2026

Quick Overview

Two intent classifiers for Alexa utterances were evaluated on the same 5,000 labeled utterances: model A is 92.1 percent accurate and model B is 92.8 percent. Choose and implement an appropriate significance test and explain what it does and does not tell you.

Amazon
Machine Learning
Machine Learning Engineer
Amazon
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Hard

0

0

0 solved


Two intent classifiers for Alexa utterances were evaluated on the same 5,000 labeled utterances: model A is 92.1 percent accurate and model B is 92.8 percent. Choose and implement an appropriate significance test and explain what it does and does not tell you.

Alexa natural language understanding teams compare candidate models constantly, and senior candidates are expected to pick a correct paired test instead of a two-proportion z-test. The interviewer checks statistical reasoning, implementation of an exact test, and judgement about practical significance.

What the Interviewer Expects
  • Recognizes that the samples are paired, so a two-sample proportion test is wrong
  • Explains McNemar's test using only discordant pairs
  • Implements the exact binomial version for small discordant counts
  • Separates statistical significance from impact on customer experience
  • Considers per-intent and per-locale breakdowns and multiple testing
Key Topics to Cover
McNemar test
paired evaluation
exact binomial test
multiple comparisons
practical significance
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • What if you are comparing five candidate models against the baseline?
  • How would you compare the models on F1 instead of accuracy?
  • How would you account for utterances that are near duplicates?
  • When would you skip the test and go straight to an online experiment?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Confirm both models were scored on the identical utterances, that labels are trusted, and whether some intents (shopping, smart home control) matter more than others....

Approach

Because each utterance is judged by both models, outcomes are paired. What matters is the utterances where the models disagree in correctness: bb = A right and B wrong, cc = A wrong and B right. Und...


Submit Your Answer
Markdown supported