[SOLVED] What causes this singular matrix error when kriging

Any question regarding the Interpolation method using Kriging

[SOLVED] What causes this singular matrix error when kriging

Postby markm0705 » Tue Aug 11, 2020 11:13 am

I am kriging some simulation samples into blocks and have run into a problem with a singular matrix.
In the code below I can krige the first sample(dt.tmp1.csv) there is no problem but when I attempt to krige the second (from a different distribution) kriging reports a singular matrix error.("Error in matrix inversion (rank=1324) : Pivot #2 is null Singular matrix")
I'm confused as to why this should happen to given the structure of the two datasets is the same.
My R script and data files are in the
Kriging-Question.zip
attachment
(46.85 KiB) Downloaded 194 times
Last edited by markm0705 on Tue Aug 18, 2020 1:29 pm, edited 1 time in total.
markm0705
 
Posts: 22
Joined: Sun Mar 17, 2019 9:39 am

Re: What causes this singular matrix error when kriging

Postby Fabien Ors » Mon Aug 17, 2020 12:32 pm

Dear
Singular matrix error are usually due to the presence of duplicated samples (two or more samples are located to the same position or are too close).
The second dataset has 1698 samples (instead of 1681 for the first dataset) and 17 samples are duplicated.
Please use the duplicate function before launching kriging.
Hope this helps.

Best regards
Fabien Ors
Administrateur du site
 
Posts: 226
Joined: Thu Sep 20, 2012 1:07 pm

Re: What causes this singular matrix error when kriging

Postby markm0705 » Tue Aug 18, 2020 1:29 pm

Fabien thank you for your prompt reply Regards
markm0705
 
Posts: 22
Joined: Sun Mar 17, 2019 9:39 am


Return to Kriging

Who is online

Users browsing this forum: No registered users and 4 guests