Regression code for calibrating Trans cost and Expected Profit