Explore the fundamental limits of data compression and transmission through interactive simulations of Entropy, Source Coding, and Channel Capacity.
Upon completion of this lab, students will be able to:
Calculate the self-information and entropy of a discrete memoryless source based on symbol probabilities.
Understand the Shannon Source Coding Theorem and design efficient codes using Huffman coding principles.
Analyze the effect of noise on binary transmission and calculate the theoretical channel capacity limit.
Information theory, founded by Claude Shannon, quantifies information. The information content $I(x)$ of an event $x$ with probability $P(x)$ is defined as:
Entropy ($H$) is the average information content of a source. It represents the uncertainty or randomness.
The theorem states that the average code length $L$ must be greater than or equal to the entropy $H(X)$ for lossless compression.
Huffman coding is a greedy algorithm used to construct an optimal prefix code that approaches this entropy limit.
The Shannon-Hartley theorem defines the maximum rate at which information can be transmitted over a noisy channel without error.
Where $C$ is capacity in bits/sec, $B$ is bandwidth, and $SNR$ is Signal-to-Noise Ratio. For a Binary Symmetric Channel (BSC) with error probability $p$:
Visualize how probability distribution affects entropy and code efficiency.
Adjust probabilities for symbols A, B, C, D. (Auto-normalized)
Simulate data transmission over a noisy channel and observe the relationship between Error Probability ($p$) and Mutual Information.
C = 1 - H(p)
Navigate to Experiment 1.
1.0 and others to 0. Observe the Entropy ($H=0$).Observe the generated codes.
Navigate to Experiment 2.
0.0. Send 20 bits. Verify 0% error.0.5. Send bits. Observe the output is completely random relative to input. Check the Channel Capacity graph (should be 0).0.1. Send 100 bits. Record the experimental error rate. Does it match $p$?Compile your findings.