Statistical Foundations of Medical AI: Generalized Linear Model