Session Ready
Exercise

Maximization function

We saw that the EM algorithm is an iterative method between two steps: the expectation and the maximization. In the last exercise, you created the expectation function. Now, create the maximization function which takes the data frame with the probabilities and outputs the estimations of the means and proportions.

Instructions
100 XP

Create the function maximization by completing the sample code.