Hi,
I would like to compare two sets of data using t-Student test in MATLAB environment.
The data are the values of parameter X calculated for n=88 pairs of signals where each pair contains the signals modified by two processing methods: Y1 and Y2.
There are very small difference of mean value of X parameter between these two processing methods (0.480(0.053) for Y1 and 0.478(0.053) for Y2, see figure below).
The question is: which MATLAB function I should use to obtain the correct p-value?
According to the documentation of ttest (https://www.mathworks.com/help/stats/ttest.html) and ttest2 (https://www.mathworks.com/help/stats/ttest2.html) I think I should use the first one, because it "returns a test decision for the null hypothesis that the data in x – y comes from a normal distribution with mean equal to zero and unknown variance, using the paired-sample t-test ", while the second function "returns a test decision for the null hypothesis that the data in vectors x and y comes from independent random samples from normal distributions ".
But using ttest function I obtain very small p-value (p