FreeExam

Data scientist: Predictive Validation and Leakage

Original technical interview practice in point-in-time prediction, grouped and temporal validation, nested selection, probabilistic scoring, calibration, and evaluation integrity.

These prompts are original practice. They are not questions from a named employer or a live hiring loop.

  1. 1.A forecast is issued at time 3. A record's business timestamp is 1, but the record first becomes available at time 5. A historical feature join uses it because 1<3. What is wrong for an information-available-at-issuance evaluation?

    Show answer and explanation
    1. Every record with an old timestamp is automatically usable
    2. The record's business timestamp is later than issuance
    3. Only the forecast's printed timezone changes
    4. The feature was unavailable when the forecast was issued

    Answer: The feature was unavailable when the forecast was issued

    Historical event time alone does not establish availability. A point-in-time reconstruction must respect when the predictor could actually be known, including ingestion/publication and revisions. The record arrived after the prediction cutoff.

  2. 2.At day 10, a model predicts activity during days 11–17. Its feature builder uses a centered seven-day window spanning days 7–13. Which feature inputs violate the stated forecast cutoff?

    Show answer and explanation
    1. Days 7–9
    2. Day 10 only
    3. None; every seven-day window is historical
    4. Days 11–13

    Answer: Days 11–13

    The centered window includes observations after issuance. A valid forecast feature window must match the information set available at prediction time. A convenient smoothing function does not make future inputs permissible.

  3. 3.A model predicts whether an order will be refunded. One feature is refund_processed_at, populated only after a refund occurs. The model is evaluated using the final warehouse row. What does this feature expose?

    Show answer and explanation
    1. A feature guaranteed deployable because it exists in the final export
    2. A pre-order feature merely correlated with later refunds
    3. Outcome-dependent information unavailable at the intended decision time
    4. An ordinary missing-value pattern whose availability never depends on outcome

    Answer: Outcome-dependent information unavailable at the intended decision time

    A post-outcome field can encode the target rather than supply a usable predictor. Evaluation must reconstruct the row at the actual decision point. A high offline score cannot make a future outcome marker available earlier.

  4. 4.A model will predict for entirely new machines. A dataset has many windows per machine, and a random row split puts the same machines in train and test. What evaluation scope is untested?

    Show answer and explanation
    1. Generalization to machines absent from training
    2. The existence of train/test row separation
    3. Only the arithmetic of averaging window losses
    4. Only the ability to score more windows from known machines

    Answer: Generalization to machines absent from training

    Row separation can still share machine-specific information. If deployment targets unseen machines, the split must reflect that entity novelty and relevant dependencies. A known-machine holdout answers a different question.

  5. 5.Two account IDs can belong to the same household and share a strong household signature. A test claims unseen-household performance but splits by account ID only. What grouping check is needed?

    Show answer and explanation
    1. Whether households cross the train/test boundary
    2. Whether each file has a different name despite shared households
    3. Only whether both partitions contain the same number of accounts
    4. Only whether account IDs are individually unique

    Answer: Whether households cross the train/test boundary

    The intended independent/novel unit is the household, not its individual account identifiers. Splitting at a narrower key can leave shared household information on both sides and overstate the requested generalization.

  6. 6.A mapping model is meant for new geographic regions. Train and test points are randomly interleaved at distances much smaller than their spatial correlation length. What validation design deserves consideration?

    Show answer and explanation
    1. Treating distinct coordinates as independent regardless of correlation distance
    2. Only stratifying outcome counts while retaining neighboring train/test points
    3. Only repeating the same interleaved split with another seed
    4. A spatial holdout matching the intended geographic separation

    Answer: A spatial holdout matching the intended geographic separation

    Nearby points can share spatial structure. A random point split may test interpolation near training locations rather than transfer to separated regions. The holdout scale should follow the actual deployment target and dependence.

  7. 7.A corpus contains duplicate documents under different filenames. Files are randomly split, and some test texts are exact copies of training texts. What can this inflate?

    Show answer and explanation
    1. Only storage size, with all prediction metrics necessarily unchanged
    2. The count of independent underlying documents
    3. Apparent performance on genuinely unseen document content
    4. Only uncertainty in the filename vocabulary

    Answer: Apparent performance on genuinely unseen document content

    A model can exploit repeated content despite different file IDs. Deduplication/grouping should respect the unit of novelty being claimed, with preprocessing and audit rules that do not leak test outcomes into model selection.

  8. 8.A model will serve new authors. Train and test have different posts but many shared authors with distinctive language and labels. What may the measured score primarily exploit?

    Show answer and explanation
    1. Only transfer to authors entirely absent from training
    2. Independent new-author information implied by distinct post IDs
    3. Only random label noise with no stable entity structure
    4. Author-specific information shared across the split

    Answer: Author-specific information shared across the split

    Distinct posts do not imply unseen authors. Evaluation should match whether deployment concerns new content from known authors or new authors themselves. Shared author signatures can make the latter claim unsupported.

  9. 9.A recommender's production target is future interactions from already enrolled users. Must an unseen-user split be the only valid evaluation?

    Show answer and explanation
    1. No; the split should match the declared deployment task
    2. Yes; every recommendation task predicts new identities only
    3. Yes; known users can never appear in a valid test
    4. No; therefore future labels may be used as current features

    Answer: No; the split should match the declared deployment task

    Entity novelty and temporal availability are separate design choices. A known-user future-interaction task can legitimately use prior user history, while still enforcing time cutoffs and avoiding leakage from the outcomes being predicted.

  10. 10.A deployment forecast trains on data available through June and predicts July. A validation fold instead trains on August and tests July. What operational question does that fold fail to reproduce?

    Show answer and explanation
    1. Prediction using only information available before July
    2. Only the number of July rows
    3. Only an interpolation task with future training data explicitly allowed
    4. The ability to calculate July prediction errors

    Answer: Prediction using only information available before July

    Training on future periods can reveal patterns unavailable at the operational training cutoff. A retrospective task may allow another design, but the stated prospective forecast needs an appropriate chronological training/evaluation protocol.

  11. 11.A target records whether a case resolves within 30 days. At evaluation cutoff day 100, cases opened on day 90 are coded negative because no resolution has appeared yet. What is wrong?

    Show answer and explanation
    1. Their full horizon ends on day 100
    2. Their 30-day labels are not yet fully observed
    3. They are true negatives because ten days have elapsed
    4. The binary encoding alone identifies a completed outcome

    Answer: Their 30-day labels are not yet fully observed

    An unresolved ten-day-old case can still resolve within its thirty-day horizon. Label maturity or an appropriate censoring-aware method is needed. Treating incomplete outcomes as final negatives changes the evaluation target.

  12. 12.A training row issued at day 8 has a label using outcomes through day 13. A validation period begins day 10 and the model must be fitted before then. Why can that training row be unusable for this fold?

    Show answer and explanation
    1. Only the row's input date matters, so the label is always safe
    2. Its training label was not available at fitting time
    3. Its feature timestamp must be after day 13
    4. Validation dates automatically make every earlier-issued row trainable

    Answer: Its training label was not available at fitting time

    Training eligibility depends on label availability as well as feature issue time. Overlapping outcome horizons can carry future information into a fold. Purging/gaps should follow the actual label and dependency timing.

  13. 13.A team inserts an arbitrary one-day embargo between train and test. Labels aggregate the next 14 days, and other dependencies are unexamined. What has the one-day gap not established?

    Show answer and explanation
    1. Only whether the named periods have a chronological order
    2. A universal requirement that every embargo equal exactly fourteen days
    3. Only the mechanics of removing one calendar day
    4. Separation of the relevant information/dependency horizons

    Answer: Separation of the relevant information/dependency horizons

    A gap is justified by the actual feature, label, overlap, and dependence structure. One day is not a universal leakage cure, and even a fourteen-day rule would need alignment with the task's exact boundaries and availability contract.

  14. 14.An analysis explicitly reconstructs a past missing measurement using observations on both sides of it; deployment is retrospective interpolation, not a real-time forecast. Is using later observations inherently a cutoff violation here?

    Show answer and explanation
    1. Yes; every prediction task forbids later observations
    2. No; permitted information depends on the declared task
    3. No; therefore labels may be arbitrarily reused to tune the final test
    4. Yes; interpolation is always a future forecast

    Answer: No; permitted information depends on the declared task

    The evaluation information set should match actual use. Retrospective interpolation can permit later observations that a live forecast cannot. This does not remove the need for valid holdouts, labels, and model-selection boundaries.

  15. 15.A prospective evaluation fits a standardization mean and scale on all train and test features before splitting. What held-out information entered training?

    Show answer and explanation
    1. Only a row permutation that cannot affect fitted transformation values
    2. Test-feature distribution information through preprocessing
    3. Only the training-label distribution
    4. No held-out information because the transformation is label-free

    Answer: Test-feature distribution information through preprocessing

    Unsupervised preprocessing can still use information from the held-out distribution. For a train-only fitting protocol, learn preprocessing inside each training fold and apply the fitted transformation to its validation data.

  16. 16.Training observations have feature values [0,2]; a test observation has value 100. An imputer/center uses the global mean 34 instead of training mean 1. What changed the fitted transformation?

    Show answer and explanation
    1. The test label necessarily entered an otherwise feature-only calculation
    2. The held-out value influenced the fitted mean
    3. The training-only mean equals thirty-four
    4. Only a harmless permutation of the same fitted mean

    Answer: The held-out value influenced the fitted mean

    The training-only mean is (0+2)/2=1. Including the test value gives (0+2+100)/3=34. The held-out feature distribution has affected a supposedly train-only fitted transformation.

  17. 17.Feature selection ranks predictors against all labels, then cross-validation evaluates a model using that selected subset. What information boundary was crossed?

    Show answer and explanation
    1. Later CV erases all earlier information about validation outcomes
    2. Only training outcomes affected the selected feature subset
    3. Only the feature names were shared across folds
    4. Validation labels influenced feature selection

    Answer: Validation labels influenced feature selection

    Model selection includes data-dependent feature selection. That step belongs inside the training side of the evaluation scheme; otherwise the validation outcomes helped choose the representation whose score is being reported.

  18. 18.A text vocabulary is fitted on the entire future test corpus before a claimed train-only prospective evaluation. No test labels are used. What assumption needs clarification?

    Show answer and explanation
    1. That all unlabeled test access is harmless under every deployment protocol
    2. Only whether the vocabulary includes numeric tokens
    3. Whether that future unlabeled corpus is actually available in the deployment protocol
    4. Only whether output vectors have the same dimensionality

    Answer: Whether that future unlabeled corpus is actually available in the deployment protocol

    Transductive access can be legitimate when explicitly part of the task. It is not automatically available for a prospective inductive deployment. The allowed information set should be stated and matched by preprocessing.

  19. 19.A frozen encoder was pretrained before the study cutoff on a permitted independent corpus. It is applied to test rows without fitting on them. Does using a learned representation alone prove test leakage?

    Show answer and explanation
    1. No; therefore all encoder training provenance can be ignored
    2. Yes; applying a frozen transformation is the same as fitting on test labels
    3. No; provenance and the allowed information protocol determine that claim
    4. Yes; every representation learned from any corpus leaks test outcomes

    Answer: No; provenance and the allowed information protocol determine that claim

    A learned representation can be a permitted fixed input to the assessed procedure. Leakage concerns actual access and the task’s information boundaries, including potential corpus overlap. Freezing a legitimately independent encoder differs from fitting it using held-out rows.

  20. 20.A categorical feature has one unique category per training row. Target encoding uses that row's own binary label as its category mean. What can a training model trivially read?

    Show answer and explanation
    1. Only the overall prevalence across unrelated training categories
    2. A category statistic guaranteed available for a previously unseen category
    3. The row's label through its encoded feature
    4. Only a category frequency independent of its assigned label

    Answer: The row's label through its encoded feature

    An unsmoothed singleton category mean equals its own label. Appropriate out-of-fold/leave-out construction and deployment fallback are needed for a valid target-encoding pipeline, with grouping/time rules matched to the task.

  21. 21.During CV, target encoding for validation categories is recomputed using the validation fold's labels. What makes that validation score invalid for predicting unknown outcomes?

    Show answer and explanation
    1. Only training labels entered the validation encodings
    2. A rule that target encoding is unusable under every possible protocol
    3. Only category names, rather than their outcomes, entered fitting
    4. Its outcomes helped construct the features used to predict them

    Answer: Its outcomes helped construct the features used to predict them

    Validation outcomes must stay outside fitted predictive inputs under this task. Target encoding can be valid with correct train-fold fitting and appropriate handling of unseen categories, but not by consulting the outcomes being evaluated.

  22. 22.A row-level out-of-fold encoder excludes each row's label but retains labels from other rows of the same entity. Deployment targets unseen entities with stable entity-linked outcomes. What leakage risk remains?

    Show answer and explanation
    1. Same-entity labels can cross the encoding holdout boundary
    2. Only a missing fold number for the held-out row
    3. Only unequal category frequency, with no outcome-information path
    4. Row-level leave-out proves generalization to unseen entities

    Answer: Same-entity labels can cross the encoding holdout boundary

    Out-of-fold construction must honor the intended grouping and information set. Excluding one row is insufficient if correlated/entity-identifying labels remain available through related rows that would not exist for a new entity.

  23. 23.An ensemble's meta-model is trained on base-model predictions made on the same rows those base models fitted. At deployment, predictions are on unseen rows. What training/evaluation mismatch can occur?

    Show answer and explanation
    1. The meta-model learns from optimistically fitted base predictions
    2. In-sample predictions are always distributed like unseen-row predictions
    3. Only the number of ensemble members changes
    4. Only model names, rather than fitted predictions, enter the meta-stage

    Answer: The meta-model learns from optimistically fitted base predictions

    A stacking procedure should train its meta-stage on suitable held-out/out-of-fold predictions under the task's split rules. In-sample base predictions can have a different error pattern and overstate deployable ensemble performance.

  24. 24.A neural model's epoch is chosen by its best validation score. The same validation score is then reported as an untouched final test result. What happened?

    Show answer and explanation
    1. Only an optimizer tolerance unrelated to validation was changed
    2. Early stopping cannot adapt to validation results
    3. Only model weights were averaged without outcomes
    4. The evaluation set was used for model selection

    Answer: The evaluation set was used for model selection

    Choosing an epoch is a data-dependent model-selection step. The selected validation result is not an independent final assessment. A suitable outer/held-out evaluation should cover the full selection procedure.

  25. 25.A hundred hyperparameter candidates have equal true risk but noisy validation estimates. The smallest observed validation loss is reported as an unbiased estimate of the chosen procedure's future loss. What selection issue arises?

    Show answer and explanation
    1. Only the number of fitted coefficients matters
    2. The minimum of noisy losses equals their common expectation
    3. More candidates eliminate all validation estimation noise
    4. Choosing the minimum favors downward validation noise

    Answer: Choosing the minimum favors downward validation noise

    Searching over noisy estimates selects favorable fluctuations as well as useful differences. An independent outer evaluation or another justified correction is needed to assess the complete selection procedure.

  26. 26.Nested CV uses inner folds to tune and outer folds to score. What must remain outside each outer training procedure?

    Show answer and explanation
    1. Every allowed candidate hyperparameter setting
    2. The corresponding outer validation outcomes
    3. All inner training labels
    4. Only the serialized filename of the selected model

    Answer: The corresponding outer validation outcomes

    Each outer fold evaluates a full procedure, including preprocessing, selection, and tuning fitted using its training data. Outer validation outcomes must not guide those decisions if they are to provide a held-out assessment.

  27. 27.After nested CV, a team tunes a final model on all development data for deployment. What did the outer scores primarily evaluate?

    Show answer and explanation
    1. One identical parameter vector that all outer folds must share
    2. Only the training loss of the final all-data refit
    3. The model-building/selection procedure at its evaluated training sizes
    4. The exact final fitted model under every future distribution

    Answer: The model-building/selection procedure at its evaluated training sizes

    Outer CV evaluates repeated instances of the specified procedure. A final refit can be appropriate, but its exact parameters and training size differ. The scores do not guarantee future performance under arbitrary distribution changes.

  28. 28.A model's threshold is selected to maximize F1 on the final test labels. That test F1 is presented as independent final performance. What was tuned on the test set?

    Show answer and explanation
    1. Only a fixed metric formula chosen before any labels were opened
    2. No component, because threshold choice cannot overfit outcomes
    3. Only the probability column’s display label
    4. The decision threshold

    Answer: The decision threshold

    Threshold choice is part of the deployed decision procedure. Selecting it using final test outcomes reuses the assessment set for tuning. Fit/select thresholds on permitted development data and assess the frozen procedure separately.

  29. 29.A probability calibrator is fitted on predictions and outcomes from the exact test set used to report calibration error. What is unmeasured by that in-sample score alone?

    Show answer and explanation
    1. Out-of-sample calibration of the fitted calibrator
    2. The fact that the fitted map accessed those outcomes
    3. Only the syntax used to name the probability column
    4. Only the number of observations used in its fit

    Answer: Out-of-sample calibration of the fitted calibrator

    Calibration is a fitted component and needs appropriate held-out/cross-fitted evaluation. Assessing it on the outcomes used to fit it can understate future error, particularly for flexible calibration maps.

  30. 30.An analyst repeatedly opens a nominal holdout and changes features whenever its score improves. No row is moved into training. Is the holdout still untouched for final assessment?

    Show answer and explanation
    1. Yes; only moving rows can use holdout information
    2. No; therefore the recorded outcomes must all be wrong
    3. Yes; feature changes cannot overfit aggregate scores
    4. No; iterative decisions adapt to its outcomes

    Answer: No; iterative decisions adapt to its outcomes

    Information can flow through aggregate feedback and human choices. A holdout can become part of model selection without its rows being directly fitted. Preserve a genuinely separate assessment or use another justified adaptive-evaluation design.

  31. 31.An automated search chooses between entire pipelines, including imputation, feature selection, and model family. Evaluation nests only the final estimator's hyperparameters, leaving earlier choices based on all labels. What scope is missing?

    Show answer and explanation
    1. The full data-dependent pipeline must be inside the selection boundary
    2. No extra scope, because earlier label-based decisions cannot affect outer scores
    3. Only more inner folds for the final estimator
    4. Only a different random seed for the same globally selected representation

    Answer: The full data-dependent pipeline must be inside the selection boundary

    The assessed procedure includes every choice informed by data, not only one estimator parameter grid. Preselection outside the outer boundary can leak outcomes despite a nested final-model search.

  32. 32.Two CV folds have 10 and 90 validation rows. Their mean losses are 0 and 10. What pooled per-row mean loss follows?

    Show answer and explanation
    1. 10
    2. 1
    3. 9
    4. 5

    Answer: 9

    Total loss is 10×0+90×10=900 over one hundred rows, giving nine. An unweighted mean of fold means gives five and targets equal fold weight rather than equal row weight.

  33. 33.Two equally weighted institutions have 10 and 90 test records. Mean losses are 0 and 10. The target gives each institution equal weight, regardless of size. What target loss follows?

    Show answer and explanation
    1. 1
    2. 5
    3. 9
    4. 10

    Answer: 5

    The specified institutional weighting averages the two institution losses: (0+10)/2=5. Pooled row loss would be nine. A weighting choice is part of the target, not an automatic property of cross-validation output.

  34. 34.A five-fold CV report treats the five scores as independent replicates and computes a tiny SE. The fitted training sets overlap heavily. What dependence is ignored?

    Show answer and explanation
    1. Shared training data and related fitted procedures across folds
    2. Only the sorting of fold identifiers before averaging
    3. Only the fact that all folds use the same loss units
    4. Distinct validation rows imply independent fitted-model errors across folds

    Answer: Shared training data and related fitted procedures across folds

    Disjoint validation sets do not make the trained models independent when their training data overlap. Uncertainty for CV comparisons needs a justified procedure; a naive independent-fold SE can misrepresent it.

  35. 35.Models A and B are evaluated on the same held-out subjects. A comparison discards paired losses and treats the two loss samples as unrelated. What information is lost?

    Show answer and explanation
    1. Only the ordering of the two model names
    2. Within-subject covariance of the model losses
    3. Only training loss, which determines paired held-out differences
    4. All uncertainty because using the same subjects eliminates it

    Answer: Within-subject covariance of the model losses

    Paired evaluation can use how model errors vary together on the same cases. Marginal mean losses alone do not determine uncertainty of their difference. Resampling/comparison should respect the subject/dependence design.

  36. 36.A binary classifier has TP=12, FP=3, FN=8, TN=77. What precision and recall follow for the positive class?

    Show answer and explanation
    1. Precision 0.6; recall 0.8
    2. Precision 0.8; recall 0.6
    3. Precision 0.8; recall 0.12
    4. Precision 0.12; recall 0.15

    Answer: Precision 0.8; recall 0.6

    Precision is 12/(12+3)=0.8. Recall is 12/(12+8)=0.6. Their denominators represent predicted positives and actual positives respectively; total accuracy is a different metric.

  37. 37.A test population has 1% positives. A model always predicts negative. What accuracy and positive recall follow?

    Show answer and explanation
    1. 99% accuracy; 99% recall
    2. 1% accuracy; 100% recall
    3. 99% accuracy; 0% recall
    4. 0% accuracy; 99% recall

    Answer: 99% accuracy; 0% recall

    All negatives are correct and every positive is missed. Thus accuracy is 99% and positive recall zero. High accuracy under class imbalance need not demonstrate useful positive-case detection.

  38. 38.Balanced accuracy is defined as the mean of positive recall and negative recall. Those recalls are 0.8 and 0.6. What score follows?

    Show answer and explanation
    1. 0.8
    2. 1.4
    3. 0.48
    4. 0.7

    Answer: 0.7

    The specified metric weights the two class recalls equally: (0.8+0.6)/2=0.7. It is not the ordinary prevalence-weighted accuracy unless the relevant class weights make those coincide.

  39. 39.Positive-class precision is 0.5 and recall is 1. F1 is 2PR/(P+R). What F1 follows?

    Show answer and explanation
    1. 0.75
    2. 1
    3. 0.5
    4. 2/3

    Answer: 2/3

    The numerator is 2×0.5×1=1 and denominator is 1.5, giving two thirds. F1 is a harmonic combination, not the arithmetic average 0.75.

  40. 40.Two classes have F1 scores 0.9 and 0.1, and supports 90 and 10. What are unweighted macro-F1 and support-weighted mean F1 under these definitions?

    Show answer and explanation
    1. 0.82 and 0.5
    2. 0.5 and 0.82
    3. 0.9 and 0.1
    4. 0.5 and 0.5

    Answer: 0.5 and 0.82

    Macro-F1 averages class scores equally: (0.9+0.1)/2=0.5. Support weighting gives (90×0.9+10×0.1)/100=0.82. The chosen averaging rule affects whose performance dominates.

  41. 41.A single-label three-class task makes exactly one class prediction for each of 100 cases, with 75 correct. Micro-F1 aggregates TP, FP, FN across all three classes. What micro-F1 follows?

    Show answer and explanation
    1. 0.25
    2. 0.5
    3. 0.75
    4. 1

    Answer: 0.75

    Across classes there are 75 true positives, 25 false positives, and 25 false negatives. Micro precision and recall both equal 0.75, so micro-F1 is 0.75. This relies on the stated exhaustive single-label setup.

  42. 42.ROC AUC is defined as the fraction of positive-negative score pairs correctly ordered, with half credit for ties. Positive scores are [0.8,0.4], negative scores [0.6,0.2]. What AUC follows?

    Show answer and explanation
    1. 0.5
    2. 1
    3. 0.25
    4. 0.75

    Answer: 0.75

    Of four pairs, 0.8 outranks both negatives and 0.4 outranks only 0.2. Three of four are correct, giving 0.75. There are no ties in this example.

  43. 43.All scores are transformed by the same strictly increasing function without changing ties. What happens to pair-order ROC AUC, and what is not thereby guaranteed?

    Show answer and explanation
    1. AUC is unchanged; probability calibration need not be preserved
    2. AUC becomes 0.5; calibration remains unchanged
    3. AUC increases; calibration is necessarily exact
    4. Both ranking and probability calibration are invariant under every increasing transform

    Answer: AUC is unchanged; probability calibration need not be preserved

    A strictly increasing transform preserves pair ordering and ties, hence AUC. It can alter the numerical probability meanings. Ranking quality and calibration are distinct properties.

  44. 44.Two populations share the same class-conditional score distributions but have different positive prevalence. What can differ even when their ROC curves agree?

    Show answer and explanation
    1. The stipulated class-conditional distributions must differ
    2. Only the numerical type used for scores can differ
    3. Precision is guaranteed identical because ROC curves agree
    4. Precision-recall behavior because class mixing differs

    Answer: Precision-recall behavior because class mixing differs

    Precision conditions on predicted positives and therefore depends on how positive and negative score populations are mixed. Equal class-conditional ranking behavior does not make precision-recall performance invariant to prevalence.

  45. 45.A supplied average-precision convention sums Δrecall×precision. Recall increases by 0.5 at precision 1, then by 0.5 at precision 0.5. What AP follows?

    Show answer and explanation
    1. 1
    2. 0.75
    3. 0.5
    4. 0.875

    Answer: 0.75

    The specified step-weighted sum is 0.5×1+0.5×0.5=0.75. Other interpolation conventions can differ, so the scoring definition should be explicit rather than inferred from a plot label.

  46. 46.Binary Brier loss is mean((p−y)²). Predictions are [0.2,0.8] and labels [0,1]. What loss follows?

    Show answer and explanation
    1. 0.16
    2. 0.04
    3. 0.08
    4. 0.2

    Answer: 0.04

    Both squared errors are 0.04, so their mean is 0.04. This score evaluates the probabilistic predictions; it is not the thresholded classification error at 0.5.

  47. 47.Binary log loss uses −log(p_true), with natural logarithm and no clipping. A model assigns zero probability to the realized class on one test case. What loss does that case contribute?

    Show answer and explanation
    1. Positive infinity
    2. The negative of its classification accuracy
    3. One
    4. Zero

    Answer: Positive infinity

    The loss is −log 0, which diverges to positive infinity. Practical implementations may clip probabilities, but clipping changes the numerical convention and must be accounted for in reproducible evaluation.

  48. 48.A binary outcome has true positive probability 0.7. Under expected squared-probability loss, which constant forecast minimizes risk?

    Show answer and explanation
    1. 1
    2. 0.5
    3. 0.7
    4. 0

    Answer: 0.7

    For a forecast q, expected Brier loss is 0.7(q−1)²+0.3q², minimized at q=0.7. This illustrates the proper-score target under the stated population rather than a thresholded decision target.

  49. 49.A classifier predicts 0.6 for every case. Group A has 50 cases with 45 positives; group B has 50 with 15 positives. What does aggregate agreement at 0.6 fail to establish?

    Show answer and explanation
    1. The combined positive fraction of 0.6
    2. The equal observed group sizes
    3. The fact that every prediction equals 0.6
    4. Calibration within both groups

    Answer: Calibration within both groups

    Overall there are sixty positives among one hundred cases. Within groups the positive fractions are 0.9 and 0.3. Aggregate calibration at this score does not imply calibration within each relevant subgroup.

  50. 50.Every case receives the same score equal to population prevalence. Assume its constant probability is calibrated. What pair-order ROC AUC follows with half credit for all ties?

    Show answer and explanation
    1. 1
    2. Zero whenever prevalence is below 0.5
    3. 0.5
    4. The prevalence itself

    Answer: 0.5

    Every positive-negative pair ties, giving half credit. A calibrated constant probability can have no ranking discrimination. Calibration and discrimination need separate assessment.

  51. 51.Model A has lower Brier loss than B. A report claims this alone proves A has better calibration, without examining resolution or reliability. What is unsupported?

    Show answer and explanation
    1. Isolating calibration quality from the combined proper score alone
    2. That a declared proper score can compare probabilistic forecasts
    3. That squared probability errors can be averaged
    4. That the recorded overall Brier score is lower

    Answer: Isolating calibration quality from the combined proper score alone

    Brier loss reflects more than calibration alone, including discrimination/resolution and outcome uncertainty under its decomposition. A lower total score need not mean a smaller calibration component. Relevant diagnostics should match the specific claim.

  52. 52.Two equally sized test folds have RMSE 0 and 2. What is the pooled RMSE across their combined squared errors?

    Show answer and explanation
    1. 2
    2. √2
    3. 4
    4. 1

    Answer: √2

    Their MSE values are zero and four. With equal counts, pooled MSE is two, so pooled RMSE is √2. Averaging fold RMSEs gives one and is a different aggregation.

  53. 53.An empirical outcome distribution gives equal weight to [0,0,9]. A constant point forecast is selected to minimize either mean absolute error or mean squared error. Which minimizers follow?

    Show answer and explanation
    1. Both 0
    2. MAE:0; MSE:3
    3. MAE:3; MSE:0
    4. Both 3

    Answer: MAE:0; MSE:3

    Absolute-error risk is minimized at a median, here zero. Squared-error risk is minimized at the mean, here three. The chosen loss elicits a target functional; changing it can change the best point forecast without changing the data.

  54. 54.A percentage-error metric divides absolute error by absolute actual outcome. Some actual outcomes are exactly zero. What definition issue must be resolved?

    Show answer and explanation
    1. Only whether predictions use a decimal storage type
    2. A guarantee that zero actual outcomes have zero prediction error
    3. The metric's zero-denominator behavior and intended target
    4. Only the count of predictions whose values are nonzero

    Answer: The metric's zero-denominator behavior and intended target

    The stated ratio is undefined at zero actual outcomes. Excluding, altering, or substituting values changes the evaluated population or loss. A suitable explicit definition should match the deployment question.

  55. 55.Test outcomes are [1,2], predictions [0,0]. Define R²=1−SSE/SST, with SST around the test-outcome mean. What R² follows?

    Show answer and explanation
    1. −9
    2. 0
    3. 0.5
    4. 0.9

    Answer: −9

    SSE=1²+2²=5. The test mean is 1.5, so SST=0.25+0.25=0.5. Thus R²=1−5/0.5=−9. Out-of-sample R² need not lie between zero and one.

  56. 56.A scoring API returns negative mean loss and selects the larger score. Model A scores −2 and B scores −5. Which has the lower underlying mean loss?

    Show answer and explanation
    1. B, with loss 5
    2. They have identical loss
    3. Neither, because negative scores cannot represent losses
    4. A, with loss 2

    Answer: A, with loss 2

    Negating a loss makes higher scores better: −2>−5 corresponds to 2<5. Evaluation code must respect the score direction rather than assume every numeric metric is minimized.

  57. 57.Pinball loss at τ=0.8 is τ(y−q) when y≥q, otherwise (1−τ)(q−y). For y=10, compare predictions q=8 and q=12. What losses follow?

    Show answer and explanation
    1. 1.6 and 0.4
    2. 2 and 2
    3. 0.4 and 1.6
    4. 0.8 and 0.2

    Answer: 1.6 and 0.4

    Underprediction by two costs 0.8×2=1.6, while overprediction by two costs 0.2×2=0.4. The asymmetry corresponds to the supplied quantile target, not symmetric absolute error.

  58. 58.A nominal 90% prediction interval covers 90 of 100 pooled cases but only 2 of 10 cases in a prespecified small group. What does pooled coverage fail to establish?

    Show answer and explanation
    1. Coverage within that group
    2. The pooled observed covered count of ninety
    3. The observed group denominator of ten
    4. The ability to compare realized outcomes with interval bounds

    Answer: Coverage within that group

    Marginal coverage can hide severe subgroup differences. The group's estimate also has uncertainty because it has few cases, but the pooled score alone does not provide its conditional coverage guarantee.

  59. 59.A conformal method's stated marginal coverage guarantee assumes exchangeability. Training/calibration data and future cases have changed mechanisms with no justified exchangeability. What can be claimed from the theorem alone?

    Show answer and explanation
    1. Every case has an exact conditional coverage guarantee
    2. The same guarantee holds under every distribution shift
    3. Its guarantee does not automatically transfer to this new setting
    4. Enough calibration rows eliminate any mechanism change

    Answer: Its guarantee does not automatically transfer to this new setting

    Coverage theorems are conditional on their assumptions and scope. A method may have useful extensions or empirical performance under a specific shift, but those need separate justification rather than an assumption-free reading of the original guarantee.

  60. 60.Two probabilistic forecasts have the same point mean but very different tail probabilities. An evaluation reports only squared error of the point means. What remains unassessed?

    Show answer and explanation
    1. Only the row order of forecast outputs
    2. The recorded squared errors of their point predictions
    3. Quality of their predicted distributions beyond that point summary
    4. The equality of their point means

    Answer: Quality of their predicted distributions beyond that point summary

    A point loss assesses a particular functional. It does not fully evaluate tail probabilities, interval coverage, or the forecast distribution. Distributional claims need suitable proper scores and diagnostics under the task's outcome model.

  61. 61.A multilabel test has two cases with two labels each. In each case exactly one label prediction is wrong. What are per-label accuracy and exact-set accuracy?

    Show answer and explanation
    1. 50% and 50%
    2. 0% and 50%
    3. 50% and 0%
    4. 100% and 0%

    Answer: 50% and 0%

    Two of four label decisions are correct, giving fifty percent per-label accuracy. Neither case has its entire label set correct, so exact-set accuracy is zero. These metrics aggregate different error units.

  62. 62.A ranking system will face entirely new queries. Candidate documents within each query are randomly split, leaving the same queries in train and test. What target has not been isolated?

    Show answer and explanation
    1. Only whether relevance scores are sorted ascending or descending
    2. Only new candidates for already observed queries
    3. Generalization to unseen queries
    4. The count of stored candidate documents for each query

    Answer: Generalization to unseen queries

    Query-specific structure can be shared across document rows. Validation must match whether novelty concerns documents, queries, users, or combinations. A document split alone does not establish unseen-query performance.

  63. 63.A triage model selects 20 cases for review, but labels are observed only for those selected cases. Its precision among reviewed cases is measured. What cannot be directly computed from those labels alone?

    Show answer and explanation
    1. The count of positive reviewed cases
    2. The number of selected cases
    3. Recall over all true positive cases
    4. The observed positive fraction among the reviewed twenty

    Answer: Recall over all true positive cases

    Recall needs the total actual-positive population, including unreviewed cases. Selection-dependent labels restrict what is observed. Additional audit sampling or justified identification assumptions are needed for full-population recall.

  64. 64.A test drops every prediction that lacks a returned label. Slow-to-label cases have systematically higher errors. What population does the remaining score describe?

    Show answer and explanation
    1. The label-observed subset rather than all intended predictions
    2. A random sample guaranteed by label absence alone
    3. A population necessarily producing larger measured error than the full set
    4. All intended predictions, regardless of which labels are missing

    Answer: The label-observed subset rather than all intended predictions

    Missing evaluation labels can induce selection. A complete performance claim needs label coverage/maturity and a justified treatment of missing outcomes. Dropping cases is not automatically an unbiased evaluation protocol.

  65. 65.Training uses balanced class resampling. Deployment has 2% positives. The final test is also artificially balanced, but its raw accuracy is called deployment accuracy. What target mismatch remains?

    Show answer and explanation
    1. Only the model artifact’s physical file format
    2. Only the display names assigned to the two classes
    3. Balanced training automatically restores the deployment evaluation mixture
    4. The test class mixture differs from deployment

    Answer: The test class mixture differs from deployment

    A training strategy does not redefine the deployment population. Evaluation should use the intended class mix or an appropriate explicitly weighted target, and should distinguish prevalence-sensitive metrics from conditional ones.

  66. 66.Minority-class synthetic examples are generated using all data before train/test splitting. A synthetic training point uses a future test point as a neighbor. What leakage path exists?

    Show answer and explanation
    1. Held-out feature geometry entered synthetic training data
    2. Only the shuffle seed changed, with no test-feature dependency
    3. Only the count of original minority labels entered training
    4. Synthetic rows cannot transmit any information about their source neighbors

    Answer: Held-out feature geometry entered synthetic training data

    Training augmentation/resampling must stay within the permitted training data and split structure. Synthetic construction can transmit held-out information even when no original test row is copied verbatim into training.

  67. 67.A fixed test contains 90 easy and 10 hard cases; losses are 1 and 9 within those groups. Deployment will weight the two groups equally. What deployment-weighted loss follows under unchanged group-conditional loss?

    Show answer and explanation
    1. 9
    2. 1
    3. 5
    4. 1.8

    Answer: 5

    The specified deployment target is 0.5×1+0.5×9=5. The test's raw pooled mean is 0.9×1+0.1×9=1.8. Transport requires the stated conditional stability and valid target weighting.

  68. 68.A target population contains a feature region absent from validation. Importance weighting is proposed using validation rows only. What cannot weighting alone create?

    Show answer and explanation
    1. Only an alternative scaling of supported validation weights
    2. A guarantee that missing regions have nearest-neighbor outcomes
    3. A normalized weight for already observed cases
    4. Outcome evidence in the unsupported target region

    Answer: Outcome evidence in the unsupported target region

    Weighting reuses observed support; it cannot supply labels where evaluation has no representation. Target-risk claims need suitable support plus justified assumptions, additional data, or an explicitly limited scope.

  69. 69.A model's training loss falls as complexity rises while a proper held-out loss first falls and then rises. What does the held-out rise suggest for this comparison?

    Show answer and explanation
    1. Worse assessed generalization at the higher complexities
    2. Only a bug in every validation metric
    3. Proof that no model can fit the training data
    4. A guarantee that the largest model is always best

    Answer: Worse assessed generalization at the higher complexities

    Training fit can improve while held-out performance worsens. Model choice should reflect the specified evaluation target and selection protocol. The pattern is evidence for this setting, not a universal law about every model family.

  70. 70.A learning curve evaluates models trained on 100,500,1000 cases, always testing on their own training cases. It is labeled an out-of-sample learning curve. What is missing?

    Show answer and explanation
    1. Only an additional model-complexity label
    2. A guarantee that increasing n makes training loss unbiased for future risk
    3. Only a larger training sample for the last point
    4. An appropriate held-out assessment at each training size

    Answer: An appropriate held-out assessment at each training size

    Training error is an in-sample quantity. To study out-of-sample learning behavior, use a valid independent/held-out evaluation design that preserves the task's time, grouping, and model-selection boundaries.

  71. 71.A model is fitted with features ordered [temperature,pressure], but the scoring service passes the same values ordered [pressure,temperature] without names. What can fail despite identical array shape?

    Show answer and explanation
    1. Only the number of returned model outputs
    2. The trained feature-to-input meaning
    3. Only the fraction of positive labels in the test set
    4. Nothing, because numeric features with equal array shape are interchangeable

    Answer: The trained feature-to-input meaning

    Schema includes field identity, order, units, and transformation, not merely dimensions. Validation should exercise the actual serving representation. A correct offline model can produce wrong predictions from a silently permuted input schema.

  72. 72.Prediction rows are shuffled after scoring, then joined to labels by row position instead of immutable case ID. What evaluation defect can result?

    Show answer and explanation
    1. Predictions are paired with the wrong outcomes
    2. Only the display order changes while every prediction/outcome pair stays intact
    3. Averaging loss necessarily repairs arbitrary label misalignment
    4. Only the count of predictions can change

    Answer: Predictions are paired with the wrong outcomes

    Scoring needs a correct case-level correspondence. Row order is not a durable identity after transformations. Keyed alignment and uniqueness/completeness checks should establish which outcome each prediction is evaluated against.

  73. 73.A binary model emits probabilities in class order [negative,positive]. Evaluation treats the first column as P(positive). What error occurs?

    Show answer and explanation
    1. Only displayed names change while all evaluated probabilities remain correct
    2. The wrong class probability is scored as positive
    3. Only the number of probability columns changes
    4. ROC AUC is always invariant to reversing class-score meaning

    Answer: The wrong class probability is scored as positive

    Probability columns require an explicit class mapping. Reversing positive-class scores can invert ranking and misstate calibration/losses. Matching array dimensions does not establish semantic alignment with the labels.

  74. 74.A feature originally published as 4 before prediction is revised to 9 afterward. A backtest reads only the latest corrected value 9, while production could see only 4. What information set is being evaluated?

    Show answer and explanation
    1. A revised-history feature set unavailable at the original decision
    2. Exactly the original production information set
    3. A history whose revisions cannot affect model inputs
    4. Only a display correction with unchanged predictor values

    Answer: A revised-history feature set unavailable at the original decision

    Point-in-time validation needs the version known at issuance, not merely the latest business-effective value. Revision history and availability context matter when reconstructing a deployable backtest.

  75. 75.A test contains ten unique hard cases and ten unique easy cases. An export duplicates every easy case nine additional times. A pooled row score is reported for the original equal-case target. What changed?

    Show answer and explanation
    1. Only storage size, leaving every pooled metric unchanged
    2. A guarantee that duplicates improve generalization
    3. The number of independent hard cases
    4. The effective evaluation weights toward easy cases

    Answer: The effective evaluation weights toward easy cases

    Duplicated evaluation rows can overweight particular cases without adding independent evidence. Scores should reflect the intended case identities/weights, and uncertainty should respect dependence rather than count copies as new observations.

  76. 76.An offline report scores only requests where the production feature service returns successfully. Missing-feature failures affect 15% of intended requests. What deployment measure is also needed?

    Show answer and explanation
    1. A guarantee that unscored requests never require any decision
    2. Coverage/failure behavior over the intended request population
    3. Only a more precise conditional score on successful requests
    4. Only the number of model-training rows

    Answer: Coverage/failure behavior over the intended request population

    Conditional model quality on successful scoring does not describe the whole system. Evaluation should account for failure, fallback, latency, and missing-input behavior relevant to the deployed task, with an explicit population and loss/coverage contract.

  77. 77.A CV loop warm-starts each fold from the model fitted on the preceding fold. That preceding fit included some current validation labels. What can leak?

    Show answer and explanation
    1. Only faster runtime, with no possible effect on fitted predictions
    2. Only the sequence in which fold IDs are printed
    3. No information, because current fit calls exclude current validation rows
    4. Earlier fold state carrying current held-out label information

    Answer: Earlier fold state carrying current held-out label information

    Fold isolation applies to learned state, not just the data passed to the current fit call. Reusing weights or other fitted state across incompatible folds can expose validation information. Reset or correctly isolate the full fitting procedure.

  78. 78.A transformation cache is keyed only by feature names. Different CV folds reuse one cached fitted encoder despite different training subsets. What cache context is missing?

    Show answer and explanation
    1. A guarantee that equal feature names imply equal fitted encoders
    2. Only the display order of validation rows
    3. The relevant fitting-data/fold and transformation version
    4. Only a cache expiry applied after final evaluation

    Answer: The relevant fitting-data/fold and transformation version

    A fitted encoder depends on its training inputs and configuration. Reusing it across folds can leak data or apply the wrong representation. Cache identity/isolation must preserve the evaluation boundary, not just the schema names.

  79. 79.Multiple augmentations derive from one original image. Augmented files are split independently, putting close variants of that image in train and test. What should the novelty split account for?

    Show answer and explanation
    1. Only equal pixel dimensions across all exported images
    2. Only uniqueness of the augmented filenames
    3. A guarantee that every augmentation is independent unseen content
    4. The shared original-image lineage

    Answer: The shared original-image lineage

    Derived variants can retain near-identical source information. Grouping by the relevant original lineage can be necessary for a genuinely unseen-content assessment. Augmentation belongs within the task's permitted training/evaluation boundaries.

  80. 80.A benchmark's test items were publicly available before a model's undocumented pretraining. A high benchmark score is called proof of unseen-item generalization. What evidence is missing?

    Show answer and explanation
    1. A guarantee that public test items remain unseen throughout training
    2. Only the benchmark’s count of output classes
    3. Whether pretraining or selection included those item contents
    4. Only the trained model’s total parameter count

    Answer: Whether pretraining or selection included those item contents

    Training/selection exposure can contaminate an apparent holdout. Documentation, overlap audits, and suitable fresh evaluation can help scope the claim. A high score alone neither proves contamination nor establishes that the items were unseen.

  81. 81.Historical labels define a positive as any return within 7 days. A newer test defines it as return within 30 days, but the report compares scores as if the target were unchanged. What must be aligned?

    Show answer and explanation
    1. A guarantee that all binary targets represent the same event
    2. The outcome definition and observation horizon
    3. Only identical zero/one label spellings
    4. Only the model’s random seed

    Answer: The outcome definition and observation horizon

    The label semantics differ even if both use zero and one. Performance comparison needs a compatible target, maturity window, and population. A changed target can move scores without a change in the same predictive capability.

  82. 82.Training labels strongly correlate with a scanner ID that differs by site. Deployment moves to sites with different scanner-label relationships. What does a random within-site split fail to stress?

    Show answer and explanation
    1. Only the scanner ID's numeric storage width
    2. Only whether training accuracy is computable
    3. A guarantee that correlation identifies a stable causal predictor
    4. Reliance on the site-linked shortcut under the intended transfer

    Answer: Reliance on the site-linked shortcut under the intended transfer

    A predictive shortcut can work within the observed environment yet fail under transfer. Evaluation should probe the intended deployment variation and feature availability. High within-site accuracy does not establish stability at new sites.

  83. 83.A feature ablation lowers held-out accuracy after refitting. A report says this proves intervening on that real-world feature improves outcomes. What inference is unsupported?

    Show answer and explanation
    1. A causal intervention effect from predictive ablation alone
    2. That the fitted procedure's held-out score changed
    3. That another model can be refitted without the feature
    4. That the feature carried information useful to that procedure

    Answer: A causal intervention effect from predictive ablation alone

    A predictive input intervention in a model is not automatically a real-world causal intervention. Correlations, alternative predictors, selection, and the data-generating process matter. Predictive importance and causal effects require different evidence.

  84. 84.Two predictors are nearly interchangeable. Permuting either one separately changes a fitted model's score little because it can use the other. What does small individual permutation importance not establish?

    Show answer and explanation
    1. That the predictors can be correlated
    2. That the measured perturbation changes the score little
    3. That their shared information has no predictive value
    4. That the fitted model can use substitute information

    Answer: That their shared information has no predictive value

    Importance depends on the fitted model, dependence, and perturbation scheme. Substitutable predictors can hide shared predictive value from one-at-a-time importance. It is not an unconditional measure of scientific or causal relevance.

  85. 85.A feature-importance routine independently permutes temperature and a deterministic unit conversion of temperature, creating impossible pairs. What interpretation problem follows?

    Show answer and explanation
    1. Only the original model’s fitted training loss is changed
    2. The perturbation evaluates inputs outside their valid joint support
    3. Independent permutations preserve every deterministic feature relationship
    4. Only harmless cancellation of two numerical units

    Answer: The perturbation evaluates inputs outside their valid joint support

    Perturbation meaning depends on which inputs can occur together. Breaking deterministic or strong constraints can produce unrealistic cases. Importance claims should describe the perturbation and its relation to the deployment distribution.

  86. 86.An evaluation audit permutes binary labels across independent cases. A pipeline still reports perfect held-out accuracy over many new permutations. What should be investigated first?

    Show answer and explanation
    1. A guarantee that stable generalizable signal exists in every new random labeling
    2. A label/information path or evaluation bug surviving the intended separation
    3. Only whether a perfect score meets a desired product target
    4. Only the number of decimal places used to display accuracy

    Answer: A label/information path or evaluation bug surviving the intended separation

    Under a genuinely label-independent separated evaluation, systematic perfect prediction across fresh random labelings is a strong diagnostic concern. Inspect target access, splits, alignment, state, and scoring. This is an audit signal, not proof of one specific bug or misconduct.

  87. 87.A negative-control run performs at chance after labels are shuffled. Does that one result prove the original pipeline has no leakage of any kind?

    Show answer and explanation
    1. Yes; chance performance proves prospective calibration
    2. Yes; every possible information path has been excluded
    3. No; the control can miss leakage paths not exposed by that perturbation
    4. No; negative controls cannot provide useful diagnostic evidence

    Answer: No; the control can miss leakage paths not exposed by that perturbation

    A control tests the failure modes its construction can expose. Passing it adds evidence but does not replace audits of availability, grouping, preprocessing, selection, and serving behavior. Diagnostic scope should match the claimed conclusion.

  88. 88.A study fixes one random seed and exactly reproduces its score. Does this establish that its train/test design matches deployment?

    Show answer and explanation
    1. Yes; a fixed seed prevents every information leak
    2. No; reproducible computations can never support useful evidence
    3. No; reproducibility does not validate the information and target boundaries
    4. Yes; a deterministic estimate is unbiased by definition

    Answer: No; reproducibility does not validate the information and target boundaries

    Repeatable computation can faithfully repeat a flawed evaluation. Design validity, model selection, target populations, timing, and label quality require their own evidence in addition to deterministic execution.

  89. 89.A model developer tries 50 random seeds and ships the one with the best final-test score, reporting it as an untouched test result. What choice used the test outcomes?

    Show answer and explanation
    1. Only the test file's serialization order
    2. Only a harmless reproducibility setting
    3. Nothing, because every seed uses the same hyperparameters
    4. Seed/model-instance selection

    Answer: Seed/model-instance selection

    Different seeds can produce different fitted models. Selecting a favorable instance by final-test score is another model-selection step, even with fixed named hyperparameters. An independent assessment should cover that selection procedure.

  90. 90.Training prevalence is 0.5 and deployment prevalence 0.1. Assume stable class-conditional features. A supplied prior-shift rule multiplies training posterior odds by (0.1/0.9)/(0.5/0.5). If a training posterior is 0.75, what adjusted probability follows?

    Show answer and explanation
    1. 0.25
    2. 1/3
    3. 0.1
    4. 0.75

    Answer: 0.25

    Training odds are 0.75/0.25=3. Multiplying by 1/9 gives adjusted odds 1/3, corresponding to probability (1/3)/(1+1/3)=1/4. This transport uses the stated class-conditional stability and prior-shift rule.

  91. 91.An external test is independent of training but drawn only from a specialized subpopulation. The intended deployment is broader. What does independence alone fail to establish?

    Show answer and explanation
    1. That outcomes can be measured in the specialized population
    2. That the external cases can be scored
    3. Representativeness/transport to the broader target
    4. That recorded external rows were excluded from training

    Answer: Representativeness/transport to the broader target

    External independence prevents one kind of reuse, but target relevance is a separate condition. Generalization needs appropriate population support, measurement compatibility, and justified transport assumptions or scope limits.

  92. 92.Fold A has positive score 0.9 and negative 0.8; fold B has positive 0.2 and negative 0.1. Each fold's AUC is 1. What pooled pair-order AUC follows across all four scores?

    Show answer and explanation
    1. 1
    2. 0.75
    3. 0.25
    4. 0.5

    Answer: 0.75

    The positive 0.9 outranks both negatives; positive 0.2 outranks only 0.1. Three of four cross-class pairs are correct. Fold-specific score scales can make pooled cross-fold ranking differ from the mean within-fold AUC.

  93. 93.A retrieval benchmark labels only documents found by an older search system. New-system results outside that judged pool are coded nonrelevant without review. What evaluation assumption is unestablished?

    Show answer and explanation
    1. That both systems return document IDs
    2. That unjudged retrieved documents are truly nonrelevant
    3. That relevance judgments can be numerically represented
    4. That the older judged labels exist

    Answer: That unjudged retrieved documents are truly nonrelevant

    Incomplete judgments can favor systems similar to the pool creator. Unknown relevance is not automatically negative relevance. Broader assessment, suitable sampling, or an explicitly limited benchmark interpretation is needed.

  94. 94.All cases have identical usable features, and the conditional label is independently positive with probability 0.6. Under 0–1 loss, what is the best achievable expected accuracy from those features alone?

    Show answer and explanation
    1. 0.6
    2. 0.5
    3. 1
    4. 0.4

    Answer: 0.6

    With no case-specific predictive information beyond the stated probability, always predicting positive gives accuracy 0.6. Randomizing cannot improve it under 0–1 loss. Irreducible outcome variation differs from a model implementation defect.

  95. 95.After predicting a held-out set, an analyst removes the 10% of cases with the largest realized errors and reports the remaining score as performance on all intended cases. What changed?

    Show answer and explanation
    1. The evaluation population was selected using its errors
    2. Only a label-free transformation of the training inputs
    3. A guarantee that large prediction errors identify invalid observations
    4. Only the already fitted model parameters

    Answer: The evaluation population was selected using its errors

    Outcome/error-based filtering can make the score optimistic for the original population. Exclusions need a justified prespecified target/data-quality rule; dropping difficult cases does not measure the same deployment risk.

  96. 96.Two groups have equal total accuracy. Their class prevalences differ, and no confusion matrices are reported. What does equal accuracy alone fail to establish?

    Show answer and explanation
    1. Equality of the observed total correct fractions
    2. Equality of their false-positive and false-negative rates
    3. The ability to count each group’s correct predictions
    4. The existence of an observed denominator for each group

    Answer: Equality of their false-positive and false-negative rates

    Accuracy combines different error types using class mixture. Equal totals can hide different conditional error rates. Group-specific assessment needs the relevant denominators, uncertainty, and intended criterion rather than one aggregate equality.

  97. 97.Half the test cases receive probability 0.25 and have positive fraction 0.5; the other half receive 0.75 and also have positive fraction 0.5. Mean probability and prevalence both equal 0.5. What calibration claim fails?

    Show answer and explanation
    1. The two stated score groups have different positive frequencies
    2. Agreement of overall means does not establish score-conditional calibration
    3. The model necessarily has perfect pairwise ranking
    4. Every score group is calibrated because overall means match

    Answer: Agreement of overall means does not establish score-conditional calibration

    At score 0.25, actual frequency is 0.5; at score 0.75 it is also 0.5. Over- and underprediction cancel in the grand mean. Calibration needs the relevant conditional relationship, not only calibration-in-the-large.

  98. 98.For one case, a model outputs 10th-percentile prediction 8 and 90th-percentile prediction 4. What consistency problem exists?

    Show answer and explanation
    1. Any two numeric outputs are valid ordered quantiles
    2. The predictions must both equal the mean
    3. The reported quantiles cross their required order
    4. Only the outcome's printed unit changes

    Answer: The reported quantiles cross their required order

    A distribution's quantile function is nondecreasing in its probability level under the usual definition. A lower-level quantile above a higher-level one is an internally inconsistent joint prediction. Separate models/metrics should be checked for such coherence.

  99. 99.A classifier outputs maximum softmax score 0.99 on inputs far outside its evaluated domain. A report treats 0.99 as a proven probability of correctness there. What is unestablished?

    Show answer and explanation
    1. Calibration and validity of that confidence interpretation in the new domain
    2. The possibility that normalized class scores sum to one
    3. The numerical maximum of the returned scores
    4. The existence of unfamiliar inputs outside the evaluated domain

    Answer: Calibration and validity of that confidence interpretation in the new domain

    A normalized model score is not automatically a calibrated correctness probability under arbitrary input shifts. Validation needs support for the domain and probability interpretation. High confidence alone does not establish reliable extrapolation.

  100. 100.A reproducibility bundle stores the model file and seed but omits feature code, class mapping, label rules, and dataset/split versions. What can remain unreproducible?

    Show answer and explanation
    1. The recorded numeric seed value
    2. The actual evaluated prediction/label pipeline and target
    3. The exact model bytes already stored in the bundle
    4. Nothing, because model bytes determine every dataset and label definition

    Answer: The actual evaluated prediction/label pipeline and target

    A model artifact is only one component. Reproducing the assessment requires the relevant data identities, transformations, labels, schemas, split and scoring rules, configuration, and versions. These also help audit leakage and serving parity.

  101. 101.A model is fitted at time 100. Every training row needs features and final labels available by then. Row A has feature availability 90 and label availability 99; B has 101 and 95; C has 95 and 102. Which row satisfies both availability conditions?

    Show answer and explanation
    1. A only
    2. All three
    3. A and B
    4. A and C

    Answer: A only

    A has both components available by 100. B's features arrive afterward, and C's label arrives afterward. Earlier business timestamps alone cannot replace the actual availability conditions for fitting this model.