According to this blog/article:
To calculate degrees of freedom for a 2-sample t-test, use N – 2 because there are now two parameters to estimate.
What parameters are they talking about? 2 means: for group 1 and mean for group 2? Or something other?
According to this blog/article:
To calculate degrees of freedom for a 2-sample t-test, use N – 2 because there are now two parameters to estimate.
What parameters are they talking about? 2 means: for group 1 and mean for group 2? Or something other?
The "classical" $t$-test is used to test the hypothesis, whether the two samples come from the gaussian distributions with the same mean, assuming that the variances are identical (!). Under this hypothesis, the $t$-value follows a $t$-distribution with N-2 degrees of freedom. And the 2 parameters to estimate are:
If the two variances are not assumed to be the same, everything is more complicated. The $t$-value no longer follows a $t$-distribution. The alternative calculation procedure for this case is called the Welch procedure.