std does not give good values?

Hello everybody,
For this matrix
M = [1 2; 3 4];
if we compute the its standard deviation
std(M(:))
then we obtain 1.2910, while by definition, it should be 1.1180. Why is there such a difference?
Thank you for your help.

 採用された回答

Roger Stafford
Roger Stafford 2013 年 11 月 14 日
編集済み: Roger Stafford 2013 年 11 月 14 日

1 投票

The 1.2910 value is the unbiased standard deviation which is default while the 1.1118 value is the second moment. Read the documentation for 'std' at:
http://www.mathworks.com/help/matlab/ref/std.html

1 件のコメント

f10w
f10w 2013 年 11 月 28 日
Thanks, Roger.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeProbability Distributions and Hypothesis Tests についてさらに検索

タグ

質問済み:

2013 年 11 月 14 日

コメント済み:

2013 年 11 月 28 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by