Microsoft interview question

Eplain logistic regression, its function and from where it is derived.