Asymptotic Optimism of Random-Design Linear and Kernel Regression Models