How to find t test of two independent samples in MatLab?
33 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gargi
am 23 Jun. 2015
Kommentiert: Star Strider
am 24 Jun. 2015
I have two independent samples of data with different n's (i.e number of data). The file is attached with this. I want to calculate t test of both the samples. Kindly, help me regarding this.
1 Kommentar
Salaheddin Hosseinzadeh
am 23 Jun. 2015
I don't undertand what the question is at all.
Please explain more
Akzeptierte Antwort
Udit Gupta
am 23 Jun. 2015
Use the function ttest2 from matlab statistics toolbox.
(<http://www.mathworks.com/help/stats/ttest2.html>)
0 Kommentare
Weitere Antworten (1)
Star Strider
am 23 Jun. 2015
That depends on your experimental design. If you have an unpaired design (intervention on one group and not on another) use ttest2. If you have a paired design (before an after an intervention on the same group), use ttest.
Of course this requires that your data are normally distributed and meet the other assumptions of the t-test for both groups. If they do not, or you do not know the distribution, use the ranksum and signrank tests, respectively for unpaired or paired data.
2 Kommentare
Star Strider
am 24 Jun. 2015
My pleasure, although I would have appreciated your having Accepted my Answer if it solved your problem.
Siehe auch
Kategorien
Mehr zu Hypothesis Tests finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!