Skip to content

Data Science Quiz

Data Science Quiz1 of 10

Statistics

Values distant from most other values are?

datasciencetrivia.com

Created by santiviquez

About · Quizzes · History of AI · To suggest new questions or report an error send me a dm.

About the data science quiz

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.

Questions and answers

The 10 questions this quiz opens with. Play first, then open one to check your answer.

  1. Values distant from most other values are? Show answer

    Outliers. Longer answer

  2. Is rotation necessary in PCA? Show 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

  3. What is adjusted R-squared? Show 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

  4. Precision is the ratio between which two quantities? Show 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

  5. What is WAPE? Show 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

  6. What is bootstrapping in statistics? Show 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

  7. What is dimensionality reduction? Show 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

  8. What is the Brier score? Show 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

  9. What is the bias-variance tradeoff? Show 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

  10. Give 3 techniques for handling missing values. Show 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

More quizzes