Values distant from most other values are?
Data Science Quiz
Data Science Quiz1 of 10
Data Science Quiz1 of 10
Values distant from most other values are?
About · Quizzes · History of AI · To suggest new questions or report an error send me a dm.
Ten questions drawn from machine learning and statistics together, because a data science interview rarely keeps them apart: hypothesis tests next to metrics, distributions next to models.
10 questions per run, drawn from 140. Free, no sign-up. Every question comes from the machine learning interview questions and statistics interview questions.
The 10 questions this quiz opens with. Play first, then open one to check your answer.
Outliers. Longer answer
Not as an extra step: PCA is itself an orthogonal rotation of the axes onto the directions of maximum variance. A further rotation such as varimax is optional and only aids interpretation; it keeps the total explained variance but loses the variance-maximizing order. Longer answer
R-squared corrected for the number of predictors: 1 − (1 − R²)(n − 1)/(n − p − 1), with n rows and p predictors. Unlike R², it only rises when a new predictor improves the fit by more than chance would, so it can fall when you add a useless one. Longer answer
True positives over predicted positives, TP / (TP + FP): of the cases you flagged, how many were right. It says nothing about the positives you missed, so it is read alongside recall, and it is the metric to favour when a false alarm is the costly error. Longer answer
Weighted absolute percentage error: total absolute error divided by total actual volume, Σ|actual − forecast| / Σ|actual|. Unlike MAPE it doesn't blow up on small or zero actuals, because each error counts in proportion to volume. Longer answer
Estimating the uncertainty of a statistic by resampling the data with replacement many times, recomputing the statistic on each resample, and using the spread of those values as its sampling distribution. It gives standard errors and confidence intervals without needing a formula. Longer answer
It means representing data with fewer variables while keeping most of its useful structure, either by keeping a subset of the original features or by building a few new ones from them. Common techniques are PCA, SVD, LDA, autoencoders, t-SNE and UMAP. Longer answer
The mean squared difference between predicted probabilities and actual outcomes coded as 0 or 1: (1/N) Σ (pᵢ − yᵢ)². Lower is better: 0 is perfect, and always predicting 0.5 scores 0.25. Longer answer
The tension between underfitting and overfitting. Expected squared error splits into bias² (a model too simple for the truth), variance (sensitivity to the training sample) and irreducible noise. More complexity lowers bias and raises variance, so you tune it to minimize the sum. Longer answer
Delete rows (or columns) with missing data; impute with a simple statistic such as the mean, median or mode; or predict the missing values from the other features with a model such as k-NN or regression imputation. Longer answer