Statistics for Cosmological perturbation theory and the variational principle in gravitation