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.

EasyTechnical
84 practiced
Which classes of machine learning models are sensitive to feature scale and why? Give examples of models that require scaling (k-NN, SVM, K-means, logistic regression, neural networks) and models where scaling is less critical (tree-based methods). Provide one short example where failing to scale harms model performance.
HardTechnical
69 practiced
A numeric feature is heavily right-skewed and causing model instability. Discuss candidate transformations (log, Box-Cox, Yeo-Johnson), how to choose among them (diagnostics, normality checks), handling zeros/negatives, and how to compute and store parameters to allow inverse transforms in production for interpretability.
HardTechnical
69 practiced
You must combine images from different sources with varied resolutions and color spaces. Propose a preprocessing strategy that standardizes inputs while preserving label signal: include resizing policy (same shorter side vs fixed size), aspect-ratio handling, interpolation method, color-space conversion, mean/std normalization, and when to apply per-dataset domain adaptation.
EasyTechnical
87 practiced
As a Data Analyst, how do you document preprocessing steps to ensure reproducibility and stakeholder trust? Be specific about what to include in README/pipeline metadata (code version, transformer parameters, seeds, summary statistics before/after, sample rows, schema), and how to present this to non-technical stakeholders.
EasyTechnical
88 practiced
Define data leakage in the context of model training and validation. Provide a concise business example (e.g., including 'days_to_cancel' as a feature when predicting churn), explain how you'd detect such leakage during exploratory analysis, and list practical mitigation strategies.

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.