From: Anton on
Hello all,

I had the task of doing some basic statistical analysis using ttest2. I happened to remember that the "default" or original t-test assumes equal variance - http://en.wikipedia.org/wiki/Student's_t-test#Unequal_sample_sizes.2C_equal_variance

And in case it's unknown if the variance is equal or unequal, it must be adapted slightly - http://en.wikipedia.org/wiki/Welch's_t_test

My question is, does ttest2 make the assumption of equal variance? If so, is there a function that implements Welch's version?

Thank you for the help
-Anton
From: Anton on

Anyone?
From: per isakson on
"Anton " <aorliche(a)gmail.com> wrote in message <i0tbgj$1sk$1(a)fred.mathworks.com>...
>
> Anyone?

Did you check the Matlab documentation?

File Exchange includes "Wtest by Antonio Trujillo-Ortiz"

/ per
From: Anton on
Ack my mistake, didn't see the 'unequal' option. Thank you!