Ttest2 on 2 matrices - does it operate on columns sequentially?

Hi , I am getting myself confused about what type of Matlab function I need to use to effectively TTest two matrices one of size 3390 x 90 and the second 2160x 90 . The columns are identical in both, just the rows vary in length
I want to T Test Col 1 of the first matrix with Col 1 of second matrix , Col 2 with Col 2 and so on up to Col 90 .
If I run something like;
ttest2(matrix 1,matrix 2 ,'Alpha',0.01)
The result displays 90 columns with a 1 for significant and 0 for Null is true but is it actually comparing col 1 with col 1 etc between the matrices ?
Anyone know this?

 採用された回答

Brendan Hamm
Brendan Hamm 2015 年 7 月 30 日

0 投票

You are correct. The columns of matrix1 are compared with the corresponding columns of matrix2. A value of 1 is indicative of a rejection of the Null in favor of the alternative hypothesis and a value of 0 is indicative of a failure to reject the null hypothesis. In this case the Null is that the corresponding columns are samples from normal distributions with equal means and equal (but unknown) variances.

1 件のコメント

AndyT
AndyT 2015 年 7 月 30 日
Many thanks Brendan , always helps to be sure.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品

質問済み:

2015 年 7 月 30 日

コメント済み:

2015 年 7 月 30 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by