Qualified Prediction for Large Data Sets in the Case of Pattern Recognition