Philosophical Perspectives on Machine Learning
Machine Learning and Econometrics: Big-Picture Study Notes
1. Two broad approaches to machine learning
Machine learning methods are often divided into supervised learning and unsupervised learning. These approaches differ mainly in whether the analysis begins with a specified outcome to predict.
Supervised learning
Supervised learning uses observations that include both inputs and a known outcome. Its typical goal is to learn a relationship between the inputs and outcome that predicts outcomes for new observations. It is most directly suited to settings with independent observations and a relatively stable environment.
Two common supervised tasks are:
Regression: Predicting a continuous outcome, such as a price or return.
Classification: Predicting a category, such as whether an event occurred or which group an observation belongs to. A binary outcome is a special case, where the result has two possible categories.
Because it begins with an outcome to predict, supervised learning often resembles material taught in econometrics, especially regression and classification.
Unsupervised learning
Unsupervised learning looks for patterns or groups in data without specifying a target outcome in advance. For example, an algorithm could group news articles according to similarities in their text. A human might then inspect the groups and label them as stories about earnings announcements or macroeconomic events.
This approach can be useful when the aim is to discover structure in data rather than predict a defined outcome. However, it can be difficult to determine whether the discovered structure is useful: articles may be similar along a dimension that has little relevance to the question being studied.
Researchers may also choose unsupervised learning to avoid using a particular outcome or external variable when constructing groups. That separation can be useful when they want the groupings to reflect similarities in the data rather than a preselected prediction target.
Hybrid approaches and task relevance
Some methods reduce the dimensionality of complex data or identify common themes. Their purpose depends on how they are used:
If the method seeks general patterns without a target, it is unsupervised.
If it seeks features that help predict or classify a specified outcome, it is part of a supervised task.
When the ultimate goal is prediction, a supervised approach can make the analysis more directly relevant. For example, if the question is how news articles relate to stock prices, the useful text features are those that help explain or predict stock prices—not necessarily those that simply make articles look similar to one another.
2. Classification and complex inputs
The basic classification problem
Classification predicts which category an observation belongs to. A familiar example is predicting whether an image contains a cat or a dog. In binary classification, the target can be represented as an indicator that equals 1 for one category and 0 for the other.
Econometrics has long addressed binary outcomes, for example through logistic regression. The major machine-learning advances in classification were especially important when the input variables were complex, such as the pixels in an image. The challenge was not simply to predict a binary outcome; it was to extract useful information from a large, complicated input.
From an image to input variables
A digital image can be represented numerically. Each pixel records levels of brightness in color channels such as red, green, and blue. The image can therefore be converted into a large collection of numerical inputs, often called features or variables.
A model then uses these inputs to predict a category. In a conventional statistical setup, the goal might be to estimate the probability of a category conditional on the inputs, such as Pr(Y=cat∣X).
Hand-designed features and learned features
A traditional approach might require researchers to decide which visual traits matter. For example, they could try to identify ears, paws, or other shapes, then construct variables describing those features. This involves two difficult tasks:
Deciding which features distinguish the categories.
Finding a way to detect those features from raw pixels.
Neural networks helped address this challenge by learning useful features from the input itself. Rather than requiring a researcher to specify in advance that ears, noses, or whiskers matter, a neural network can process pixel values and learn patterns that help predict the label.
This capacity is often described as automated feature learning: the model searches for useful representations of the raw data as part of learning to predict. A neural network is a flexible functional form that can work especially well for some types of data, including images, though it is not guaranteed to work equally well for every data-generating process.
Why common benchmarks can accelerate progress
A shared, publicly available dataset gives researchers a common problem and a common way to measure success. If many teams test their methods on the same labeled images, they can compare performance directly. This creates a kind of competition in which progress is visible through improved classification on the shared task.
The general lesson is that a clearly defined problem and agreed-upon measure of success can help coordinate research and speed up methodological improvement.
3. Prediction, test sets, and generalization
A major strength of machine learning is that prediction methods can be compared on data that were not used to fit them. A dataset can be divided into:
Training data, used to estimate a model.
Test data, held back to evaluate how well the fitted model predicts new observations.
For a prediction task with a meaningful test set, researchers can assess whether a method performs well without needing a complete theoretical account of why it works. This makes empirical evaluation central to many machine-learning applications. Understanding why a model works can still be valuable, but strong performance on new data can itself be evidence of practical usefulness.
The limits of test-set evaluation
A test set evaluates prediction in a setting similar to the data being tested. It does not guarantee that a model will remain useful if the world changes. In particular, the model may learn relationships that are predictive in the observed data but unstable over time.
Suppose many training images show piano-playing cats. A model might learn that visual patterns associated with pianos predict cats. If later images include many piano-playing dogs, that relationship may fail. The model does not automatically know that ears are more intrinsically relevant than pianos. It uses patterns that help prediction in the data available to it.
This is both a strength and a weakness:
Strength: The model can exploit any predictive pattern in the data, including patterns a researcher might not have anticipated.
Weakness: It has no built-in common sense about which patterns are stable, meaningful, or likely to generalize to a changed environment.
Complex predictions and unstable relationships
A flexible model can produce highly complicated relationships between inputs and predictions. For example, a customer-churn model might predict churn based on two measured characteristics. A simple model could divide customers into two regions using a relatively smooth boundary. A more flexible model might produce a much more irregular boundary.
That irregularity can reflect complicated relationships among many inputs. As one variable changes, other correlated variables may change as well, and the model may exploit fine details of their joint distribution. The resulting predictions can fit the observed data well, yet depend on correlations that may disappear if the data environment changes.
The broader concern is distribution shift: the joint relationships among inputs in new data differ from those in the training data. A model that relies heavily on those relationships may then perform poorly.
4. Bias, variance, overfitting, and model selection
Prediction error and the bias–variance tradeoff
A common objective in supervised learning is to minimize prediction error, often measured by mean squared error:
A model’s performance on training data does not necessarily indicate how well it will predict new observations. A very flexible model may fit the training data extremely closely, including random patterns that do not recur. This is overfitting.
The goal is therefore not simply to fit the observed data as closely as possible. Instead, the model must balance:
Bias: Error caused by a model being too simple or restrictive to capture important patterns.
Variance: Error caused by a model being too sensitive to the particular sample and its incidental patterns.
A model with more flexibility can reduce bias but often increases variance. The best predictive model may therefore be neither the simplest nor the most complex model.
Why unbiasedness may not be the main goal
Traditional econometrics often emphasizes properties such as unbiasedness. In a simple setting with few parameters and a large amount of data, unbiasedness may not impose much of a practical cost. In high-dimensional prediction, however, very flexible models can overfit, and insisting on an unbiased estimate may worsen predictive performance.
For example, a sufficiently flexible model could perfectly classify a small class based on one-off details of the students in that class. It might then perform poorly on a different class. Perfect fit in the original sample is not the same as reliable generalization.
Model families and tuning
Machine-learning methods typically consider a family of models ranging from simpler to more flexible specifications. Model selection involves choosing among these alternatives, often by tuning a parameter that controls complexity.
For example, an ordinary least squares model might include only a few variables or a much larger set. These are different specifications within a broad family of models. The challenge is to select the complexity that predicts well beyond the training sample.
Cross-validation
Cross-validation estimates out-of-sample performance by repeatedly fitting a model on part of the data and evaluating it on the portion left out. In a ten-fold procedure:
The data are divided into ten parts, or folds.
The model is estimated on nine folds.
Prediction error is measured on the remaining fold.
The process is repeated so each fold serves as the held-out portion.
Performance across the held-out folds helps guide the choice of model or tuning parameters.
Cross-validation is a practical way to compare candidate models while limiting the risk of selecting one solely because it fits the training data unusually well.
5. Prediction problems and econometric problems
Supervised machine learning and traditional econometrics can use similar data and mathematical tools while answering different questions.
Prediction-focused analysis
In a prediction problem, the aim is to construct a model that predicts outcomes well for new observations. A test set or cross-validation can provide a direct way to assess performance, provided that the test data represent the environment in which the model will be used.
Estimation and causal analysis
Econometrics often focuses on estimating a parameter or answering a policy question. Examples include:
What is the effect of increased immigration on a local economy?
What is the effect of a minimum-wage change?
What is the effect of lockdowns or vaccinations?
Such questions are not answered merely by predicting an outcome accurately. They require distinguishing causal effects from correlations, assessing uncertainty, and sometimes predicting the consequences of interventions that have not yet occurred.
Econometricians may also work with limited data and use behavioral assumptions, calibrated parameters, or theoretical structure to guide analysis. These assumptions can be necessary when the data alone do not determine the quantities of interest.
6. Identification: what held-out prediction cannot establish
Meaning of identification
Identification asks whether the available information and assumptions are sufficient to determine the parameter of interest—even if the researcher had unlimited data.
A holdout set can show whether a model predicts well in unseen observations from a similar environment. It cannot by itself show that an estimated relationship is causal or that the parameter of interest is identified.
Example: price and sales
Suppose firms raise prices during periods of unusually high demand. During those periods, both prices and sales may be high. The observed data could therefore show a positive correlation between price and quantity sold.
That correlation may appear in both the training data and the test data. Splitting the sample does not resolve the underlying problem: demand shocks influence both price and sales. The observed association does not reveal what would happen to sales if price changed while other relevant causes were held fixed.
Causal analysis requires a source of variation that helps separate the effect of price from other influences. Depending on the setting, this might involve a natural experiment, an exogenous source of variation, or supply-side shocks.
Why causal analysis may accept lower predictive fit
A causal method may deliberately focus on the variation that identifies a parameter, even if doing so reduces overall goodness-of-fit. Prediction methods generally seek whatever patterns improve prediction. Causal methods must distinguish relevant causal variation from correlations that arise for other reasons.
Thus, a model that predicts well is not automatically a model that answers a causal question well.
7. Combining machine learning with econometrics
Machine learning and econometrics can complement one another when their roles are clearly distinguished. Machine learning can help estimate flexible relationships, while econometric reasoning can clarify the target parameter, identification requirements, and causal interpretation.
1. Separate identification from functional-form estimation
Econometric analysis first asks what could be learned with ideal or unlimited data: Is the causal or structural quantity identified? Machine learning can then help estimate flexible relationships within that identified problem.
In this view, machine learning is especially useful for selecting or estimating functional forms, while identification determines whether the desired question can be answered at all.
2. Use existing semi-parametric theory
Econometrics and statistics already contain substantial theory for flexible, semi-parametric models. A challenge has often been practical implementation: theoretically appropriate models may be difficult to estimate reliably with conventional methods.
Machine-learning methods can provide effective computational tools and flexible functional forms. At the same time, ideas from semi-parametric efficiency theory can help develop machine-learning methods for estimation problems, not just prediction.
3. Recognize that regularization can create omitted-variable bias
Regularization limits model complexity, often by shrinking or excluding variables. This can improve prediction and reduce overfitting. But in a causal analysis, excluding a variable that should be controlled for can create omitted-variable bias.
Consequently, causal models should not automatically include or exclude variables according only to what improves predictive fit. A better approach is to divide the causal problem into parts, use machine learning where appropriate, and adapt the estimation procedure to the causal objective.
4. Use sample splitting and cross-fitting carefully
Sample splitting separates data used for certain estimation tasks from data used for others. Cross-fitting extends this idea by rotating which portions of the sample are used for fitting and evaluation. These procedures can help manage the use of flexible machine-learning estimates in statistical inference.
They are part of a broader effort to make flexible prediction tools work within estimators designed to answer causal or other parameter-focused questions.
5. Use problem structure to improve counterfactual predictions
Economic structure can help specify how a system is expected to behave under a change in conditions. That structure can be combined with machine learning for parts of the problem where flexible estimation is useful.
The resulting approach uses machine learning for nonparametric components while retaining economic reasoning about the parameter or counterfactual of interest. This can improve predictions about situations that differ from the observed data, although such predictions still depend on the assumptions used.
6. Evaluate causal methods despite unobserved counterfactuals
Causal effects are difficult to evaluate directly because the counterfactual outcome is not observed. For example, after observing how alert a person is after drinking coffee, the researcher cannot also observe how alert that same person would have been at the same time without the coffee.
This makes causal evaluation fundamentally different from ordinary classification or prediction, where known labels can be compared with model predictions. Researchers must therefore develop indirect or otherwise creative ways to assess causal methods.
Key distinction to retain
Predictive success does not, by itself, establish causal validity. A model may predict accurately by exploiting correlations that are unstable or confounded, while causal analysis requires identification and assumptions that a test set cannot supply.
Supervised machine learning is most directly suited to prediction in a stable environment, while econometric reasoning is essential when the goal is causal interpretation, policy analysis, or counterfactual estimation.

Ask anything
We've read this whole study set, so questions about it get the best answers.