Typical set

In information theory, the typical set is a set of sequences whose probability is close to two raised to the negative power of the entropy of their source distribution. That this set has total probability close to one is a consequence of the asymptotic equipartition property (AEP) which is a kind of law of large numbers. The notion of typicality is only concerned with the probability of a sequence and not the actual sequence itself.

This has great use in compression theory as it provides a theoretical means for compressing data, allowing us to represent any sequence Xn using nH(X) bits on average, and, hence, justifying the use of entropy as a measure of information from a source.

The AEP can also be proven for a large class of stationary ergodic processes, allowing typical set to be defined in more general cases.

Contents

(Weakly) typical sequences (weak typicality, entropy typicality)

If a sequence x1, ..., xn is drawn from an i.i.d. distribution X defined over a finite alphabet \mathcal{X}, then the typical set, Aε(n)\in\mathcal{X}(n) is defined as those sequences which satisfy:

 
2^{-n(H(X)%2B\varepsilon)} \leqslant p(x_1, x_2, \dots , x_n) \leqslant 2^{-n(H(X)-\varepsilon)}

Where

  H(X)  = - \sum_{y \isin \mathcal{X}}p(y)\log_2 p(y)

is the information entropy of X. The probability above need only be within a factor of 2nε.

It has the following properties if n is sufficiently large, ε can be chosen arbitrarily small so that:

  1. The probability of a sequence from X being drawn from Aε(n) is greater than 1 − ε
  2. \left| {A_\varepsilon}^{(n)} \right| \leqslant 2^{n(H(X)%2B\varepsilon)}
  3. \left| {A_\varepsilon}^{(n)} \right| \geqslant (1-\varepsilon)2^{n(H(X)-\varepsilon)}

For a general stochastic process {X(t)} with AEP, the (weakly) typical set can be defined similarly with p(x1x2, ..., xn) replaced by p(x0τ) (i.e. the probability of the sample limited to the time interval [0, τ]), n being the degree of freedom of the process in the time interval and H(X) being the entropy rate. If the process is continuous-valued, differential entropy is used instead.

Strongly typical sequences (strong typicality, letter typicality)

If a sequence x1, ..., xn is drawn from some specified joint distribution defined over a finite or an infinite alphabet \mathcal{X}, then the strongly typical set, Aε,strong(n)\in\mathcal{X} is defined as the set of sequences which satisfy

 
\left|\frac{N(x^n)}{n}-p(x^n)\right| < \frac{\varepsilon}{\|\mathcal{X}\|}.

where {N(x^n)} is the number of occurrences of a specific symbol in the sequence.

It can be shown that strongly typical sequences are also weakly typical (with a different constant ε), and hence the name. The two forms, however, are not equivalent. Strong typicality is often easier to work with in proving theorems for memoryless channels. However, as is apparent from the definition, this form of typicality is only defined for random variables having finite support.

Jointly typical sequences

Two sequences x^n and y^n are jointly ε-typical if the pair (x^n,y^n) is ε-typical with respect to the joint distribution p(x^n,y^n)=\prod_{i=1}^n p(x_i,y_i) and both x^n and y^n are ε-typical with respect to their marginal distributions p(x^n) and p(y^n). The set of all such pairs of sequences (x^n,y^n) is denoted by A_{\varepsilon}^n(X,Y). Jointly ε-typical n-tuple sequences are defined similarly.

Let \tilde{X}^n and \tilde{Y}^n be two independent sequences of random variables with the same marginal distributions p(x^n) and p(y^n). Then the set of jointly typical sequences has the following properties:

  1.  P\left[ (X^n,Y^n) \in A_{\varepsilon}^n(X,Y) \right] \geqslant 1 - \epsilon
  2.  \left| A_{\varepsilon}^n(X,Y) \right| \leqslant 2^{n (H(X,Y) %2B \epsilon)}
  3.  \left| A_{\varepsilon}^n(X,Y) \right| \geqslant (1 - \epsilon) 2^{n (H(X,Y) - \epsilon)}
  4.  P\left[ (\tilde{X}^n,\tilde{Y}^n) \in A_{\varepsilon}^n(X,Y) \right] \leqslant 2^{-n (I(X;Y) - 3 \epsilon)}
  5.  P\left[ (\tilde{X}^n,\tilde{Y}^n) \in A_{\varepsilon}^n(X,Y) \right] \geqslant (1 - \epsilon) 2^{-n (I(X;Y) %2B 3 \epsilon)}

Applications of typicality

Typical set encoding

In communication, typical set encoding encodes only the typical set of a stochastic source with fixed length block codes. Asymptotically, it is, by the AEP, lossless and achieves the minimum rate equal to the entropy rate of the source.

Typical set decoding

In communication, typical set decoding is used in conjunction with random coding to estimate the transmitted message as the one with a codeword that is jointly ε-typical with the observation. i.e.

\hat{w}=w \iff (\exists!w)( (x_1^n(w),y_1^n)\in A_{\varepsilon}^n(X,Y))

where \hat{w},x_1^n(w),y_1^n are the message estimate, codeword of message w and the observation respectively. A_{\varepsilon}^n(X,Y) is defined with respect to the joint distribution p(x_1^n)p(y_1^n|x_1^n) where p(y_1^n|x_1^n) is the transition probability that characterizes the channel statistics, and p(x_1^n) is some input distribution used to generate the codewords in the random codebook.

Universal null-hypothesis testing

Universal channel code

See also

References