InterviewStack.io LogoInterviewStack.io

Data Preprocessing and Handling for AI Questions

Covers the end to end preparation of raw data for analysis and modeling in machine learning and artificial intelligence. Topics include data collection and ingestion, data quality assessment, detecting and handling missing values with deletion or various imputation strategies, identifying and treating outliers, removing duplicates, and standardizing formats such as dates and categorical labels. Includes data type conversions, categorical variable encoding, feature scaling and normalization, standardization to zero mean and unit variance, and guidance on when each is appropriate given model choice. Covers feature engineering and selection, addressing class imbalance with sampling and weighting methods, and domain specific preprocessing such as data augmentation for computer vision and text preprocessing for natural language processing. Emphasizes correct order of operations, reproducible pipelines, splitting data into training validation and test sets, cross validation practices, and documenting preprocessing decisions and their impact on model performance. Also explains which models are sensitive to feature scale, common pitfalls, and evaluation strategies to ensure preprocessing does not leak information.

HardTechnical
84 practiced
Explain the concept of calibration in preprocessing (e.g., probability calibration) and whether any preprocessing steps can affect downstream model calibration. Provide examples of steps that improve or degrade calibration.
MediumTechnical
82 practiced
You have a categorical feature representing country codes. Some codes are invalid or obsolete. Propose a validation and standardization pipeline to map values to ISO-3166 codes and handle unknown/misspelled entries at scale.
MediumTechnical
85 practiced
Explain how you would detect and treat outliers in a numerical feature used for a regression model. Include both univariate and multivariate approaches and how treatment might differ by model type.
HardTechnical
87 practiced
You need to impute MNAR (missing not at random) data for a medical dataset where sicker patients are less likely to have follow-up lab tests. Discuss advanced strategies to handle MNAR data and how to evaluate their effectiveness ethically and statistically.
MediumTechnical
76 practiced
You have free-text product descriptions and need to create numerical features for a gradient-boosted tree model. Describe feature engineering approaches you would try (at least five), and explain which require training data leakage precautions.

Unlock Full Question Bank

Get access to hundreds of Data Preprocessing and Handling for AI interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.