フィルターのクリア

Calculate 2 standard deviations

34 ビュー (過去 30 日間)
Chris
Chris 2011 年 8 月 28 日
コメント済み: Thomas To 2020 年 1 月 20 日
I am trying to calculate +/- two standard deviations from the mean of a bunch of values. I am not sure if I am using the standard deviation function properly. Would I just multiply by two to get 2 standard deviations?
dmean = mean(values(:,1)); upperstd = dmean+2*std(values(:,1)); lowerstd = dmean-2*std(values(:,1));

採用された回答

Wayne King
Wayne King 2011 年 8 月 28 日
Hi Chris, for a matrix of data
x = randn(10,4);
mean(x)+2*std(x)
mean(x)-2*std(x)
gives the sample means of the columns plus/minus 2 times the standard deviation. The question is whether you really want the sample standard deviation here, or the standard error of the mean.
Wayne
  2 件のコメント
jay yawson
jay yawson 2019 年 6 月 17 日
Hello Wayne King. In this case, how would you calculate the standard error of the mean?
Thomas To
Thomas To 2020 年 1 月 20 日
Jay, the standard error is calculated by taking the standard deviation and dividing it by the square root of N-th samples used to calculate the standard deviation.

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

その他の回答 (1 件)

bym
bym 2011 年 8 月 28 日
that is correct

カテゴリ

Help Center および File ExchangeSignal Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by