liveBook · Manning

Black box

As explained in Grokking Statistics

A black-box model is a model whose internal decision process is not readily understood or inspected by its users.

A black-box model produces predictions without making its internal decision process readily understandable or inspectable to its users. Machine learning often accepts this trade-off when predictive performance matters more than explaining how the model works. section 1.5

Black-box modeling is especially visible when:

  • Models are trained on labeled data and evaluated on labeled data they have not seen before. section 1.5
  • Complex models such as random forests and neural networks make explanations harder as the number of input variables grows. section 8.6
  • Strong test performance does not guarantee safe real-world behavior, especially when biased decisions affect groups of people. section 1.5

A model that predicts well but explains little

A simple logistic regression can expose its workings, so it need not be treated as a black box. As the same classification task expands toward random forests or neural networks, evaluation shifts toward repeated train/test performance while the model's internal reasoning becomes less accessible. section 8.6

How Grokking Statistics covers it

How deep it goes
Defines the explainability trade-off, contrasts statistics with machine learning, and notes bias risks without detailing model internals.
Examples
Uses labeled test data, image classification, medical testing, loan decisions, surveillance, logistic regression, random forests, and neural networks.
What you can do after
Evaluate predictive models on unseen data while recognizing that high accuracy can coexist with limited explainability and practical risk.
How it connects
Connects black boxes to predictive modeling, machine learning, classification, train/test splits, logistic regression, random forests, and neural networks.

Also explained in

Compare how 6 books explain black box →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Statistics. The section links point to the parts of the book it draws on.