Functional calculus and asymptotic theory for statistical analysis