PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Machine Learning/Microsoft

Explain bias-variance and evaluate a classifier

Last updated: Mar 29, 2026

Quick Overview

The question evaluates foundational machine learning competencies including the bias–variance tradeoff, model underfitting versus overfitting, classification metrics (accuracy, precision, recall, F1), and statistical evaluation of classifiers via confidence intervals.

  • easy
  • Microsoft
  • Machine Learning
  • Machine Learning Engineer

Explain bias-variance and evaluate a classifier

Company: Microsoft

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Technical Screen

You are interviewing for an Applied Scientist internship. Answer the following ML foundations questions. ## 1) Bias–variance - Define **bias** and **variance** in supervised learning. - Explain the **bias–variance tradeoff** and how it relates to **underfitting vs. overfitting**. - Give 2–3 practical ways to reduce: - high bias - high variance ## 2) Classification metrics - Define **accuracy, precision, recall, F1**. - Explain when accuracy is misleading. - Given a confusion matrix (TP, FP, TN, FN), show how you would compute the metrics and choose which one to optimize for an imbalanced problem. ## 3) Confidence intervals - What is a **confidence interval (CI)**? - Suppose you evaluated a binary classifier on a test set of size \(n\) and observed accuracy \(\hat{p}\). Describe how you would compute a **95% CI** for the true accuracy and what assumptions are required. - Name at least one alternative method to build a CI if assumptions are weak (e.g., small sample size or correlated examples).

Quick Answer: The question evaluates foundational machine learning competencies including the bias–variance tradeoff, model underfitting versus overfitting, classification metrics (accuracy, precision, recall, F1), and statistical evaluation of classifiers via confidence intervals.

Related Interview Questions

  • How do you choose a model? - Microsoft (medium)
  • Explain SHAP in an ML System - Microsoft (medium)
  • Explain normalization, regularization, CTR, imbalance handling - Microsoft (medium)
  • Clean OCR data and build an LLM dataset - Microsoft (medium)
  • Explain SHAP and build an ML project - Microsoft (easy)
Microsoft logo
Microsoft
Dec 27, 2025, 12:00 AM
Machine Learning Engineer
Technical Screen
Machine Learning
9
0

You are interviewing for an Applied Scientist internship. Answer the following ML foundations questions.

1) Bias–variance

  • Define bias and variance in supervised learning.
  • Explain the bias–variance tradeoff and how it relates to underfitting vs. overfitting .
  • Give 2–3 practical ways to reduce:
    • high bias
    • high variance

2) Classification metrics

  • Define accuracy, precision, recall, F1 .
  • Explain when accuracy is misleading.
  • Given a confusion matrix (TP, FP, TN, FN), show how you would compute the metrics and choose which one to optimize for an imbalanced problem.

3) Confidence intervals

  • What is a confidence interval (CI) ?
  • Suppose you evaluated a binary classifier on a test set of size nnn and observed accuracy p^\hat{p}p^​ . Describe how you would compute a 95% CI for the true accuracy and what assumptions are required.
  • Name at least one alternative method to build a CI if assumptions are weak (e.g., small sample size or correlated examples).

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More Microsoft•More Machine Learning Engineer•Microsoft Machine Learning Engineer•Microsoft Machine Learning•Machine Learning Engineer Machine Learning
PracHub

Master your tech interviews with 8,000+ 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.