Pātuhitia tēnei: Large deviations and the malliavin calculus