A data scientist wants to compare two model candidates but must ensure that any apparent improvement is statistically credible. The validation sets are large but not independent because both models were tuned on overlapping data. Which method best accounts for dependency when comparing models?

Answer

Apply McNemar’s test on paired predictions to evaluate differences for classification outcomes

Explanation

McNemar’s test is designed for paired categorical outcomes, accounting for dependency in predictions on the same examples.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

You must build a retrieval-augmented generation (RAG) system on AWS for ML workloads, but the knowledge base is frequently updated. Which design best balances retrieval freshness with cost and latency using managed services?

View question →

You need to run large-scale batch inference in SageMaker on new data arriving in S3. The job must be repeatable and should avoid reprocessing previously handled records. Which approach best meets these requirements?

View question →

A multi-label classification model is deployed with thresholds per class. You observe increased false positives for several rare classes after a seasonal shift in base rates. Which change most directly corrects threshold decisions under base-rate drift?

View question →

You train a model with early stopping and track the best checkpoint by validation loss. During deployment, drift causes the optimal checkpoint to change over time. Which evaluation strategy best supports selecting an updated checkpoint without violating production constraints?

View question →

A customer wants to use SageMaker Feature Store for online inference, but training and serving features differ due to schema drift and delayed updates. What mitigation best maintains consistency?

View question →

You are deploying a Bayesian or ensemble-like model that outputs predictive uncertainty. You need to route uncertain predictions to a human-review workflow via an API. Which approach best implements an uncertainty-driven decision policy in SageMaker?

View question →

QuestionBack to list