The Math Forum

Search All of the Math Forum:

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

Math Forum » Discussions » Software » comp.soft-sys.matlab

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

Topic: statistical t test to compare two groups
Replies: 2   Last Post: May 12, 2010 10:21 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Peter Perkins

Posts: 739
Registered: 3/2/09
Re: statistical t test to compare two groups
Posted: May 12, 2010 10:21 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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.
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
'left' -- "mean of X is less than mean of Y" (left-tailed test)
TAIL must be a single string.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.