Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

THis is more machine learning questions, but perhaps someone will be able to help. I would like to know what is the diference between regression and classification when we try to generate output for a training data set x?

share|improve this question

6 Answers 6

up vote 21 down vote accepted

Regression: the output variable takes continuous values.

Classification: the output variable takes class labels.

share|improve this answer
    
The output variable (I assume you mean response variable) can also be boolean with logistic regression right? –  Justin Bozonier Jul 24 '13 at 2:06
    
Binary logistic regression also outputs a continuous variable. Specifically, the regression estimates the odds that a variable is in a given class as a function of the predictor variables. –  James Thompson Jul 29 '13 at 16:45
    
Binary Logistic regression produces a continuous output but not to try to give a continuous output at the data (regression) but in order to classify them in two classes –  K. Stasko Mar 8 at 13:05

Same as Tim said a different way. Regression involves estimating or predicting a response. Classification is identifying group membership.

share|improve this answer
1  
signed up to up vote this response. i love the plain English description. –  Julian Apr 26 '13 at 5:49

f: x-> y

here,

if y is discrete/categorical variable, then classification problem

if y is real number/continuous, then regression problem.

share|improve this answer
    
This seems to simply reiterate answers from long ago. If you have something new to add, please clarify your answer. –  robjohn Jul 27 at 12:51

Regression and classification can work on some common problems where the response variable is either continuous or ordinal(?).

But the result is what would make us to choose between the two. For example simple, hard classifiers simply tries to put the example in specific class(eg SVM).(for eg, whether the project is profitable or not , and doesn't account for how much). Where as regression can give exact figure of profit value as some continuous value.

however in case of classification we can consider probabilistic models (eg logistic regression) where each class or label has some probability which can be weighted by the cost associated with each label or class and thus give us with final value on basis of which we can decide to put it some label or not.(for eg label A has probability of 0.3 but the payoff is huge (1000) however label B has probability 0.7 but the payoff is very low 10.So for maximizing the profit we might label the example as label A instead of B.

Note: I am still not an expert, perhaps someone would rectify if I am wrong in some part.

share|improve this answer

http://www.differencebetween.com/difference-between-classification-and-vs-regression/

In brief: • Classification trees have dependent variables that are categorical and unordered. • Regression trees have dependent variables that are continuous values or ordered whole values.

share|improve this answer

Regression means to predict the output value using training data. Classification means to group the output into a class. e.g. we use regression to predict the house price from training data and use classification to predict the type of tumor i.e. harmful or not harmful using training data.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.