Skip to content
GATEiit

GATE EC · Communications

Mutual information and channel capacity theorem

Joint and conditional entropy, mutual information of a discrete channel, capacity of the BSC, BEC and noiseless channels, Shannon's channel coding theorem and the Shannon-Hartley capacity of a band-limited AWGN channel.

Before you start

  • Entropy →

    Mutual information and capacity are differences of entropies; you must compute H(X) and the binary entropy quickly.

  • Joint and conditional probability →

    A channel is a table of conditional probabilities P(y∣x); output probabilities come from the total probability rule.

  • Logarithms to base 2

    Information is measured in bits; convert with log⁡2x=ln⁡x/ln⁡2.

This topic comes before: Source coding

Concept notes

1. The discrete channel and its entropies

A discrete memoryless channel takes an input symbol X and gives an output Y according to the transition probabilities P(y∣x), arranged as a matrix with one row per input. Each row sums to 1.

Given the input distribution P(x):

  • Output probabilities: P(y)=∑xP(x)P(y∣x).
  • Joint probabilities: P(x,y)=P(x)P(y∣x).

Five entropies describe the pair (all in bits):

Entropy Meaning
H(X) uncertainty about the input
H(Y) uncertainty about the output
H(X,Y) uncertainty about the pair
H(Y∣X) noise: uncertainty in the output when the input is known
H(X∣Y) equivocation: uncertainty left about the input after seeing the output

H(Y∣X)=∑xP(x)H(Y∣X=x), where H(Y∣X=x) is the entropy of row x of the channel matrix. If every row has the same set of entries, H(Y∣X) equals that row entropy whatever P(x) is.

Chain rule: H(X,Y)=H(X)+H(Y∣X)=H(Y)+H(X∣Y). Conditioning never increases entropy: H(X∣Y)≤H(X), with equality when X and Y are independent.

The binary entropy function Hb(p)=−plog⁡2p−(1−p)log⁡2(1−p) appears in almost every binary problem. Useful values: Hb(0.1)≈0.469, Hb(0.2)≈0.722, Hb(0.5)=1.

2. Mutual information

Mutual information is the information the output gives about the input:

I(X;Y)=H(X)−H(X∣Y)=H(Y)−H(Y∣X)=H(X)+H(Y)−H(X,Y)

In sum form, I(X;Y)=∑x,yP(x,y)log⁡2P(x,y)P(x)P(y).

Properties:

  • I(X;Y)≥0, and I(X;Y)=0 exactly when X and Y are independent (a useless channel).
  • Symmetric: I(X;Y)=I(Y;X).
  • I(X;Y)≤min⁡(H(X),H(Y)).
  • For a noiseless channel (Y determines X), H(X∣Y)=0 and I=H(X).

The Venn picture is the fastest way to recall the identities: each circle is an entropy, the overlap is I(X;Y), the parts outside the overlap are the conditional entropies, and the union is H(X,Y).

Working rule: H(Y)−H(Y∣X) is usually easiest, because H(Y∣X) comes straight from the rows of the channel matrix and H(Y) needs only the output probabilities.

H(X|Y)I(X;Y)H(Y|X)H(X)H(Y)the union of both circles is H(X,Y)
Entropy Venn diagram: the overlap of H(X) and H(Y) is the mutual information I(X;Y)

3. Channel capacity of discrete channels

The capacity of a channel is the largest mutual information over all input distributions:

C=max⁡P(x)I(X;Y)bits per channel use

If the channel is used rs times per second, the capacity in bits/s is rsC.

Channel Capacity Achieved by
Noiseless, M inputs log⁡2M equiprobable inputs
Binary symmetric (BSC), crossover p 1−Hb(p) equiprobable inputs
Binary erasure (BEC), erasure ε 1−ε equiprobable inputs
Symmetric, ∣Y∣ outputs, row entropy Hr log⁡2∣Y∣−Hr equiprobable inputs

Notes for the BSC: C=0 at p=0.5 (output independent of input) and C=1 at both p=0 and p=1 (at p=1 the receiver simply inverts every bit). For any input distribution other than the uniform one, I(X;Y)<C.

The BEC never flips a bit; it only erases a fraction ε, and the receiver knows which ones. That is why its capacity is the simple fraction 1−ε that gets through.

01011 - p1 - ppp010e11 - ε1 - εεεBSC: C = 1 - Hb(p)BEC: C = 1 - ε
Binary symmetric channel (crossover p) and binary erasure channel (erasure probability ε, output e = erased)

4. Shannon's theorems and the AWGN channel

Channel coding theorem: if the information rate R is below the capacity C, there exist codes that make the error probability as small as desired. If R>C, no code can do so. Capacity is a hard limit on reliable rate, not on raw signalling rate.

Shannon-Hartley theorem: a channel of bandwidth B with additive white Gaussian noise of one-sided PSD N0 and average signal power S has

C=Blog⁡2(1+SN) bits/s,N=N0B

  • Use the linear SNR in the formula; convert dB first (30 dB→1000).
  • At high SNR, each extra 3 dB adds about B bits/s; doubling B at fixed SNR doubles C.
  • With fixed S and N0, increasing B also raises the noise, so C grows but saturates: C∞=lim⁡B→∞Blog⁡2(1+SN0B)=SN0log⁡2e≈1.44 SN0.

Shannon limit: writing S=EbR and letting R=C with B→∞ gives the minimum Eb/N0=ln⁡2≈0.693, that is −1.59 dB. Below this, no scheme can communicate reliably.

Bandwidth-SNR trade-off: the same capacity can be reached with less bandwidth and more SNR, or the reverse.

Formulas to remember

Mutual information
I(X;Y)=H(X)−H(X∣Y)=H(Y)−H(Y∣X)
Joint entropy identity
I(X;Y)=H(X)+H(Y)−H(X,Y)
Chain rule
H(X,Y)=H(X)+H(Y∣X)=H(Y)+H(X∣Y)
Binary entropy function
Hb(p)=−plog⁡2p−(1−p)log⁡2(1−p)
Channel capacity
C=max⁡P(x)I(X;Y)
BSC and BEC capacity
CBSC=1−Hb(p),CBEC=1−ε
Shannon-Hartley
C=Blog⁡2(1+SN0B)
Infinite-bandwidth capacity
C∞=SN0log⁡2e≈1.44 SN0
Shannon limit
(EbN0)min⁡=ln⁡2≈−1.59 dB

Common mistakes

  • Putting the SNR in dB straight into log⁡2(1+S/N); convert to a ratio first.
  • Taking the BSC capacity as zero at p=1; a channel that always flips is as good as a perfect one.
  • Computing I(X;Y) for a given skewed input and calling it the capacity; capacity is the maximum over inputs.
  • Assuming capacity grows without limit with bandwidth when signal power and noise PSD are fixed.
  • Mixing up H(X∣Y) (equivocation) and H(Y∣X) (noise entropy) in the identities.
  • Using natural logarithms and reporting the answer in bits; use base 2 or divide by ln⁡2.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Mutual information of a BSC with unequal inputs

numerical

A binary symmetric channel has crossover probability 0.2. The input is 0 with probability 0.75. Find I(X;Y) and compare it with the capacity.

  1. Step 1: Find the output probabilities.

    Try it on paper first.

Example 2: Capacity of a telephone-grade channel

numerical

A channel has bandwidth 3 kHz and SNR 30 dB. Find its Shannon capacity.

  1. Step 1: Convert the SNR to a ratio.

    Try it on paper first.

Example 3: SNR needed for a target rate

numerical

Data at 20 kbps must be sent reliably over a 5 kHz AWGN channel. What is the minimum SNR in dB?

  1. Step 1: Set the rate equal to capacity.

    Try it on paper first.

Example 4: Capacity with unlimited bandwidth

conceptual

Signal power and noise PSD are fixed with S/N0=104 s−1. A designer proposes increasing the bandwidth without limit to get any desired rate. Is this right?

  1. Step 1: Write capacity as a function of B.

    Try it on paper first.

Previous year questions

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

Topic test

10 questions: up to 3 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.