William & Mary · CSCI 455/555 · Spring 2026
module 02 / 12 · ~50 min
module 02 · probabilistic.lecture

Probabilistic Source Code Modeling

How do we model the likelihood of code tokens in a sequence? n-gram language models, probability estimation, perplexity, smoothing, and why code is surprisingly predictable.

format split-pane composer
scratch persistent JS repl
keys esc · ←→ · ⌘↩