t test for two samples with different sizes

73 ビュー (過去 30 日間)
joseph Frank
joseph Frank 2011 年 7 月 9 日
コメント済み: the cyclist 2024 年 8 月 28 日
Hi,
Which function should i use if I want to test whether two samples with different sizes have different means? I see many ttest functions in matlab

採用された回答

the cyclist
the cyclist 2011 年 7 月 10 日
>> ttest2(x,y)
where "x" and "y" are the vectors of your two samples.
  5 件のコメント
Jules
Jules 2024 年 8 月 27 日
if you see this, i am trying t do a t-test with two sets of unequal size. i do not care about the size difference, is there anyway to bypass this - other than doing it manually ?
the cyclist
the cyclist 2024 年 8 月 28 日
Yes, still dedicated.
I'm unsure of what you mean, specifically I am not sure what you are trying to "bypass".
When you say "size", I assume you referring to the number of observations in each sample. ttest2 doesn't require equal-sized samples. (If you input two samples into ttest, it will do a pairwise test, and will require equal-sized samples.)
What specifically are you testing for, between the two samples? Whether or not they have different means? Or something else?
A careful reading of the documentation should answer your question.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHypothesis Tests についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by