trivial_error_rate: Calculate the trivial error rate
Description
Simply predicting the most common class for all test set observations can be
a decievingly successful strategy in terms of error rate. This function shows
what error rate such a strategy would result in.
Usage
trivial_error_rate(truth)