Logistic model fit for big data