# How can a perceptron be used for regression?

I know perceptron is a binary classifier which has a 0/1 output. But in one of my exercises for a Neural Network course, there is a question that asks to implement a linear regression with perceptron. Unfortunately, I have no idea.

• What is the question literally? There are different ways I can imagine a perceptron(/dummy variable?) in a regression. – Sextus Empiricus Mar 16 '18 at 19:13
• @MartijnWeterings different features of homes are given, I should learn the price of new homes. the question wants I write a perceptron that does regression. – Farhad Bat Mar 16 '18 at 19:31
• This is still not very clear. Is it that you are supposed to do a binary classification of expensive-cheap homes? What is literally the question (not what the question wants)? – Sextus Empiricus Mar 16 '18 at 20:21
• I had asked somewhat related question. Check out. It'll surely help you - stats.stackexchange.com/questions/253337/… – tired and bored dev Mar 17 '18 at 5:36

The difference between linear regression and logistic regression is the activation function, which converts the logits (W$\cdot$X) to a probability-like value.