"You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions."
–
One day, when applying for a job, an interviewer asks: So tell me, is logistic regression a classification or a regression algorithm? The short answer to this is that it is a classification algorithm, but a longer and more interesting answer requires a good understanding of the logistic function. Then, the question may end up having a different meaning altogether.
Understanding the logistic function
The logistic function is a member of the sigmoid (s-shaped) functions, and it is represented by the following formula:
Don't let this equation scare you. What actually matters is how this function looks visually. Luckily, we can use our computer to generate a bunch of values for theta—for example, between -10 and 10....