statistical t test to compare two groups

  • Follow


Hello 

I have a basic statistic question.

I have two sets of dataset. I would like to test where the mean of the first group is significantly larger than the other group.

I am wondering whether there is direct test or not.

What I thought is that 

1) do the t-test to compare the mean of these two group is significantly different or not.

2) if it is, compare the mean of those two group.

My question is that 
is there any direct way to compare the first mean is significantly larger than the second without this two steps? for example. H0 : Mean(group1) > Mean(group2)

It will be really helpful.

THanks.
0
Reply uny 5/11/2010 9:01:08 PM

take a look to ANOVA

"uny gg" <illinois.ks@gmail.com> wrote in message <hscgij$ks4$1@fred.mathworks.com>...
> Hello 
> 
> I have a basic statistic question.
> 
> I have two sets of dataset. I would like to test where the mean of the first group is significantly larger than the other group.
> 
> I am wondering whether there is direct test or not.
> 
> What I thought is that 
> 
> 1) do the t-test to compare the mean of these two group is significantly different or not.
> 
> 2) if it is, compare the mean of those two group.
> 
> My question is that 
> is there any direct way to compare the first mean is significantly larger than the second without this two steps? for example. H0 : Mean(group1) > Mean(group2)
> 
> It will be really helpful.
> 
> THanks.
0
Reply Rogelio 5/11/2010 9:10:07 PM


On 5/11/2010 5:01 PM, uny gg wrote:

> I have two sets of dataset. I would like to test where the mean of the
> first group is significantly larger than the other group.
>
> I am wondering whether there is direct test or not.

If you have the Statistics Toolbox,

 >> help ttest2
  TTEST2 Two-sample t-test with pooled or unpooled variance estimate.
[snip]
     H = TTEST2(X,Y,ALPHA,TAIL) performs the test against the alternative
     hypothesis specified by TAIL:
         'both'  -- "means are not equal" (two-tailed test)
         'right' -- "mean of X is greater than mean of Y" (right-tailed 
test)
         'left'  -- "mean of X is less than mean of Y" (left-tailed test)
     TAIL must be a single string.

0
Reply Peter 5/12/2010 2:21:14 PM

2 Replies
543 Views

(page loaded in 0.021 seconds)

Similiar Articles:













7/25/2012 6:23:59 PM


Reply: