Stochastic chains with memory of variable length
{{Short description|Stochastic chain family}}
Stochastic chains with memory of variable length are a family of stochastic chains of finite order in a finite alphabet, such as, for every time pass, only one finite suffix of the past, called context, is necessary to predict the next symbol. These models were introduced in the information theory literature by Jorma Rissanen in 1983,{{cite journal|last = Rissanen|first = J|title = A Universal Data Compression System|journal = IEEE Transactions on Information Theory|volume = 29|issue = 5|date = Sep 1983|pages = 656–664|doi = 10.1109/TIT.1983.1056741}} as a universal tool to data compression, but recently have been used to model data in different areas such as biology,{{cite journal|last = Bejenaro|first = G|title = Variations on probabilistic suffix trees: statistical modeling and prediction of protein families |journal = Bioinformatics |volume = 17|issue = 5|date = 2001|pages = 23–43|doi = 10.1093/bioinformatics/17.1.23|pmid = 11222260|doi-access = free}} linguistics{{cite journal |vauthors= Galves A, Galves C, Garcia J, Garcia NL, Leonardi F|date=2012|title= Context tree selection and linguistic rhythm retrieval from written texts|journal = The Annals of Applied Statistics|volume = 6|issue = 5|pages = 186–209|url = http://ams.impa.br/mathscinet/search/publdoc.html?pg1=INDI&s1=70920&vfpref=html&r=6&mx-pid=2951534|doi = 10.1214/11-AOAS511|arxiv= 0902.3619}} and music.{{cite journal|vauthors=Dubnov S, Assayag G, Lartillot O, Bejenaro G|year=2003|title=Using machine-learning methods for musical style modeling|journal=Computer|volume=36|issue=10|pages=73–80|doi=10.1109/MC.2003.1236474|citeseerx=10.1.1.628.4614}}
Definition
A stochastic chain with memory of variable length is a stochastic chain , taking values in a finite alphabet , and characterized by a probabilistic context tree , so that
- is the group of all contexts. A context , being the size of the context, is a finite portion of the past , which is relevant to predict the next symbol ;
- is a family of transition probabilities associated with each context.
History
The class of stochastic chains with memory of variable length was introduced by Jorma Rissanen in the article A universal data compression system. Such class of stochastic chains was popularized in the statistical and probabilistic community by P. Bühlmann and A. J. Wyner in 1999, in the article Variable Length Markov Chains. Named by Bühlmann and Wyner as “variable length Markov chains” (VLMC), these chains are also known as “variable-order Markov models" (VOM), “probabilistic suffix trees” and “context tree models”.{{cite journal |vauthors= Galves A, Garivier A, Gassiat E|date=2012|title= Joint estimation of intersecting context tree models|journal = Scandinavian Journal of Statistics|volume = 40|issue = 2|pages = 344–362|doi = 10.1111/j.1467-9469.2012.00814.x|arxiv= 1102.0673}} The name “stochastic chains with memory of variable length” seems to have been introduced by Galves and Löcherbach, in 2008, in the article of the same name.{{cite journal |vauthors= Galves A, Löcherbach E|date=2008|title= Stochastic chains with memory of variable length|journal = TICSP Series|volume = 38|pages = 117–133|arxiv=0804.2050 |url = https://hal.archives-ouvertes.fr/hal-00798528/document}}
Examples
=Interrupted light source=
Consider a system by a lamp, an observer and a door between both of them. The lamp has two possible states: on, represented by 1, or off, represented by 0. When the lamp is on, the observer may see the light through the door, depending on which state the door is at the time: open, 1, or closed, 0. such states are independent of the original state of the lamp.
Let a Markov chain that represents the state of the lamp, with values in and let be a probability transition matrix. Also, let be a sequence of independent random variables that represents the door's states, also taking values in , independent of the chain and such that
:
where . Define a new sequence such that
: for every
In order to determine the last instant that the observer could see the lamp on, i.e. to identify the least instant , with
Using a context tree it's possible to represent the past states of the sequence, showing which are relevant to identify the next state.
The stochastic chain
:
Inferences in chains with variable length
Given a sample
=The context algorithm=
In the article A Universal Data Compression System, Rissanen introduced a consistent algorithm to estimate the probabilistic context tree that generates the data. This algorithm's function can be summarized in two steps:
- Given the sample produced by a chain with memory of variable length, we start with the maximum tree whose branches are all the candidates to contexts to the sample;
- The branches in this tree are then cut until you obtain the smallest tree that's well adapted to the data. Deciding whether or not shortening the context is done through a given gain function, such as the ratio of the log-likelihood.
Be
:
Rissanen first built a context maximum candidate, given by
From there, Rissanen shortens the maximum candidate through successive cutting the branches according to a sequence of tests based in statistical likelihood ratio. In a more formal definition, if bANnxk1b0 define the probability estimator of the transition probability
:
where
To
:
where
:
Note that
The length of the current estimated context is defined by
:
(X_{n-i}^{n-1}) \,>\, C \log n \right\}\,
where
:
when
=Bayesian information criterion (BIC)=
The estimator of the context tree by BIC with a penalty constant
: