A probabilistic association measure for pattern recognition