A standard normal unit loss function can be described as:
where f(x) is the standard normal density function and F(x) is the standard normal CDF. See: http://planetmath.org/unitnormallossfunction.
Often we want to solve UNL(x)=c for x.
GAMS Version
$ontext |
This solves with CONOPT very quickly, we get:
Wolfram Alpha
The input is easy:
The output is unfortunately:
R
Super easy input, due to predefined functions for normal pdf and cdf. We give an interval of [0,100] to search: