This is a questions I got for homework in test planning and variance analysis. I apologize in advance for the way my professor phrases things :D I would love to hear hints or tips on how to approach this. So here goes:
A statistician decides to perform the next a-parametric test to examine the $H_0$ of variance Analysis. First he will calculate the test statistic in the following way: Calculating the ranks of all observations with no affiliation to a group, and calculating F statistics of the anova test on the ranks instead of on the observations. Then, he will calculate the p-value using a permutation test, since under $H_0$ there is the same chance for all the permutations of ranks when dividing into groups.
What is the SST calculated on the ranks of observations? Show that the SST does not depend on the observations, only on the number of observations.
Prove that the p-value of this test will be equal to the p-value that is calculated with permutation on the Kruskal-Wallis test statistic. Clue: Show that the test statistic of Kuskal-wallis is SSB/(SST/N-1) when SSB and SST are calculated on the ranks of observation and N is the total number of observations.
This is what I've got for (1). Not sure about it but it makes sense to me.. What I don't get is how to show that SST does not depend on the observations, because obviously we need them in order to calculate the SST.
$k$ - number of groups
$n_i$ - number of observations in group $i$
$\bar{d}$ - mean of ranks of all groups
$\bar{d}_i$ - mean of ranks in group $i$
$$\operatorname{SSB} = \sum_{i=1}^k n_i(\bar{d}_i-\bar{d})^2$$
$$\operatorname{SSW} = \sum_{i=1}^k \sum_{j=1}^{n_i} (d_{ij}-\bar{d}_i)^2$$
$$\operatorname{SST} = \sum_{i=1}^k \sum_{j=1}^{n_i} (d_{ij}-\bar{d})^2$$
And actually when I think about it, I'm not so sure what is difference between the test that is described in this question and Kruskal Wallis.