P60NumPyBeginnerCalculate6 min

Calculate a Standardized Feature Vector by Hand

Compute z-scores for a small feature vector and connect them to vectorized standardization.

#numpy#arrays#standardization

Scenario

A feature vector is [2, 4, 6]. Its mean is 4 and population standard deviation is sqrt(8) ≈ 2.828.

Problem statement

Calculate (x - mean) / standard deviation for each value.

Your Task

  1. Calculate all three z-scores.
  2. Explain the center value.
  3. Show vectorized NumPy form.

Related Concepts

Z-scoresNumPyFeature scaling

Ready to count this problem?

Mark it complete when you have reasoned through the solution in your own words.