Scale-invariant feature transform

From formulasearchengine
Revision as of 20:41, 10 December 2013 by en>Sweot.ttam (External links)
Jump to navigation Jump to search

29 yr old Orthopaedic Surgeon Grippo from Saint-Paul, spends time with interests including model railways, top property developers in singapore developers in singapore and dolls. Finished a cruise ship experience that included passing by Runic Stones and Church.

In information theory, Shannon's source coding theorem (or noiseless coding theorem) establishes the limits to possible data compression, and the operational meaning of the Shannon entropy.

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 the 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.

Statements

Source coding is a mapping from (a sequence of) symbols from an information source to a sequence of alphabet symbols (usually bits) such that the source symbols can be exactly recovered from the binary bits (lossless source coding) or recovered within some distortion (lossy source coding). This is the concept behind data compression.

Source coding theorem

In information theory, the source coding theorem (Shannon 1948)[1] informally states that:

"N i.i.d. random variables each with entropy H(X) can be compressed into more than N H(X) bits with negligible risk of information loss, as N tends to infinity; but conversely, if they are compressed into fewer than N H(X) bits it is virtually certain that information will be lost." (MacKay 2003, pg. 81,[2] Cover:Chapter 5[3]).

Source coding theorem for symbol codes

Let Σ1, Σ2 denote two finite alphabets and let Σ1* and Σ2* denote the set of all finite words from those alphabets (respectively).

Suppose that X is a random variable taking values in Σ1 and let f be a uniquely decodable code from Σ1* to Σ2* where |Σ2|=a. Let S denote the random variable given by the wordlength f(X).

If f is optimal in the sense that it has the minimal expected wordlength for X, then

H(X)log2a𝔼S<H(X)log2a+1

(Shannon 1948)

Proof: Source coding theorem

Given X is an i.i.d. source, its time series X1, ..., Xn is i.i.d. with entropy H(X) in the discrete-valued case and differential entropy in the continuous-valued case. The Source coding theorem states that for any ϵ>0 for any rate larger than the entropy of the source, there is large enough n and an encoder that takes n i.i.d. repetition of the source, X1:n, and maps it to n.(H(X)+ϵ) binary bits such that the source symbols X1:n are recoverable from the binary bits with probability at least 1ϵ.

Proof for achievability

Fix some ϵ>0, and let p(x1,,xn)=Pr[X1=x1,,Xn=xn]. The typical set,Anϵ, is defined as follows:

Anϵ={(x1,,xn):|1nlogp(x1,,xn)Hn(X)|<ϵ}.

The Asymptotic Equipartition Property (AEP) shows that for large enough n, the probability that a sequence generated by the source lies in the typical set,Anϵ, as defined approaches one. In particular there for large enough n, P(Anϵ)>1ϵ (See AEP for a proof):

The definition of typical sets implies that those sequences that lie in the typical set satisfy:

2n(H(X)+ϵ)p(x1,x2,...,xn)2n(H(X)ϵ)

Note that:

  • The probability of a sequence from X being drawn from Anϵ is greater than 1ϵ
  • |Anϵ|(1ϵ)2n(H(X)ϵ). For the proof, use the upper bound on the probability of each term in typical set and the lower bound on the probability of the whole set Anϵ.

Since |Anϵ|2n(H(X)+ϵ),n.(H(X)+ϵ) 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 n.(H(X)+ϵ) digit number. As long as the input sequence lies within the typical set (with probability at least 1ϵ), the encoder doesn't make any error. So, the probability of error of the encoder is bounded above by ϵ

Proof for converse The converse is proved by showing that any set of size smaller than Anϵ (in the sense of exponent) would cover a set of probability bounded away from 1.

Proof: Source coding theorem for symbol codes

Let si denote the wordlength of each possible xi (i=1,,n). Define qi=asi/C, where C is chosen so that qi=1.

Then

H(X)=i=1npilog2pii=1npilog2qi=i=1npilog2asi+i=1npilog2C=i=1npilog2asi+log2Ci=1nsipilog2a𝔼Slog2a

where the second line follows from Gibbs' inequality and the fifth line follows from Kraft's inequality: C=i=1nasi1 so logC0.

For the second inequality we may set

si=logapi

so that

logapisi<logapi+1

and so

asipi

and

asipi=1

and so by Kraft's inequality there exists a prefix-free code having those wordlengths. Thus the minimal S satisfies

𝔼S=pisi<pi(logapi+1)=pilog2pilog2a+1=H(X)log2a+1.

Extension to non-stationary independent sources

Fixed Rate lossless source coding for discrete time non-stationary independent sources

Define typical set Anϵ as:

Anϵ={x1n:|1nlogp(X1,X2,...,Xn)Hn¯(X)|<ϵ}.

Then, for given δ>0, for n large enough, Pr(Anϵ)>1δ. 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 2n(Hn¯(X)+ϵ). Thus, on an average, Hn¯(X)+ϵ bits suffice for encoding with probability greater than 1δ, where ϵ and δ can be made arbitrarily small, by making n larger.

See also

References

43 year old Petroleum Engineer Harry from Deep River, usually spends time with hobbies and interests like renting movies, property developers in singapore new condominium and vehicle racing. Constantly enjoys going to destinations like Camino Real de Tierra Adentro.

  1. Cite error: Invalid <ref> tag; no text was provided for refs named Shannon
  2. Cite error: Invalid <ref> tag; no text was provided for refs named MacKay
  3. Cite error: Invalid <ref> tag; no text was provided for refs named Cover