Hypothesis testing: differences between groups expressed by (dis)similarity