



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




PART II (Final Year)
MATHEMATICS & STATISTICS
Math332: Stochastic Processes 2 hours
You should answer ALL Section A questions and TWO Section B questions.
In Section A there are questions worth a total of 50 marks, but the maximum mark that you gain there is capped at 40.
SECTION A
A1. (^) (a) What conditions on the values that a random variable can take need to be satisfied for that random variable to have a probability generating function? Define the probability generating function for such a random variable, T. [4] (b) If T has probability generating function G(z), and if S = n + T where n is a positive integer, determine the probability generating function for S. [3] (c) A random variable, S, has probability generating function
G(z) = pz
n 1 − (1 − p)z , where p is a constant satisfying 0 < p < 1, and n is a positive integer. Calculate the mean and variance of S. [5]
please turn over
SECTION A continued
A2. Consider a simple random walk,
P(Xt = Xt− 1 + 1) = p, P(Xt = Xt− 1 − 1) = q = 1 − p. Assume X 0 = 2.
(a) By conditioning on the first two moves of the simple random walk, calculate the probability that Xt hits 0 before it first hits 4. [4] (b) Let T be the time when Xt first hits either 0 or 4. Calculate the probability generating function for T. [4] (c) By expanding the probability generating function as G(z) = p 0 + p 1 z + p 2 z^2 + · · · , where pi = P(T = i), show that for i > 2
pi − 2 pqpi− 2 = 0. (^) [4]
(d) Hence calculate the probability mass function for T , i.e. calculate P(T = t) for t = 0, 1 , 2 ,.... [6]
A3. David buys one of three different types of sandwich each day: cheese, ham, or jam. He never buys the same type for two days in a row. His least favourite is jam: if he did not buy jam yesterday then the probability that he will today is 1/5. He has no preference between cheese and ham.
(a) Define a three state Markov chain for David’s sandwich buying and write down the transition matrix for the chain. [2] (b) Given that David bought a jam sandwich today, what is the expected time until he next buys a jam sandwich? [6] (c) Justify why the Markov chain has an asymptotic distribution, and using your answer to (b) (or otherwise) write down the (approximate) probability that David will buy a jam sandwich on this day next year. [2]
please turn over
B1. Let p be a probability satisfying p ≥ 1 /2, and define q = 1 − p. Consider two simple random walks, Xt and Yt, defined by
P(Xt = Xt− 1 + 1) = p, P(Xt = Xt− 1 − 1) = q,
and P(Yt^ =^ Yt−^1 + 1)^ =^ q, P(Yt = Yt− 1 − 1) = p. Assume that X 0 = Y 0 = 1, and define TX to be the time when Xt first hits 0 (with TX = ∞ if Xt never hits 0). Similarly let TY to be the time when Yt first hits 0. In the following you may use the fact that Yt hits 0 with probability 1. (a) Let Nt be the number of distinct paths of a simple random walk which starts at 1 and first hits 0 at time t – i.e. the number of paths that produce ruin at time t. (i) Write down P r(TX = t) and P(TY = t) in terms of Nt, p and q. You may want to consider the cases where t is odd and even separately. [4] (ii) Hence show that P(TX < ∞) = q pP(TY < ∞), and determine P(TX < ∞). [6] (iii) Let R be the event that TX < ∞. Show that conditional on R, TX has the same distribution as the unconditional distribution of TY :
P(TX = t|R) = P(TY = t). (^) [5]
(b) Assume a is an integer. Define Nt(a) to be the number of paths of a simple random walk that start at X 0 = 1 and end at Xt = a. Further define for a > 0, N t^0 (a), the number of paths that start at X 0 = 1 and end at Xt = a for which Xs = 0 for some s = 1,... , t − 1. (i) For what values of t and a is Nt(a) = 0? Derive an expression for Nt(a) for these cases. [5] (ii) Using the reflection principle, or otherwise, show N t^0 (a) = Nt(−a). [4] (iii) Hence calculate Nt, the number of paths to ruin at time t for a simple random walk with X 0 = 1. [6]
please turn over
SECTION B continued
B2. (a) For an^ N-state discrete-time Markov chain with transition matrix^ P^ , detailed balance requires that there exists a distribution π such that πiPij = πj Pji for all i, j. Show that if a Markov chain satisfies detailed balance then π is an invariant distribution of the Markov chain. [4] Consider a collection of states { 1 ,... , N}, and non-negative weights, wij , which satisfy wij = wji. A discrete-time Markov chain is defined by the transition matrix P with elements Pij = (^) ∑Nwij k=1 wik
(b) Explain why P is a valid transition matrix. [2] (c) Show that detailed balance is equivalent to requiring that for all i and for some fixed constant c ∑πi Nk=1 wik^ =^ c.^
(d) Find the constant, c, and hence write down the invariant distribution of the Markov chain. [5] (e) A group of students move between 5 college bars (A,B,C,D and E) which are equally spaced along a straight line (known as “the spine”) as shown below. A − B − C − D − E The distance between any two adjacent bars is 1/12 km. So for example the distance from B to D is 1/6 km, and from B to E is 1/4 km. After buying and drinking a round in a particular bar (which takes 20 minutes) the students always move to one of the four other bars. The probability that they will move to a particular bar is proportional to 1/d where d is the distance to the bar from the current bar. (i) Consider the bars (A-E) as 5 states and explain how this Markov chain fits into the general class described earlier in this question. [4] (ii) Write down a matrix of weights wij. Hence show that, in this particular scenario c = 1/154. [4] (iii) After a long evening of drinking, for each bar what is the approximate prob- ability that the students will end up in that bar? Justify your answer. [6] please turn over
SECTION B continued
Question B3 continued
B3. Henceforth assume that Hercules and each hydra head are evenly matched: μ = λ. (f) Set u(t) = π 1 (t) + π 2 (t) and v(t) = γπ 1 (t) − λπ 2 (t). Show that du(t) dt =^ −^2 λu(t), and find a similar differential equation for v(t). [4] (g) As the fight commences the hydra has two heads. Solve the differential equations for u(t) and v(t) and hence show that
π 1 (t) = (^) λ +λ γ
e−^2 λt^ − e−(3λ+γ)t
(h) Hence find π 0 (t) and show that the probability that Hercules kills the hydra is λ 6 λ + 2γ.^ [7]
end of exam