<t>Thank you aharvey. I looked at your code, but not in very detail. For k = 0 To (nBuckets - 1) UK = FindUK(A(k) + Lj, k, Upper, Lower) Pstar = P(k) PUKstar = P(UK) Astar = A(k) AUKstar = A(UK)Should that Pstar, PUKstar outside of the loop? That is, you'll need to store the Prob and mean before the...