Pattern analysis as simultaneous statistical inference.