平均和标准偏差

버전1.10.0.0(1.53 kb)작성자: r p
计算合并的N,平均值和STD(用作输入,亚组N,平均值和STD)

다운로드:922

업데이트::2014/8/12

라이선스보기

计算两组的n,n,均值和std的汇总n,平均值和std
(要将其计算为N组(n> 2),请重复N-1次)
[npool,ashpool,stdpool] = poolmedmeanstd(n1,ey1,std1,n2,necy2,std2)

基于http://www.talkstats.com/showthread.php/7130-standard-deviation-of-multiple-sample-sets

例子:

N1 = 32;
sample1 = randi(100,n1,1);
平均值=平均值(sample1);
std1 = std(sample1);
N2 = 20;
sample2 = randi(100,n2,1);
平均值=平均值(sample2);
std2 = std(sample2);
N3 = 9;
sample3 = randi(100,n3,1);
平均值3 =平均值(sample3);
std3 = std(sample3);
pool_sample = [sample1; Sample2; Sample3];
shinpool_real = mean(pool_sample);
stdpool_real = std(pool_sample);

[npooltemp,shypooltemp,stdpooltemp] = pooledMeanstD(n1,ey1,std1,n2,n2,phy2,std2);
[npool_estimated,sunpool_estimated,stdpool_estimated] = poolMeAnstd(npooltemp,nypooltemp,standpooltemp,stdpooltemp,n3,nee3,std3);

disp(['nypool_real =',num2str(numpool_real),'sunpool_estimated =',num2str(numpool_estimated)])
disp(['stdpool_real =',num2str(stdpool_real),'stdpool_estimated =',num2str(stdpool_estimated)])

인용양식

R P(2022)。平均和标准偏差(//www.tianjin-qmedu.com/matlabcentral/fileexchange/37233-pooled-mean-mean-and-andard-deviation),matlab中央文件交换。검색됨

matlab릴리스호환정보
개발:R13
모든릴리스와호환
플랫폼호환성
视窗 苹果系统 Linux

社区寻宝

在Matlab Central中找到宝藏,发现社区如何为您提供帮助!

开始狩猎!