Management & CommerceHardMBA Placement · Data Analyst

An analyst standardises every feature using the mean and SD of the full dataset and then runs 5-fold cross-validation, getting 92% accuracy. What is the problem and the fix?

  1. A. None; scaling never changes a model's accuracy
  2. B. Test folds leaked into scaling; fit it inside each fold
  3. C. Five folds are too few; switch to leave-one-out
  4. D. Scaling must follow training; rescale predictions

Correct answer: B. Test folds leaked into scaling; fit it inside each fold

Statistics of the held-out folds shaped the transformation, so the CV score is optimistic (data leakage). Put the scaler in a pipeline fitted on each training fold only, then apply it to that fold's test data.

More Operations, Supply Chain & Business Analytics questions

Exams that ask this topic