For the PCA lab, the last piece of code (below). It says this is the original data and the projection using axes as principal components. Shouldn’t it be the projection on the original axes? If we want to the projection on principal components, shouldn’t we be using plt.scatter(dataPCA[:, 0], np.zeros(nPoints))
instead?
===========
nPoints = len(data)
plt.scatter(data[:,0], data[:,1])
#Plot the projection along the first component in orange
plt.scatter(data[:,0], np.zeros(nPoints))
#Plot the projection along the second component in green
plt.scatter(np.zeros(nPoints), data[:,1])
plt.show()