In this demonstration, we showcase how to utilize SpatPCA for analyzing two-dimensional data to capture the most dominant spatial pattern.
Basic Settings
Used Packages
True Spatial Pattern (Eigenfunction)
The underlying spatial pattern indicates variations at the center and stability at both ends of the curve.
Experiment
Generate 2-D Realizations
Generate 100 random samples based on a spatial signal with $\sigma=20$ and standard normal distribution noise.
Animate Realizations
Observe central realizations changing more frequently than others.
Apply SpatPCA::spatpca
Add a candidate set of tau2 to observe how SpatPCA obtains a localized smooth pattern.
Compare SpatPCA with PCA
The figure below illustrates that SpatPCA can find a sparser pattern than PCA, which closely matches the true pattern.
Summary
In conclusion, this tutorial delves into the powerful capabilities of SpatPCA for analyzing spatial patterns in two-dimensional data. By leveraging SpatPCA, we’ve demonstrated its efficacy in capturing dominant spatial patterns through simulated realizations
and comparisons with traditional PCA. The intuitive visualizations showcase SpatPCA’s ability to provide localized and smooth eigenfunctions, making it a valuable tool for understanding complex spatial structures.