FW26, William Gates Building
| Minutes | Block |
|---|---|
| 0–15 | Course mechanics; questions list; the motivation and theme |
| 15–35 | ‘Socratic’ approach: curiosity, skepticism, submission rules |
| 35–65 | Probability review: product/sum/Bayes; basic distributions |
| 65–75 | Break |
| 75–95 | Entropy review (elementary \(H\)); bits and nats |
| 95–110 | Energy in ML; motivation and bandwidth; Boltzmann seed |
| 110–118 | Culmination: potential → stochastic → kinetic? → Hamiltonian / HMC |
| 118–120 | Worksheet 1 brief; Quiz 1 preview |
\[\frac{\text{d}H}{\text{d}t} \geq 0\]
Maxwell’s Demon:
Philosophical Essay on Probabilities Laplace (1814) pg 5
\[ P(y\mid x)=\frac{P(x\mid y)P(y)}{P(x)} \]
Five families recur across modelling. Know the support, the parameter, and one generative story for each.
\[\begin{align} p(y| \mu, \sigma^2) & = \frac{1}{\sqrt{2\pi\sigma^2}}\exp\left(-\frac{(y- \mu)^2}{2\sigma^2}\right)\\& \buildrel\triangle\over = \mathscr{N}\left(y|\mu,\sigma^2\right) \end{align}\]
What you are describing, Skepticus, is a chronic but minor ailment of philosophers. It is called dialectical vertigo, and its cure is the immediate application of straightforward argumentation.
The Grasshopper to Skepticus in The Grassohopper: Games, Life and Utopia (Suits, 1978 pg 37)
candidatenumber_worksheet1_dialogue.md (and reflection)| \(y\) | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| \(P\left(y\right)\) | 0.3 | 0.2 | 0.1 | 0.4 |
| \(y\) | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| \(P\left(y\right)\) | 0.3 | 0.2 | 0.1 | 0.4 |
| \(y^2\) | 1 | 4 | 9 | 16 |
| \(-\log(P(y))\) | 1.204 | 1.609 | 2.302 | 0.916 |
| \(y\) | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| \(P\left(y\right)\) | 0.3 | 0.2 | 0.1 | 0.4 |
| \(y^2\) | 1 | 4 | 9 | 16 |
| \(-\log(P(y))\) | 1.204 | 1.609 | 2.302 | 0.916 |
Shannon entropy turns a distribution into a scalar measure of uncertainty.
| bits/min | billions | 2,000 |
|
billion calculations/s |
~100 | a billion |
| embodiment | 20 minutes | 5 billion years |
We are already counting in Shannon’s bits — embodiment is a communication bottleneck, not yet a theorem.
In ML, an energy is a scalar assigned to a configuration: lower means preferred.
\[ E(\mathbf{w})=\sum_n\left(y_n-\mathbf{w}^\top\mathbf{x}_n\right)^2 \]
\[ E=-\sum_c y_c\log\hat{y}_c \]
\[ E(\mathbf{s})=-\sum_i b_i s_i-\sum_{i<j}W_{ij}s_i s_j \]
For fixed mean energy \(U\), the maximum-entropy occupation is the Boltzmann distribution — same \(E\) grammar as the ML energies above.
Gradient descent: ‘walking downhill’
The loss is a potential energy \(V(\mathbf{q})\) on parameter space.
SGD estimates \(\nabla V\) from a random mini-batch
Where is the kinetic energy?
\[ H(\mathbf{q},\mathbf{p}) = T(\mathbf{p}) + V(\mathbf{q}) \]
HMC: invent momentum, simulate Hamiltonian dynamics, accept/reject.
Radford Neal brought Hamiltonian Monte Carlo into Bayesian neural nets.
HamiltonianMonteCarlo in mlai; trace \(H\) and accept ratemlai (Neal)Probability distributions: Section 1.2 of Bishop (2006)
Chapter 1 of Lawrence (2024)
Boltzmann machines (optional colour) of Ackley et al. (1985)
Hopfield networks (optional colour) of Hopfield (1982)
Section 3.2.1 of Welling et al. (2026)
Section 11.4.2 of Welling et al. (2026)
Hybrid Monte Carlo for backpropagation networks of Neal (1992)
Bayesian Learning for Neural Networks (thesis) of Neal (1994)