Skip to content
GATEiit

GATE EC · Communications

Entropy

Information content of a symbol, entropy of a discrete memoryless source and its bounds, the binary entropy function, information rate, source extensions, and joint and conditional entropy, with the numericals GATE asks.

Before you start

This topic comes before: Mutual information and channel capacity theorem, Source coding

Concept notes

1. Information content of a symbol

A source emits symbols x1,…,xM with probabilities p1,…,pM. The self-information (information content) of symbol xk is

I(xk)=log⁡21pk bits

  • A certain event (p=1) carries zero information; a rare event carries a lot.
  • I≥0, and I(xj)>I(xk) when pj<pk.
  • For independent symbols, information adds: I(xjxk)=I(xj)+I(xk), because probabilities multiply.

Units depend on the base of the log:

Base Unit Conversion
2 bit (shannon)
e nat 1 nat=log⁡2e=1.443 bits
10 decit (hartley) 1 decit=log⁡210=3.322 bits

Unless told otherwise, GATE uses bits. Quick values: p=1/2→1 bit, 1/4→2, 1/8→3, 1/32→5; p=0.1→3.32 bits.

2. Entropy of a discrete memoryless source

A discrete memoryless source (DMS) emits symbols independently, with fixed probabilities. Its entropy is the average information per symbol:

H(X)=∑k=1Mpklog⁡21pk bits/symbol

(with 0log⁡0 taken as 0).

Bounds: 0≤H(X)≤log⁡2M

  • H=0 only when one symbol is certain (no uncertainty).
  • H=log⁡2M only when all M symbols are equally likely (maximum uncertainty).

Entropy depends only on the probabilities, not on the symbol values. Rearranging or relabelling symbols does not change it.

Example. Probabilities 12,14,18,18: H=12(1)+14(2)+18(3)+18(3)=1.75 bits/symbol, below the maximum log⁡24=2.

Meaning. By Shannon's source coding theorem, H is the smallest average number of binary digits per symbol with which the source can be coded without loss. Coding efficiency is η=H/Lˉ, where Lˉ is the average codeword length; redundancy is 1−η. (Code construction is covered under source coding.)

3. Binary entropy function

A binary source with P(1)=p, P(0)=1−p has

Hb(p)=−plog⁡2p−(1−p)log⁡2(1−p)

  • Hb(0)=Hb(1)=0; the maximum is Hb(0.5)=1 bit.
  • Symmetric: Hb(p)=Hb(1−p).
  • Concave: it rises steeply near 0 and 1 and is flat near 0.5.

Values worth remembering: Hb(0.1)=0.469, Hb(0.2)=0.722, Hb(0.25)=0.811, Hb(0.3)=0.881.

Hb(p) reappears in the capacity of the binary symmetric channel, C=1−Hb(p), where p is the crossover probability.

pHb(p) bits00.10.20.50.80.910.4690.7221maximum 1 bit at p = 0.5Hb(p) = −p log₂p − (1−p) log₂(1−p)symmetric: Hb(p) = Hb(1−p)Hb(0) = Hb(1) = 0
The binary entropy function $H_b(p)$: zero at $p = 0$ and $1$, symmetric about $p = 0.5$, where it reaches its maximum of 1 bit.

4. Information rate and source extension

If the source emits r symbols per second, its information rate is

R=r H(X) bits/s

Typical GATE setting. An analog signal of bandwidth B is sampled at the Nyquist rate r=2B samples/s and each sample is quantised to one of M levels with given probabilities. Then R=2B×H. If the levels are equally likely, R=2Blog⁡2M.

Extension of a source. Treating blocks of n symbols from a DMS as one super-symbol gives Mn super-symbols and

H(Xn)=nH(X)

The entropy per original symbol does not change; extensions are used so that a code can come closer to H.

Sources with memory. If successive symbols are dependent, the average information per symbol is less than the single-symbol entropy computed from the marginal probabilities. GATE problems almost always state that the source is memoryless; read the question for this word.

5. Joint and conditional entropy

For two random variables X and Y with joint pmf p(x,y):

  • Joint entropy: H(X,Y)=∑x,yp(x,y)log⁡21p(x,y).
  • Conditional entropy: H(X∣Y)=∑x,yp(x,y)log⁡21p(x∣y), the uncertainty left in X after Y is known.

Chain rule: H(X,Y)=H(X)+H(Y∣X)=H(Y)+H(X∣Y)

Key properties.

  • Conditioning never increases entropy: H(X∣Y)≤H(X), with equality if and only if X and Y are independent.
  • H(X,Y)≤H(X)+H(Y), with equality for independent variables.
  • If Y is a function of X, then H(Y∣X)=0 and H(X,Y)=H(X).

The reduction H(X)−H(X∣Y) is the mutual information I(X;Y), the basis of channel capacity (a separate topic).

Continuous variables use differential entropy h(X)=−∫f(x)log⁡2f(x) dx. Unlike H, it can be negative: a uniform variable on [0,a] has h=log⁡2a, negative for a<1. For a fixed variance σ2 the Gaussian has the largest value, h=12log⁡2(2πeσ2).

Formulas to remember

Self-information
I(xk)=log⁡21pk
Entropy
H(X)=∑kpklog⁡21pk
Bounds
0≤H(X)≤log⁡2M
Binary entropy
Hb(p)=−plog⁡2p−(1−p)log⁡2(1−p)
Information rate
R=r H(X) bits/s
Extension
H(Xn)=nH(X)
Chain rule
H(X,Y)=H(X)+H(Y∣X)
Unit conversion
1 nat=1.443 bits,1 decit=3.322 bits

Common mistakes

  • Using the natural log or log base 10 and quoting the answer in bits; convert with log₂x = ln x / ln 2.
  • Thinking a rarer symbol carries less information; information grows as probability falls.
  • Multiplying entropy by the bandwidth instead of the sampling rate; at the Nyquist rate the symbol rate is 2B.
  • Taking log₂M as the entropy when the symbols are not equally likely; it is only the upper bound.
  • Forgetting that H(X, Y) = H(X) + H(Y) only for independent variables; otherwise use the chain rule.
  • Assuming differential entropy behaves like discrete entropy; it can be negative.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Entropy of a four-symbol source

numerical

A memoryless source emits A,B,C,D with probabilities 12,14,18,18. Find the information in each symbol, the entropy, and how far it is from the maximum.

  1. Step 1: Find $I = \log_2(1/p)$ for each symbol.

    Try it on paper first.

Example 2: Information rate of a quantised signal

numerical

A signal band-limited to 4 kHz is sampled at the Nyquist rate and each sample is quantised to four levels with probabilities 12,14,18,18. Samples are independent. Find the information rate.

  1. Step 1: Find the symbol rate.

    Try it on paper first.

Example 3: A skewed binary source

numerical

A binary memoryless source emits 1 with probability 0.1. Find its entropy and the entropy of its second extension.

  1. Step 1: Apply the binary entropy formula.

    Try it on paper first.

Example 4: Conditional entropy when one variable fixes the other

conceptual

X is equally likely to be 1,2,3 or 4, and Y=X mod 2. Find H(X), H(Y), H(X,Y) and H(X∣Y).

  1. Step 1: Find $H(X)$ and $H(Y)$.

    Try it on paper first.

Previous year questions

2 official GATE EC questions on this topic, newest first.

Topic test

10 questions: up to 2 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.