Statistics - Python PDF
Statistics - Python PDF
matplotlib, scikit-learn,pandas, …
% Variance
>> var_value = var(wages)
Ref: https://de.mathworks.com/help/stats/pca.html
https://stackoverflow.com/questions/35651133/matlab-and-python-
produces-different-results-for-pca
Ø Hint:
- Use matplotlib.mlab.PCA
- Imported as given below:
from matplotlib.mlab import PCA
- Dataset: edtd.nii
- Ref:
http://matplotlib.org/api/mlab_api.html#matplotlib.mlab.PCA
Member of the Helmholtz Association
http://nipy.org/nibabel/nibabel_images.html
Jupyter Notebook
Ø Hint:
- Use sklearn.decomposition.PCA
- Imported as given below:
from sklearn.decomposition import PCA
- Dataset: edtd.nii
- Ref:
http://scikitlearn.org/stable/modules/generated/sklearn.dec
omposition.PCA.html
Member of the Helmholtz Association
http://nipy.org/nibabel/nibabel_images.html