Chapter 20 of 22 Part IV: Data, Media & Machine Intelligence

Inside the Mind of Artificial Intelligence

Difficulty: Applied Editorial estimate: ~55 min Prerequisites: Chapter 18, Chapter 19

Chapter Field Guide

Measurable Learning Outcomes

  • Train a simple weighted classifier and observe decision boundaries update.
  • Explain why evaluating a model on unseen test data is essential to detect overfitting.
  • Explain how next-word prediction works and why fluent text is not automatically factually true.

Core Scientific Intuition

Machine learning adjusts numeric weights from training examples to minimize prediction error. Keeping a separate held-out test set checks whether the model learned a general pattern or merely memorized the training examples (overfitting). Language models predict probability distributions over the next token based on context, which produces fluent prose but still requires external verification for facts.

y_hat = f(w₁x₁ + w₂x₂ + ... + b)
In plain words: A neuron computes a weighted sum of inputs plus a bias term b, then applies an activation function f.
Units & assumptions: Weights w_i and bias b are learned from labeled training data and evaluated on a disjoint test set.

Worked Example

If a model scores 100% on 10 memorized flashcards but only 50% on 10 new questions, it has overfit the training set rather than generalizing.

Hands-On Exploration

Interactive Laboratory

Test the concepts directly with 4 interactive panels, live controls, and visual feedback.

Open Interactive Lab →

Three Guided Projects

Structured experiments with hypotheses, boundary tests, hints, and reflection prompts.

View 3 Projects →

Source Code (5 Snippets)

Inspect byte-identical printed JavaScript blocks, download `.js` files, or test runnable blocks in the isolated sandbox.

Browse Code →

Self-Check Quiz (5 Questions)

Immediate explanations for every choice, unlimited retries, and local-only score tracking.

Take Self-Check Quiz →

Book Chapter Outline (Reference Guide)

Section headings from Volume 1 for cross-referencing with the printed book.

Show all 32 book section headings
  1. Teach Bit a new skill
  2. PEOPLE BEHIND THE SCIENCE
  3. John McCarthy (1927-2011)
  4. Frank Rosenblatt (1928-1971)
  5. PEOPLE BEHIND THE SCIENCE
  6. Geoffrey Hinton (born 1947)
  7. Yoshua Bengio (born 1964)
  8. PEOPLE BEHIND THE SCIENCE
  9. Yann LeCun (born 1960)
  10. Ashish Vaswani
  11. Rules or learning?
  12. Three ways to learn
  13. Classification, regression and generation
  14. A model needs examples, not just instructions
  15. Inside a single artificial neuron
  16. How a machine improves
  17. Project 1: Train a tiny classifier
  18. Test what your model has learned
  19. From a neuron to a network
  20. What is a token?
  21. The prediction game
  22. Project 2: Build a next-word predictor
  23. How a language assistant works
  24. Why a fluent answer can be wrong
  25. Project 3: A study assistant with evidence
  26. Make it return evidence, not guesses
  27. Detective mission: Can Bit be trusted?
  28. Your evidence checklist
  29. Limits, fairness and responsible AI
  30. Your final invention: The Digital Discovery Lab
  31. More to explore
  32. Further reading and sources

Primary Sources & Further Reading

External links are provided for independent verification and deeper study. Link availability can change over time; see the Resources page for verification notes.