Why does numpy std() give a different result to matlab std()?
Asked 07 September, 2021
Viewed 627 times
  • 66
Votes

I try to convert matlab code to numpy and figured out that numpy has a different result with the std function.

in matlab

std([1,3,4,6])
ans =  2.0817

in numpy

np.std([1,3,4,6])
1.8027756377319946

Is this normal? And how should I handle this?

3 Answer