I'm currently doing one of my 1st Coursera courses on Data Science (K-Means). I'm doing fine with almost everything but got stuck on a simple task. Plotting two ellipses on my "clusters" to highlight the distance of the "centroids" to it's STDs.
Must be something foolish but I browsed Google and the course itself and got no luck.
The code (pretty amateur I know) and plot it generates are bellow.
plt.figure(figsize=(8, 8))
plt.title('Cluster Segregtion')
plt.scatter(c0['V1n'], c0['V2n'], color = 'blue', s = 30 , alpha = 0.5)
plt.scatter(c1['V1n'], c1['V2n'], color = 'red', s = 30 , alpha = 0.5)
plt.scatter(clusters[:,0], clusters[:,1], color = 'orange', s = 40000, alpha = 0.3)
Can someone give me a hand with a simple ellipse code?
Best regards FC