correction to ccdf objective function when averaging over the training data
fixed the CDF objective function when averaging over the training data