Skip to content

FRM Part I · FRM Exam Part I · Machine-Learning Methods

A data scientist standardizes a feature using the training set, which has a mean of 40 and a standard deviation of 8. A test observation has a value of 56. What standardized value should be used for this test observation?

The standardized value is 2.0. Subtract the training mean of 40 from 56 to get 16, then divide by the training standard deviation of 8. Test data must be scaled using training-set statistics so that no information from the test set leaks into the model.

  1. A2.0Correct
  2. B7.0
  3. C1.6
  4. D0.2

Explanation

The test observation must be standardized with the training mean and standard deviation: (56 - 40) / 8 = 2.0. Using 56/8 = 7.0 ignores the mean. Dividing 16 by 10 would give 1.6, which uses an incorrect divisor. Dividing by 40 gives 0.4 rather than 0.2, so 0.2 is also wrong.

Did you get it right without looking?

One question tells you little. A timed set on Machine-Learning Methods shows your real accuracy, how long you take and where you lose marks.

More Machine-Learning Methods questions