Stochastic Processes · free preview

Final Exam

Final exam covering the whole course.

1. How this assessment works

This lesson is a curated assessment adapted from MIT OpenCourseWare 6.262 Discrete Stochastic Processes (Spring 2011) (https://ocw.mit.edu/courses/6-262-discrete-stochastic-processes-spring-2011/), used under CC BY-NC-SA 4.0. Work through the 10 problems in order, for each problem, type your reasoning in the answer box or write it on the handwriting pad, then submit it for AI grading.

How the grading works Every problem is graded by an AI mathematics teacher that reads the official solution shipped with the course. It checks your work criterion by criterion, awards partial credit for correct steps, and returns written feedback. Equivalent mathematics and valid alternative methods are accepted, a different route to the same result can still earn full marks.

If your answer is incomplete, the feedback names exactly which steps are missing, so you can correct them and try again.

2. Problem 1, Piecewise joint PDF independence conditioning and CDF

XX and YY are continuous random variables. XX takes on values between 00 and 22 while YY takes on values between 00 and 11. Their joint pdf is indicated below fX,Y(x,y)=12f_{X,Y}(x,y)=\frac{1}{2} on the region shown with label 12\frac{1}{2} and fX,Y(x,y)=32f_{X,Y}(x,y)=\frac{3}{2} on the region shown with label 32\frac{3}{2} (the pdf is piecewise constant over the two triangular/subregions of the unit strip as drawn, and zero elsewhere).

(a) Are XX and YY independent? Present a convincing argument for your answer.

(b) Prepare neat, fully labelled plots for fX(x)f_X(x), fY∣X(y∣0.5)f_{Y|X}(y\mid 0.5), and fX∣Y(x∣0.5)f_{X|Y}(x\mid 0.5).

(c) Let R=XYR=XY and let AA be the event X<0.5X<0.5. Evaluate E[R∣A]E[R\mid A].

(d) Let W=Y−XW=Y-X and determine the cumulative distribution function (CDF) of WW.

3. Problem 2, At most one recurrent class accessible from state 1

Exercise 3.3 in text.

4. Problem 3, Exercise 2.3 in text

Exercise 2.3 in text.

5. Problem 4, Martingale differences shift probability convergence

Let {Zn;n≥1}\{Z_n ; n \ge 1\} be a martingale, and for some integer mm, let Yn=Zn+m−ZmY_n = Z_{n+m} - Z_m.

a) Show that E[Yn∣Zn+m−1=zn+m−1,Zn+m−2=zn+m−2,…,Zm=zm,…,Z1=z1]=zn+m−1−zmE[Y_n \mid Z_{n+m-1} = z_{n+m-1}, Z_{n+m-2} = z_{n+m-2}, \ldots, Z_m = z_m, \ldots, Z_1 = z_1] = z_{n+m-1} - z_m.

b) Show that E[Yn∣Yn−1=yn−1,…,Y1=y1]=yn−1E[Y_n \mid Y_{n-1} = y_{n-1}, \ldots, Y_1 = y_1] = y_{n-1}.

c) Show that E[∣Yn∣]<∞E[|Y_n|] < \infty. Note that b) and c) show that {Yn;n≥1}\{Y_n ; n \ge 1\} is a martingale.

6. Problem 5, Binary signal detection with additive Gaussian noise

Signal Classification. Consider the communication of binary-valued messages over some transmission medium. Specifically, any message transmitted between locations is one of two possible symbols, 00 or 11. Each symbol occurs with equal probability. It is also known that any numerical value sent over this wire is subject to distortion; namely, if the value XX is transmitted, the value YY received at the other end is described by Y=X+NY=X+N where the random variable NN represents additive noise that is independent of XX. The noise NN is normally distributed with mean μ=0\mu=0 and variance σ2=4\sigma^2=4.

(a) Suppose the transmitter encodes the symbol 00 with the value X=−2X=-2 and the symbol 11 with the value X=2X=2. At the other end, the received message is decoded according to the following rules.

• If Y≥0Y\ge 0, then conclude the symbol 11 was sent.

• If Y<0Y<0, then conclude the symbol 00 was sent.

Determine the probability of error for this encoding/decoding scheme. Reduce your calculations to a single numerical value.

(b) In an effort to reduce the probability of error, the following modifications are made. The transmitter encodes the symbols with a repeated scheme. The symbol 00 is encoded with the vector X=[−2,−2,−2]⊤X=[-2,-2,-2]^\top and the symbol 11 is encoded with the vector X=[2,2,2]⊤X=[2,2,2]^\top. The vector Y=[Y1,Y2,Y3]⊤Y=[Y_1,Y_2,Y_3]^\top received at the other end is described by Y=X+NY=X+N. The vector N=[N1,N2,N3]⊤N=[N_1,N_2,N_3]^\top represents the noise vector where each NiN_i is a random variable assumed to be normally distributed with mean μ=0\mu=0 and variance σ2=4\sigma^2=4. Assume each NiN_i is independent of each other and independent of the XiX_i's. Each component value of YY is decoded with the same rule as in part (a). The receiver then uses a majority rule to determine which symbol was sent. The receiver's decoding rules are.

• If 2 or more components of YY are greater than 00, then conclude the symbol 11 was sent.

• If 2 or more components of YY are less than 00, then conclude the symbol 00 was sent.

Determine the probability of error for this modified encoding/decoding scheme. Reduce your calculations to a single numerical value.

7. Problem 6, Generalizing two-cycle graph to M states and Theorem 3.2.4 equality

Describe how to generalize the graph in Figure 3.4 to an arbitrary number of states M≥3M \ge 3 such that, as in Fig. 3.4, there are only two distinct cycles, one of length MM and the other of length M−1M-1. For M=4M = 4, let node 1 be the node not in the cycle of length M−1M-1 and list the set of states accessible from node 1 in nn steps for each nn, 2≤n≤122 \le n \le 12. Observe that the bound in Theorem 3.2.4 is met with equality and describe (with no attempt at being rigorous), why this equality is met for all other M≥3M \ge 3.

8. Problem 7, Exercise 2.10 in text

Exercise 2.10 in text.

9. Problem 8, Exponential random walk stopping time expectation

Consider a random walk given by Sn=∑i=1nIiYiS_n = \sum_{i=1}^n I_i Y_i. The YiY_i are IID exponentially distributed with rate λ\lambda and the IiI_i are binary IID random variables taking values in the set {−1,1}\{-1,1\} with probabilities P(Ii=1)=p=1−P(Ii=−1)P(I_i=1)=p=1-P(I_i=-1). Assume that the processes IiI_i and YiY_i are independent. Consider two thresholds α\alpha and −α-\alpha, where 0<α<∞0<\alpha<\infty and let NN be the first time the walk falls outside of (−α,α)(-\alpha,\alpha), i.e. N=min⁡{n∣Sn∉(−α,α)}N=\min\{n\mid S_n\notin(-\alpha,\alpha)\}. The goal of this problem is to compute E(N)E(N) for all choices of 0≤p≤10\le p\le1.

(a) (5 pts) Determine the conditional probability distribution of SNS_N given SN≥αS_N\ge\alpha, as well as the conditional probability distribution of SNS_N given SN≤−αS_N\le-\alpha. (Hint. Focus on the fact that SN≥α  ⟹  SN−1<αS_N\ge\alpha \implies S_{N-1}<\alpha and consider the distribution of YY.)

(b) (5 pts) Compute E(erSN)E(e^{rS_N}) and establish the range of rr for which the expression is valid. Express your answer in terms of α\alpha, λ\lambda and qα=P(SN≥α)q_\alpha=P(S_N\ge\alpha).

(c) (5 pts) Compute gI1Y1(r)=E(erI1Y1)g_{I_1Y_1}(r)=E(e^{rI_1Y_1}). For each value of p∈(0,1/2)p\in(0,1/2), find the values of rr such that gI1Y1(r)=1g_{I_1Y_1}(r)=1.

(d) (5 pts) Compute qαq_\alpha for p∈(0,1/2)p\in(0,1/2). (Hint. Your answer need not be elegant.)

(e) (5 pts) Compute E(N)E(N) for p∈(0,1/2)p\in(0,1/2). You may express your answer in terms of qαq_\alpha.

(f) (5 pts) Compute E(N)E(N) for p∈(1/2,1)p\in(1/2,1). (Hint. Use symmetry.)

(g) (5 pts) Compute E(N)E(N) for p=0p=0 and p=1p=1.

(h) (Bonus) (5 pts) Compute E(N)E(N) for p=1/2p=1/2.

10. Problem 9, Uniform PDF on quadrilateral independence moments variance

The random variables XX and YY are described by a joint PDF which is constant within the unit area quadrilateral with vertices (0,0)(0,0), (0,1)(0,1), (1,2)(1,2), and (1,1)(1,1).

(a) Are XX and YY independent?

(b) Find the marginal PDFs of XX and YY.

(c) Find the expected value of X+YX+Y.

(d) Find the variance of X+YX+Y.

11. Problem 10, Doubly stochastic matrix has uniform stationary distribution

Exercise 3.8 in text.

Practice this interactively

Free account · instant grading · spaced review that schedules itself.

Start this course for free