Rates of convergence of variational calculations and of expectation values