Information Theory Weeks 1-2

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/37

encourage image

There's no tags or description

Looks like no tags are added yet.

38 Terms

1
New cards

Shannon's two limits: Entropy and Capacity

Entropy H(X): The limit of lossless compression; How few bits can represent information?

Capacity C: The limit of reliable communication; How fast can information be transmitted?

2
New cards

Entropy: Definition and Meaning

Entropy measures the average uncertainty of a random variable.

3
New cards

Entropy formula


4
New cards

Binary Entropy

A binary random variable has two possible outcomes, 0 and 1.


5
New cards

Uniform Distribution

Every possible outcome has the same probability


6
New cards

Jensen's Inequality (Concave Form)

A function is concave if it curves downward, like an upside-down bowl.

The average of a concave function's outputs is less than or equal to the function evaluated at the average input.


7
New cards

Bounds on Entropy

|X| means the number of possible outcomes

8
New cards

When does maximum entropy occur?

When all possible outcomes are equally likely.

9
New cards

Entropy as the Average Number of Yes/No Questions

Imagine I secretly select one of eight equally likely numbers.

You need to figure out which number I chose by asking yes/no questions.

A good strategy is to eliminate half the remaining possibilities with each question.

ex: takes 3 questions (bits) find one of eight equally likely numbers

10
New cards

Joint entropy

Measures the uncertainty of two random variables considered together


11
New cards

Joint entropy when X and Y are independent


12
New cards

Joint entropy when Y = X

H(X,Y) = 1 bit

Because once you know X, you automatically know Y.

13
New cards

The chain rule

Total uncertainty = uncertainty of the first variable + uncertainty remaining about the second after learning the first.

14
New cards

Conditional Entropy

How much uncertainty remains about Y after we observe X?

15
New cards

Conditional Entropy Formula

  1. Find the entropy of Y for each possible value of X.

  2. Weight each conditional entropy by the probability of that X.

  3. Add them together.


16
New cards

Condition ___ entropy

Reduces


17
New cards

Conditional Entropy cases


18
New cards

Mutual Information: Definition

Mutual information measures how much knowing one random variable reduces uncertainty about another.


19
New cards

Three properties of mutual information


20
New cards

Deterministic Processing

What happens when you transform a random variable using a deterministic function (which always gives the same output for the same input)

21
New cards

Deterministic Processing Property

Applying a deterministic function cannot increase the entropy of a discrete random variable.

The function can combine different input values into the same output, potentially losing information.


22
New cards

Conditional Mutual Information

How much does Y tell us about X when we already know Z?


23
New cards

Conditioning ____ mutual information

does not necessarily reduce


24
New cards

Chain Rule for Mutual Information


25
New cards

Markov Chains

X → Y → Z

p(z | x, y) = p(z | y)

Once we know Y, knowing X provides no additional information about Z.

26
New cards

Data Processing Inequality

Processing information cannot create additional information about the original source.

27
New cards

Fano's Inequality

If there's still a lot of uncertainty about X after observing Y, it's impossible to predict X with extremely low error.

28
New cards

KL divergence

KL divergence, also called relative entropy, measures how different one probability distribution is from another.

Imagine two distributions:

  • p(x): the true probability distribution.

  • q(x): your model's estimated distribution.

KL divergence measures the penalty associated with using q when the truth is p.

29
New cards

KL divergence formula


30
New cards

Properties of Relative Entropy


31
New cards

Mutual Information as KL Divergence

p(X, Y) = the actual joint distribution of X and Y.

p(X)p(Y) = what the joint distribution would be if X and Y were independent

32
New cards

KL Example: Bernoulli


33
New cards

KL Example: Gaussian


34
New cards

Forward KL vs Reverse KL


35
New cards

Cross-Entropy

Measures the average surprise when data comes from the true distribution p, but we predict using another distribution q.


36
New cards

Cross entropy relationship

Cross-entropy = inherent uncertainty + penalty for using an imperfect model

Cross-entropy is minimized when q matches p.

37
New cards

Classification loss


38
New cards

Perplexity