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?
- A. None; scaling never changes a model's accuracy
- B. Test folds leaked into scaling; fit it inside each fold
- C. Five folds are too few; switch to leave-one-out
- 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.
Practise more Operations, Supply Chain & Business Analytics questionsOperations, Supply Chain & Business Analytics: notes and key points
More Operations, Supply Chain & Business Analytics questions
- In Kendall's notation, what does an M/D/2/10 queue describe?
- A naive Bayes churn model uses a prior churn rate of 20%. P(complaint | churn) = 0.6, P(complaint | stay) = 0.1; P(low usage | churn) =…
- A regression gives Sales = 50 + 2·Ad + 10·Urban + 1.5·(Ad × Urban), where Urban = 1 for urban stores and 0 otherwise. What is the effect…
- A telecaller converts each call independently with probability 0.15. What is the expected number of calls up to and including the first…
- Raw quarterly seasonal indices from ratio-to-moving-average are Q1 1.30, Q2 0.90, Q3 0.80, Q4 1.20. They must be normalised to average 1…
- A1:A10 hold delivery times 12, 15, 18, 20, 22, 25, 30, 34, 40 and 50 minutes. What do =PERCENTILE.INC(A1:A10, 0.9) and…