Discovery of statistical equivalence classes using computer algebra