Shannon's Source Coding Theorem
Source coding is the process of encoding purely random information from the symbols into a bit string representation that uses the most compressed sequence of bits for which it is possible to recover the symbols.
Source coding is governed by the Source Coding Theorem, which states that any source coding scheme must use, on average, at least as many bits per symbol as the entropy of the source, ensuring that the encoded message retains all the original information.
Mathematically, for a sequence of symbols with a random binary length , and an arbitrarily small , there is a source coding scheme from which the sequence can be recovered with high probability (i.e. ), such that
where represents the average bits per symbol of the sequence.