Shipping costs for Maximum Likelihood Estimation of Functional Relationships