We have a factory and we are planning how many items produce in 2014. During the learning process we minimize the mean squared error. But, under-estimations costs us more than over-estimations. Let's say we estimated and produced $p$ items, but we have to sell $d$ items.
- In case of $p > d$, getting rid of 1 surplussed item costs us 30\$.
- In case of $p < d$, buying 1 item (from friendly factory) costs us 200\$.
Can this additional data can be used to formulate better objective function? If yes, what it will be?
Here's how. Suppose your regression model takes the form $y_i=x_i'\beta+u_i$. Then let $\hat\beta$ be the minimizer of
$$ \Biggl[200 \sum_{i=1}^n \max(y_i-x_i'\tilde\beta,0) - 30 \sum_{i=1}^n \min(y_i-x_i'\tilde\beta,0)\Biggr]$$
with respect to $\tilde\beta$.