Should one be able to find out the degrees of freedom of a given statistic?
I liked this answer regarding degrees of freedom and I tried to apply it. Some examples:
$(Z = )\frac{\bar X-\mu}{\sigma/\sqrt{n}} = 10$. As $n$ is fixed, $\mu,\sigma,n$ are constants. It would finally turn into $X_1+...+X_n=constant$ and if we fixed $X_1,...,X_{n-1}$, then $X_n$ is fully determined and not free to vary. So, $df=n-1$.
$(T=)\frac{\bar X-\mu}{s/\sqrt{n}} = 0$. As $n$ is fixed, $\mu, n$ are constants. Let's say we fix $X_1,...,X_{n-1}$ such that $X_1+...+X_{n-1}=30$, and let's say $n=10, \mu=1$. I turn out that again $X_n$ is fully determined (Consider $a=X_n$: calculus. So: $X_n=-20$). So, again $df=n-1$.
First question: Am I right?
Second question: Isn't all the time the same? I mean when we have only one statistic the number of degrees may be at most decreased by 1, no? How come in t-test for mean difference $df=n_1+n_2-2$? Is it possible to have just one equation and think of decreasing the freedom by $2$?