Can you solve a logistic regression manually?
jsfiddle.net