t test for two samples with different sizes
119 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
joseph Frank
el 9 de Jul. de 2011
Comentada: the cyclist
el 28 de Abr. de 2020
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
0 comentarios
Respuesta aceptada
the cyclist
el 10 de Jul. de 2011
>> ttest2(x,y)
where "x" and "y" are the vectors of your two samples.
2 comentarios
Shafa-At Sheikh
el 27 de Abr. de 2020
As per notes, x and y comes from independent random samples from normal distributions with equal means and equal but unknown variances. What about the case, once the variances are unequal?
Is this function also checking the variances before calculating the significance?
the cyclist
el 28 de Abr. de 2020
The documentation does state that the simplest syntax assumes equal variances. But if you read a bit further in the description, you will see that there is a calling syntax for unequal variances.
Más respuestas (0)
Ver también
Categorías
Más información sobre Hypothesis Tests en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!