replacing marginal stat by indexing with interpolation