5
$\begingroup$

I am attempting to predict a binomial outcome based on a set of continuous and binomial predictors in a time-series. Eg.

Y/N buy car ~ cost +Y/N get loan + future gas price predictions

If I was trying to take the output of a classifier and a regression equation based on the same training dataset and come up with whether or not to buy a car for a specific case, is there any reason a classification algorithm would be better or worse than regression?

This seems to provide a general rule of thumb, but I would really like a highly specific answer eg. "Classification algorithms do this better because..."

  1. Does either approach work better for time-series data?
  2. Does either approach handle erratic data better?
$\endgroup$

1 Answer 1

1
+100
$\begingroup$

To clarify, one uses classification for predicting categorical responses, and regression for predicting quantitative responses. This is 100% a function of the response you're trying to predict - and often, this goes without saying - in SAS Enterprise Miner, if you use a regression node, it automatically goes with either linear or logistic depending on the target of interest (as, when adding the data source, it was set to be either quantitative or categorical).

Attempts to use classification for a quantitative variable aren't necessarily ideal because you get a discrete response at the end - there are simply point estimates for various subsets, when intuitively, you want a continuous function of variables. Attempts to use (linear) regression for categorical responses break down in short order - let's suppose in your example you've coded the response to 0 and 1 - well, what happens if your model predicts values like -1, 0.5, or 2, values that make absolutely no sense in this case? As far as regression is concerned, we can resolve this by using logistic regression instead of linear regression - but now we're predicting the probability of an event, in your case, buying a car.

To answer your first specific question - it's not that classification is better than regression in that case, so much as regression is either invalid or answers 'the probability of' rather than 'yes or no'. In this fashion - asking between classification or regression for time series or any other variant of data coming in as a predictor is entirely pointless. Similarly, algorithms can be used for either regression or classification - I've mentioned the case with linear vs. logistic regression - but here's a treatment with support vector machines. Here's another with neural networks. You can't generally say that any given algorithm is generally better - all you can do is run them all in a given case and compare on some measure.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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