Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Confidence interval calculation (for multcompare)
Replies: 5   Last Post: Jun 25, 2013 8:19 PM

 Messages: [ Previous | Next ]
 Russell Posts: 1 Registered: 4/18/13
Confidence interval calculation (for multcompare)
Posted: Apr 18, 2013 4:27 PM

In statistics, usually confidence intervals are calculated by the standard deviation over the sample size. However, in the multiple comparison, regardless of what the standard deviation is for each of the individual groups, the confidence intervals are always the same. I give an example code down below:

A = [1 5 3;1.1 500 4; 1.08, 10000, 3;0.95, 274, 6; 0.99, 2457, 5; 1.05, 54, 5; 1.02, 326, 4]
[p6,anovatab6,stat6] = anova1(A);
multcompare(stat6,'alpha',0.05);

The confidence intervals displayed in this multcompare figure should be as a function of the standard deviation in each of the groups, but it appears that they follow the standard deviation of the whole.

In other words the confidence intervals are not a reflection of these values for each of the groups

std(A)

but seem to be calculated from the entire population...

My question is, how and why are the confidence intervals in the multcompare function in matlab calculated?

Russell

Date Subject Author
4/18/13 Russell
4/18/13 Tyler
4/18/13 Tyler
4/19/13 Tom Lane
6/25/13 Chen Xing
6/25/13 Jeff Miller