A Generative Framework for Personalized Learning and Estimation: Theory, Algorithms, and Privacy