One thing I love about #teaching is that you always #learn new things, even when giving a lecture about stuff that you know (or you think you do) very well.
Today a student asked why we should use Student's #t-test at all when comparing samples with equal variances if you can use Welch's variant, which works with unequal variances... that is, why bother checking equality of variances?
Indeed, in the case of equal variances the calculated t statistics would be the same!
This led to a great discussion involving 3 instructors, a bunch of students, and a few simulations in #Rstats which I really enjoyed!
The answer is that Welch's variation also changes how degrees of freedom are calculated, so no they are not equal!
Also, the current recommendation is NOT to check for variance equality (e.g. using Levene's test) as this paper clearly points out, lest you want to increase your Type I error!
https://bpspsychub.onlinelibrary.wiley.com/doi/pdf/10.1348/000711004849222
Gotta go change some slides...
@david_colquhoun Yes, agreed, and indeed in the same course we speak a lot about randomisation tests, bootstrapping etc. However, given how pervasively the t test is used in biology, it's important that students know of it's existence, at they'll come across it when reading the literature