Std in matlab different from stdevp in excel
이전 댓글 표시
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
DGM
2022년 7월 25일
Hi,
Today while submitting a last minute paper, I found out that discrepancy.
채택된 답변
추가 답변 (1개)
Daniel Shub
2011년 11월 15일
2 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!