Posterior Variance Analysis of Gaussian Processes with Application to Average Learning Curves