Inferring Unfairness and Error from Population Statistics in Binary and Multiclass Classification