Markov approximation of one-dimensional stationary Gaussian processes with Matérn covariance. For further details on the methodology, we refer to our preprint available at https://arxiv.org/abs/2410.13000.
To run the Shiny app from the github repository:
# install.packages(c("shiny", "shinythemes", "shinyWidgets", "plotly"))
shiny::runGitHub("vpnsctl/MarkovApproxMatern", subdir="shiny_app")
To run the Shiny app locally:
# install.packages(c("shiny", "shinythemes", "shinyWidgets", "plotly"))
shiny::runApp("shiny_app/")
The distance computations can be found in the following files:
examples/compute_covariance_errors.R
python_codes/get_fourier_cov_errors.py
The prediction error computations were obtained using these files:
# Generate samples and obtain predictions based on the exact covariance:
python_codes/get_true_pred.py
python_codes/gen_samples_and_true_pred.py
# Compute the prediction errors for PCA, Fourier, and State-Space methods:
python_codes/get_pca_pred.py
python_codes/get_fourier_pred.py
python_codes/get_statespace_pred.py
# Compute prediction errors for Rational and nnGP methods:
examples/compute_rational_nngp_errors.R
The posterior probability errors were obtained using:
examples/probability_calculations_updated.R
The obtained quantities are stored in:
distance_tables/full_dists.RDS
pred_tables/pred_error.RDS
prob_tables/prob_errors.RDS
The calibrations were performed using these files:
aux_functions/calibration_functions.R
aux_functions/create_calibration_fem.R
examples/example_calibration.R
examples/example_calibration_nngp.R
We calibrated the methods to ensure equal total runtime for assembling matrices (construction cost) and computing the posterior mean (prediction cost). This ensures fair comparisons based on actual performance rather than theoretical complexity, which can be influenced by constants or the study size. For a given set of parameters
Some methods have costs dependent on the smoothness parameter
$0 < \nu < 0.5$ $0.5 < \nu < 1.5$ $1.5 < \nu < 2.5$
For
For the taper method, the taper range was selected such that each observation, on average, had
For PCA and Fourier methods, the prediction costs are identical since both depend on the number of basis functions. Thus, the value of
The state-space method offers an alternative Markov representation, enabling the use of the same computational strategies as the proposed method. Its value of
To minimize boundary effects in the FEM method, the original domain
Specifically, a mesh with