🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 39 (from laksa161)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ℹ️ Skipped - page is already crawled

🚫
NOT INDEXABLE
CRAWLED
11 months ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffFAILdownload_stamp > now() - 6 MONTH11.5 months ago
History dropFAILisNull(history_drop_reason)tooold
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://bookdown.org/danielcavey27/lecture_notes/states-and-chains.html
Last Crawled2025-05-08 08:32:35 (11 months ago)
First Indexed2022-12-05 06:27:10 (3 years ago)
HTTP Status Code200
Meta TitleChapter 8 States and Chains | Probability Methods and Time Series
Meta DescriptionLecture notes for module MATH1056: Probability and Time Series.
Meta Canonicalnull
Boilerpipe Text
Suppose we have a Markov chain which is currently in state i i . It is natural to ask questions such as the following: Are there any states that we cannot ever get to? Once we leave state i i are we guaranteed to get back? If we are certain to return to i i how long does this take on average? If it is possible to return to i i , for what values of n n is it possible to return in n n steps? To answer these questions, we study properties of a Markov chain, and it particular introduce classes of states. Communication of States In this section, we formalise the notion of one state being accessible from another. A state i i is said to communicate with a state j j if there is a non-zero probability that a Markov chain currently in state i i will move to state j j in the future. Mathematically p ( n ) i j > 0 p i j ( n ) > 0 for some n ≥ 0 n ≥ 0 . This is denoted by i → j i → j . That is to say, state i i can communicate with state j j if it is possible to move from i i to j j . Note in Defintion 8.1.1 that n = 0 n = 0 is permitted. It follows that any state i i is said communicate with itself: i → i i → i necessarily. Consider the Markov Chain governing the company website of Example 7.4.2 , that is the Markov chain described by the diagram Note that if X t = 2 X t = 2 for some t t , that is the Markov chain is in state 2, then one can move to state 4 for example by the path X t = 2 , X t + 1 = 1 , X t + 2 = 4 X t = 2 , X t + 1 = 1 , X t + 2 = 4 (other routes are available). Therefore 2 → 4 2 → 4 . Similarly 1 → 4 1 → 4 and 3 → 4 3 → 4 . However since p 44 = 1 p 44 = 1 , or equivalently p 41 = p 42 = p 43 = 0 p 41 = p 42 = p 43 = 0 , it is impossible for the Markov chain to leave state 4. That is state 4 4 cannot communicate with any of the states 1 , 2 , 3 1 , 2 , 3 . States i i and j j are said to intercommunicate if i → j i → j and j → i j → i . This is denoted by i ↔ j i ↔ j We have introduced the notions of communication and intercommunication, as we anticipate that properties of states will be shared by those that intercommunicate with each other. In this vein, one could group together all states that can intercommunicate to partition the Markov chain into communicating classes. We introduce two notions that capture collections of states that have strong properties regarding communication together. A set C C of states is called irreducible if i ↔ j i ↔ j , for all i , j ∈ C i , j ∈ C . A Markov chain is said to be irreducible itself, if the set of all states is irreducible. A set C C of states is said to be closed if for any i ∈ C i ∈ C and j ∉ C j ∉ C , then p i j = 0 p i j = 0 . Once a Markov chain reaches a closed state C C , it will subsequently never leave C C . Consider the Markov chain represented by the following: Show that the set { 1 , 2 } { 1 , 2 } is both irreducible and closed. From the Markov chain diagram, one can read the transition matrix for the Markov chain as P = ⎛ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎝ 1 2 1 2 0 0 0 0 1 4 3 4 0 0 0 0 1 4 1 4 1 4 1 4 0 0 1 4 0 1 4 1 4 0 1 4 0 0 0 0 1 2 1 2 0 0 0 0 1 2 1 2 ⎞ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎠ . P = ( 1 2 1 2 0 0 0 0 1 4 3 4 0 0 0 0 1 4 1 4 1 4 1 4 0 0 1 4 0 1 4 1 4 0 1 4 0 0 0 0 1 2 1 2 0 0 0 0 1 2 1 2 ) . Note that p 12 = 1 2 > 0 p 12 = 1 2 > 0 so there is a path from state 1 1 to state 2 2 , and p 21 = 1 4 > 0 p 21 = 1 4 > 0 so there is a path from state 2 2 to state 1 1 . Therefore 1 ↔ 2 1 ↔ 2 , that is { 1 , 2 } { 1 , 2 } is irreducible. Also note p 13 = p 14 = p 15 = p 16 = p 23 = p 24 = p 25 = p 26 = 0 p 13 = p 14 = p 15 = p 16 = p 23 = p 24 = p 25 = p 26 = 0 , so by Definition 8.1.6 the set { 1 , 2 } { 1 , 2 } is closed. Therefore { 1 , 2 } { 1 , 2 } is a closed and irreducible set. Are there any other irreducible and closed sets in the Markov chain of Example 8.1.7 ? What about sets that are only irreducible, and sets that are only closed? The terminology introduced in both Defintion 8.1.5 and Definition 8.1.6 freely for the remainder of the course. If a closed set C C of states contains only one state i i , that is p i i = 1 p i i = 1 and p i j = 0 p i j = 0 for all j ≠ i j ≠ i , we call i i an absorbing state . Find an absorbing state among the Markov chains we have seen in previous examples. Recurrence A state of a Markov chain is called reccurent if P [ X n = i  for some  n ≥ 1 ∣ X 0 = i ] = 1. P [ X n = i  for some  n ≥ 1 ∣ X 0 = i ] = 1. The essence of this definition is that a Markov chain that is currently in some recurrent state is certain to return to that state again in the future. A state of a Markov chain that is not recurrent is called transient . A Markov chain that is currently in some transient state is not certain to return to that state again in the future. Consider the Markov Chain governing Mary Berrys’ choice of Nottingham coffee shop of Example 7.1.3 , that is the Markov chain described by the diagram Show that Latte Da is a recurrent state. Suppose that the Mary Berry visits Latte Da on her t t h t t h trip to Nottingham. Mathematically in terms of the Markov chain: X t = Latte Da X t = Latte Da . First we calculate the probability that Mary Berry doesn’t visit Latte Da on her next N N visits to Nottingham. P ( Mary Berry doesn't visit Latte Da on next  N  visits ∣ X t = Latte Da ) = P ( X t + N = X t + N − 1 = ⋯ = X t + 1 = Deja Brew ∣ X t = Latte Da ) = P ( X t + N = Deja Brew ∣ X t + N − 1 = Deja Brew ) × P ( X t + N − 1 = Deja Brew ∣ X t + N − 2 = Deja Brew ) × … … × P ( X t + 2 = Deja Brew ∣ X t + 1 = Deja Brew ) × P ( X t + 1 = Deja Brew ∣ X t = Latte Da ) = P ( X 1 = Deja Brew ∣ X 0 = Deja Brew ) × P ( X 1 = Deja Brew ∣ X 0 = Deja Brew ) × … … × P ( X 1 = Deja Brew ∣ X 0 = Deja Brew ) × P ( X 1 = Deja Brew ∣ X 0 = Latte Da ) = 5 6 × 2 3 × … 2 3 = 5 6 ( 2 3 ) N − 1 P ( Mary Berry doesn't visit Latte Da on next  N  visits ∣ X t = Latte Da ) = P ( X t + N = X t + N − 1 = ⋯ = X t + 1 = Deja Brew ∣ X t = Latte Da ) = P ( X t + N = Deja Brew ∣ X t + N − 1 = Deja Brew ) × P ( X t + N − 1 = Deja Brew ∣ X t + N − 2 = Deja Brew ) × … … × P ( X t + 2 = Deja Brew ∣ X t + 1 = Deja Brew ) × P ( X t + 1 = Deja Brew ∣ X t = Latte Da ) = P ( X 1 = Deja Brew ∣ X 0 = Deja Brew ) × P ( X 1 = Deja Brew ∣ X 0 = Deja Brew ) × … … × P ( X 1 = Deja Brew ∣ X 0 = Deja Brew ) × P ( X 1 = Deja Brew ∣ X 0 = Latte Da ) = 5 6 × 2 3 × … 2 3 = 5 6 ( 2 3 ) N − 1 Note that as N N gets increasingly big, that is as the number of visits Mary Berry subsequently takes to Nottingham grows, the probability calculated above tends to 0 0 . Therefore the probability of Mary Berry only ever using Deja Brew is 0 0 , or in other words, Mary Berry is certain to return to Latte Da at some point. Therefore Latte Da is a recurrent state. Consider again the Markov Chain governing the company website of Example 7.4.2 , seen in Example 8.1.2 . Show that state 1 is a transient state. Suppose the user is on the Home Page of the website, that is X t = 1 X t = 1 for some t t . The user could click on the link to the Staff Page , that is, state 4 of the Markov chain. At this point it is impossible for the user to return to the Home Page , or state 1. That is to say, it is not certain that the Markov chain will ever return to state 1. Therefore state 1 is transiant. Mean Recurrence Times The mean recurrence time of a state i i , denoted μ i μ i , is given by μ i = ⎧ ⎨ ⎩ ∑ n ≥ 1 n f ( n ) i i , if state  i  recurrent, ∞ , if state  i  transiant. μ i = { ∑ n ≥ 1 n f i i ( n ) , if state  i  recurrent, ∞ , if state  i  transiant. Suppose i i is a recurrent state. It follows from Definition 8.3.1 , that the mean recurrence time is the average time that it takes for the Markov chain currently in state i i to return to i i . This can be seen by noting that the summation is over all possibilities for how long it could take the Markov chain to return as required, and that f ( n ) i i f i i ( n ) is the probability that the Markov chain moves from state i i to state i i in exactly n n steps. Calculate the mean recurrence time μ 1 μ 1 for the Markov Chain governing the company website of Example 7.4.2 . Substituting in the known value of f ( 1 ) 11 = 0 f 11 ( 1 ) = 0 and f ( n ) 11 = 1 3 ⋅ 1 2 n − 2 f 11 ( n ) = 1 3 ⋅ 1 2 n − 2 where n ≥ 2 n ≥ 2 from Example 7.4.4 into Definition 8.3.1 obtain μ 1 = ∑ n ≥ 1 n f ( n ) 11 = f ( 1 ) 11 + ∞ ∑ n = 2 n f ( 2 ) 11 = 0 + ∞ ∑ n = 2 n ⋅ 1 3 ⋅ 1 2 n − 2 = 1 3 ∞ ∑ n = 2 n 2 n − 2 . μ 1 = ∑ n ≥ 1 n f 11 ( n ) = f 11 ( 1 ) + ∑ n = 2 ∞ n f 11 ( 2 ) = 0 + ∑ n = 2 ∞ n ⋅ 1 3 ⋅ 1 2 n − 2 = 1 3 ∑ n = 2 ∞ n 2 n − 2 . Using computer code calculate ∞ ∑ n = 2 n 2 n − 2 = 6 ∑ n = 2 ∞ n 2 n − 2 = 6 and so μ 1 = 1 3 ⋅ 6 = 2. μ 1 = 1 3 ⋅ 6 = 2. Note that even if state i i is recurrent, the mean recurrence time may still be ∞ ∞ . Consider a recurrent state i i . The state i i is said to be positive recurrent if μ i < ∞ μ i < ∞ , or null recurrent if μ i = ∞ μ i = ∞ . It follows from Example 8.3.2 that state 1 1 in the Markov chain governing the company website is positive recurrent since μ 1 = 2 < ∞ μ 1 = 2 < ∞ . If i ↔ j i ↔ j , then i i is positive recurrent if and only if j j is positive recurrent. This lemma provides us with a shortcut to show positive recurrence of a large number of states. Note that Lemma 8.3.5 does not tell us anything about the mean recurrent time of intercommunicating recurrent states beyond finiteness. Namely knowing that μ 1 = 2 μ 1 = 2 in Example 8.3.2 does not provide any new information about μ 2 μ 2 and μ 3 μ 3 , beyond what we would have known given μ 1 < ∞ μ 1 < ∞ . If a Markov chain has a finite number of states, then all recurrent states are positive. Periodicity Consider a Markov chain in some state i i . Consider the values of n n for which p ( n ) i i > 0 p i i ( n ) > 0 , that is, the positive integers n n for which it is possible for the Markov chain to return to i i in n n steps. Throughout this section we denote this collection of values by { a 1 , a 2 , a 3 , … } { a 1 , a 2 , a 3 , … } . The period of state i i is given by d i = gcd ( a 1 , a 2 , a 3 , … ) d i = gcd ( a 1 , a 2 , a 3 , … ) Recall the scenario of Week 6 Questions, Questions 1 to 8 : Every year Ria chooses exactly two apprentices to compete in the fictitious competition Nottingham’s Got Mathematicians . Apprentices are recommended to Ria by Daniel and Lisa. Initially Daniel and Lisa recommend one candidate each. However if Daniel selects the apprentice who finishes second among Ria’s nominees, then this opportunity for recommendation is given to Lisa the following year. Similarly if Lisa chooses the candidate who who finishes second among Ria’s nominees, then this opportunity for recommendation is given to Daniel the following year. This rule is repeated every year, even if Daniel or Lisa choose both the candidates. Generally Lisa is better at picking competitors: a Lisa endorsed candidate beats a Daniel endorsed candidate 75 % 75 % of the time. This scenario can be modelled by the Markov chain: Calculate d 1 d 1 , the period of state 1 1 . Consider all the possible paths that start and end in state 1 1 : 1 → 0 → 1 1 → 2 → 1 1 → 0 → 1 → 0 → 1 1 → 0 → 1 → 2 → 1 1 → 2 → 1 → 0 → 1 1 → 2 → 1 → 2 → 1 1 → 0 → 1 → 0 → 1 → 0 → 1 ⋮ 1 → 0 → 1 1 → 2 → 1 1 → 0 → 1 → 0 → 1 1 → 0 → 1 → 2 → 1 1 → 2 → 1 → 0 → 1 1 → 2 → 1 → 2 → 1 1 → 0 → 1 → 0 → 1 → 0 → 1 ⋮ The lengths of these paths respectively are 2 , 2 , 4 , 4 , 4 , 4 , 6 , … 2 , 2 , 4 , 4 , 4 , 4 , 6 , … . Calculate d 1 = gcd ( 2 , 2 , 4 , 4 , 4 , 4 , 6 , … ) = 2. d 1 = gcd ( 2 , 2 , 4 , 4 , 4 , 4 , 6 , … ) = 2. This definition goes a long way towards answering the question “If it is possible to return to i i , for what values of n n is it possible to return in n n steps?” identified at the opening of the chapter. Namely for a given value n n , it is possible to return from to state i i to state i i if and only if d i d i divides n n exactly. Consider the Markov chain of Example 8.4.2 . Calculate d 0 d 0 and d 2 d 2 , the periods of states 0 0 and 2 2 . Clearly states 0 , 1 , 2 0 , 1 , 2 intercommunicate, that is, 0 ↔ 1 0 ↔ 1 and 1 ↔ 2 1 ↔ 2 . From Example 8.4.2 , we know d 1 = 2 d 1 = 2 and so by Lemma 8.4.3 it follows that d 0 = d 2 = 2 d 0 = d 2 = 2 . A state is said to be aperiodic if d i = 1 d i = 1 . Since trivially 1 1 divides all positive integers n n , this definition is equivalent to saying that it is possible to return to state i i in any number of steps. Aperiodicity is often a feature of the most mathematically interesting Markov chains, and will be a key assumption when it comes to talking about steady states.
Markdownnull
Readable Markdownnull
Shard39 (laksa)
Root Hash3646282709075601439
Unparsed URLorg,bookdown!/danielcavey27/lecture_notes/states-and-chains.html s443