Applications of asymptotic expansions to some statistical problems