RF: Reworked statistics

The new ttest() function also supports groupby splitting of the input data.