Session Ready
Exercise

Get the components

The fitted model from last exercise is in the object fit_with_covariance. The aim here is to extract the means and the covariance matrices for both clusters.

Instructions
100 XP
  • Use the function parameters() with the corresponding component number to extract the means and the covariance matrices for each cluster. Save the results into the objects comp_number.
  • The first two values of comp_number correspond to the mean. Save them into the objects mean_comp_number.
  • The last four values of comp_number correspond to the covariance matrix. Save these values into a 2x2 matrices.