EZ

Eduzan

Learning Hub

Eduzan
Eduzan / 02 Quantitative Analysis

QTA 14: Machine-Learning Methods

Worked examples are fully visible. Check-yourself items are study aids you can reveal one at a time.

Machine learning is a broad label rather than a single method. It covers any procedure in which a model is trained on data until it picks out patterns well enough to be useful, and the jobs it is set run from prediction to classification. As a branch of artificial intelligence it has grown on the back of cheaper computing and the volume of data now available, and the uses are everywhere: credit scoring, fraud detection, medical research, image recognition and stock selection.

Part of the appeal is that conventional statistics starts to creak on large datasets. Once observations run into the tens of thousands or beyond, the standard error on a parameter estimate shrinks toward zero and hypothesis testing becomes awkward: nearly every null hypothesis is rejected whether or not it deserves to be, and a trivial predictor still looks overwhelmingly significant. Machine-learning specifications are more flexible, so they catch nonlinear interactions that a linear model passes over.

Two philosophies of model building

The classical route begins with theory. An analyst assumes the data-generating process can be approximated by something economic reasoning suggests, fixes the model and the variable list, and leaves the computer the narrow job of estimating parameters and testing their significance. The result is a verdict on a theory written down in advance. Machine learning reverses that order: the data decide which features belong, and no hypothesis is on trial.

How a model is judged changes with it. Significance, goodness of fit and diagnostic testing of the error term carry the weight in conventional work, while supervised machine learning leans on predictive accuracy. Econometric modelling also assumes explanatory variables that are independent and normally distributed, and machine learning requires nothing similar. The gap should not be overstated, since a standard regression can be read as a special case of a neural network. What has genuinely diverged is vocabulary, because these methods came mostly from engineers rather than statisticians.

The same ideas under two sets of names
Conventional econometricsMachine-learning parlance
Independent variablesInputs, or features
Dependent variablesOutputs, or targets
Values of the dependent variableLabels
Estimation sampleTraining set

Source: the terminology contrast drawn in the chapter.

Where the extra flexibility pays

Machine learning earns its keep when theory says little about which variables matter, or when nobody can say whether a linear or a nonlinear specification is right. Take the ordinary linear regression model.

A linear specification in two explanatory variables, with no interaction term written in.

Suppose y responds to the interaction between X1 and X2 as well as to the level of each. A researcher who does not insert the multiplicative term loses that effect altogether, and once the variable list is long, building every combination by hand stops being feasible. Appropriate machine-learning techniques pick these up automatically, along with nonlinearity in the dependence of y on any single variable.

Check yourself
A researcher runs a regression on 400,000 loan records and reports fourteen of fifteen variables significant at the 1 percent level. Why does that carry less information than it appears to?
Standard errors fall as the sample grows, so at that size almost any null hypothesis of a zero coefficient is rejected, and significance says little about whether a variable matters economically.
End of lesson.