A First Principles Theory of Generalization - KDnuggets