Population Matching Discrepancy and Applications in Deep Learning