GO-V.ORG
As seen in

Shannon's source coding theorem

In information theory, Shannon's source coding theorem (or noiseless coding theorem) establishes the statistical limits to possible data compression for data whose source is an independent identically-distributed random variable, and the operational meaning of the Shannon entropy. Named after Claude Shannon, the source coding theorem shows that, in the limit, as the length of a stream of independent and identically-distributed random variable (i.i.d.) data tends to infinity, it is impossible to compress such data such that the code rate (average number of bits per symbol) is less than the Shannon entropy of the source, without it being virtually certain that information will be lost.... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

In information theory, Shannon's source coding theorem (or noiseless coding theorem) establishes the statistical limits to possible data compression for data whose source is an independent identically-distributed random variable, and the operational meaning of the Shannon entropy. Named after Claude Shannon, the source coding theorem shows that, in the limit, as the length of a stream of independent and identically-distributed random variable (i.i.d.) data tends to infinity, it is impossible to compress such data such that the code rate (average number of bits per symbol) is less than the Shannon entropy of the source, without it being virtually certain that information will be lost. However it is possible to get the code rate arbitrarily close to the Shannon entropy, with negligible probability of loss. The source coding theorem for symbol codes places an upper and a lower bound on the minimal possible expected length of codewords as a function of the entropy of the input word (which is viewed as a random variable) and of the size of the target alphabet. Note that, for data that exhibits more dependencies (whose source is not an i.i.d. random variable), the Kolmogorov complexity, which quantifies the minimal description length of an object, is more suitable to describe the limits of data compression. Shannon entropy takes into account only frequency regularities while Kolmogorov complexity takes into account all algorithmic regularities, so in general the latter is smaller. On the other hand, if an object is generated by a random process in such a way that it has only frequency regularities, entropy is close to complexity with high probability (Shen et al. 2017). p(x_1, \ldots, x_n) = \Pr \left[X_1 = x_1, \cdots, X_n = x_n \right]. The typical set, , is defined as follows: A_n^\varepsilon =\left\{(x_1, \cdots, x_n) \ : \ \left|-\frac{1}{n} \log p(x_1, \cdots, x_n) - H_n(X)\right| The asymptotic equipartition property (AEP) shows that for large enough , the probability that a sequence generated by the source lies in the typical set, , as defined approaches one. In particular, for sufficiently large , P((X_1,X_2,\cdots,X_n) \in A_n^\varepsilon) can be made arbitrarily close to 1, and specifically, greater than 1-\varepsilon (See AEP for a proof). The definition of typical sets implies that those sequences that lie in the typical set satisfy: 2^{-n(H(X)+\varepsilon)} \leq p \left (x_1, \cdots, x_n \right ) \leq 2^{-n(H(X)-\varepsilon)} The probability of a sequence (X_1,X_2,\cdots X_n) being drawn from is greater than . \left| A_n^\varepsilon \right| \leq 2^{n(H(X)+\varepsilon)} , which follows from the left hand side (lower bound) for p(x_1,x_2,\cdots x_n) . \left| A_n^\varepsilon \right| \geq (1-\varepsilon) 2^{n(H(X)-\varepsilon)} , which follows from upper bound for p(x_1,x_2,\cdots x_n) and the lower bound on the total probability of the whole set . Since \left| A_n^\varepsilon \right| \leq 2^{n(H(X)+\varepsilon)}, n(H(X)+\varepsilon) bits are enough to point to any string in this set. The encoding algorithm: the encoder checks if the input sequence lies within the typical set; if yes, it outputs the index of the input sequence within the typical set; if not, the encoder outputs an arbitrary digit number. As long as the input sequence lies within the typical set (with probability at least ), the encoder does not make any error. So, the probability of error of the encoder is bounded above by . Proof of converse: the converse is proved by showing that any set of size smaller than (in the sense of exponent) would cover a set of probability bounded away from . For let denote the word length of each possible . Define q_i = a^{-s_i}/C , where is chosen so that . Then \begin{align} H(X) &= -\sum_{i=1}^n p_i \log_2 p_i \\ &\leq -\sum_{i=1}^n p_i \log_2 q_i \\ &= -\sum_{i=1}^n p_i \log_2 a^{-s_i} + \sum_{i=1}^n p_i \log_2 C \\ &= -\sum_{i=1}^n p_i \log_2 a^{-s_i} + \log_2 C \\ &\leq -\sum_{i=1}^n - s_i p_i \log_2 a \\ &= \mathbb{E} S \log_2 a \\ \end{align} where the second line follows from Gibbs' inequality and the fifth line follows from Kraft's inequality: C = \sum_{i=1}^n a^{-s_i} \leq 1 so . For the second inequality we may set s_i = \lceil - \log_a p_i \rceil so that - \log_a p_i \leq s_i and so a^{-s_i} \leq p_i and \sum a^{-s_i} \leq \sum p_i = 1 and so by Kraft's inequality there exists a prefix-free code having those word lengths. Thus the minimal satisfies \begin{align} \mathbb{E} S & = \sum p_i s_i \\ & === Fixed rate lossless source coding for discrete time non-stationary independent sources=== Define typical set as: A_n^\varepsilon = \left \{x_1^n \ : \ \left|-\frac{1}{n} \log p \left (X_1, \cdots, X_n \right ) - \overline{H_n}(X)\right| Then, for given , for large enough, . Now we just encode the sequences in the typical set, and usual methods in source coding show that the cardinality of this set is smaller than 2^{n(\overline{H_n}(X)+\varepsilon)} . Thus, on an average, bits suffice for encoding with probability greater than , where and can be made arbitrarily small, by making larger. ==See also== Channel coding Error exponent Noisy-channel coding theorem ==References==

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Shannon's source coding theorem". 1777174952. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1351148593

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·