Repository navigation
Expand file tree
/
Copy pathindex.qmd
More file actions
109 lines (91 loc) · 6.99 KB
/
Copy pathindex.qmd
File metadata and controls
109 lines (91 loc) · 6.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
title: "Information Theory for Data Science"
format:
html: default
revealjs:
output-file: index-slides.html
pdf:
output-file: index-handout.pdf
docx:
output-file: index.docx
---
## Welcome {.unnumbered}
Information theory quantifies uncertainty and information:
how many [bits](entropy.qmd#def-bit) a message needs, how much one [random variable](https://morrison-lab.github.io/pds/random-variables.html#def-random-variable)
tells us about another, and how fast data can cross a noisy channel.
Data science uses its quantities directly:
[cross-entropy](https://morrison-lab.github.io/pds/expectation.html#def-cross-entropy) is the quantity that [logistic regression](https://morrison-lab.github.io/sds/logistic-inference.html#def-logistic-regression) and neural networks minimize,
[Kullback--Leibler divergence](https://morrison-lab.github.io/pds/expectation.html#def-kl-divergence) links the fit of a model to the data it describes,
and [mutual information](entropy.qmd#def-mutual-information) drives the [information gain](entropy.qmd#def-information-gain) of decision trees.
These notes gather the information theory that data science courses use.
They are new.
The pages written so far are:
- [Entropy and mutual information](entropy.qmd):
[surprisal](entropy.qmd#def-surprisal), joint and [conditional entropy](entropy.qmd#def-conditional-entropy), mutual information,
and the [information gain](entropy.qmd#def-information-gain) of decision trees
- [Source coding](source-coding.qmd):
the source coding [theorem](https://morrison-lab.github.io/mcs/proof-writing.html#def-theorem), and [cross-entropy](https://morrison-lab.github.io/pds/expectation.html#def-cross-entropy) as the cost of coding
with a code built for the wrong source
- [Huffman codes](huffman-codes.qmd):
[prefix codes](huffman-codes.qmd#def-prefix-code), the [Huffman code](huffman-codes.qmd#def-huffman-code) and its optimality, and its length within one [bit](entropy.qmd#def-bit) of the entropy
- [Stream codes](stream-codes.qmd):
the [arithmetic code](stream-codes.qmd#def-arithmetic-code) and the [Lempel--Ziv code](stream-codes.qmd#def-lempel-ziv-code)
- [Channel capacity](channel-capacity.qmd):
[discrete memoryless channels](channel-capacity.qmd#def-channel), the [capacity](channel-capacity.qmd#def-channel-capacity) of the [binary symmetric channel](channel-capacity.qmd#def-binary-symmetric-channel)
and the [binary erasure channel](channel-capacity.qmd#def-binary-erasure-channel), and the noisy-channel coding theorem
- [Error-correcting codes](error-correcting-codes.qmd):
[Hamming distance](error-correcting-codes.qmd#def-hamming-distance), the Hamming and [Reed--Solomon codes](error-correcting-codes.qmd#def-reed-solomon-code),
and how [locally decodable codes](error-correcting-codes.qmd#def-locally-decodable) lead to hardness amplification
and the PCP theorem
The planned topics still to come are:
- [KL divergence](https://morrison-lab.github.io/pds/expectation.html#def-kl-divergence) and its link to fitting models to data
- proofs of the [noisy-channel coding theorem](channel-capacity.qmd#thm-channel-coding), and codes that approach [capacity](channel-capacity.qmd#def-channel-capacity)
[Entropy](https://morrison-lab.github.io/pds/expectation.html#def-entropy), [cross-entropy](https://morrison-lab.github.io/pds/expectation.html#def-cross-entropy) and [KL divergence](https://morrison-lab.github.io/pds/expectation.html#def-kl-divergence) are defined in
[*Probability for Data Science*](https://morrison-lab.github.io/pds/expectation.html#sec-entropy);
pages here link to those definitions rather than repeating them.
Computational complexity has its own library,
[*Computational Complexity for Data Science*](https://morrison-lab.github.io/ccds/).
[Kolmogorov complexity](https://morrison-lab.github.io/ccds/kolmogorov-complexity.html),
which relates the shortest description of a single string
to [Shannon entropy](https://morrison-lab.github.io/pds/expectation.html#def-entropy), is covered there.
## Where to read about the planned topics {.unnumbered}
Stanford's information theory courses cover many of the planned topics above,
and they publish their course pages:
- [EE 276, *Information Theory*](https://web.stanford.edu/class/ee276/)
(Tsachy Weissman) covers [entropy](https://morrison-lab.github.io/pds/expectation.html#def-entropy) and [mutual information](entropy.qmd#def-mutual-information),
the asymptotic equipartition property, [prefix codes](huffman-codes.qmd#def-prefix-code) and [Huffman codes](huffman-codes.qmd#def-huffman-code),
[channel capacity](channel-capacity.qmd#def-channel-capacity) and the [channel coding theorem](channel-capacity.qmd#thm-channel-coding), and lossy compression.
Its [reading page](https://web.stanford.edu/class/ee276/reading.html)
lists books and the founding papers of the field.
- [EE 274, *Data Compression, Theory and Applications*](https://stanforddatacompressionclass.github.io/Fall22/)
covers entropy coding and how tools such as gzip and bzip2 work,
then lossy coding of pictures and video.
- [Stats 311/EE 377, *Information Theory and Statistics*](https://web.stanford.edu/class/ee377/)
(John Duchi) applies these tools to statistics and machine learning.
It covers:
- [KL divergence](https://morrison-lab.github.io/pds/expectation.html#def-kl-divergence) and other divergences
- the [data processing inequality](entropy.qmd#thm-data-processing-inequality)
- concentration inequalities and PAC-Bayes [bounds](https://morrison-lab.github.io/mds/algebra-sums.html#def-upper-bound)
- differential privacy
- [lower bounds](https://morrison-lab.github.io/mds/algebra-sums.html#def-lower-bound)
on [estimation error](https://morrison-lab.github.io/sds/estimation.html#def-estimation-error),
by the methods of Le Cam, Fano and Assouad
- proper [loss functions](https://morrison-lab.github.io/pds/expectation.html#def-loss-function) and calibration
Its textbook, Duchi's *Information Theory, Learning, and Statistics*,
is a draft that Cambridge University Press lets him keep
[free online](https://web.stanford.edu/~jduchi/projects/Duchi27.pdf) before publication.
The courses' own notes, slides and textbook draft carry no license,
so these notes link to them and do not reuse their text.
## Further reading {.unnumbered}
- Dave's [review of MacKay's *Information Theory, Inference, and Learning Algorithms*](https://dfd.github.io/mackay-itila/) (2024)
describes how the book connects compression, noisy-channel coding and neural networks.
## Using these notes in another site {.unnumbered}
Course sites link to these pages by URL;
they do not include this repository as a git submodule.
A host site that keeps a copy of this repository at its root, named `ids`,
can still include fragments with paths that start with `ids/`.
This site includes its own fragments the same way,
through a `ids` symlink that points at the repository root.
Quarto resolves `@id` cross-references only within one rendered page,
so a host site that links to a result here
uses an explicit link to the page and anchor.