Stochastic Processes · free preview

Chapter 6 Problem Set. Martingales

Problem set for this chapter. Martingales.

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, Joint PMF and derived statistics

Random variables XX and YY have the joint PMF

pX,Y(x,y)={c(x2+y2),if x∈{1,2,4} and y∈{1,3},0,otherwise.p_{X,Y}(x,y) = \begin{cases} c(x^2 + y^2), & \text{if } x \in \{1, 2, 4\} \text{ and } y \in \{1, 3\},\\ 0, & \text{otherwise}. \end{cases}

(a) What is the value of the constant cc?

(b) What is P(Y<X)P(Y < X)?

(c) What is P(Y>X)P(Y > X)?

(d) What is P(Y=X)P(Y = X)?

(e) What is P(Y=3)P(Y = 3)?

(f) Find the marginal PMFs pX(x)p_X(x) and pY(y)p_Y(y).

(g) Find the expectations E[X]E[X], E[Y]E[Y] and E[XY]E[XY].

(h) Find the variances var⁡(X)\operatorname{var}(X), var⁡(Y)\operatorname{var}(Y) and var⁡(X+Y)\operatorname{var}(X + Y).

(i) Let AA denote the event X≥YX \ge Y. Find E[X∣A]E[X \mid A] and var⁡(X∣A)\operatorname{var}(X \mid A).

3. Problem 2, Estimating Bernoulli success probability from inter-arrival times

Consider a Bernoulli process X1,X2,X3,…X_1,X_2,X_3,\ldots with unknown probability of success qq. As usual, define the kkth inter-arrival time TkT_k as

T1=Y1,Tk=Yk−Yk−1,k=2,3,…T_1=Y_1,\qquad T_k=Y_k-Y_{k-1},\quad k=2,3,\ldots

where YkY_k is the time of the kkth success. This problem explores estimation of qq from observed inter-arrival times {t1,t2,t3,…}\{t_1,t_2,t_3,\ldots\}. You may find the following integral useful. For any non-negative integers kk and mm,

∫01qk(1−q)m dq=k! m!(k+m+1)!.\int_0^1 q^k(1-q)^m\,dq=\frac{k!\,m!}{(k+m+1)!}.

Assume qq is sampled from the random variable QQ which is uniformly distributed over [0,1][0,1].

(a) Compute the PMF of T1T_1, pT1(t1)p_{T_1}(t_1).

(b) Compute the least squares estimate (LSE) of QQ from the first recording T1=t1T_1=t_1.

(c) Compute the maximum a posteriori (MAP) estimate of QQ given the kk recordings, T1=t1,…,Tk=tkT_1=t_1,\ldots,T_k=t_k.

For this part only assume qq is sampled from the random variable QQ which is now uniformly distributed over [0.5,1][0.5,1].

(d) Find the linear least squares estimate (LLSE) of the second inter-arrival time (T2)(T_2), from the observed first arrival time (T1=t1)(T_1=t_1).

4. Problem 3, Mean, variance, and PDF of combination of uniform and exponential

XX is a (continuous) uniform random variable on [0,4][0,4]. YY is an exponential random variable, independent from XX, with parameter λ=2\lambda=2.

  1. Find the mean and variance of X−3YX-3Y.
  1. Find the probability that Y≥XY\ge X. (Let cc be the answer to this question.)
  1. Find the conditional joint PDF of XX and YY, given that the event Y≥XY\ge X has occurred. (You may express your answer in terms of the constant cc from the previous part.)
  1. Find the PDF of Z=X+YZ=X+Y.
  1. Provide a fully labeled sketch of the conditional PDF of ZZ given that Y=3Y=3.
  1. Find E[Z∣Y=y]E[Z\mid Y=y] and E[Z∣Y]E[Z\mid Y].
  1. Find the joint PDF fZ,Yf_{Z,Y} of ZZ and YY.
  1. A random variable WBudweiserWBudweiser is defined as follows. We toss a fair coin (independent of YY). If the result is heads, we let W=YW=Y; if it is tails, we let W=2+YW=2+Y. Find the probability of heads given that W=3W=3.

5. Problem 4, Type of E[X|Y]

Let XX and YY be continuous random variables and NN a discrete random variable. The quantity E[X∣Y]E[X\mid Y] is always, (i) A number. (ii) A discrete random variable. (iii) A continuous random variable. (iv) Not enough information to choose between (i)-(iii).

6. Problem 5, Type of E[E[X|Y,N]|N]

Let XX and YY be continuous random variables and NN a discrete random variable. The quantity E[ E[X∣Y,N]∣N ]E[\,E[X\mid Y,N]\mid N\,] is always, (i) A number. (ii) A discrete random variable. (iii) A continuous random variable. (iv) Not enough information to choose between (i)-(iii).

7. Problem 6, Mean of X

The probability of obtaining heads in a single flip of a coin is a random variable QQ, uniformly distributed in [0,1][0,1]. Let X=1X=1 if the flip results in heads and X=0X=0 if tails. Find the mean of XX.

8. Problem 7, Covariance of X and Q

The probability of obtaining heads in a single flip of a coin is a random variable QQ, uniform on [0,1][0,1]; X=1X=1 if heads and X=0X=0 if tails. Find the covariance of XX and QQ.

9. Problem 8, Wald's equality threshold crossing expectation

Use Wald's equality to show that if X‾=0\overline{X} = 0, then E[SJ]=0E[S_J] = 0 where JJ is the time of threshold crossing with one threshold at α>0\alpha > 0 and another at β<0\beta < 0. Then obtain an expression for Pr⁡{SJ≥α}\Pr\{S_J \ge \alpha\}. Your expression should involve the expected value intrinsically conditional on crossing the individual thresholds (you need not try to calculate these expected values). Evaluate your expression for the case of a simple random walk; assume α\alpha and β\beta are integer-valued. Evaluate your expression when XX has an exponential density, fX(x)=a1e−λxf_X(x) = a_1 e^{-\lambda x} for x≥0x \ge 0 and fX(x)=a2eμxf_X(x) = a_2 e^{\mu x} for x<0x < 0 and where a1a_1 and a2a_2 are chosen so that X‾=0\overline{X} = 0.

10. Problem 9, Martingale conditional expectation with ordered variables

Suppose {Zn;n≥1}\{Z_n ; n \ge 1\} is a martingale. Show that

E[Zm∣Zni,Zni−1,…,Zn1]=ZniE[Z_m \mid Z_{n_i}, Z_{n_{i-1}}, \ldots, Z_{n_1}] = Z_{n_i}

for all 0<n1<n2<…<ni<m0 < n_1 < n_2 < \ldots < n_i < m.

11. Problem 10, Martingale stopping trial sign analysis

This exercise shows why the condition E[∣ZJ∣]<∞E[|Z_J|] < \infty is required in Lemma 7.8.1. Let Z1=−2Z_1 = -2 and, for n≥1n \ge 1, let Zn+1=Zn[1+Xn(3n+1)/(n+1)]Z_{n+1} = Z_n [1 + X_n (3n + 1)/(n + 1)] where X1,X2,…X_1, X_2, \ldots are IID and take on the values +1+1 and −1-1 with probability 1/21/2 each.

a) Show that {Zn;n≥1}\{Z_n ; n \ge 1\} is a martingale.

b) Consider the stopping trial JJ such that JJ is the smallest value of n>1n > 1 for which ZnZ_n and Zn−1Z_{n-1} have the same sign. Show that, conditional on n<Jn < J, Zn=(−2)n/nZ_n = (-2)^n / n and, conditional on n=Jn = J, ZJ=−(−2)n(n−2)/(n2−n)Z_J = -(-2)^n (n - 2) / (n^2 - n) (corrected from original statement).

c) Show that E[∣ZJ∣]E[|Z_J|] is infinite, so that E[ZJ]E[Z_J] does not exist according to the definition of expectation, and show that lim⁡n→∞E[Zn∣J>n]Pr⁡{J>n}=0\lim_{n \to \infty} E[Z_n \mid J > n] \Pr\{J > n\} = 0.

Practice this interactively

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

Start this course for free