Standard Deviation comparison between 2 dataset

7 次查看(过去 30 天)
Hello,
I would like to ask if there is any funtion in matlab that support to do comparasion between 2 standard deviation from 2 data like in Minitab. The only one i can find is Vartest2, but it compare Variance instead of Standard deviation.
Thank you all.
  2 个评论
Mathieu NOE
Mathieu NOE 2022-4-15
hello
as far as I can remember variance is the squared value of SD. so if you have a solution that works for V you have a solution for SD
Truong Dinh
Truong Dinh 2022-4-27
the final result maybe the same ( reject or not reject) but the P-value is different. I try to do something that similar with minitab function.

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2022-4-15
Maybe you want the ttest() to do a T-test, or anova() to do the "F statistic" test.
  1 个评论
Truong Dinh
Truong Dinh 2022-4-27
sorry for late comment, ttest2 is comparing the different bettwen the mean of 2 sample. However i want to compare the different between the Standard Deviation of 2 sample and i want to compare with Mintab result. F statistis test is not using Bonett test and it cannot test Significant Different of 2 sample. I try to write the function in Matlab using Minitab Formular, however it was not return the same value.
nx= numel(X);
ny= numel(Y);
sx = std(X);
sy= std(Y);
gx = (nx-3)/nx;
gy =(ny-3)/ny;
mx = mean(X) /(2*sqrt(nx-4));
my =mean(Y) /(2*sqrt(ny-4));
cx = nx/(nx-z);
cy = ny/(ny-z);
C =cx/cy;
gamma_p =(nx+ny)*(sum((X-mx).^4) + sum((Y-my).^4)) / (((nx-1)*(sx^2)+(ny-1)*(sy^2))^2);
se = sqrt(((gamma_p- gx)/(nx-1))+((gamma_p- gy)/(ny-1)));
%% estimate z
Z_est =log(C*(sx^2/sy^2))/se;
P = normcdf(Z_est);

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Descriptive Statistics and Visualization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by