Machine Learning & Data Science Flashcards
21 cards from real CAIC practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 20 Machine Learning & Data Science flashcards as text
Which technique is used to reduce the number of input features by combining them into fewer dimensions while preserving variance?
Answer: Principal Component Analysis
PCA projects data onto orthogonal axes (principal components) that capture the most variance, effectively reducing dimensionality.
A dataset has 95% negative samples and 5% positive samples. Which metric is LEAST informative for evaluating a classifier on this dataset?
Answer: Accuracy
Accuracy is misleading on imbalanced datasets because a model predicting all negatives achieves 95% accuracy without learning anything meaningful.
What does the term 'bias-variance tradeoff' describe in machine learning?
Answer: The tension between underfitting (high bias) and overfitting (high variance)
High bias models underfit by making oversimplified assumptions, while high variance models overfit by being too sensitive to training data noise.
In gradient boosting, each successive tree is trained to predict what?
Answer: The residual errors of the previous ensemble
Gradient boosting fits each new tree to the residuals (errors) left by the current ensemble, iteratively reducing prediction error.
Which cross-validation strategy is most appropriate when the dataset has a temporal ordering and future data must not leak into training?
Answer: Time series split (walk-forward validation)
Time series split ensures training always uses only past data and validation uses future data, preventing temporal leakage.
What is the primary purpose of the 'elbow method' in k-means clustering?
Answer: To select the optimal number of clusters k
The elbow method plots inertia versus k and looks for the point where adding more clusters yields diminishing returns.
A model trained on data from 2020–2022 is deployed in 2025 and its performance degrades. What phenomenon describes this?
Answer: Concept drift
Concept drift occurs when the statistical relationship between input features and the target variable changes over time after deployment.
Which ensemble method trains multiple models in parallel on random subsets of the training data and aggregates their predictions?
Answer: Bagging
Bagging (Bootstrap Aggregating) trains independent learners on bootstrapped samples and combines them via voting or averaging to reduce variance.
What does the ROC curve plot?
Answer: True Positive Rate vs. False Positive Rate at different thresholds
The ROC curve shows the tradeoff between sensitivity (TPR) and specificity (1-FPR) across all classification thresholds.
Which regularization technique randomly sets a fraction of neuron activations to zero during each training step?
Answer: Dropout
Dropout randomly deactivates neurons during training, forcing the network to learn redundant representations and reducing co-adaptation.
In a confusion matrix for binary classification, which formula correctly computes Precision?
Answer: TP / (TP + FP)
Precision measures what fraction of predicted positives are actually positive: TP divided by all predicted positives (TP + FP).
What is the key difference between supervised and unsupervised learning?
Answer: Supervised learning requires labeled training data; unsupervised discovers patterns without labels
Supervised learning learns a mapping from inputs to known labels, while unsupervised learning finds hidden structure in unlabeled data.
Which metric measures the average magnitude of errors in the same units as the target variable, without squaring them?
Answer: Mean Absolute Error (MAE)
MAE computes the mean of absolute differences between predictions and actuals, keeping error in the original unit scale without amplifying outliers.
What is 'feature engineering' in the context of machine learning?
Answer: Transforming raw data into informative input representations for a model
Feature engineering involves creating, transforming, or selecting variables from raw data to improve model performance.
Which algorithm finds the hyperplane that maximizes the margin between classes in a classification problem?
Answer: Support Vector Machine
SVMs find the decision boundary that maximizes the minimum distance (margin) to the nearest training points of each class (support vectors).
What does a learning curve that shows high training accuracy but low validation accuracy most likely indicate?
Answer: Overfitting
A large gap between training and validation performance indicates the model memorized training data but fails to generalize to unseen examples.
In the context of neural networks, what does 'vanishing gradient' refer to?
Answer: Gradients becoming extremely small in early layers, stalling learning
In deep networks, repeated multiplication of small gradients through many layers causes them to approach zero, making early layers learn very slowly.
Which data splitting strategy ensures that the proportion of each class is maintained in both train and test sets?
Answer: Stratified split
Stratified splitting preserves the class distribution of the full dataset in each resulting subset, critical for imbalanced classification problems.
What is the purpose of hyperparameter tuning using techniques like Grid Search or Random Search?
Answer: To find model configuration settings that optimize validation performance
Hyperparameter tuning systematically searches the space of model configurations (e.g., learning rate, depth) to find values that maximize held-out performance.
What distinguishes a generative model from a discriminative model in machine learning?
Answer: Generative models learn the joint distribution P(X,Y); discriminative models learn P(Y|X)
Generative models model how data is generated (joint distribution), while discriminative models learn decision boundaries directly from input to label.
Written and edited by Nathan Beja, founder of Practice Test Geeks, with AI assistance. Exam facts are checked against the official sources linked below. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- usaii.org — Retake policy, time limit, eligibility, fees, test delivery, passing score, renewal, retake fee, score release, test dates · verified Nov 2026