I was following this wiki article related to ordinary kriging
Now my covariance matrix looks like this, for 4 variables
1 0.740818220681718 0.548811636094027 0.406569659740599
0.740818220681718 1 0.740818220681718 0.548811636094027
0.548811636094027 0.740818220681718 1 0.740818220681718
0.406569659740599 0.548811636094027 0.740818220681718 1
Well the relation between semvariogram and variogram is given by
$\gamma(h)/(C0) = 1 - C(h)/C(0)$
So, I calculated the $\gamma(h)$ as well. Now when I try to calculate the weights as
A = 1.0000 0.7408 0.5488 1.0000
0.7408 1.0000 0.7408 1.0000
0.5488 0.7408 1.0000 1.0000
1.0000 1.0000 1.0000 0
B = 0.4066
0.5488
0.7408
1.0000
I am taking the fourth variable as missing
[W;mu] = inv(A)*B = 0.1148
0.0297
0.8555
-0.1997
The above was by using covariance. Now using semi variance I had
A = 0 0.2592 0.4512 1.0000
0.2592 0 0.2592 1.0000
0.4512 0.2592 0 1.0000
1.0000 1.0000 1.0000 0
B = 0.5934
0.4512
0.2592
1.0000
inv(A)*B = 0.1148
0.0297
0.8555
0.1997
As you can see the last terms are not equal. When according to the derivation they are equated or said to be equal. Any clarifications?