Classification vs Prediction

I think that one needs to consider whether the problem is mechanistic or stochastic/probabilistic.

Machine learning advocates often want to apply methods made for the former to problems where biologic variation, sampling variability, and measurement errors exist.

It may be best to apply classification techniques instead just to high signal:noise ratio situations such as those in which there there is a known gold standard and one can replicate the experiment and get almost the same result each time.

An example is pattern recognition – visual, sound, chemical composition, etc.

If one creates an optical character recognition algorithm, the algorithm can be trained by exposing it to any number of replicates of attempts to classify an image as the letters A, B, … The user of such a classifier may not have time to consider whether any of the classifications were “close calls.

” And the signal:noise ratio is extremely high.

In addition, there is a single “right” answer for each character.

This situation is primarily mechanistic or non-stochastic.

Contrast that with forecasting death or disease where two patients with identical known characteristics can easily have different outcomes.

When close calls are possible, or when there is inherent randomness to the outcomes, probability estimates are called for.

One beauty of probabilities is that they are their own error measures.

If the probability of disease is 0.

1 and the current decision is not to treat the patient, the probability of this being an error is by definition 0.

1.

A probability of 0.

4 may lead the physician to run another lab test or do a biopsy.

When the signal:noise ratio is small, classification is usually not a good goal; there one must model tendencies, i.

e.

, probabilities.

The U.

S.

Weather Service has always phrased rain forecasts as probabilities.

I do not want a classification of “it will rain today.

” There is a slight loss/disutility of carrying an umbrella, and I want to be the one to make the tradeoff.

Whether engaging in credit risk scoring, weather forecasting, climate forecasting, marketing, diagnosis a patient’s disease, or estimating a patient’s prognosis, I do not want to use a classification method.

I want risk estimates with credible intervals or confidence intervals.

My opinion is that machine learning classifiers are best used in mechanistic high signal:noise ratio situations, and that probability models should be used in most other situations.

This is related to a subtle point that has been lost on many analysts.

Complex machine learning algorithms, which allow for complexities such as high-order interactions, require an enormous amount of data unless the signal:noise ratio is high, another reason for reserving some machine learning techniques for such situations.

Regression models which capitalize on additivity assumptions (when they are true, and this is approximately true is much of the time) can yield accurate probability models without having massive datasets.

And when the outcome variable being predicted has more than two levels, a single regression model fit can be used to obtain all kinds of interesting quantities, e.

g.

, predicted mean, quantiles, exceedance probabilities, and instantaneous hazard rates.

A special problem with classifiers illustrates an important issue.

Users of machine classifiers know that a highly imbalanced sample with regard to a binary outcome variable Y results in a strange classifier.

For example, if the sample has 1000 diseased patients and 1,000,000 non-diseased patients, the best classifier may classify everyone as non-diseased; you will be correct 0.

999 of the time.

For this reason the odd practice of subsampling the controls is used in an attempt to balance the frequencies and get some variation that will lead to sensible looking classifiers (users of regression models would never exclude good data to get an answer).

Then they have to, in some ill-defined way, construct the classifier to make up for biasing the sample.

It is simply the case that a classifier trained to a 1⁄2 prevalence situation will not be applicable to a population with a 1⁄1000 prevalence.

The classifier would have to be re-trained on the new sample, and the patterns detected may change greatly.

Logistic regression on the other hand elegantly handles this situation by either (1) having as predictors the variables that made the prevalence so low, or (2) recalibrating the intercept (only) for another dataset with much higher prevalence.

Classifiers’ extreme dependence on prevalence may be enough to make some researchers always use probability estimators like logistic regression instead.

One could go so far as to say that classifiers should not be used at all when there is little variation in the outcome variable, and that only tendencies (probabilities) should be modeled.

One of the key elements in choosing a method is having a sensitive accuracy scoring rule with the correct statistical properties.

Experts in machine classification seldom have the background to understand this enormously important issue, and choosing an improper accuracy score such as proportion classified correctly will result in a bogus model.

This is discussed in detail here.

  Bio: Frank Harrell is a professor of biostatistics at Vanderbilt UniversityOriginal.

Reposted with permission.

Related: var disqus_shortname = kdnuggets; (function() { var dsq = document.

createElement(script); dsq.

type = text/javascript; dsq.

async = true; dsq.

src = https://kdnuggets.

disqus.

com/embed.

js; (document.

getElementsByTagName(head)[0] || document.

getElementsByTagName(body)[0]).

appendChild(dsq); })();.

. More details

Leave a Reply