KatInterview

Topic

Machine Learning interview problems

Modeling, evaluation, ML systems and LLM engineering. 510 original problems, each with a worked model answer.

Problems510

27 easy273 medium210 hard

Showing 451–480 of 510 results

  • Demonstrate understanding of fundamental ML/DL concepts through precise definitions, mathematical formulations, and practical examples.

    Model answerfundamentalsdeep-learningtheorymathematics
  • Build a document processing pipeline that calls two ML services (classification and embedding) for both single-file and bulk uploads up to 1,000 files.

    Model answerML System DesignAPI DesignScalabilityService Orchestration
  • Design and evaluate a simple collaborative filtering system that recommends songs to users of a music playlist application.

    Model answerrecommendation systemscollaborative filteringmatrix factorizationevaluation metrics
  • Design a complete ML training system for forecasting, covering data handling, training infrastructure, serving, and monitoring with emphasis on temporal correctness.

    Model answerml-systemstime-seriesmlopstraining-infrastructure
  • Build a model to forecast hourly demand at individual stations in a bike-sharing network, handling time-series structure, censored observations, and overfitting risks.

    Model answertime-seriesfeature-engineeringoverfittingdemand-forecasting
  • Design an enterprise conversational system that answers questions from a curated knowledge base with citations, handles multi-turn dialogue, and escalates when uncertain.

    Model answerragnlpconversational-aiinformation-retrieval
  • Build a low-latency pipeline that continuously updates driver ETAs using only GPS pings and trip events, handling noisy location data and grid transitions.

    Model answerml-system-designstreaminggpsreal-time
  • Evaluate cross-sectional equity signals using correlation metrics, detect temporal data leakage, and design validation frameworks that prevent overfitting.

    Model answerquantitative-financetime-seriesvalidationoverfitting
  • Contrast PCA and autoencoder approaches when features far outnumber samples, considering training stability, manifold complexity, and evaluation rigor.

    Model answerdimensionality-reductionpcaautoencoderscurse-of-dimensionality
  • Design a complete ML pipeline to predict which users will buy after receiving a promotional message, handling causality, cold starts, and production deployment.

    Model answerpropensity-modelingcausal-inferenceproduction-mlcalibration
  • Design an end-to-end ML system that predicts next-day stock returns from news sentiment and price data, covering features, model choice, backtesting, and drift monitoring.

    Model answertime-seriesfeature-engineeringbacktestingconcept-drift
  • Design a time-series CV splitter for panel data that prevents entity leakage across train/test sets using an embargo period and supports geographic holdout folds.

    Model answercross-validationtime-seriespanel-dataleakage-prevention
  • Design an ML system to classify and filter harmful user-generated content across text, images, and video at high throughput with strict latency constraints.

    Model answerml-system-designmultimodalcontent-moderationproduction-ml
  • Design a complete ML pipeline to classify payment fraud in under 100ms, addressing delayed labels, streaming features, class imbalance, and cost-aware decisions.

    Model answerfraud-detectionreal-time-mlimbalanced-classificationfeature-engineering
  • Design an ML pipeline to predict residential property values for mortgage lending, addressing bias, temporal validation, and regulatory requirements.

    Model answerfairnessregressionfeature-engineeringmodel-validation
  • Design and implement a complete machine learning pipeline to predict a binary medical outcome from tabular patient data.

    Model answerclassificationfeature-engineeringhealthcaremodel-evaluation
  • Explain dimensionality reduction, preprocessing choices, backpropagation mechanics, threshold tuning, and domain-constrained modeling in a classification context.

    Model answerdimensionality-reductionpreprocessingoptimizationclassification
  • Design an online experiment to measure the causal impact of a new ML ranking model, handling interference, novelty effects, and metric trade-offs at scale.

    Model answermachine learningexperimentationrankingcausal inference
  • Design and evaluate a classifier to identify malicious URLs given limited labeled examples and severe class imbalance.

    Model answerclassificationimbalanced-datafeature-engineeringmodel-evaluation
  • Build a system that selects which drivers to alert during sudden demand increases at high-traffic locations, balancing response speed with market stability.

    Model answerrankinguplift-modelingfeature-engineering
  • Design and validate an email recommendation feature that sends product suggestions after checkout, focusing on incremental profit and customer experience.

    Model answerrecommendation-systemsexperimentationproduct-metricscustomer-lifecycle
  • Design a complete ML pipeline for severely imbalanced classification, including temporal splitting, calibration, threshold selection, and drift monitoring.

    Model answerimbalanced-classificationcalibrationtemporal-validationpipeline-design
  • Design a production machine learning system that suggests optimal nightly prices for vacation rental hosts based on demand forecasting and price elasticity.

    Model answerpricingdemand-forecastingreinforcement-learningcausal-inference
  • Design a Bayesian bandit with delayed feedback, churn protection, and rollback rules; compare regret to fixed-split testing under real-world constraints.

    Model answerbanditsbayesian-inferenceexperimentationonline-learning
  • Derive the ELBO objective for VAEs, explain gradient estimation through reparameterization, compute the KL term analytically, and diagnose posterior collapse.

    Model answergenerative-modelsvariational-inferencedeep-learning
  • Design an ML system that orders products by relevance for marketplace search, covering objective definition, training data, features, model architecture, and evaluation.

    Model answerrankinge-commercemulti-task-learningposition-bias
  • Build a model to optimize fundraising campaigns by predicting donation likelihood and amounts, then create profit-driven policies for different outreach channels.

    Model answerpredictive-modelinguplift-modelingcalibrationcausal-inference
  • Design an ML pipeline to identify misleading content on a social platform, covering feature engineering, modeling strategy, evaluation, and production concerns.

    Model answerclassificationfeature-engineeringproduction-mlevaluation-metrics
  • Architect a question-answering pipeline over confidential documents with strict access controls, verifiable citations, version handling, and hallucination prevention.

    Model answerragmlopsinformation-retrievalsecurity
  • Build an ML platform to forecast which users will remain active next week, supporting both batch predictions for millions of users and low-latency individual queries.

    Model answerml-system-designfeature-engineeringmodel-servingscalability

More topics