Std in matlab different from stdevp in excel
Mostrar comentarios más antiguos
I have an array of prices i calculated the standard deviation and the mean in matlab but the results are very different from what i calculated using excel. any reason why this is the case?
1 comentario
DGM
el 25 de Jul. de 2022
Hi,
Today while submitting a last minute paper, I found out that discrepancy.
Respuesta aceptada
Más respuestas (1)
Daniel Shub
el 15 de Nov. de 2011
2 votos
There are two ways to calculate the standard deviation. In Excel these are stdev and stdevp. In MATLAB they are std(x) and std(x, 1). The difference is the normalization factor (N or N-1). Look in the documentation of each to figure out which does which.
Categorías
Más información sobre Data Import from MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!