Pattern Fitting With Confidence