Performed on a set of non-negative numbers and labels of size N. There must be two specific labels. Label 1 must be 1 and label 2 must be 2. There can also be any other labels that will be ignored.
Permutation T value
Find the number and sum of each group.
Na: number of values in group 1
Nb: number of values in group 2
Sa:
Sb:
SSa:
SSb:
Compute the sample mean of each group.
Ma:
Mb:
Compute the variance for each group.
Estimate the variance
varA:
varB:
Var:
Estimate the standard deviation (stDev):
t:
Permutation T probability
=
randomly regrouping samples, the size in each group stays the same as the original total number of regrouping = =