FunctionRacerProblemsRace

Z-Scores

EasyNumPyPython

The z-score of a number says how many standard deviations it is above the mean: (x - mean) / std, using the population standard deviation (np.std). Return an array with the z-score of every number.

Example 1

nums [1,3]
returns [-1.0,1.0]

The mean is 2 and the standard deviation is 1, so the z-scores are -1 and 1.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More NumPy problems