Purpose
This app is capable of finding the sparse principal components for optimally reconstructing data.
Features include:
- Support both Sparse PCA and Mini-Batch Sparse PCA.
- Group support in Transformed Data Plot and Biplot.
- Confidence ellipse in Transformed Data Plot and Biplot.
- 3D plot support for Component Plot, Transformed Data Plot and Biplot.
- Outlier detection in Transformed Data Plot and Biplot.
Installation
Download the file "Sparse Principal Components Analysis.opx", and then drag-and-drop onto the Origin workspace. An icon will appear in the Apps gallery window.
NOTE: This tool requires OriginPro.
Operation
Activate a worksheet with data selected,
- Click the Sparse Principal Components Analysis icon in the Apps Gallery window to open the dialog.
- In the Input tab, choose data in the worksheet for Input Data, where each column represents a variable.
You can also choose a column for Observations, which can be used for labels in Transformed Data Plot and Biplot.
Group can be used to divide observations in Transformed Data Plot and Biplot.
- In the Settings tab, Mini Batch option determines whether to perform Mini-Batch Sparse PCA or not. 
Number of Components to Extract is used to control output of components, transformed data and their plots.
Please refer to SparsePCA and MiniBatchSparsePCA for more details.
- In Quantities to Compute tab, check options to control which results to output in Report Data sheet.
- In Plots tab, specify whether to create Error Plot (for Mini Batch is not checked), Component Plot, Transformed Data Plot and Biplot.
All except Error Plot support 2D and 3D. The last two also support confidence ellipse and labeling of outliers.
- Click OK button. A report sheet, a report data sheet and a plot data sheet will be created.
If Show Confidence Ellipse option is checked in Plots tab, a Matrix book will also be created.
Algorithm
The algorithm for this app is from the 3rd Python library, scikit-learn. For more details, please refer to this page.