Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

about standard deviation in ttest

Status
Not open for further replies.

mapi

Mechanical
Joined
Jan 30, 2007
Messages
53
Location
US
Hi,

I have a question about the calculation of standard deviation in ttest. From matlab help, ttest uses the sample
standard deviation which is the total squared error divided by (n-1).

From wiki, it says the grand standard deviation of sample is used (divided by n or n-1?). Are the two the same?

Thanks,

Mapi
 
Well, for a large population, it doesn't matter much, does it?

For small populations, the correct answer is n-1, since that's the degrees of freedom in the data.

But, basically, if you have more than 10 samples, the difference is pretty small compared to all the potential error sources, including the standard deviation of the mean.

TTFN

FAQ731-376
 
Thanks.

Just because my sample size is less than 5, I have to be very careful about it.

mapi
 
for 5, I would go with n-1, but the variance of the mean will be commensurate, so the standard deviation is going to be pretty rough, no matter what.

TTFN

FAQ731-376
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top