I have an Output sample for electronic components and I would like to know the p-value for robust my system is. Ideally, I would like to get a p-value (P<0.05) to prove that my system can constantly produce the same results. Noting, my data samples are small.
My Output:
sample=[2.180213,2.178298 ,2.310851 ,2.114255 ,3.012553 ,2.69234 ,2.079787];
I tried using :
[h,p] = chi2gof(sample,'CDF',pd)
[h,p,ci,stats] = ttest(x)
[h,p,stats] = fishertest(x)
[h,p,ksstat,cv] = kstest(___)
I am lost! what kind of test do I perform on MATLAB to truly test how close my outputs are from each other and how consistent my system output is (using p-value)?
Edit: I tried this:
sample=[2.180213,2.178298 ,2.310851 ,2.114255 ,3.012553 ,2.69234 ,2.079787];
n = numel(sample);
xobs = mean(sample); % Sample mean
s = std(sample); % Sample standard deviation
[h,p] = ttest(sample,xobs)
The result is:
h =
0
p =
1
My numbers are kind of close to each other but the results do not make sense. h = 0 means that the mean is true and not rejected, but the p-value is 1! Why is it high!