Fit logistic model to noisy data