Data Science, Python, Machine Learning, Dimensionality Reduction.
assumes the data is normally distributed, while also being sensitive to the variance of each variable. pca = PCA(n_components = 2) components = pca.fit_transform(X) explained_var = pca.explained_variance_ratio_ print(f'''The explained variance of PC1 is {explained_var[0]:.2%} The explained variance