Pātuhitia tēnei: The EM algorithm and extensions