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
- Calculate all three z-scores.
- Explain the center value.
- 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.