liveBook · Manning

Machine learning

As explained in Causal Inference for Data Science

Machine learning is a field of methods that enables computers to learn patterns or predictive relationships from data.

Machine learning learns predictive relationships from historical data, mapping input variables (x) to outcomes (y). Supervised learning commonly forecasts future sales or identifies spam emails. section 4.0

Prediction and causation answer different questions. Machine learning can predict illness successfully from correlated information, such as hospital-visit frequency, even when important comorbidities are missing; causal inference cannot reliably identify causes without relevant variables. section 1.1.2 section 4.0

Use machine learning with these checks:

  • Treat accurate prediction as dependent on the future behaving like the past. section 4.6
  • Do not treat model accuracy or cross-validation alone as evidence of causation. section 4.0 section 4.6
  • With many confounders, use machine learning inside the adjustment formula and apply cross-fitting to reduce over-fitting. section 4.6
Applying the adjustment formula
sidebar figure

Trace how machine learning models can supply conditional probabilities within the adjustment formula. section 4.0

How Causal Inference for Data Science covers it

How deep it goes
Defines supervised prediction, contrasts it with causation, and reaches adjustment formulas and cross-fitting without deriving model internals.
Examples
Uses illness prediction, hospital-visit frequency, sales forecasting, spam detection, image recognition, language translation, and autonomous vehicles.
What you can do after
Evaluate when predictive models fit a task, recognize causal limitations, and combine models with adjustment formulas when confounders are numerous.
How it connects
Links machine learning to supervised learning, causal inference, confounding variables, adjustment formulas, cross-validation, and cross-fitting.

Also explained in

Compare how 42 books explain machine learning →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Causal Inference for Data Science. The section links point to the parts of the book it draws on.