<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://bobothebest.github.io/homepage_en/feed.xml" rel="self" type="application/atom+xml" /><link href="https://bobothebest.github.io/homepage_en/" rel="alternate" type="text/html" hreflang="en" /><updated>2026-10-21T19:18:28+00:00</updated><id>https://bobothebest.github.io/homepage_en/feed.xml</id><title type="html">Ziyuan Zhang</title><subtitle>Practice makes perfect</subtitle><author><name>Ziyuan Zhang</name><email>xiguifei@bu.edu</email></author><entry><title type="html">Stochastic Calculus Notes 07 | SDEs, Feynman–Kac and Stopping Times</title><link href="https://bobothebest.github.io/homepage_en/2026/10/21/mf790-07-sde-feynman-kac/" rel="alternate" type="text/html" title="Stochastic Calculus Notes 07 | SDEs, Feynman–Kac and Stopping Times" /><published>2026-10-21T14:07:00+00:00</published><updated>2026-10-21T14:07:00+00:00</updated><id>https://bobothebest.github.io/homepage_en/2026/10/21/mf790-07-sde-feynman-kac</id><content type="html" xml:base="https://bobothebest.github.io/homepage_en/2026/10/21/mf790-07-sde-feynman-kac/"><![CDATA[<blockquote>
  <p><strong>Overview</strong></p>

  <p>The last part zooms out. Stock prices, interest rates and volatilities are all modelled as solutions of <strong>stochastic differential equations</strong>. We solve the Ornstein–Uhlenbeck SDE explicitly, meet the CIR process, and see why every SDE solution is <strong>Markov</strong>. Then <strong>Feynman–Kac</strong> closes the loop of the whole course: a conditional expectation of a payoff and a PDE are the same object — Black–Scholes is just one instance. We finish with dividend-paying stocks, stopping times and the optional sampling theorem.</p>
</blockquote>

<hr />

<h2 id="1-stochastic-differential-equations">1. Stochastic differential equations</h2>

<p>Fix \((\Omega,\mathcal F,\mathbb F,\mathbb P)\) with a Brownian motion \(W\) and \(\mathbb F=\mathbb F^W\). An <strong>SDE</strong> is an equation of the form</p>

\[dX_t=\mu(t,X_t)\,dt+\sigma(t,X_t)\,dW_t,\qquad X_0=x,\]

<p>where \(\mu:[0,\infty)\times\mathbb R\to\mathbb R\) is the <strong>drift</strong> function and \(\sigma:[0,\infty)\times\mathbb R\to\mathbb R\) the <strong>diffusion</strong> (dispersion) function. Unlike an Itô process, the coefficients depend on the unknown \(X\) itself.</p>

<p>A <strong>solution</strong> is a process \(X\) such that for all \(t\ge0\)</p>

\[\mathbb P\Big[X_t=x+\int_0^t\mu(u,X_u)\,du+\int_0^t\sigma(u,X_u)\,dW_u\Big]=1,\]

<p>with all integrals well defined.</p>

<p><strong>GBM is an SDE.</strong> With \(\mu(t,x)=\mu x\) and \(\sigma(t,x)=\sigma x\): \(dX_t=\mu X_tdt+\sigma X_tdW_t\), solved by \(X_t=x\,e^{(\mu-\frac12\sigma^2)t+\sigma W_t}\) — the Black–Scholes stock.</p>

<p><strong>Existence and uniqueness.</strong> Not every SDE has a solution, and few have closed-form ones. Under mild conditions one can prove existence and uniqueness; the key property is that \(\mu\) and \(\sigma\) are <strong>Lipschitz</strong> in space,</p>

\[\vert f(x)-f(y)\vert\le K\vert x-y\vert,\]

<p>just as for ordinary differential equations. In this course we always assume solutions exist.</p>

<h2 id="2-the-ornsteinuhlenbeck-process">2. The Ornstein–Uhlenbeck process</h2>

\[dX_t=\kappa(\theta-X_t)\,dt+\sigma\,dW_t,\qquad \kappa&gt;0 .\]

<p>\(\theta\): long-run mean; \(\kappa\): speed of mean reversion; \(\sigma\): volatility. When \(X\) is above \(\theta\) the drift pulls it down, and vice versa — a spring with noise.</p>

<p><strong>Solving it.</strong> (1) Assume a solution exists and find its form; (2) check it. Multiply by the integrating factor \(e^{\kappa t}\) and apply Itô (product rule with a deterministic factor):</p>

\[d(e^{\kappa t}X_t)=e^{\kappa t}\big(\kappa X_t\,dt+\kappa(\theta-X_t)\,dt+\sigma\,dW_t\big)=e^{\kappa t}\big(\kappa\theta\,dt+\sigma\,dW_t\big).\]

<p>Integrate: \(e^{\kappa t}X_t=x+\theta(e^{\kappa t}-1)+\int_0^te^{\kappa u}\sigma\,dW_u\), so</p>

\[X_t=\theta+e^{-\kappa t}\Big((x-\theta)+\int_0^te^{\kappa u}\sigma\,dW_u\Big).\]

<p>Check: differentiating, \(dX_t=-\kappa e^{-\kappa t}\big((x-\theta)+\int_0^te^{\kappa u}\sigma dW_u\big)dt+\sigma\,dW_t=\kappa(\theta-X_t)dt+\sigma dW_t\). ✓</p>

<p><strong>Distribution.</strong> The integrand \(e^{\kappa u}\sigma\) is deterministic, so by Part 04 the stochastic integral is Gaussian, with variance from the Itô isometry:</p>

\[e^{-\kappa t}\int_0^te^{\kappa u}\sigma\,dW_u\sim N\big(0,\sigma_t^2\big),\qquad \sigma_t^2=\sigma^2e^{-2\kappa t}\int_0^te^{2\kappa u}\,du=\frac{\sigma^2}{2\kappa}\big(1-e^{-2\kappa t}\big).\]

<p>Hence</p>

\[X_t\sim N\Big(\theta+e^{-\kappa t}(x-\theta),\ \frac{\sigma^2}{2\kappa}\big(1-e^{-2\kappa t}\big)\Big)\ \xrightarrow{t\to\infty}\ N\Big(\theta,\ \frac{\sigma^2}{2\kappa}\Big).\]

<p>The starting point is forgotten exponentially fast; \(\theta\) is the <strong>long-run mean</strong> and \(\sigma^2/(2\kappa)\) the <strong>long-run variance</strong>.</p>

<p><strong>Time-dependent coefficients.</strong> With non-random \(\kappa(t),\theta(t),\sigma(t)\) (they may vary with \(t\) but not with \(\omega\)), \(dX_t=\kappa(t)\big(\theta(t)-X_t\big)dt+\sigma(t)dW_t\) is solved by</p>

\[X_t=e^{-\int_0^t\kappa(u)du}\Big(x+\int_0^te^{\int_0^u\kappa(v)dv}\kappa(u)\theta(u)\,du+\int_0^te^{\int_0^u\kappa(v)dv}\sigma(u)\,dW_u\Big).\]

<h2 id="3-the-coxingersollross-process">3. The Cox–Ingersoll–Ross process</h2>

\[dX_t=\kappa(\theta-X_t)\,dt+\xi\sqrt{X_t}\,dW_t,\qquad X_0=x&gt;0 .\]

<p>Same mean reversion as OU, but the instantaneous conditional variance is \(\xi^2X_t\,dt\): noise shrinks as \(X\) approaches \(0\). The solution must stay positive for \(\sqrt{X_t}\) to make sense; strict positivity holds if \(\kappa\theta\ge\frac12\xi^2\) (the Feller condition). There is no closed-form solution, but a solution exists and the distribution of \(X_t\) can be computed. It is a standard interest-rate and variance model.</p>

<h2 id="4-the-markov-property">4. The Markov property</h2>

<p>Solutions of \(dX_t=\mu(t,X_t)dt+\sigma(t,X_t)dW_t\) are <strong>Markov</strong>: to evaluate the future of the process at time \(t\), knowing \(X_t\) is enough — all other information in \(\mathcal F_t\) is irrelevant. In practice:</p>

\[E[g(X_u)\mid\mathcal F_t]=E[g(X_u)\mid X_t],\qquad E\Big[e^{-\int_t^Tg(X_u)du}\,\Big\vert\,\mathcal F_t\Big]=E\Big[e^{-\int_t^Tg(X_u)du}\,\Big\vert\,X_t\Big].\]

<p>Why: at time \(t\), the next step \(dX_t\) is determined by \(X_t\) (through \(\mu\) and \(\sigma\)) and by \(dW_t\), which is independent of \(\mathcal F_t\). Expanding \(E[g(X_t+dX_t)\mid\mathcal F_t]\) and \(E[g(X_t+dX_t)\mid X_t]\) gives the same answer, step after step.</p>

<h2 id="5-feynmankac">5. Feynman–Kac</h2>

<p>Let \(dX_t=\mu(t,X_t)dt+\sigma(t,X_t)dW_t\), let \(g\) be a payoff and \(r(t,x)\) a discount rate. Then</p>

\[f(t,x):=E\Big[e^{-\int_t^Tr(u,X_u)du}\,g(X_T)\,\Big\vert\,X_t=x\Big],\qquad t\le T,\ x\in\mathbb R,\]

<p>corresponds one-to-one with the PDE</p>

\[\begin{cases}0=\Big(f_t+\mu f_x+\tfrac12\sigma^2f_{xx}-rf\Big)(t,x),&amp;t&lt;T,\ x\in\mathbb R,\\[4pt] f(T,x)=g(x).\end{cases}\]

<p>Without discounting, \(u(t,x)=E[g(X_T)\mid X_t=x]\) solves \(0=u_t+\mu u_x+\frac12\sigma^2u_{xx}\) with \(u(T,x)=g(x)\).</p>

<p><strong>Why it is true (one line).</strong> By Markov, \(e^{-\int_0^tr\,du}f(t,X_t)=E\big[e^{-\int_0^Tr\,du}g(X_T)\mid\mathcal F_t\big]\) is a martingale. Apply Itô to it: the \(dt\) coefficient is \(e^{-\int_0^tr}\big(f_t+\mu f_x+\frac12\sigma^2f_{xx}-rf\big)\), and a martingale has no \(dt\) term.</p>

<p><strong>Black–Scholes is a special case.</strong> Take \(X=S\) under \(\mathbb Q\), i.e. \(\mu(t,s)=rs\), \(\sigma(t,s)=\sigma s\), constant \(r\), and \(g(s)=(s-K)^+\). The PDE becomes exactly the Black–Scholes PDE of Part 05, and the expectation becomes the risk-neutral formula of Part 06. The two halves of the course — PDEs and expectations — are the same thing.</p>

<h2 id="6-dividend-paying-stocks">6. Dividend-paying stocks</h2>

<p>If the stock pays a continuous dividend at rate \(a_t\), its price drops by the dividend:</p>

\[\frac{dS_t}{S_t}=\mu_t\,dt+\sigma_t\,dW_t-a_t\,dt .\]

<p><strong>Wealth.</strong> Holding \(\Delta_t\) shares over \([t,t+dt]\), we also receive dividends \(\Delta_tS_ta_t\,dt\):</p>

\[X_{t+dt}=\Delta_tS_{t+dt}+\Delta_tS_ta_t\,dt+(X_t-\Delta_tS_t)\frac{B_{t+dt}}{B_t},\]

\[\begin{aligned}
dX_t&amp;=\Delta_t\,dS_t+\Delta_tS_ta_t\,dt+(X_t-\Delta_tS_t)r_t\,dt\\
&amp;=\Delta_tS_t\big((\mu_t-a_t)dt+\sigma_tdW_t\big)+\Delta_tS_ta_t\,dt+(X_t-\Delta_tS_t)r_t\,dt\\
&amp;=r_tX_t\,dt+\Delta_t\sigma_tS_t\big(dW_t+\theta_t\,dt\big),\qquad\theta_t=\frac{\mu_t-r_t}{\sigma_t}.
\end{aligned}\]

<p>The <strong>wealth dynamics are the same as without dividends</strong> (the dividend you receive offsets the price drop), but the <strong>stock dynamics change</strong>. So European option prices do change, because the stock price is different. Under \(\mathbb Q\),</p>

\[dX_t=r_tX_t\,dt+\Delta_tS_t\sigma_t\,dW^{\mathbb Q}_t,\qquad V_t=E^{\mathbb Q}\Big[e^{-\int_t^Tr_udu}V_T\,\Big\vert\,\mathcal F_t\Big],\]

<p>and under \(\mathbb Q\) the stock now drifts at \(r_t-a_t\). In practice, write the payoff as a function of \(S_T=S_t\cdot\frac{S_T}{S_t}\), freeze \(S_t=s\), and compute — exactly as in the Black–Scholes derivation.</p>

<h2 id="7-stopping-times">7. Stopping times</h2>

<p>A random time \(\tau\) is a <strong>stopping time</strong> if</p>

\[\{\omega:\tau(\omega)\le t\}\in\mathcal F_t\quad\text{for all }t,\]

<p>i.e. at every time you can tell from current information whether you have already stopped. Example: a non-random time \(\tau\equiv t_0\), for which \(\{\tau\le t\}\) is \(\Omega\) if \(t_0\le t\) and \(\varnothing\) otherwise.</p>

<p><strong>Hitting times.</strong> \(\tau(\omega)=\inf\{t:X_t(\omega)=\lambda\}\), the first time \(X\) hits level \(\lambda\). For adapted \(X\) with continuous paths, hitting times are stopping times. (By contrast, “the last time \(X\) hits \(\lambda\) before \(T\)” is not: you need the future to know it.)</p>

<p><strong>Stopped values and stopped processes.</strong> \(X_\tau\) is the random variable \(\omega\mapsto X_{\tau(\omega)}(\omega)\) — e.g. \(X_1(\omega)\) if \(\tau(\omega)=1\), \(X_3(\omega)\) if \(\tau(\omega)=3\). The <strong>stopped process</strong> \(X^\tau\) is</p>

\[X^\tau_t(\omega):=X_{t\wedge\tau(\omega)}(\omega):\]

<p>it follows \(X\) until \(\tau\) and then stays flat.</p>

<h2 id="8-the-optional-sampling-theorem">8. The optional sampling theorem</h2>

<p><strong>Theorem (OST).</strong> Let \(M\) be a martingale and \(\alpha\le\tau\) two <strong>bounded</strong> stopping times. Then</p>

\[E[M_\tau\mid\mathcal F_\alpha]=M_\alpha .\]

<p><strong>Corollaries</strong> for a bounded stopping time \(\tau\):</p>

<ol>
  <li>the stopped process \(t\mapsto M_{t\wedge\tau}\) is a martingale;</li>
  <li>\(E[M_\tau]=M_0\);</li>
  <li>if \(\tau\le T\), the price of a claim at the random time \(\tau\) is \(V_\tau=E^{\mathbb Q}\big[e^{-r(T-\tau)}V_T\mid\mathcal F_\tau\big]\) — the pricing formula of Part 06 with \(t\) replaced by \(\tau\).</li>
</ol>

<p>Intuition: a fair game stays fair even if you decide <strong>when to look</strong> using a rule that does not peek into the future. Boundedness matters: “play until you are ahead” is a stopping time, but an unbounded one, and with it \(E[M_\tau]&gt;M_0\) is possible.</p>

<hr />

<p><strong>Series contents</strong></p>

<ol>
  <li><a href="/homepage_en/2026/10/21/mf790-01-foundations/">01 · Probability Spaces, Filtrations, Conditional Expectation and Martingales</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-02-brownian-motion/">02 · Random Walks, Quadratic Variation and Brownian Motion</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-03-stochastic-integration/">03 · Stochastic Integration</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-04-ito-formula/">04 · Itô’s Formula, Itô Processes and Geometric Brownian Motion</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-05-black-scholes/">05 · Black–Scholes: Replication, the PDE and the Greeks</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-06-risk-neutral-pricing/">06 · Risk-Neutral Pricing, Change of Measure and Girsanov</a></li>
  <li><strong>07 · SDEs, Feynman–Kac and Stopping Times</strong> (this post)</li>
</ol>

<p><a href="/homepage_en/2026/10/21/mf790-06-risk-neutral-pricing/">← Previous: Risk-Neutral Pricing, Change of Measure and Girsanov</a></p>

<p><em>This series collects my notes from QST MF 790 Stochastic Calculus at Boston University’s Questrom School of Business, in 7 parts. The content follows the order of the course; wording, intuition and a few corrections are my own. Throughout, \(N(\mu,\sigma^2)\) uses the variance as its second argument. Corrections are welcome. Chinese version of this post: <a href="https://bobothebest.github.io/homepage_cn/2026/10/21/mf790-07-sde-feynman-kac/">中文版</a>.</em></p>]]></content><author><name>Ziyuan Zhang</name></author><category term="Stochastic Calculus Notes" /><category term="study notes" /><summary type="html"><![CDATA[Overview The last part zooms out. Stock prices, interest rates and volatilities are all modelled as solutions of stochastic differential equations. We solve the Ornstein–Uhlenbeck SDE explicitly, meet the CIR process, and see why every SDE solution is Markov. Then Feynman–Kac closes the loop of the whole course: a conditional expectation of a payoff and a PDE are the same object — Black–Scholes is just one instance. We finish with dividend-paying stocks, stopping times and the optional sampling theorem.]]></summary></entry><entry><title type="html">Stochastic Calculus Notes 06 | Risk-Neutral Pricing, Change of Measure and Girsanov</title><link href="https://bobothebest.github.io/homepage_en/2026/10/21/mf790-06-risk-neutral-pricing/" rel="alternate" type="text/html" title="Stochastic Calculus Notes 06 | Risk-Neutral Pricing, Change of Measure and Girsanov" /><published>2026-10-21T14:06:00+00:00</published><updated>2026-10-21T14:06:00+00:00</updated><id>https://bobothebest.github.io/homepage_en/2026/10/21/mf790-06-risk-neutral-pricing</id><content type="html" xml:base="https://bobothebest.github.io/homepage_en/2026/10/21/mf790-06-risk-neutral-pricing/"><![CDATA[<blockquote>
  <p><strong>Overview</strong></p>

  <p>Part 05 priced a call. This post prices <strong>any</strong> payoff with one formula,</p>

  <p>\(V_t=E^{\mathbb Q}\big[e^{-r(T-t)}V_T\mid\mathcal F_t\big]\):</p>

  <p>the price is a <strong>net present value — but under a different probability measure \(\mathbb Q\)</strong>, one in which the stock earns the risk-free rate. Then we answer the obvious questions: what is a change of measure, why do \(\mathbb P\) and \(\mathbb Q\) agree on what <em>can</em> happen but not on how <em>likely</em> it is, and how does Girsanov’s theorem turn \(\mu\) into \(r\) by shifting the Brownian motion.</p>
</blockquote>

<hr />

<h2 id="1-from-the-call-to-any-contingent-claim">1. From the call to any contingent claim</h2>

<p><strong>Recap of the Black–Scholes setup.</strong> \(S\sim GBM(\mu,\sigma)\) under \(\mathbb P\); money market at constant \(r\); self-financing strategy \(\Delta\). Discounted wealth:</p>

\[d(e^{-rt}X_t)=e^{-rt}\big((\mu-r)\Delta_tS_t\,dt+\sigma\Delta_tS_t\,dW_t\big).\]

<p>For the call we found: with \(\widetilde S\sim GBM(r,\sigma)\) under \(\widetilde{\mathbb P}\),</p>

\[c(t,s)=E^{\widetilde{\mathbb P}}\big[e^{-r(T-t)}(\widetilde S_T-K)^+\mid\widetilde{\mathcal F}_t,\ \widetilde S_t=s\big],\]

<p>initial capital \(x=c(0,S_0)\), strategy \(\Delta_t=c_s(t,S_t)\), terminal wealth \(X_T=(S_T-K)^+\), so by no-arbitrage \(c(0,S_0)\) is the price. Now generalize.</p>

<p><strong>Contingent claims.</strong> A claim pays \(V_T\) at \(T\), where \(V_T\) can be any \(\mathcal F_T\)-measurable random variable with enough integrability:</p>

<table>
  <thead>
    <tr>
      <th>Claim</th>
      <th>Payoff \(V_T\)</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Call</td>
      <td>\((S_T-K)^+\)</td>
    </tr>
    <tr>
      <td>Put</td>
      <td>\((K-S_T)^+\)</td>
    </tr>
    <tr>
      <td>Asian call</td>
      <td>\(\Big(\frac1T\int_0^TS_t\,dt-K\Big)^+\)</td>
    </tr>
    <tr>
      <td>Lookback</td>
      <td>\(\max_{t\le T}S_t-S_T\)</td>
    </tr>
    <tr>
      <td>Up-and-out call</td>
      <td>\((S_T-K)^+\,\mathbf 1_{\{\max_{t\le T}S_t\le L\}}\)</td>
    </tr>
  </tbody>
</table>

<h2 id="2-two-assumptions-and-the-pricing-formula">2. Two assumptions and the pricing formula</h2>

<ol>
  <li>
    <p><strong>Risk-neutral measure.</strong> There is a measure \(\mathbb Q\) on \((\Omega,\mathcal F)\) under which \(S\sim GBM(r,\sigma)\). Equivalently there is a \(\mathbb Q\)-Brownian motion \(W^{\mathbb Q}\) with</p>

\[\frac{dS_t}{S_t}=\underbrace{\mu\,dt+\sigma\,dW_t}_{\text{under }\mathbb P}=\underbrace{r\,dt+\sigma\,dW^{\mathbb Q}_t}_{\text{under }\mathbb Q}.\]
  </li>
  <li>
    <p><strong>Replication.</strong> There are \(x\) and \(\Delta\) with \(\mathbb P[X^{x,\Delta}_T=V_T]=\mathbb Q[X^{x,\Delta}_T=V_T]=1\).</p>
  </li>
</ol>

<p><strong>Discounted wealth is a \(\mathbb Q\)-martingale.</strong> Under \(\mathbb Q\) the drift term vanishes:</p>

\[d(e^{-rt}X_t)=e^{-rt}\sigma\Delta_tS_t\,dW^{\mathbb Q}_t .\]

<p>That is why \(\mathbb Q\) is also called a <strong>martingale measure</strong>.</p>

<p><strong>Replication over \([t,T]\).</strong> The no-arbitrage argument works from any starting time: if you start at \(t\) with \(X_t\) (known at \(t\)), trade self-financingly on \([t,T]\) and end with \(V_T\), then the price at \(t\) must be \(X_t\).</p>

<p><strong>Determining \(V_t\).</strong> By replication, \(e^{-rT}X_T=e^{-rT}V_T\). By the martingale property,</p>

\[e^{-rt}X_t=E^{\mathbb Q}\big[e^{-rT}X_T\mid\mathcal F_t\big]=E^{\mathbb Q}\big[e^{-rT}V_T\mid\mathcal F_t\big].\]

<p>And since \(V_T=X_T=X_t+\int_t^TdX_u\), holding \(X_t\) at time \(t\) is exactly what it takes to deliver \(V_T\), so</p>

\[\boxed{\ V_t=X_t=E^{\mathbb Q}\big[e^{-r(T-t)}V_T\mid\mathcal F_t\big]\ }\]

<p><strong>How to read it.</strong> The chain of reasoning is: (i) the replicating portfolio <em>is</em> the claim, so the claim’s price is the portfolio’s value; (ii) under \(\mathbb Q\) every discounted self-financing portfolio is a fair game, so today’s discounted value equals the expected discounted terminal value; (iii) the terminal value is the payoff. Prices are NPVs — <strong>not under the real-world measure</strong>, but under one where the risky and riskless assets have the same expected return.</p>

<p>The two assumptions raise five questions: how do we get \(\mathbb Q\); how are \(\mathbb P\) and \(\mathbb Q\) related; how do we switch between them; why is \(S\sim GBM(r,\sigma)\) under \(\mathbb Q\); and where does \(W^{\mathbb Q}\) come from. The rest of the post answers them.</p>

<h2 id="3-what-a-change-of-measure-changes">3. What a change of measure changes</h2>

<p><strong>Not affected by the measure</strong> (they only involve sets and maps):</p>

<ol>
  <li>\(\Omega\), the set of outcomes;</li>
  <li>\(\mathcal F\), the information (collection of subsets of \(\Omega\));</li>
  <li>\(\mathbb F\), the flow of information;</li>
  <li>a random variable \(X:\Omega\to\mathbb R\) — it is just a map;</li>
  <li>a process \(\{X_t\}\);</li>
  <li>adaptedness: \(\{\omega:X_t(\omega)\in E\}\in\mathcal F_t\).</li>
</ol>

<p><strong>Affected by the measure</strong> (they involve likelihood):</p>

<ol>
  <li>probabilities \(P(A)=E^P[\mathbf 1_A]\);</li>
  <li>expectations \(E\big[\sum_i\alpha_i\mathbf 1_{A_i}\big]=\sum_i\alpha_iP(A_i)\);</li>
  <li>moment generating functions \(\alpha\mapsto E^P[e^{\alpha X}]\);</li>
  <li>distributions \(P(X\le t)\);</li>
  <li>the martingale property \(E[X_t\mid\mathcal F_s]=X_s\);</li>
  <li>independence \(P(A\cap B)=P(A)P(B)\).</li>
</ol>

<p>So the stock price paths are the same; only the <strong>weights</strong> we put on them change — and with them, the drift.</p>

<h2 id="4-change-of-measure-the-construction">4. Change of measure: the construction</h2>

<p>Given \((\Omega,\mathcal F,\mathbb P)\), take any random variable \(Z\) with \(\mathbb P[Z&gt;0]=1\) (write \(Z&gt;0\)) and \(E^{\mathbb P}[Z]=1\). Define</p>

\[\mathbb Q(A):=E^{\mathbb P}[Z\,\mathbf 1_A],\qquad A\in\mathcal F .\]

<p>\(\mathbb Q\) is a probability measure: \(\mathbb Q(A)\ge0\); \(\mathbb Q(\Omega)=E^{\mathbb P}[Z]=1\); and countable additivity holds, e.g. for disjoint \(A,B\), \(\mathbb Q(A\cup B)=E^{\mathbb P}[(\mathbf 1_A+\mathbf 1_B)Z]=\mathbb Q(A)+\mathbb Q(B)\).</p>

<p><strong>Example: fair coin to unfair coin.</strong> Two tosses, fair and independent under \(\mathbb P\). Set</p>

\[Z(HH)=\tfrac49,\quad Z(HT)=Z(TH)=\tfrac89,\quad Z(TT)=\tfrac{16}9,\qquad E^{\mathbb P}Z=\tfrac14\Big(\tfrac49+\tfrac89+\tfrac89+\tfrac{16}9\Big)=1 .\]

<p>Then \(\mathbb Q(HH)=\frac14\cdot\frac49=\frac19\), \(\mathbb Q(HT)=\mathbb Q(TH)=\frac29\), \(\mathbb Q(TT)=\frac49\). Under \(\mathbb Q\) the tosses are still independent (\(\frac19=\frac13\cdot\frac13\), etc.) but the coin is <strong>unfair</strong>: \(\mathbb Q(H)=\frac13\).</p>

<p><strong>Equivalence.</strong> Because \(Z&gt;0\): \(\mathbb P(A)&gt;0\Rightarrow\mathbb Q(A)=E^{\mathbb P}[Z\mathbf 1_A]&gt;0\), and conversely. So \(\mathbb P(A)&gt;0\iff\mathbb Q(A)&gt;0\) and we call \(\mathbb P,\mathbb Q\) <strong>equivalent</strong>. Equivalent is not equal: they agree on what can and cannot happen, not on how likely it is (\(\mathbb P(A)=0.01\), \(\mathbb Q(A)=0.99\) is fine).</p>

<p><strong>Radon–Nikodym derivative.</strong> \(\dfrac{d\mathbb Q}{d\mathbb P}:=Z\), also called the <strong>likelihood ratio</strong>. On a finite space,</p>

\[\frac{d\mathbb Q}{d\mathbb P}(\omega)=\frac{\mathbb Q(\{\omega\})}{\mathbb P(\{\omega\})}=Z(\omega).\]

<h2 id="5-shifting-the-mean-of-a-normal">5. Shifting the mean of a normal</h2>

<p>Let \(X\sim N(0,\sigma^2)\) under \(\mathbb P\), \(\theta\in\mathbb R\), and \(Z=e^{-\theta X-\frac12\sigma^2\theta^2}\). Then \(Z&gt;0\) and \(E[Z]=e^{-\frac12\sigma^2\theta^2}E[e^{-\theta X}]=1\). Under \(\mathbb Q(A)=E^{\mathbb P}[Z\mathbf 1_A]\):</p>

\[E^{\mathbb Q}[e^{\alpha X}]=E^{\mathbb P}\big[e^{(\alpha-\theta)X}\big]e^{-\frac12\sigma^2\theta^2}=e^{\frac12\sigma^2(\alpha-\theta)^2-\frac12\sigma^2\theta^2}=e^{-\sigma^2\theta\alpha+\frac12\sigma^2\alpha^2},\]

<p>so \(X\overset{\mathbb Q}{\sim}N(-\sigma^2\theta,\ \sigma^2)\), i.e. \(X+\sigma^2\theta\overset{\mathbb Q}{\sim}N(0,\sigma^2)\). <strong>Tilting by an exponential shifts the mean and leaves the variance alone.</strong></p>

<p><strong>General version.</strong> To move \(X\) from \(N(\mu_P,\sigma^2)\) under \(\mathbb P\) to \(N(\mu_Q,\sigma^2)\) under \(\mathbb Q\), use \(\frac{d\mathbb Q}{d\mathbb P}=\frac{e^{-\theta X}}{E^{\mathbb P}[e^{-\theta X}]}=e^{-\theta X-\frac12\sigma^2\theta^2+\theta\mu_P}\). Then</p>

\[E^{\mathbb Q}[e^{\alpha X}]=\exp\Big\{\alpha(\mu_P-\theta\sigma^2)+\tfrac12\alpha^2\sigma^2\Big\},\qquad\text{so we need}\quad \theta=\frac{\mu_P-\mu_Q}{\sigma^2}.\]

<h2 id="6-application-to-brownian-motion-and-the-stock">6. Application to Brownian motion and the stock</h2>

<p>Fix \(T\); \(W_T\sim N(0,T)\) under \(\mathbb P\). Take \(\theta=\frac{\mu-r}{\sigma}\) and</p>

\[Z=e^{-\theta W_T-\frac12\theta^2T}.\]

<p>By Section 5 (with \(\sigma^2=T\), \(\mu_P=0\)), \(W^{\mathbb Q}_T:=W_T+\theta T\sim N(0,T)\) under \(\mathbb Q\). Since \(\mu-\sigma\theta=r\),</p>

\[S_T=S_0\exp\Big\{\big(\mu-\tfrac12\sigma^2\big)T+\sigma W_T\Big\}=S_0\exp\Big\{\big(r-\tfrac12\sigma^2\big)T+\sigma W^{\mathbb Q}_T\Big\}.\]

<p>So <strong>at the fixed time \(T\)</strong>, \(S_T\) looks like a \(GBM(r,\sigma)\) under \(\mathbb Q\). To have \(S\sim GBM(r,\sigma)\) under \(\mathbb Q\) <strong>for all</strong> \(t\le T\) we need more: is \(t\mapsto W^{\mathbb Q}_t=W_t+\theta t\) a \(\mathbb Q\)-Brownian motion on \([0,T]\)? Equivalently, is</p>

\[\frac{dS_t}{S_t}=\mu\,dt+\sigma\,dW_t\overset{?}{=}r\,dt+\sigma\,dW^{\mathbb Q}_t,\qquad W^{\mathbb Q}_t=W_t+\frac{\mu-r}{\sigma}t ?\]

<p>The core is to verify that \(W^{\mathbb Q}\) is a Brownian motion. (Note \(Z_t=E^{\mathbb P}[Z_T\mid\mathcal F_t]=e^{-\theta W_t-\frac12\theta^2t}\) is a \(\mathbb P\)-martingale — the exponential martingale of Part 04.)</p>

<h2 id="7-girsanovs-theorem">7. Girsanov’s theorem</h2>

<p><strong>Simple version.</strong> If \(W\) is a \(\mathbb P\)-Brownian motion, \(Z_T=e^{-\theta W_T-\frac12\theta^2T}\) and \(\mathbb Q(A)=E^{\mathbb P}[\mathbf 1_AZ_T]\), then</p>

\[t\mapsto W^{\mathbb Q}_t:=W_t+\theta t\ \text{ is a }\mathbb Q\text{-Brownian motion on }[0,T].\]

<p><strong>General version.</strong> Fix \((\widetilde\Omega,\widetilde{\mathcal F},\widetilde{\mathbb F},\widetilde{\mathbb P})\) with a \(\widetilde{\mathbb P}\)-Brownian motion \(\widetilde W\), and an adapted \(\widetilde\theta\). Let</p>

\[\widetilde Z_t=\exp\Big(-\int_0^t\widetilde\theta_u\,d\widetilde W_u-\frac12\int_0^t\widetilde\theta_u^2\,du\Big),\quad t\le T,\qquad \frac{d\widetilde{\mathbb Q}}{d\widetilde{\mathbb P}}=\widetilde Z_T\ \text{on }\widetilde{\mathcal F}_T .\]

<p>Then \(\widetilde W^{\widetilde{\mathbb Q}}_t=\widetilde W_t+\int_0^t\widetilde\theta_u\,du\), \(t\le T\), is a \(\widetilde{\mathbb Q}\)-Brownian motion.</p>

<p>Intuition: reweighting the paths by \(Z\) makes paths that drift down more likely and paths that drift up less likely, by exactly the amount that turns “Brownian motion plus drift \(\theta\)” back into a driftless Brownian motion.</p>

<h3 id="lévys-characterization">Lévy’s characterization</h3>

<p>Proving something is a Brownian motion straight from the definition is painful. Lévy’s characterization is the shortcut: <strong>if \(\widetilde M\) is a \(\widetilde{\mathbb Q}\)-martingale with continuous paths, \(\widetilde M_0=0\) and \([\widetilde M,\widetilde M]_t=t\), then \(\widetilde M\) is a \(\widetilde{\mathbb Q}\)-Brownian motion.</strong></p>

<p>So to prove Girsanov we only need: (1) \([\widetilde W^{\widetilde{\mathbb Q}},\widetilde W^{\widetilde{\mathbb Q}}]_t=t\) and (2) \(\widetilde W^{\widetilde{\mathbb Q}}\) is a \(\widetilde{\mathbb Q}\)-martingale.</p>

<details>
  <summary>Proof of Girsanov (constant θ)</summary>

  <p><strong>Step 1.</strong> Quadratic variation does not care about the measure, and the drift contributes nothing:</p>

\[d[\widetilde W^{\widetilde{\mathbb Q}},\widetilde W^{\widetilde{\mathbb Q}}]_t=(d\widetilde W_t+\widetilde\theta\,dt)^2=(d\widetilde W_t)^2=dt .\]

  <p><strong>Step 2.</strong> For \(s&lt;t\) and \(A_s\in\widetilde{\mathcal F}_s\), move to \(\widetilde{\mathbb P}\), use Tower and the martingale \(\widetilde Z_t=E^{\widetilde{\mathbb P}}[\widetilde Z_T\mid\widetilde{\mathcal F}_t]\):</p>

\[E^{\widetilde{\mathbb Q}}[\mathbf 1_{A_s}\widetilde W^{\widetilde{\mathbb Q}}_t]=E^{\widetilde{\mathbb P}}[\mathbf 1_{A_s}\widetilde W^{\widetilde{\mathbb Q}}_t\widetilde Z_T]=E^{\widetilde{\mathbb P}}[\mathbf 1_{A_s}\widetilde W^{\widetilde{\mathbb Q}}_t\widetilde Z_t]=E^{\widetilde{\mathbb P}}\big[\mathbf 1_{A_s}f(t,\widetilde W_t)\big],\]

  <p>with \(f(t,w)=(w+\widetilde\theta t)\,e^{-\widetilde\theta w-\frac12\widetilde\theta^2t}\). Direct differentiation gives</p>

\[f_t=e^{-\widetilde\theta w-\frac12\widetilde\theta^2t}\,\widetilde\theta\big(1-\tfrac12\widetilde\theta w-\tfrac12\widetilde\theta^2t\big),\quad f_w=e^{-\widetilde\theta w-\frac12\widetilde\theta^2t}\big(1-\widetilde\theta w-\widetilde\theta^2t\big),\quad f_{ww}=e^{-\widetilde\theta w-\frac12\widetilde\theta^2t}\big(-2\widetilde\theta+\widetilde\theta^2w+\widetilde\theta^3t\big),\]

  <p>so \(f_t+\frac12f_{ww}=0\) and by Itô \(df(t,\widetilde W_t)=f_w\,d\widetilde W_t\): \(f(t,\widetilde W_t)\) is a \(\widetilde{\mathbb P}\)-martingale. Hence</p>

\[E^{\widetilde{\mathbb Q}}[\mathbf 1_{A_s}\widetilde W^{\widetilde{\mathbb Q}}_t]=E^{\widetilde{\mathbb P}}[\mathbf 1_{A_s}f(s,\widetilde W_s)]=E^{\widetilde{\mathbb P}}\big[\mathbf 1_{A_s}(\widetilde W_s+\widetilde\theta s)e^{-\widetilde\theta\widetilde W_s-\frac12\widetilde\theta^2s}\big].\]

  <p>The same Tower/TOWK computation for \(\widetilde W^{\widetilde{\mathbb Q}}_s\) gives the identical right-hand side, so</p>

\[E^{\widetilde{\mathbb Q}}[\mathbf 1_{A_s}\widetilde W^{\widetilde{\mathbb Q}}_t]=E^{\widetilde{\mathbb Q}}[\mathbf 1_{A_s}\widetilde W^{\widetilde{\mathbb Q}}_s]\quad\text{for all }A_s\in\widetilde{\mathcal F}_s .\]

  <p>Since \(\widetilde W^{\widetilde{\mathbb Q}}_s\) is \(\widetilde{\mathcal F}_s\)-measurable, partial averaging gives \(E^{\widetilde{\mathbb Q}}[\widetilde W^{\widetilde{\mathbb Q}}_t\mid\widetilde{\mathcal F}_s]=\widetilde W^{\widetilde{\mathbb Q}}_s\). A time-varying \(\widetilde\theta_t\) works the same way with more bookkeeping.</p>

</details>

<h3 id="price-dynamics-under-mathbb-q">Price dynamics under \(\mathbb Q\)</h3>

<p>By Girsanov, \(W^{\mathbb Q}_t=W_t+\theta t\) is a \(\mathbb Q\)-Brownian motion on \([0,T]\), and since \(\mu-\sigma\theta=r\),</p>

\[dS_t=\mu S_t\,dt+\sigma S_t\big(dW^{\mathbb Q}_t-\theta\,dt\big)=rS_t\,dt+\sigma S_t\,dW^{\mathbb Q}_t\iff S\overset{\mathbb Q}{\sim}GBM(r,\sigma).\]

<p>\(\theta=\dfrac{\mu-r}{\sigma}\) is the <strong>market price of risk</strong>: excess return per unit of volatility, i.e. the <strong>Sharpe ratio</strong>. This answers questions 1–5 of Section 2 for assumption 1.</p>

<h2 id="8-assumption-2-finding-the-hedge">8. Assumption 2: finding the hedge</h2>

<p>Good news first: \(\frac{d\mathbb Q}{d\mathbb P}\big\vert_{\mathcal F_T}=Z_T&gt;0\), so \(\mathbb P\) and \(\mathbb Q\) are equivalent and it <strong>suffices to show \(\mathbb Q[X_T=V_T]=1\)</strong>.</p>

<p>Two facts:</p>

<ol>
  <li>\(e^{-rt}X_t\) is a \(\mathbb Q\)-martingale: \(d(e^{-rt}X_t)=e^{-rt}\Delta_tS_t\sigma\,dW^{\mathbb Q}_t\).</li>
  <li>\(M^V_t:=E^{\mathbb Q}[e^{-rT}V_T\mid\mathcal F_t]\) is a \(\mathbb Q\)-martingale on \([0,T]\), by Tower: \(E^{\mathbb Q}[M^V_t\mid\mathcal F_s]=E^{\mathbb Q}[e^{-rT}V_T\mid\mathcal F_s]=M^V_s\).</li>
</ol>

<p>We want to make these two martingales the same process. <strong>Suppose</strong> \(M^V\) can be written as a stochastic integral, \(dM^V_t=\Gamma_t\,dW^{\mathbb Q}_t\) for some adapted \(\Gamma\). Then choose</p>

\[\Delta_t=\frac{\Gamma_t}{e^{-rt}\sigma S_t},\qquad t\le T,\]

<p>so that \(d(e^{-rt}X_t)=e^{-rt}\Delta_tS_t\sigma\,dW^{\mathbb Q}_t=\Gamma_t\,dW^{\mathbb Q}_t=dM^V_t\). Starting both at \(x=M^V_0=E^{\mathbb Q}[e^{-rT}V_T]\), “same start + same dynamics” gives \(e^{-rt}X_t=M^V_t\) for all \(t\), and at \(T\), \(X_T=V_T\).</p>

<p>The remaining question — <em>is every \(\mathbb Q\)-martingale of the form \(\int\Gamma\,dW^{\mathbb Q}\)?</em> — is answered (yes, when the filtration is generated by the Brownian motion) by the <strong>martingale representation theorem</strong>. In words: in a Brownian world, every fair game is a trading strategy in the stock, so every claim can be hedged — the market is <strong>complete</strong>.</p>

<h2 id="9-quadratic-covariation-and-integration-by-parts">9. Quadratic covariation and integration by parts</h2>

<p>For continuous \(X,Y\) and a partition \(\Pi\) of \([0,t]\),</p>

\[[X,Y]^\Pi_t=\sum_{j}\big(X_{t_j}-X_{t_{j-1}}\big)\big(Y_{t_j}-Y_{t_{j-1}}\big),\qquad [X,Y]_t=\lim_{\Vert \Pi\Vert \to0}[X,Y]^\Pi_t .\]

<p>For Itô processes driven by the same \(W\), \(dX_t=\Theta_tdt+\Delta_tdW_t\) and \(dY_t=\phi_tdt+\psi_tdW_t\), the heuristic \(d[X,Y]_t=dX_t\,dY_t\) gives</p>

\[d[X,Y]_t=\Delta_t\psi_t\,dt,\qquad [X,Y]_t=\int_0^t\Delta_s\psi_s\,ds,\]

<p>and \([X,Y]\equiv0\) if either \(\Delta\equiv0\) or \(\psi\equiv0\).</p>

<details>
  <summary>Proof via polarization</summary>

  <p>For any numbers, \(4(a-b)(c-d)=\big((a+c)-(b+d)\big)^2-\big((a-c)-(b-d)\big)^2\), so</p>

\[[X,Y]=\tfrac14\big([X+Y,X+Y]-[X-Y,X-Y]\big).\]

  <p>\(X\pm Y\) are Itô processes with \(dW\)-coefficients \(\Delta_t\pm\psi_t\), so</p>

\[d[X,Y]_t=\tfrac14\big((\Delta_t+\psi_t)^2-(\Delta_t-\psi_t)^2\big)dt=\Delta_t\psi_t\,dt .\]

</details>

<p><strong>Stochastic integration by parts.</strong></p>

\[d(X_tY_t)=X_t\,dY_t+Y_t\,dX_t+d[X,Y]_t=\big(X_t\phi_t+Y_t\Theta_t+\Delta_t\psi_t\big)dt+\big(X_t\psi_t+Y_t\Delta_t\big)dW_t,\]

<p>again an Itô process. For smooth (no-\(dW\)) \(f,g\) the bracket vanishes and we recover the ordinary product rule \(d(f_tg_t)=f_t\,dg_t+g_t\,df_t\).</p>

<hr />

<p><strong>Series contents</strong></p>

<ol>
  <li><a href="/homepage_en/2026/10/21/mf790-01-foundations/">01 · Probability Spaces, Filtrations, Conditional Expectation and Martingales</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-02-brownian-motion/">02 · Random Walks, Quadratic Variation and Brownian Motion</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-03-stochastic-integration/">03 · Stochastic Integration</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-04-ito-formula/">04 · Itô’s Formula, Itô Processes and Geometric Brownian Motion</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-05-black-scholes/">05 · Black–Scholes: Replication, the PDE and the Greeks</a></li>
  <li><strong>06 · Risk-Neutral Pricing, Change of Measure and Girsanov</strong> (this post)</li>
  <li><a href="/homepage_en/2026/10/21/mf790-07-sde-feynman-kac/">07 · SDEs, Feynman–Kac and Stopping Times</a></li>
</ol>

<p><a href="/homepage_en/2026/10/21/mf790-05-black-scholes/">← Previous: Black–Scholes: Replication, the PDE and the Greeks</a>　·　<a href="/homepage_en/2026/10/21/mf790-07-sde-feynman-kac/">Next: SDEs, Feynman–Kac and Stopping Times →</a></p>

<p><em>This series collects my notes from QST MF 790 Stochastic Calculus at Boston University’s Questrom School of Business, in 7 parts. The content follows the order of the course; wording, intuition and a few corrections are my own. Throughout, \(N(\mu,\sigma^2)\) uses the variance as its second argument. Corrections are welcome. Chinese version of this post: <a href="https://bobothebest.github.io/homepage_cn/2026/10/21/mf790-06-risk-neutral-pricing/">中文版</a>.</em></p>]]></content><author><name>Ziyuan Zhang</name></author><category term="Stochastic Calculus Notes" /><category term="study notes" /><summary type="html"><![CDATA[Overview Part 05 priced a call. This post prices any payoff with one formula, \(V_t=E^{\mathbb Q}\big[e^{-r(T-t)}V_T\mid\mathcal F_t\big]\): the price is a net present value — but under a different probability measure \(\mathbb Q\), one in which the stock earns the risk-free rate. Then we answer the obvious questions: what is a change of measure, why do \(\mathbb P\) and \(\mathbb Q\) agree on what can happen but not on how likely it is, and how does Girsanov’s theorem turn \(\mu\) into \(r\) by shifting the Brownian motion.]]></summary></entry><entry><title type="html">Stochastic Calculus Notes 05 | Black–Scholes: Replication, the PDE and the Greeks</title><link href="https://bobothebest.github.io/homepage_en/2026/10/21/mf790-05-black-scholes/" rel="alternate" type="text/html" title="Stochastic Calculus Notes 05 | Black–Scholes: Replication, the PDE and the Greeks" /><published>2026-10-21T14:05:00+00:00</published><updated>2026-10-21T14:05:00+00:00</updated><id>https://bobothebest.github.io/homepage_en/2026/10/21/mf790-05-black-scholes</id><content type="html" xml:base="https://bobothebest.github.io/homepage_en/2026/10/21/mf790-05-black-scholes/"><![CDATA[<blockquote>
  <p><strong>Overview</strong></p>

  <p>The price of an option is <strong>the capital needed to replicate it</strong>. This post sets up the Black–Scholes market, writes down the wealth of a self-financing trader, and matches it term by term (\(dW\) terms and \(dt\) terms) against the option’s price process. Matching the \(dW\) terms gives the <strong>delta hedge</strong>; matching the \(dt\) terms gives the <strong>Black–Scholes PDE</strong>. Solving the PDE gives the Black–Scholes formula, and differentiating it gives the Greeks.</p>

  <p>A surprise worth noticing early: the stock’s expected return \(\mu\) <strong>disappears</strong> from the price.</p>
</blockquote>

<hr />

<h2 id="1-the-market">1. The market</h2>

<p>Fix \((\Omega,\mathcal F,\mathbb F,\mathbb P)\) and a Brownian motion \(W\). Two assets trade:</p>

<ol>
  <li><strong>Stock</strong> (risky), \(S\sim GBM(\mu,\sigma)\): \(\dfrac{dS_t}{S_t}=\mu\,dt+\sigma\,dW_t\), \(S_0&gt;0\). \(S_t(\omega)\) is the price of one share at time \(t\) in scenario \(\omega\).</li>
  <li><strong>Money market</strong> (riskless), \(\dfrac{dB_t}{B_t}=r\,dt\), \(B_0=1\): one dollar at time \(0\) grows to \(e^{rt}\) dollars at time \(t\), with constant \(r&gt;0\).</li>
</ol>

<h2 id="2-self-financing-strategies-and-wealth">2. Self-financing strategies and wealth</h2>

<p>A <strong>trading strategy</strong> \(\Delta\) is an adapted process; \(\Delta_t(\omega)\) is the number of shares held at \((t,\omega)\). Start with capital \(x\). <strong>Self-financing</strong>: all money not in the stock sits in the money market, and no money enters or leaves after time \(0\).</p>

<p>The wealth \(X=X^{x,\Delta}\) splits as</p>

\[X_t=\underbrace{\Delta_tS_t}_{\text{stock}}+\underbrace{X_t-\Delta_tS_t}_{\text{money market}},\]

<p>and the money-market part buys \((X_t-\Delta_tS_t)/B_t\) “shares” of \(B\).</p>

<p><strong>Wealth dynamics.</strong> Fix positions at the start of \([t,t+dt]\):</p>

\[X_{t+dt}-X_t=\Delta_t(S_{t+dt}-S_t)+\frac{X_t-\Delta_tS_t}{B_t}(B_{t+dt}-B_t)\ \xrightarrow{dt\to0}\ dX_t=\Delta_t\,dS_t+(X_t-\Delta_tS_t)\frac{dB_t}{B_t}.\]

<p>Substituting the dynamics of \(S\) and \(B\):</p>

\[dX_t=\big(rX_t+(\mu-r)\Delta_tS_t\big)dt+\sigma\Delta_tS_t\,dW_t,\]

<p>so \(X\) is an Itô process. Read it as: earn \(r\) on everything, plus the excess return \(\mu-r\) on the part in stock, plus noise.</p>

<h2 id="3-what-price-means">3. What “price” means</h2>

<p>We want to price a European <strong>call</strong>: the right to buy \(S\) at strike \(K\) at maturity \(T\), with payoff \((S_T-K)^+=\max(S_T-K,0)\).</p>

<p><strong>Arbitrage-free price = replication cost.</strong> If starting from \(x\) and trading self-financingly with some \(\Delta\) we end with \(X^{x,\Delta}_T=(S_T-K)^+\) with probability one, then the call’s price must be \(x\). Any other price would let you sell the expensive one, buy the cheap one, and pocket the difference risk-free.</p>

<p><strong>Same start + same dynamics = same process.</strong> If \(dY_t=\Theta^Y_tdt+\Delta^Y_tdW_t\) and \(dZ_t=\Theta^Z_tdt+\Delta^Z_tdW_t\) with \(Y_0=Z_0\), \(\Theta^Y\equiv\Theta^Z\), \(\Delta^Y\equiv\Delta^Z\), then \(Y_t=Z_t\) for all \(t\le T\) with probability one. This is the replication argument in one line: match the starting point and match both the \(dt\) and \(dW\) terms.</p>

<h2 id="4-matching-wealth-against-the-option-price">4. Matching wealth against the option price</h2>

<p>Let \(c(t,s)\) be the call price at time \(t\) when \(S_t=s\). We know \(c(T,s)=(s-K)^+\) and want \(c\) for \(t&lt;T\). Work with <strong>discounted</strong> processes (it simplifies the algebra): \(e^{-rt}X_t\) and \(e^{-rt}c(t,S_t)\).</p>

<p><strong>Discounted wealth.</strong> By the discounting rule from Part 04,</p>

\[d(e^{-rt}X_t)=e^{-rt}(\mu-r)\Delta_tS_t\,dt+e^{-rt}\sigma\Delta_tS_t\,dW_t .\]

<p><strong>Discounted price.</strong> Assume \(c\) is smooth (strictly speaking the payoff is not differentiable at \(s=K\), but \(c\) is smooth for \(t&lt;T\)). With \(d[S,S]_t=\sigma^2S_t^2dt\) and writing \((\cdot)=(t,S_t)\):</p>

\[d\big(e^{-rt}c(t,S_t)\big)=e^{-rt}\Big(-rc+c_t+c_s\,\mu S_t+\tfrac12c_{ss}\,\sigma^2S_t^2\Big)(\cdot)\,dt+e^{-rt}c_s(\cdot)\,\sigma S_t\,dW_t .\]

<p>Set \(x=c(0,S_0)\) and match:</p>

<ul>
  <li>
    <p><strong>\(dW\) terms:</strong> \(e^{-rt}\Delta_t\sigma S_t=e^{-rt}c_s(t,S_t)\sigma S_t\), so</p>

\[\boxed{\ \Delta_t=c_s(t,S_t)\ }\quad\text{— the delta hedge.}\]
  </li>
  <li>
    <p><strong>\(dt\) terms:</strong> \(\Delta_t(\mu-r)S_t=-rc+c_t+c_s\mu S_t+\frac12c_{ss}\sigma^2S_t^2\). Plug in \(\Delta_t=c_s\); the \(c_s\mu S_t\) terms <strong>cancel</strong>, leaving</p>

\[0=-rc(t,S_t)+c_t(t,S_t)+rS_t\,c_s(t,S_t)+\tfrac12\sigma^2S_t^2\,c_{ss}(t,S_t).\]
  </li>
</ul>

<p>It suffices to require this for every \(t&lt;T\) and \(s&gt;0\), which gives the <strong>Black–Scholes PDE</strong>:</p>

\[\begin{cases}0=-rc(t,s)+c_t(t,s)+rs\,c_s(t,s)+\tfrac12\sigma^2s^2\,c_{ss}(t,s),&amp;t&lt;T,\ s&gt;0,\\[4pt] c(T,s)=(s-K)^+,&amp;s&gt;0.\end{cases}\]

<p><strong>\(\mu\) is gone.</strong> The hedge cancels the stock’s risk exactly, so how fast the stock is expected to grow is irrelevant to the price.</p>

<h2 id="5-solving-the-pde">5. Solving the PDE</h2>

<p>Two steps: (1) assume a solution \(c\) exists and find a formula for it; (2) check that the formula solves the PDE.</p>

<p><strong>Step 1.</strong> Let \(\widetilde S\sim GBM(r,\sigma)\) under some measure \(\widetilde{\mathbb P}\) with Brownian motion \(\widetilde W\) — note the <strong>new measure</strong> and the drift <strong>\(r\) instead of \(\mu\)</strong>. By Itô,</p>

\[d\big(e^{-rt}c(t,\widetilde S_t)\big)=e^{-rt}\big(\underbrace{-rc+c_t+r\widetilde S_tc_s+\tfrac12\sigma^2\widetilde S_t^2c_{ss}}_{=0\ \text{by the PDE}}\big)dt+e^{-rt}c_s\,\sigma\widetilde S_t\,d\widetilde W_t,\]

<p>so the discounted price is a <strong>martingale under \(\widetilde{\mathbb P}\)</strong>. Together with the terminal condition,</p>

\[e^{-rt}c(t,\widetilde S_t)=E^{\widetilde{\mathbb P}}\big[e^{-rT}c(T,\widetilde S_T)\mid\widetilde{\mathcal F}_t\big]\quad\Longrightarrow\quad c(t,\widetilde S_t)=E^{\widetilde{\mathbb P}}\big[e^{-r(T-t)}(\widetilde S_T-K)^+\mid\widetilde{\mathcal F}_t\big].\]

<p>Write \(\widetilde S_T\) in terms of \(\widetilde S_t\):</p>

\[\widetilde S_T=\widetilde S_t\exp\Big\{\big(r-\tfrac12\sigma^2\big)(T-t)+\sigma(\widetilde W_T-\widetilde W_t)\Big\}.\]

<p>\(\widetilde S_t\) is known at time \(t\) and \(\widetilde W_T-\widetilde W_t\perp\!\!\!\perp\widetilde{\mathcal F}_t\), so we may freeze \(\widetilde S_t=s\). With \(\widetilde W_T-\widetilde W_t\sim N(0,T-t)\):</p>

\[c(t,s)=\frac{e^{-r(T-t)}}{\sqrt{2\pi(T-t)}}\int_{-\infty}^{\infty}\Big(s\,e^{(r-\frac12\sigma^2)(T-t)+\sigma z}-K\Big)^+e^{-\frac{z^2}{2(T-t)}}\,dz .\]

<p>Computing the integral gives the <strong>Black–Scholes formula</strong>:</p>

\[\boxed{\ c(t,s)=s\,N\big(d_+(T-t,s)\big)-Ke^{-r(T-t)}N\big(d_-(T-t,s)\big)\ }\]

\[d_\pm(\tau,s)=\frac1{\sigma\sqrt\tau}\Big(\log\frac sK+\big(r\pm\tfrac12\sigma^2\big)\tau\Big),\qquad N(y)=\frac1{\sqrt{2\pi}}\int_{-\infty}^ye^{-z^2/2}\,dz .\]

<p>Only the <strong>time to maturity</strong> \(\tau=T-t\) enters, not calendar time.</p>

<p><strong>Step 2.</strong> Verify directly that this \(c\) satisfies the PDE and \(c(T,s)=(s-K)^+\) (a homework exercise; the identity checked in Section 7 below is the key step).</p>

<h2 id="6-the-greeks">6. The Greeks</h2>

<p>Think of \(c=c(t,s;T,K,r,\sigma)\). Sensitivities to these inputs are the <strong>Greeks</strong>. Write \(\tau=T-t\) and \(d_\pm=d_\pm(\tau,s)\).</p>

<table>
  <thead>
    <tr>
      <th>Greek</th>
      <th>Definition</th>
      <th>Formula</th>
      <th>Sign</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Delta</td>
      <td>\(c_s\)</td>
      <td>\(N(d_+)\)</td>
      <td>\(&gt;0\)</td>
    </tr>
    <tr>
      <td>Gamma</td>
      <td>\(c_{ss}\)</td>
      <td>\(\dfrac{N'(d_+)}{\sigma s\sqrt\tau}\)</td>
      <td>\(&gt;0\)</td>
    </tr>
    <tr>
      <td>Theta</td>
      <td>\(c_t\)</td>
      <td>\(-rKe^{-r\tau}N(d_-)-\dfrac{\sigma s}{2\sqrt\tau}N'(d_+)\)</td>
      <td>\(&lt;0\)</td>
    </tr>
    <tr>
      <td>Vega</td>
      <td>\(c_\sigma\)</td>
      <td>\(s\sqrt\tau\,N'(d_+)\)</td>
      <td>\(&gt;0\)</td>
    </tr>
  </tbody>
</table>

<p><strong>Delta.</strong> A call is worth more when the stock is higher. The replicating strategy is \(\Delta_t=c_s(t,S_t)\): to first order in \(S\) (pretend \(dt=0\)), \(dX_t=c_s\,dS_t=dc(t,S_t)\), so the hedge matches the option’s moves — we are <strong>delta neutral</strong>.</p>

<p><strong>Gamma.</strong> \(c_{ss}&gt;0\): the call is <strong>convex</strong> in the stock price. To second order in \(S\),</p>

\[dX_t=c_s\,dS_t,\qquad dc(t,S_t)=c_s\,dS_t+\tfrac12c_{ss}\,d[S,S]_t .\]

<p><em>Intuition for “long convexity”.</em> Own the call and short \(c_s\) shares. A delta hedge is a tangent line to the convex price curve; whichever way the stock jumps, the curve ends up above the tangent, so the hedged position gains \(\frac12c_{ss}(dS)^2\ge0\) from moves of either sign. Gamma is largest near the strike and becomes more concentrated as maturity approaches.</p>

<p><strong>Theta.</strong> \(c_t&lt;0\): with everything else fixed, the call loses value as time passes. That is the price paid for long gamma: with all second-order changes included,</p>

\[dX_t=c_s\,dS_t+(c-c_sS_t)\,r\,dt,\qquad dc(t,S_t)=c_t\,dt+c_s\,dS_t+\tfrac12c_{ss}\sigma^2S_t^2\,dt,\]

<p>and the PDE says these are equal — a <strong>perfect hedge</strong>. Theta exactly pays for the gamma gains plus financing.</p>

<p><strong>Vega.</strong> \(c_\sigma&gt;0\): higher volatility means bigger moves; up-moves help the call, down-moves hurt it only down to zero. Positive vega = <strong>long volatility</strong>.</p>

<h2 id="7-check-the-hedge-is-perfect">7. Check: the hedge is perfect</h2>

<p>With \(c=SN(d_+)-Ke^{-r\tau}N(d_-)\), \(c_s=N(d_+)\), \(c_{ss}=\frac{N'(d_+)}{\sigma S\sqrt\tau}\) and \(c_t\) from the table, we need \((c-c_sS)\,r=c_t+\frac12c_{ss}\sigma^2S^2\):</p>

\[\text{LHS}=\big[SN(d_+)-Ke^{-r\tau}N(d_-)-SN(d_+)\big]r=-rKe^{-r\tau}N(d_-),\]

\[\text{RHS}=-rKe^{-r\tau}N(d_-)-\frac{\sigma S}{2\sqrt\tau}N'(d_+)+\frac12\cdot\frac{\sigma S}{\sqrt\tau}N'(d_+)=-rKe^{-r\tau}N(d_-).\ \checkmark\]

<p>The theta term and the gamma term cancel exactly.</p>

<h2 id="8-implied-volatility">8. Implied volatility</h2>

<p>Under Black–Scholes, conditional mean and variance of returns do not change over time:</p>

\[E\Big[\frac{dS_t}{S_t}\,\Big\vert\,\mathcal F_t\Big]=\mu\,dt,\qquad\mathrm{Var}\Big[\frac{dS_t}{S_t}\,\Big\vert\,\mathcal F_t\Big]=\sigma^2\,d[W,W]_t=\sigma^2\,dt .\]

<p>In reality volatility is not constant. Two ways to estimate it:</p>

<ul>
  <li><strong>historical volatility</strong> from past returns (backward-looking);</li>
  <li><strong>implied volatility</strong> from option prices (forward-looking).</li>
</ul>

<p>For a European call with maturity \(T\) and strike \(K\), let \(C_{BS}(\sigma,K,T)\) be the Black–Scholes price and \(C_m(K,T)\) the observed market price. The <strong>implied volatility</strong> \(\sigma_{imp}=\sigma_{imp}(K,T)\) solves</p>

\[C_{BS}(\sigma_{imp},K,T)=C_m(K,T).\]

<p>Because vega \(&gt;0\), \(C_{BS}\) is increasing in \(\sigma\), so the solution is unique. Options are typically <strong>quoted in implied volatility</strong>, not price. If the world were exactly Black–Scholes, \(\sigma_{imp}(K,T)=\sigma\) for every \(K\) and \(T\). Real data instead show \(\sigma_{imp}\) varying with strike and maturity — the <strong>volatility smile / skew</strong> — which is the market telling us the model is only an approximation.</p>

<hr />

<p><strong>Series contents</strong></p>

<ol>
  <li><a href="/homepage_en/2026/10/21/mf790-01-foundations/">01 · Probability Spaces, Filtrations, Conditional Expectation and Martingales</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-02-brownian-motion/">02 · Random Walks, Quadratic Variation and Brownian Motion</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-03-stochastic-integration/">03 · Stochastic Integration</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-04-ito-formula/">04 · Itô’s Formula, Itô Processes and Geometric Brownian Motion</a></li>
  <li><strong>05 · Black–Scholes: Replication, the PDE and the Greeks</strong> (this post)</li>
  <li><a href="/homepage_en/2026/10/21/mf790-06-risk-neutral-pricing/">06 · Risk-Neutral Pricing, Change of Measure and Girsanov</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-07-sde-feynman-kac/">07 · SDEs, Feynman–Kac and Stopping Times</a></li>
</ol>

<p><a href="/homepage_en/2026/10/21/mf790-04-ito-formula/">← Previous: Itô’s Formula, Itô Processes and Geometric Brownian Motion</a>　·　<a href="/homepage_en/2026/10/21/mf790-06-risk-neutral-pricing/">Next: Risk-Neutral Pricing, Change of Measure and Girsanov →</a></p>

<p><em>This series collects my notes from QST MF 790 Stochastic Calculus at Boston University’s Questrom School of Business, in 7 parts. The content follows the order of the course; wording, intuition and a few corrections are my own. Throughout, \(N(\mu,\sigma^2)\) uses the variance as its second argument. Corrections are welcome. Chinese version of this post: <a href="https://bobothebest.github.io/homepage_cn/2026/10/21/mf790-05-black-scholes/">中文版</a>.</em></p>]]></content><author><name>Ziyuan Zhang</name></author><category term="Stochastic Calculus Notes" /><category term="study notes" /><summary type="html"><![CDATA[Overview The price of an option is the capital needed to replicate it. This post sets up the Black–Scholes market, writes down the wealth of a self-financing trader, and matches it term by term (\(dW\) terms and \(dt\) terms) against the option’s price process. Matching the \(dW\) terms gives the delta hedge; matching the \(dt\) terms gives the Black–Scholes PDE. Solving the PDE gives the Black–Scholes formula, and differentiating it gives the Greeks. A surprise worth noticing early: the stock’s expected return \(\mu\) disappears from the price.]]></summary></entry><entry><title type="html">Stochastic Calculus Notes 04 | Itô’s Formula, Itô Processes and Geometric Brownian Motion</title><link href="https://bobothebest.github.io/homepage_en/2026/10/21/mf790-04-ito-formula/" rel="alternate" type="text/html" title="Stochastic Calculus Notes 04 | Itô’s Formula, Itô Processes and Geometric Brownian Motion" /><published>2026-10-21T14:04:00+00:00</published><updated>2026-10-21T14:04:00+00:00</updated><id>https://bobothebest.github.io/homepage_en/2026/10/21/mf790-04-ito-formula</id><content type="html" xml:base="https://bobothebest.github.io/homepage_en/2026/10/21/mf790-04-ito-formula/"><![CDATA[<blockquote>
  <p><strong>Overview</strong></p>

  <p>Itô’s formula is the chain rule of stochastic calculus. Compared with the ordinary chain rule it has <strong>one extra term</strong>, \(\frac12 f''\,d[W,W]_t=\frac12f''\,dt\), and the reason is exactly \([W,W]_t=t&gt;0\) from Part 02.</p>

  <p>In practice you only need a second-order Taylor expansion plus the multiplication table
\(dt^2=0,\quad dt\,dW_t=0,\quad (dW_t)^2=dt.\)
This post derives the formula, extends it to Itô processes, and uses it to build the standard stock-price model, geometric Brownian motion.</p>
</blockquote>

<hr />

<h2 id="1-why-the-ordinary-chain-rule-fails">1. Why the ordinary chain rule fails</h2>

<p>For a smooth path \(g\), \(f(g_t)-f(g_0)=\int_0^tf'(g_u)\,g'_u\,du\). The naive stochastic analogue would be \(f(W_t)=f(W_0)+\int_0^tf'(W_u)\,dW_u\). Test it with \(f(x)=\frac12x^2\), which would predict \(\frac12W_t^2=\int_0^tW_u\,dW_u\). Compute directly with a partition of \([0,t]\):</p>

\[\frac12W_t^2=\frac12\sum_j\big(W_{t_j}^2-W_{t_{j-1}}^2\big)=\sum_jW_{t_{j-1}}(W_{t_j}-W_{t_{j-1}})+\frac12\sum_j(W_{t_j}-W_{t_{j-1}})^2\ \xrightarrow{\Vert \Pi\Vert \to0}\ \int_0^tW_u\,dW_u+\frac12t.\]

<p>(Check the algebra: \(W_{t_{j-1}}W_{t_j}-W_{t_{j-1}}^2+\frac12(W_{t_j}-W_{t_{j-1}})^2=\frac12W_{t_j}^2-\frac12W_{t_{j-1}}^2\).)</p>

<p>The extra \(\frac12t\) is the quadratic variation. So the chain rule needs a second-order correction.</p>

<h2 id="2-itôs-formula">2. Itô’s formula</h2>

<p>For \(W\) a Brownian motion and \(f\) smooth:</p>

\[f(W_t)-f(W_0)=\int_0^tf'(W_u)\,dW_u+\frac12\int_0^tf''(W_u)\,d[W,W]_u .\]

<p>Shorthand: \(df(W_t)=f'(W_t)\,dW_t+\frac12f''(W_t)\,dt\). Note that “\(df(W_t)\)” by itself has no meaning — it is shorthand for the integral equation.</p>

<p><strong>Heuristic derivation.</strong> Taylor to second order, \(f(x+y)-f(x)=f'(x)y+\frac12f''(x)y^2\), with \(x=W_t\), \(y=dW_t\) and \((dW_t)^2=d[W,W]_t\):</p>

\[df(W_t)=f'(W_t)\,dW_t+\frac12f''(W_t)\,(dW_t)^2=f'(W_t)\,dW_t+\frac12f''(W_t)\,d[W,W]_t .\]

<p>This is not rigorous — a two-term Taylor expansion is not exact, and plugging \(dW_t\) into it is formal — but it gives the right answer, and it is how everyone uses the formula.</p>

<details>
  <summary>Proof sketch (with the Taylor remainder made explicit)</summary>

  <p>Assume \(f,f',f''\) are continuous and bounded. Write the exact Taylor expansion with a remainder,</p>

\[f(x+y)=f(x)+f'(x)y+\tfrac12f''(x)y^2+R(x,y)\,y^2,\qquad R(x,y)=\frac{f(x+y)-f(x)-f'(x)y-\frac12f''(x)y^2}{y^2}.\]

  <p>\(R\) is the “error per unit of \(y^2\)”. By L’Hôpital twice, \(\lim_{y\to0}R(x,y)=\lim_{y\to0}\frac12\big(f''(x+y)-f''(x)\big)=0\), i.e. the remainder is of smaller order than \(y^2\).</p>

  <p>Now telescope over a partition, with \(x=W_{t_{j-1}}\), \(x+y=W_{t_j}\):</p>

\[f(W_t)-f(W_0)=\underbrace{\sum_jf'(W_{t_{j-1}})\Delta W_j}_{(1)}+\underbrace{\tfrac12\sum_jf''(W_{t_{j-1}})(\Delta W_j)^2}_{(2)}+\underbrace{\sum_jR(W_{t_{j-1}},\Delta W_j)(\Delta W_j)^2}_{(3)}.\]

  <ul>
    <li>(1) \(\to\int_0^tf'(W_u)\,dW_u\) (a stochastic integral, Part 03).</li>
    <li>(2) Split \((\Delta W_j)^2=\Delta t_j+\big((\Delta W_j)^2-\Delta t_j\big)\). The first part gives \(\int_0^tf''(W_u)\,du\). The second, \(\mathcal Z=\sum_jf''(W_{t_{j-1}})\big((\Delta W_j)^2-\Delta t_j\big)\), has mean \(0\) (because \(W_t^2-t\) is a martingale) and variance \(\le K(f,t)\,\Vert \Pi\Vert \to0\), so \(\mathcal Z\to0\).</li>
    <li>(3) \(\vert(3)\vert\le\max_j\vert R(W_{t_{j-1}},\Delta W_j)\vert\cdot[W,W]^\Pi_t\to0\cdot t=0\).</li>
  </ul>

</details>

<p><strong>Two examples.</strong></p>

<ul>
  <li>\(f(x)=e^x\): \(e^{W_t}=1+\int_0^te^{W_u}\,dW_u+\frac12\int_0^te^{W_u}\,du\).</li>
  <li>\(f(x)=\sin x\): \(\sin W_t=\int_0^t\cos W_u\,dW_u-\frac12\int_0^t\sin W_u\,du\). The \(du\) term changes sign, so \(\sin W_t\) is neither a sub-, super-, nor martingale.</li>
</ul>

<p><strong>Rule of thumb:</strong> the \(dW\) part is a martingale; the \(dt\) part is a drift. A function of \(W\) is a martingale exactly when its \(dt\) term vanishes.</p>

<h2 id="3-time-dependent-itô">3. Time-dependent Itô</h2>

<p>If \(f(t,x)\) has continuous \(f_t,f_x,f_{xx}\):</p>

\[df(t,W_t)=f_t(t,W_t)\,dt+f_x(t,W_t)\,dW_t+\frac12f_{xx}(t,W_t)\,d[W,W]_t .\]

<p><strong>Heuristic.</strong> Two-variable Taylor,</p>

\[f(t+s,x+y)-f(t,x)=f_ts+f_xy+\tfrac12f_{tt}s^2+f_{tx}sy+\tfrac12f_{xx}y^2,\]

<p>with \(s=dt\), \(y=dW_t\), and the multiplication table \(dt^2=0\), \(dt\,dW_t=0\), \((dW_t)^2=dt\). Why do the two mixed terms die? As \(\Vert \Pi\Vert \to0\):</p>

\[\sum_i(t_i-t_{i-1})^2\le\max_i(t_i-t_{i-1})\cdot t\to0,\qquad \sum_i(t_i-t_{i-1})\vert W_{t_i}-W_{t_{i-1}}\vert\le\max_i\vert W_{t_i}-W_{t_{i-1}}\vert\cdot t\to0.\]

<h3 id="the-exponential-martingale-important">The exponential martingale (important)</h3>

<p>\(f(t,x)=e^{\alpha x-\frac12\alpha^2t}\) has \(f_t=-\frac12\alpha^2f\), \(f_x=\alpha f\), \(f_{xx}=\alpha^2f\), so the \(dt\) terms cancel:</p>

\[df(t,W_t)=\alpha f(t,W_t)\,dW_t\quad\Longrightarrow\quad e^{\alpha W_t-\frac12\alpha^2t}=1+\int_0^t\alpha\,e^{\alpha W_u-\frac12\alpha^2u}\,dW_u\]

<p>is a <strong>martingale</strong>. The \(-\frac12\alpha^2t\) is exactly the “Itô correction” needed to kill the drift that \(e^{\alpha W_t}\) would otherwise have.</p>

<h2 id="4-itô-processes">4. Itô processes</h2>

<p>An <strong>Itô process</strong> has both a regular and a stochastic integral:</p>

\[X_t=X_0+\underbrace{\int_0^t\Theta_u\,du}_{A_t:\ \text{finite-variation part}}+\underbrace{\int_0^t\Delta_u\,dW_u}_{M_t:\ \text{martingale part}},\qquad dX_t=\Theta_t\,dt+\Delta_t\,dW_t,\]

<p>with \(\Theta,\Delta\) adapted so that the integrals exist and \(X_0\) constant. \(A\) is never a martingale unless \(\Theta\equiv0\).</p>

<p>Examples: \(\Theta\equiv0,\ \Delta\equiv1,\ X_0=x\) gives \(X_t=x+W_t\), Brownian motion started at \(x\); \(\Delta\equiv0\) gives a smooth process \(X_t=X_0+\int_0^t\Theta_u\,du\).</p>

<p><strong>Quadratic variation.</strong> Only the \(dW\) part contributes:</p>

\[d[X,X]_t=(dX_t)^2=\Theta_t^2\,dt^2+2\Theta_t\Delta_t\,dt\,dW_t+\Delta_t^2\,(dW_t)^2=\Delta_t^2\,dt,\qquad [X,X]_t=\int_0^t\Delta_u^2\,du.\]

<p><strong>Integrating against an Itô process.</strong> For adapted \(\Gamma\),</p>

\[\int_0^t\Gamma_u\,dX_u:=\int_0^t\Gamma_u\Theta_u\,du+\int_0^t\Gamma_u\Delta_u\,dW_u,\]

<p>provided \(\int_0^t\vert\Gamma_u\Theta_u\vert du&lt;\infty\) and \(E\int_0^t\Gamma_u^2\Delta_u^2du&lt;\infty\). If \(X\) is a share price, this is the P/L of trading \(\Gamma\) shares. The result \(Y_t=\int_0^t\Gamma_u\,dX_u\) is again an Itô process (a martingale only if \(\Theta\equiv0\)), with \([Y,Y]_t=\int_0^t\Gamma_u^2\Delta_u^2\,du\).</p>

<h2 id="5-itôs-formula-for-itô-processes">5. Itô’s formula for Itô processes</h2>

<p>For nice \(f(t,x)\) (smooth, bounded derivatives):</p>

\[df(t,X_t)=f_t(t,X_t)\,dt+f_x(t,X_t)\,dX_t+\frac12f_{xx}(t,X_t)\,d[X,X]_t .\]

<p>Plugging in \(dX_t=\Theta_tdt+\Delta_tdW_t\) and \(d[X,X]_t=\Delta_t^2dt\):</p>

\[df(t,X_t)=\underbrace{\Big(f_t+f_x\Theta_t+\tfrac12f_{xx}\Delta_t^2\Big)dt}_{\text{finite variation}}+\underbrace{f_x\,\Delta_t\,dW_t}_{\text{martingale}} .\]

<p>So <strong>a function of an Itô process is again an Itô process</strong> — but the martingale property is not preserved in general (e.g. \(W\) is a martingale, \(W^2\) is a sub-martingale).</p>

<p>How to remember it: pretend the second-order Taylor expansion is exact, then apply the multiplication table, using \(dt\,dX_t=dt(\Theta_tdt+\Delta_tdW_t)=0\) and \((dX_t)^2=\Delta_t^2dt\).</p>

<p><strong>Discounting</strong> (used all the time in Parts 05–06). If \(dY_t=\Theta_tdt+\Delta_tdW_t\), apply the formula to \(f(t,y)=e^{-rt}y\) (\(f_t=-rf\), \(f_y=e^{-rt}\), \(f_{yy}=0\)):</p>

\[d(e^{-rt}Y_t)=e^{-rt}(\Theta_t-rY_t)\,dt+e^{-rt}\Delta_t\,dW_t .\]

<h2 id="6-geometric-brownian-motion">6. Geometric Brownian motion</h2>

<p>Let \(\mu=\{\mu_t\}\), \(\sigma=\{\sigma_t\}\) be adapted with \(\int_0^t\vert\mu_s\vert ds&lt;\infty\) and \(E\int_0^t\sigma_s^2ds&lt;\infty\). A <strong>(generalized) geometric Brownian motion</strong>, written \(S\sim GBM(\mu,\sigma)\), is</p>

\[S_t=S_0\exp\Big\{\int_0^t\Big(\mu_u-\tfrac12\sigma_u^2\Big)du+\int_0^t\sigma_u\,dW_u\Big\},\qquad S_0&gt;0.\]

<p>It is the most common stock-price model. With constant \(\mu,\sigma\),</p>

\[S_t=S_0\exp\Big\{\big(\mu-\tfrac12\sigma^2\big)t+\sigma W_t\Big\}=S_0e^{\mu t}\cdot\underbrace{e^{\sigma W_t-\frac12\sigma^2t}}_{\text{exponential martingale}} .\]

<p><strong>Dynamics.</strong> Let \(X_t=\int_0^t(\mu_u-\frac12\sigma_u^2)du+\int_0^t\sigma_udW_u\), so \(S_t=f(X_t)\) with \(f(x)=S_0e^x\) (\(f=f'=f''\)):</p>

\[dS_t=S_t\Big(\big(\mu_t-\tfrac12\sigma_t^2\big)dt+\sigma_tdW_t\Big)+\tfrac12S_t\sigma_t^2dt\quad\Longrightarrow\quad\frac{dS_t}{S_t}=\mu_t\,dt+\sigma_t\,dW_t .\]

<p>\(dS_t/S_t\) is the instantaneous return over \([t,t+dt]\). Since \(\mu_t,\sigma_t\) are \(\mathcal F_t\)-measurable and \(dW_t\perp\!\!\!\perp\mathcal F_t\),</p>

\[E\Big[\frac{dS_t}{S_t}\,\Big\vert\,\mathcal F_t\Big]=\mu_t\,dt,\qquad \mathrm{Var}\Big[\frac{dS_t}{S_t}\,\Big\vert\,\mathcal F_t\Big]=\sigma_t^2\,dt,\]

<p>so \(\mu\) and \(\sigma\) are the <strong>drift</strong> and <strong>volatility</strong> of returns. The \(-\frac12\sigma^2\) in the exponent is the Itô correction again: the log-price grows more slowly than the expected return.</p>

<h2 id="7-application-integrals-of-deterministic-functions-are-gaussian">7. Application: integrals of deterministic functions are Gaussian</h2>

<p><strong>Claim.</strong> If \(f\) is deterministic (non-random), then</p>

\[\int_0^tf_u\,dW_u\sim N\Big(0,\ \int_0^tf_u^2\,du\Big).\]

<details>
  <summary>Proof via the exponential martingale</summary>

  <p>Let \(S\sim GBM(0,\alpha f)\) with \(S_0=1\) and \(\alpha\in\mathbb R\). With zero drift, \(S\) is a martingale, so</p>

\[1=E[S_t]=E\Big[e^{\alpha\int_0^tf_udW_u-\frac12\alpha^2\int_0^tf_u^2du}\Big]=e^{-\frac12\alpha^2\int_0^tf_u^2du}\,E\Big[e^{\alpha\int_0^tf_udW_u}\Big],\]

  <p>where we pulled out the non-random factor. Hence \(E\big[e^{\alpha\int_0^tf_udW_u}\big]=e^{\frac12\alpha^2\int_0^tf_u^2du}\), which is the moment generating function of \(N\big(0,\int_0^tf_u^2du\big)\) (for \(X\sim N(0,\sigma^2)\), \(E e^{\alpha X}=e^{\frac12\alpha^2\sigma^2}\)). The mgf determines the distribution.</p>

</details>

<p>The variance \(\int_0^tf_u^2du\) is exactly what the Itô isometry predicts; the new information is that the distribution is <strong>normal</strong>. We will use this for the Ornstein–Uhlenbeck process in Part 07.</p>

<hr />

<p><strong>Series contents</strong></p>

<ol>
  <li><a href="/homepage_en/2026/10/21/mf790-01-foundations/">01 · Probability Spaces, Filtrations, Conditional Expectation and Martingales</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-02-brownian-motion/">02 · Random Walks, Quadratic Variation and Brownian Motion</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-03-stochastic-integration/">03 · Stochastic Integration</a></li>
  <li><strong>04 · Itô’s Formula, Itô Processes and Geometric Brownian Motion</strong> (this post)</li>
  <li><a href="/homepage_en/2026/10/21/mf790-05-black-scholes/">05 · Black–Scholes: Replication, the PDE and the Greeks</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-06-risk-neutral-pricing/">06 · Risk-Neutral Pricing, Change of Measure and Girsanov</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-07-sde-feynman-kac/">07 · SDEs, Feynman–Kac and Stopping Times</a></li>
</ol>

<p><a href="/homepage_en/2026/10/21/mf790-03-stochastic-integration/">← Previous: Stochastic Integration</a>　·　<a href="/homepage_en/2026/10/21/mf790-05-black-scholes/">Next: Black–Scholes: Replication, the PDE and the Greeks →</a></p>

<p><em>This series collects my notes from QST MF 790 Stochastic Calculus at Boston University’s Questrom School of Business, in 7 parts. The content follows the order of the course; wording, intuition and a few corrections are my own. Throughout, \(N(\mu,\sigma^2)\) uses the variance as its second argument. Corrections are welcome. Chinese version of this post: <a href="https://bobothebest.github.io/homepage_cn/2026/10/21/mf790-04-ito-formula/">中文版</a>.</em></p>]]></content><author><name>Ziyuan Zhang</name></author><category term="Stochastic Calculus Notes" /><category term="study notes" /><summary type="html"><![CDATA[Overview Itô’s formula is the chain rule of stochastic calculus. Compared with the ordinary chain rule it has one extra term, \(\frac12 f''\,d[W,W]_t=\frac12f''\,dt\), and the reason is exactly \([W,W]_t=t&gt;0\) from Part 02. In practice you only need a second-order Taylor expansion plus the multiplication table \(dt^2=0,\quad dt\,dW_t=0,\quad (dW_t)^2=dt.\) This post derives the formula, extends it to Itô processes, and uses it to build the standard stock-price model, geometric Brownian motion.]]></summary></entry><entry><title type="html">Stochastic Calculus Notes 03 | Stochastic Integration</title><link href="https://bobothebest.github.io/homepage_en/2026/10/21/mf790-03-stochastic-integration/" rel="alternate" type="text/html" title="Stochastic Calculus Notes 03 | Stochastic Integration" /><published>2026-10-21T14:03:00+00:00</published><updated>2026-10-21T14:03:00+00:00</updated><id>https://bobothebest.github.io/homepage_en/2026/10/21/mf790-03-stochastic-integration</id><content type="html" xml:base="https://bobothebest.github.io/homepage_en/2026/10/21/mf790-03-stochastic-integration/"><![CDATA[<blockquote>
  <p><strong>Overview</strong></p>

  <p>A stochastic integral is just <strong>cumulative trading P/L</strong>: hold \(\Delta\) shares while the price moves by \(dW\), and add it up. This post builds \(\int_0^t\Delta_s\,dW_s\) in three steps — discrete time, “buy-and-hold” (simple) strategies, and general strategies by approximation — and shows the same five properties survive every step:</p>

  <p><strong>linear · adapted · martingale · Itô isometry \(\mathrm{Var}[I_t]=E\int_0^t\Delta_s^2ds\) · \([I,I]_t=\int_0^t\Delta_s^2ds\).</strong></p>
</blockquote>

<hr />

<h2 id="1-discrete-time-the-integral-as-trading-pl">1. Discrete time: the integral as trading P/L</h2>

<p>Let \(M=\{M_n\}\) be a martingale (think: a share price). For a trading strategy \(\Delta=\{\Delta_n\}\) define</p>

\[I_0=0,\qquad I_n=\sum_{j=1}^n\underbrace{\Delta_j}_{\text{shares held}}\ \underbrace{dM_j}_{\text{price change}},\qquad dM_j=M_j-M_{j-1}.\]

<p>\(\Delta_j\,dM_j\) is the P/L over \([j-1,j]\) and \(I_n\) the cumulative P/L over \([0,n]\).</p>

<p><strong>Predictable strategies.</strong> We hold \(\Delta_j\) over \([j-1,j]\), and we cannot look into the future, so \(\Delta_j\) must be known at time \(j-1\): \(\Delta_j\) is \(\mathcal F_{j-1}\)-measurable. Such a \(\Delta=\{\Delta_n\}_{n\ge1}\) is called <strong>predictable</strong> (\(\Delta_0\) is not defined since \(\mathcal F_{-1}\) does not exist).</p>

<h3 id="properties-of-isumdeltadm-delta-predictable-m-a-martingale">Properties of \(I=\sum\Delta\,dM\) (\(\Delta\) predictable, \(M\) a martingale)</h3>

<ol>
  <li><strong>Linear in \(\Delta\):</strong> \(I(\alpha\Delta+\beta\psi)=\alpha I(\Delta)+\beta I(\psi)\) — just split the sum.</li>
  <li><strong>Adapted:</strong> \(\Delta_1,\dots,\Delta_n\) are known by time \(n-1\) and \(M_0,\dots,M_n\) by time \(n\), so \(I_n\) is \(\mathcal F_n\)-measurable.</li>
  <li>
    <p><strong>Martingale:</strong> \(I_{n+1}-I_n=\Delta_{n+1}(M_{n+1}-M_n)\) and \(\Delta_{n+1}\) is \(\mathcal F_n\)-measurable, so</p>

\[E[I_{n+1}-I_n\mid\mathcal F_n]=\Delta_{n+1}\,E[M_{n+1}-M_n\mid\mathcal F_n]=0.\]
  </li>
  <li><strong>Quadratic variation:</strong> \([I,I]_n=\sum_j\Delta_j^2(dM_j)^2=\sum_j\Delta_j^2\,d[M,M]_j\).</li>
  <li>
    <p><strong>Variance:</strong> since \(I\) is a martingale with \(I_0=0\), Fact 1 of Part 02 gives</p>

\[\mathrm{Var}[I_n]=E\big[[I,I]_n\big]=E\Big[\sum_{j=1}^n\Delta_j^2\,d[M,M]_j\Big].\]
  </li>
</ol>

<p>For the random walk, \(d[M,M]_j=1\), so \([I,I]_n=\sum_j\Delta_j^2\) and \(\mathrm{Var}[I_n]=E\sum_j\Delta_j^2\).</p>

<p>Intuition for “martingale”: <strong>you cannot beat a fair game by choosing your bet size</strong>, as long as you choose it before the coin is tossed.</p>

<h2 id="2-continuous-time-why-the-obvious-definition-fails">2. Continuous time: why the obvious definition fails</h2>

<p>We want \(I_t=\int_0^t\Delta_s\,dW_s\) (\(\Delta\): integrand, \(W\): integrator; same P/L reading). The natural guess is a Riemann sum,</p>

\[\int_0^t\Delta_s\,dW_s\approx\sum_{j=1}^n\Delta_{t_{j-1}}\big(W_{t_j}-W_{t_{j-1}}\big).\]

<p>If \(W\) were smooth, the mean value theorem would turn this into \(\int_0^t\Delta_s\dot W_s\,ds\). But \(W\) is nowhere differentiable (Part 02), so \(\dot W_s\) does not exist and <strong>path-by-path</strong> the limit does not exist in the ordinary sense. We need a new kind of limit.</p>

<h2 id="3-simple-buy-and-hold-integrands">3. Simple (buy-and-hold) integrands</h2>

<p>First bring things back to almost discrete time. Fix \(0=t_0&lt;t_1&lt;\dots&lt;t_n\) and \(\mathcal F_{t_j}\)-measurable r.v.’s \(\Delta_j\), and set</p>

\[\Delta_t=\Delta_0\mathbf 1_{\{t=0\}}+\sum_{j=1}^n\Delta_{j-1}\mathbf 1_{\{t\in(t_{j-1},t_j]\}}:\]

<p>hold \(\Delta_{j-1}\) shares over \((t_{j-1},t_j]\). For such a <strong>simple integrand</strong> the integral is explicit:</p>

\[I_t=\sum_{j=1}^n\underbrace{\Delta_{j-1}}_{\text{position}}\ \underbrace{\big(W_{t\wedge t_j}-W_{t\wedge t_{j-1}}\big)}_{\text{price change}},\qquad t\wedge s=\min\{t,s\}.\]

<p>Reading it piece by piece: for \(t_{j-1}\le t\le t_j\),</p>

\[I_t=\underbrace{\sum_{i=1}^{j-1}\Delta_{i-1}\big(W_{t_i}-W_{t_{i-1}}\big)}_{\text{P/L over }[0,t_{j-1}]}+\underbrace{\Delta_{j-1}\big(W_t-W_{t_{j-1}}\big)}_{\text{P/L over }[t_{j-1},t]},\]

<p>and for \(t\ge t_n\) nothing changes any more — we stopped trading.</p>

<h3 id="properties-for-simple-delta">Properties for simple \(\Delta\)</h3>

<ul>
  <li><strong>Linear</strong> and <strong>adapted</strong>: as in discrete time.</li>
  <li><strong>Continuous paths</strong> (new): each term \(t\mapsto\Delta_{j-1}(W_{t\wedge t_j}-W_{t\wedge t_{j-1}})\) is continuous because \(W\) is, and a finite sum of continuous processes is continuous.</li>
  <li>
    <p><strong>Martingale.</strong> For \(t_{j-1}&lt;s&lt;t_j&lt;t\) (adjacent buckets),</p>

\[\begin{aligned}
E[I_t-I_s\mid\mathcal F_s]&amp;=E[\Delta_{j-1}(W_{t_j}-W_s)\mid\mathcal F_s]+E\big[E[\Delta_j(W_t-W_{t_j})\mid\mathcal F_{t_j}]\mid\mathcal F_s\big]\\
&amp;=\Delta_{j-1}\cdot0+E[\Delta_j\cdot0\mid\mathcal F_s]=0.
\end{aligned}\]

    <p>It is crucial that the position is chosen at the <strong>beginning</strong> of each period.</p>
  </li>
  <li><strong>Itô isometry:</strong> \(\mathrm{Var}[I_t]=E\Big[\int_0^t\Delta_s^2\,ds\Big]\).</li>
  <li><strong>Quadratic variation:</strong> \([I,I]_t=\int_0^t\Delta_s^2\,ds\).</li>
</ul>

<details>
  <summary>Proof: Itô isometry for simple integrands</summary>

  <p>\(I_0=0\) and \(I\) is a martingale, so \(\mathrm{Var}[I_t]=E[I_t^2]\). Relabel so that \(t=t_j\) and \(I_t=\sum_{i=1}^j\Delta_{t_{i-1}}(W_{t_i}-W_{t_{i-1}})\). Cross terms vanish exactly as in Part 02 (condition on the later left endpoint), and each diagonal term is</p>

\[E\big[\Delta_{t_{i-1}}^2(W_{t_i}-W_{t_{i-1}})^2\big]=E\big[\Delta_{t_{i-1}}^2\,E[(W_{t_i}-W_{t_{i-1}})^2\mid\mathcal F_{t_{i-1}}]\big]=E\big[\Delta_{t_{i-1}}^2(t_i-t_{i-1})\big].\]

  <p>Since \(\Delta\) is constant on each \((t_{i-1},t_i]\),</p>

\[\mathrm{Var}[I_t]=E\Big[\sum_{i=1}^j\Delta_{t_{i-1}}^2(t_i-t_{i-1})\Big]=E\Big[\int_0^t\Delta_s^2\,ds\Big].\]

</details>

<details>
  <summary>Proof: quadratic variation for simple integrands</summary>

  <p>Partition one bucket \([t_{i-1},t_i]\) finely by \(s_0&lt;s_1&lt;\dots&lt;s_n\). Inside the bucket the position is constant, so \(I_{s_k}-I_{s_{k-1}}=\Delta_{t_{i-1}}(W_{s_k}-W_{s_{k-1}})\) and</p>

\[[I,I]^\Pi_{[t_{i-1},t_i]}=\Delta_{t_{i-1}}^2\,[W,W]^\Pi_{[t_{i-1},t_i]}\ \longrightarrow\ \Delta_{t_{i-1}}^2(t_i-t_{i-1}).\]

  <p>Summing over buckets, \([I,I]_t=\sum_i\Delta_{t_{i-1}}^2(t_i-t_{i-1})=\int_0^t\Delta_s^2\,ds\).</p>

</details>

<p>Note the difference between the last two: \([I,I]_t\) is a <strong>random</strong> quantity path by path; the isometry is its <strong>expectation</strong>.</p>

<h2 id="4-general-integrands-approximate-then-take-an-l2-limit">4. General integrands: approximate, then take an \(L^2\) limit</h2>

<p>Fix \(T&gt;0\). Let \(\mathcal L\) be the set of integrands \(\Delta\) that are</p>

<ul>
  <li>adapted, and</li>
  <li>square-integrable: \(E\Big[\int_0^T\Delta_s^2\,ds\Big]&lt;\infty\).</li>
</ul>

<p>For \(\Delta\in\mathcal L\) and partitions \(\Pi^n\) of \([0,T]\) with mesh \(\to0\), freeze \(\Delta\) at the left endpoints:</p>

\[\Delta^n_t=\Delta_0\mathbf 1_{\{t=0\}}+\sum_{j=1}^n\Delta_{t_{j-1}}\mathbf 1_{\{t\in(t_{j-1},t_j]\}},\qquad I^n_t=I(\Delta^n)_t .\]

<p>\(\Delta^n\) is a simple “rebalance only at grid times” version of \(\Delta\), and \(I^n\) is perfectly well defined. For a fixed \(\omega\), \(\lim I^n_t(\omega)\) need not exist; instead we take the limit <strong>in mean square</strong>.</p>

<p><strong>Step 1 — the approximation is good.</strong> A key result of the course is that for \(\Delta\in\mathcal L\),</p>

\[\lim_{n\to\infty}E\Big[\int_0^T(\Delta^n_s-\Delta_s)^2\,ds\Big]=0,\]

<p>written \(\Delta^n\to\Delta\) in \(L^2([0,T]\times\Omega)\). (Intuitively: as the rebalancing grid gets finer, the frozen strategy tracks the real one, on average over both time and scenarios.)</p>

<p><strong>Step 2 — so the approximations are Cauchy.</strong> From \((a+b)^2\le2a^2+2b^2\),</p>

\[(\Delta^n_u-\Delta^m_u)^2\le2(\Delta^n_u-\Delta_u)^2+2(\Delta_u-\Delta^m_u)^2\ \Longrightarrow\ \lim_{n,m\to\infty}E\int_0^T(\Delta^n_s-\Delta^m_s)^2ds=0.\]

<p><strong>Step 3 — the isometry transfers this to the integrals.</strong> By linearity, \(I^n_t-I^m_t=I(\Delta^n-\Delta^m)_t\), and \(\Delta^n-\Delta^m\) is simple, so</p>

\[\mathrm{Var}\big[I^n_t-I^m_t\big]=E\Big[\int_0^t(\Delta^n_u-\Delta^m_u)^2du\Big]\le E\Big[\int_0^T(\Delta^n_u-\Delta^m_u)^2du\Big]\xrightarrow{n,m\to\infty}0.\]

<p><strong>Step 4 — define the integral as the limit.</strong> The integrals \(I^n\) form a Cauchy sequence in mean square, so they converge (as processes) to a limit \(I\), and we define</p>

\[\Big(\int_0^t\Delta_s\,dW_s\Big)(\omega):=I_t(\omega),\qquad t\le T.\]

<p><strong>Why the isometry is the hero.</strong> It says the map “strategy \(\mapsto\) P/L” preserves distance: two strategies that are close in \(E\int(\cdot)^2\) produce P/Ls that are close in variance. So “approximate the strategy” automatically gives “approximate the integral” — even though no single path converges in the classical sense.</p>

<h2 id="5-properties-for-general-integrands">5. Properties for general integrands</h2>

<p>Everything carries over to \(\Delta\in\mathcal L\):</p>

<ul>
  <li><strong>linear:</strong> \(I(\alpha\Delta+\beta\psi)=\alpha I(\Delta)+\beta I(\psi)\);</li>
  <li><strong>continuous sample paths</strong>, \(I_0=0\);</li>
  <li><strong>adapted</strong>;</li>
  <li><strong>martingale</strong>;</li>
  <li><strong>Itô isometry:</strong> \(\mathrm{Var}[I_t]=E\Big[\int_0^t\Delta_s^2\,ds\Big]\);</li>
  <li><strong>quadratic variation:</strong> \([I,I]_t=\int_0^t\Delta_s^2\,ds\) path by path.</li>
</ul>

<p>In differential shorthand, \(dI_t=\Delta_t\,dW_t\) and \(d[I,I]_t=\Delta_t^2\,dt=(\Delta_t\,dW_t)^2\) — consistent with \((dW_t)^2=dt\).</p>

<hr />

<p><strong>Series contents</strong></p>

<ol>
  <li><a href="/homepage_en/2026/10/21/mf790-01-foundations/">01 · Probability Spaces, Filtrations, Conditional Expectation and Martingales</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-02-brownian-motion/">02 · Random Walks, Quadratic Variation and Brownian Motion</a></li>
  <li><strong>03 · Stochastic Integration</strong> (this post)</li>
  <li><a href="/homepage_en/2026/10/21/mf790-04-ito-formula/">04 · Itô’s Formula, Itô Processes and Geometric Brownian Motion</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-05-black-scholes/">05 · Black–Scholes: Replication, the PDE and the Greeks</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-06-risk-neutral-pricing/">06 · Risk-Neutral Pricing, Change of Measure and Girsanov</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-07-sde-feynman-kac/">07 · SDEs, Feynman–Kac and Stopping Times</a></li>
</ol>

<p><a href="/homepage_en/2026/10/21/mf790-02-brownian-motion/">← Previous: Random Walks, Quadratic Variation and Brownian Motion</a>　·　<a href="/homepage_en/2026/10/21/mf790-04-ito-formula/">Next: Itô’s Formula, Itô Processes and Geometric Brownian Motion →</a></p>

<p><em>This series collects my notes from QST MF 790 Stochastic Calculus at Boston University’s Questrom School of Business, in 7 parts. The content follows the order of the course; wording, intuition and a few corrections are my own. Throughout, \(N(\mu,\sigma^2)\) uses the variance as its second argument. Corrections are welcome. Chinese version of this post: <a href="https://bobothebest.github.io/homepage_cn/2026/10/21/mf790-03-stochastic-integration/">中文版</a>.</em></p>]]></content><author><name>Ziyuan Zhang</name></author><category term="Stochastic Calculus Notes" /><category term="study notes" /><summary type="html"><![CDATA[Overview A stochastic integral is just cumulative trading P/L: hold \(\Delta\) shares while the price moves by \(dW\), and add it up. This post builds \(\int_0^t\Delta_s\,dW_s\) in three steps — discrete time, “buy-and-hold” (simple) strategies, and general strategies by approximation — and shows the same five properties survive every step: linear · adapted · martingale · Itô isometry \(\mathrm{Var}[I_t]=E\int_0^t\Delta_s^2ds\) · \([I,I]_t=\int_0^t\Delta_s^2ds\).]]></summary></entry><entry><title type="html">Stochastic Calculus Notes 02 | Random Walks, Quadratic Variation and Brownian Motion</title><link href="https://bobothebest.github.io/homepage_en/2026/10/21/mf790-02-brownian-motion/" rel="alternate" type="text/html" title="Stochastic Calculus Notes 02 | Random Walks, Quadratic Variation and Brownian Motion" /><published>2026-10-21T14:02:00+00:00</published><updated>2026-10-21T14:02:00+00:00</updated><id>https://bobothebest.github.io/homepage_en/2026/10/21/mf790-02-brownian-motion</id><content type="html" xml:base="https://bobothebest.github.io/homepage_en/2026/10/21/mf790-02-brownian-motion/"><![CDATA[<blockquote>
  <p><strong>Overview</strong></p>

  <p>Brownian motion is easiest to understand as the limit of a coin-tossing game. This post starts from the random walk, introduces the one quantity that makes stochastic calculus different from ordinary calculus — <strong>quadratic variation</strong> — and then shows that Brownian motion inherits everything: it is a martingale, \(W_t^2-t\) is a martingale, and \([W,W]_t=t\).</p>

  <p>The punchline to keep in mind: <strong>\((dW_t)^2=dt\).</strong> Ordinary smooth curves have zero quadratic variation; Brownian paths do not, and that single fact is where Itô’s extra term will come from.</p>
</blockquote>

<hr />

<h2 id="1-the-random-walk">1. The random walk</h2>

<p>Take the infinite fair coin-toss space, \(\omega=(\omega_1,\omega_2,\dots)\), with independent tosses. Define</p>

\[Z_j(\omega)=\begin{cases}+1,&amp;\omega_j=H\\-1,&amp;\omega_j=T\end{cases},\qquad M_0=0,\quad M_n=\sum_{j=1}^nZ_j\ (n\ge1).\]

<p>The \(Z_j\) are i.i.d. with \(E Z_j=0\), \(\mathrm{Var}(Z_j)=E Z_j^2=1\). \(M\) is the <strong>random walk</strong> and the \(Z_n=M_n-M_{n-1}\) are its increments.</p>

<p><strong>Properties.</strong></p>

<ol>
  <li>
    <p><strong>\(M\) is a martingale.</strong> \(\mathcal F_n\) = first \(n\) tosses; \(Z_{n+1}\) only depends on toss \(n+1\), so \(Z_{n+1}\perp\!\!\!\perp\mathcal F_n\):</p>

\[E[M_{n+1}\mid\mathcal F_n]=E[M_n+Z_{n+1}\mid\mathcal F_n]=M_n+E[Z_{n+1}]=M_n.\]
  </li>
  <li><strong>Independent increments.</strong> For \(0\le m&lt;n\le p&lt;q\), \(M_n-M_m=\sum_{j=m+1}^nZ_j\) and \(M_q-M_p=\sum_{j=p+1}^qZ_j\) use disjoint tosses, so they are independent.</li>
  <li>
    <p><strong>Increment mean and variance.</strong> \(E[M_n-M_m]=0\) and</p>

\[\mathrm{Var}(M_n-M_m)=\sum_{i,j=m+1}^nE[Z_iZ_j]=n-m,\qquad E[Z_iZ_j]=\begin{cases}1,&amp;i=j\\0,&amp;i\ne j.\end{cases}\]
  </li>
</ol>

<h2 id="2-the-squared-random-walk">2. The squared random walk</h2>

<p>\(M_n^2\) is <strong>not</strong> a martingale — it drifts up:</p>

\[E[M_{n+1}^2\mid\mathcal F_n]=E[(M_n+Z_{n+1})^2\mid\mathcal F_n]=M_n^2+2M_nE[Z_{n+1}]+E[Z_{n+1}^2]=M_n^2+1.\]

<p>So \(M^2\) is a sub-martingale, and subtracting the drift fixes it: \(Y_n:=M_n^2-n\) satisfies \(E[Y_{n+1}\mid\mathcal F_n]=M_n^2+1-(n+1)=Y_n\), a <strong>martingale</strong>.</p>

<h2 id="3-quadratic-variation-discrete-time">3. Quadratic variation (discrete time)</h2>

<p>For a process \(X=\{X_n\}\), the <strong>quadratic variation</strong> is the process</p>

\[[X,X]_0=0,\qquad [X,X]_n=\sum_{j=1}^n\big(X_j-X_{j-1}\big)^2 .\]

<p>It adds up squared increments and measures <strong>how rough</strong> the path is. (The definition does not need \(X\) to be a martingale.)</p>

<ul>
  <li>Random walk: every increment is \(\pm1\), so \([M,M]_n=n\) for <strong>every</strong> \(\omega\) — and this holds even for an unfair coin. This is special; in general \([X,X]_n\) depends on both \(n\) and \(\omega\).</li>
  <li>
    <p>\(Y_n=M_n^2-n\): using \(M_j=M_{j-1}+Z_j\) and \(Z_j^2=1\),</p>

\[[Y,Y]_n=\sum_{j=1}^n\big(Z_j^2+2Z_jM_{j-1}-1\big)^2=\sum_{j=1}^n4M_{j-1}^2,\]

    <p>which genuinely varies with \(\omega\).</p>
  </li>
</ul>

<h3 id="two-facts-about-martingales-and-quadratic-variation">Two facts about martingales and quadratic variation</h3>

<p><strong>Fact 1.</strong> If \(X\) is a martingale with \(X_0=0\), then \(\mathrm{Var}(X_n)=E\big[[X,X]_n\big]\).</p>

<details>
  <summary>Proof</summary>

  <p>Since \(E X_n=E X_0=0\), \(\mathrm{Var}(X_n)=E X_n^2\). Write \(X_n=\sum_j(X_j-X_{j-1})\) and expand the square:</p>

\[X_n^2=\sum_{i=1}^n(X_i-X_{i-1})^2+\sum_{i\ne j}(X_i-X_{i-1})(X_j-X_{j-1}).\]

  <p>For \(i&lt;j\), condition on \(\mathcal F_{j-1}\) (Tower: condition on the second-largest time):</p>

\[E[(X_i-X_{i-1})(X_j-X_{j-1})]=E\big[(X_i-X_{i-1})\,E[X_j-X_{j-1}\mid\mathcal F_{j-1}]\big]=E[(X_i-X_{i-1})\cdot0]=0.\]

  <p>So the cross terms vanish and \(E X_n^2=E[X,X]_n\). For the random walk this reads \(\mathrm{Var}(M_n)=n=E[M,M]_n\).</p>

</details>

<p><strong>Fact 2 (quadratic variation as compensator).</strong> If \(X\) is a martingale with \(E X_n^2&lt;\infty\), then \(\{X_n^2-[X,X]_n\}\) is a martingale.</p>

<details>
  <summary>Proof</summary>

  <p>Let \(Y_n=X_n^2-[X,X]_n\). Then</p>

\[Y_n-Y_{n-1}=X_n^2-X_{n-1}^2-(X_n-X_{n-1})^2=2X_{n-1}(X_n-X_{n-1}),\]

  <p>and \(E[2X_{n-1}(X_n-X_{n-1})\mid\mathcal F_{n-1}]=2X_{n-1}\cdot0=0\).</p>

</details>

<p>Since \([X,X]_n\) only goes up, \(X_n^2\) itself is a sub-martingale; we must <strong>compensate</strong> (subtract) \([X,X]\) to get a martingale. That is why \([X,X]\) is also called the compensator. \(M_n^2-n\) above is the special case \([M,M]_n=n\).</p>

<h2 id="4-from-random-walk-to-brownian-motion">4. From random walk to Brownian motion</h2>

<p>Random walk and Brownian motion share independent increments with mean \(0\) and variance equal to the time elapsed. They differ in that \(M\) lives in discrete time with integer jumps, while \(W\) lives in continuous time and takes any real value.</p>

<p><strong>Scaled random walk.</strong> Speed up time by \(n\) and shrink jumps to \(1/\sqrt n\):</p>

\[W^{(n)}_t:=\frac1{\sqrt n}M_{\lfloor nt\rfloor}.\]

<ul>
  <li><strong>Independent increments:</strong> inherited from \(M\).</li>
  <li>
    <p><strong>Right mean and variance:</strong> for \(ns,nt\) integers,</p>

\[E[W^{(n)}_t-W^{(n)}_s]=0,\qquad \mathrm{Var}[W^{(n)}_t-W^{(n)}_s]=\frac1n\,\mathrm{Var}[M_{nt}-M_{ns}]=\frac{nt-ns}{n}=t-s.\]
  </li>
  <li>
    <p><strong>Gaussian in the limit (CLT):</strong></p>

\[W^{(n)}_t-W^{(n)}_s=\underbrace{\sqrt{\frac{\lfloor nt\rfloor-\lfloor ns\rfloor}{n}}}_{\to\sqrt{t-s}}\cdot\underbrace{\frac1{\sqrt{\lfloor nt\rfloor-\lfloor ns\rfloor}}\sum_{j=\lfloor ns\rfloor+1}^{\lfloor nt\rfloor}Z_j}_{\to N(0,1)\text{ by the CLT}}\ \Longrightarrow\ N(0,t-s).\]
  </li>
</ul>

<p>So \(W^{(n)}\to W\): <strong>Brownian motion exists</strong>, and it is literally a coin-tossing game watched from very far away. (Be careful which “\(n\)” the CLT is applied to — it is the number of tosses in the window, \(\lfloor nt\rfloor-\lfloor ns\rfloor\).)</p>

<h2 id="5-brownian-motion-and-its-properties">5. Brownian motion and its properties</h2>

<p>Recall the definition from Part 01: \(W_0=0\); continuous paths; \(W_t-W_s\sim N(0,t-s)\); independent increments. \(W\) is a BM <strong>with respect to \(\mathbb F\)</strong> if additionally it is adapted and \(W_t-W_s\perp\!\!\!\perp\mathcal F_s\).</p>

<p><strong>1. Martingale.</strong> Shown in Part 01. In continuous time, super/sub-martingales and the monotonicity of \(E X_t\) work exactly as in discrete time.</p>

<p><strong>2. Covariance.</strong> For \(s&lt;t\), add and subtract \(W_s\) to create an independent increment:</p>

\[\mathrm{Cov}(W_s,W_t)=E[W_sW_t]=E[W_s(W_t-W_s)]+E[W_s^2]=0+s=\min(s,t).\]

<p>So \((W_s,W_t)\) is jointly normal with</p>

\[\begin{pmatrix}W_s\\W_t\end{pmatrix}\sim N\left(\begin{pmatrix}0\\0\end{pmatrix},\begin{pmatrix}s&amp;s\\s&amp;t\end{pmatrix}\right).\]

<p><strong>3. Conditional law and the Markov property.</strong> Using \(E[e^{\alpha Y}]=e^{\alpha\mu+\frac12\alpha^2\sigma^2}\) for \(Y\sim N(\mu,\sigma^2)\):</p>

\[E[e^{\alpha W_t}\mid\mathcal F_s]=e^{\alpha W_s}\,E[e^{\alpha(W_t-W_s)}]=e^{\alpha W_s+\frac12\alpha^2(t-s)}\ \Longrightarrow\ W_t\mid\mathcal F_s\sim N(W_s,\ t-s).\]

<p>Given everything up to time \(s\), the law of \(W_t\) depends only on \(W_s\) — the <strong>Markov property</strong>. The <strong>transition density</strong> is</p>

\[p(\tau,y,x)=\frac1{\sqrt{2\pi\tau}}\,e^{-\frac{(x-y)^2}{2\tau}},\qquad E[h(W_{s+\tau})\mid W_s=y]=\int_{\mathbb R}h(x)\,p(\tau,y,x)\,dx,\]

<p>read as “go from \(y\) to near \(x\) in time \(\tau\)”.</p>

<p><strong>4. \(W_t^2-t\) is a martingale.</strong> With \(W_t^2=(W_t-W_s)^2+2(W_t-W_s)W_s+W_s^2\):</p>

\[E[W_t^2-t\mid\mathcal F_s]=(t-s)+0+W_s^2-t=W_s^2-s.\]

<p>This is the continuous-time version of \(M_n^2-n\).</p>

<h2 id="6-quadratic-variation-in-continuous-time">6. Quadratic variation in continuous time</h2>

<p>Fix \(t\) and a partition \(\Pi=\{0=t_0&lt;t_1&lt;\dots&lt;t_n=t\}\) with mesh \(\Vert \Pi\Vert =\max_j(t_j-t_{j-1})\). Define</p>

\[[X,X]^\Pi_t=\sum_{j=1}^n\big(X_{t_j}-X_{t_{j-1}}\big)^2,\qquad [X,X]_t=\lim_{\Vert \Pi\Vert \to0}[X,X]^\Pi_t .\]

<p>Over a window, \([X,X]_{[s,t]}\) is defined the same way and quadratic variation accumulates: \([X,X]_t=[X,X]_s+[X,X]_{[s,t]}\).</p>

<p><strong>Theorem.</strong> \([W,W]_t=t\) with probability one, and \([W,W]_{[s,t]}=t-s\).</p>

<p><em>Intuition.</em> For the scaled walk, \([W^{(n)},W^{(n)}]_t=\frac1n\lfloor nt\rfloor\in[t-\frac1n,t]\), and \(W^{(n)}\to W\).</p>

<details>
  <summary>Proof sketch</summary>

  <p>Take the uniform partition \(t_j=jt/n\). Then</p>

\[[W,W]^\Pi_t=\frac tn\sum_{j=1}^n\left(\frac{W_{t_j}-W_{t_{j-1}}}{\sqrt{t_j-t_{j-1}}}\right)^2=t\cdot\frac1n\sum_{j=1}^nZ_j^2,\]

  <p>with \(Z_j\) i.i.d. \(N(0,1)\). By the strong law of large numbers, \(\frac1n\sum Z_j^2\to E[Z^2]=1\), so \([W,W]^\Pi_t\to t\). For a general partition one shows \(E\big[[W,W]^\Pi_t\big]=t\) and \(\mathrm{Var}\big[[W,W]^\Pi_t\big]\le K\Vert \Pi\Vert\) with \(K\) depending only on \(t\), which forces convergence to \(t\).</p>

</details>

<p>Fact 2 carries over: if \(X\) is a continuous martingale with \(E X_t^2&lt;\infty\), then \(X_t^2-[X,X]_t\) is a martingale (proof needs Itô’s formula, Part 04).</p>

<h2 id="7-why-brownian-paths-must-be-rough">7. Why Brownian paths must be rough</h2>

<p>The <strong>first-order variation</strong> of a path is \(FV(X)_t=\lim_{\Vert \Pi\Vert \to0}\sum_j\vert X_{t_j}-X_{t_{j-1}}\vert\). For a smooth path, the mean value theorem gives</p>

\[FV(X)_t=\lim\sum_j(t_j-t_{j-1})\vert X'(\xi_j)\vert=\int_0^t\vert X'_s\vert\,ds&lt;\infty.\]

<p><strong>Finite first variation forces zero quadratic variation</strong> (for continuous paths):</p>

\[\sum_j(X_{t_j}-X_{t_{j-1}})^2\le\underbrace{\max_j\vert X_{t_j}-X_{t_{j-1}}\vert}_{\to0\ \text{(continuity)}}\cdot\underbrace{\sum_j\vert X_{t_j}-X_{t_{j-1}}\vert}_{\to FV(X)_t&lt;\infty}\ \to0.\]

<p>Since \([W,W]_t=t&gt;0\), Brownian paths cannot have finite first variation, and in fact they are <strong>nowhere differentiable</strong> with probability one.</p>

<p>This roughness is a feature, not a bug: a smooth price path would be locally predictable, and predictability means arbitrage.</p>

<p><strong>The heuristic everyone uses.</strong> Differentiating \([W,W]_t=t\) gives \(d[W,W]_t=dt\), and people write</p>

\[(dW_t)^2=dt,\]

<p>thinking of \([W,W]_{[t,t+dt]}\approx\sum(W_{t_j}-W_{t_{j-1}})^2\). Taking a square root to say “\(dW_t=\sqrt{dt}\)” is meaningless, but the multiplication rule \((dW_t)^2=dt\) is exactly right and drives all of Part 04.</p>

<hr />

<p><strong>Series contents</strong></p>

<ol>
  <li><a href="/homepage_en/2026/10/21/mf790-01-foundations/">01 · Probability Spaces, Filtrations, Conditional Expectation and Martingales</a></li>
  <li><strong>02 · Random Walks, Quadratic Variation and Brownian Motion</strong> (this post)</li>
  <li><a href="/homepage_en/2026/10/21/mf790-03-stochastic-integration/">03 · Stochastic Integration</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-04-ito-formula/">04 · Itô’s Formula, Itô Processes and Geometric Brownian Motion</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-05-black-scholes/">05 · Black–Scholes: Replication, the PDE and the Greeks</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-06-risk-neutral-pricing/">06 · Risk-Neutral Pricing, Change of Measure and Girsanov</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-07-sde-feynman-kac/">07 · SDEs, Feynman–Kac and Stopping Times</a></li>
</ol>

<p><a href="/homepage_en/2026/10/21/mf790-01-foundations/">← Previous: Probability Spaces, Filtrations, Conditional Expectation and Martingales</a>　·　<a href="/homepage_en/2026/10/21/mf790-03-stochastic-integration/">Next: Stochastic Integration →</a></p>

<p><em>This series collects my notes from QST MF 790 Stochastic Calculus at Boston University’s Questrom School of Business, in 7 parts. The content follows the order of the course; wording, intuition and a few corrections are my own. Throughout, \(N(\mu,\sigma^2)\) uses the variance as its second argument. Corrections are welcome. Chinese version of this post: <a href="https://bobothebest.github.io/homepage_cn/2026/10/21/mf790-02-brownian-motion/">中文版</a>.</em></p>]]></content><author><name>Ziyuan Zhang</name></author><category term="Stochastic Calculus Notes" /><category term="study notes" /><summary type="html"><![CDATA[Overview Brownian motion is easiest to understand as the limit of a coin-tossing game. This post starts from the random walk, introduces the one quantity that makes stochastic calculus different from ordinary calculus — quadratic variation — and then shows that Brownian motion inherits everything: it is a martingale, \(W_t^2-t\) is a martingale, and \([W,W]_t=t\). The punchline to keep in mind: \((dW_t)^2=dt\). Ordinary smooth curves have zero quadratic variation; Brownian paths do not, and that single fact is where Itô’s extra term will come from.]]></summary></entry><entry><title type="html">Stochastic Calculus Notes 01 | Probability Spaces, Filtrations, Conditional Expectation and Martingales</title><link href="https://bobothebest.github.io/homepage_en/2026/10/21/mf790-01-foundations/" rel="alternate" type="text/html" title="Stochastic Calculus Notes 01 | Probability Spaces, Filtrations, Conditional Expectation and Martingales" /><published>2026-10-21T14:01:00+00:00</published><updated>2026-10-21T14:01:00+00:00</updated><id>https://bobothebest.github.io/homepage_en/2026/10/21/mf790-01-foundations</id><content type="html" xml:base="https://bobothebest.github.io/homepage_en/2026/10/21/mf790-01-foundations/"><![CDATA[<blockquote>
  <p><strong>Overview</strong></p>

  <p>These are my notes from <strong>QST MF 790 Stochastic Calculus</strong> at Boston University’s Questrom School of Business, cleaned up into 7 posts.</p>

  <p>The whole course hangs on one sentence: <em>“Let \(W\) be a Brownian motion adapted to a filtration \(\mathbb F\). Then \(W\) is a martingale.”</em> This first post unpacks every word in it — probability space, random variable, filtration, adaptedness, conditional expectation and martingale — so that the rest of the series can just use them.</p>
</blockquote>

<hr />

<h2 id="1-the-probability-space-omegamathcal-fmathbb-p">1. The probability space \((\Omega,\mathcal F,\mathbb P)\)</h2>

<ul>
  <li>\(\Omega\): the <strong>sample space</strong>; an element \(\omega\in\Omega\) is one outcome (“one scenario of the world”).</li>
  <li>\(\mathcal F\): the collection of <strong>events</strong>. An event is a set of outcomes, so each \(A\in\mathcal F\) is a subset of \(\Omega\).</li>
  <li>\(\mathbb P\): the <strong>probability function</strong>, \(\mathbb P:\mathcal F\to[0,1]\).</li>
</ul>

<p>A point that is easy to gloss over: <strong>\(\mathbb P\) is a function on \(\mathcal F\), not on \(\Omega\).</strong> So \(\mathbb P[\omega]\) is not defined, and \(\mathbb P[\{\omega\}]\) is defined only if \(\{\omega\}\in\mathcal F\).</p>

<p><strong>Example: finite space, equal likelihood.</strong> \(\Omega=\{1,2,\dots,N\}\) and \(\mathcal F=2^\Omega\) (the power set, all subsets of \(\Omega\)). Here every singleton is an event, and for \(A\in\mathcal F\)</p>

\[\mathbb P(A)=\frac{\#\{i\in A\}}{N},\qquad\text{in particular }\ \mathbb P[\{\omega\}]=\frac1N.\]

<h2 id="2-random-variables-expectation-independence">2. Random variables, expectation, independence</h2>

<p>A <strong>random variable</strong> (r.v.) is a function \(X:\Omega\to\mathbb R\): feed it an outcome, it outputs a number.</p>

<ul>
  <li><strong>Discrete:</strong> \(X\) only takes values in a countable set \(E_X=\{x_1,x_2,\dots\}\). Its pmf is \(p(x)=\mathbb P[\{\omega: X(\omega)=x\}]=\mathbb P[X=x]\), and \(p(x)=0\) for \(x\notin E_X\).</li>
  <li><strong>Continuous with pdf \(f\):</strong> \(\mathbb P(X\in E)=\int_E f(x)\,dx\) for every (Borel) set \(E\subseteq\mathbb R\).</li>
</ul>

<p>The <strong>expectation</strong> is the \(\mathbb P\)-weighted average of \(X\):</p>

\[E(X)=E^{\mathbb P}(X)=\int_\Omega \underbrace{X(\omega)}_{\text{size}}\ \underbrace{d\mathbb P(\omega)}_{\text{likelihood}}.\]

<p>Mean \(=E(X)\), variance \(=E[(X-E X)^2]\), \(N\)-th central moment \(=E[\vert X-EX\vert ^N]\).</p>

<p><strong>Independence.</strong> \(X\perp\!\!\!\perp Y\) iff for all (nice) functions \(f,g\)</p>

\[E[f(X)g(Y)]=E[f(X)]\,E[g(Y)]\iff f_{X,Y}=f_Xf_Y.\]

<p>Keep the superscript in \(E^{\mathbb P}\) in mind: in Part 06 we will change \(\mathbb P\), and every one of these averages will change with it.</p>

<h2 id="3-stochastic-processes-and-sample-paths">3. Stochastic processes and sample paths</h2>

<p>A <strong>stochastic process</strong> is a collection of random variables indexed by time:</p>

<ul>
  <li>discrete time: \(X=\{X_0,X_1,X_2,\dots\}\);</li>
  <li>continuous time: \(X=\{X_t\}_{t\ge0}\).</li>
</ul>

<p>It is cleanest to think of a process as a function of <strong>two</strong> arguments, \(X:[0,\infty)\times\Omega\to\mathbb R\):</p>

<ul>
  <li>fix \(t\): \(\omega\mapsto X_t(\omega)\) is a random variable;</li>
  <li>fix \(\omega\): \(t\mapsto X_t(\omega)\) is a curve, called a <strong>sample path</strong>. Each scenario \(\omega\) draws its own curve, so a process is a “random curve”.</li>
</ul>

<p>\(X\) has <strong>continuous sample paths</strong> if \(t\mapsto X_t(\omega)\) is continuous for every \(\omega\).</p>

<h2 id="4-brownian-motion-first-look">4. Brownian motion (first look)</h2>

<p>A process \(W=\{W_t\}_{t\ge0}\) on \((\Omega,\mathcal F,\mathbb P)\) is a <strong>Brownian motion</strong> if</p>

<ol>
  <li>\(W_0=0\) with probability one;</li>
  <li>the sample paths \(t\mapsto W_t\) are continuous with probability one;</li>
  <li>for \(0\le s&lt;t\): \(W_t-W_s\sim N(0,\,t-s)\);</li>
  <li>for \(0\le s&lt;t\le u&lt;v\): \(W_v-W_u\) and \(W_t-W_s\) are independent.</li>
</ol>

<p>(Throughout the series \(N(\mu,\sigma^2)\) means mean \(\mu\) and <strong>variance</strong> \(\sigma^2\). The increment over a window of length \(t-s\) has variance \(t-s\), i.e. standard deviation \(\sqrt{t-s}\).)</p>

<h2 id="5-filtrations-information-that-only-grows">5. Filtrations: information that only grows</h2>

<p><strong>Discrete time.</strong> \(\mathbb F=\{\mathcal F_n\}_{n\ge0}\) is a filtration if each \(\mathcal F_n\subseteq\mathcal F\) is a \(\sigma\)-algebra and \(\mathcal F_m\subseteq\mathcal F_n\) for \(m\le n\).</p>

<p><strong>Continuous time.</strong> \(\mathbb F=\{\mathcal F_t\}_{t\ge0}\) with \(\mathcal F_s\subseteq\mathcal F_t\subseteq\mathcal F\) for \(0\le s\le t\).</p>

<p>Read \(\mathcal F_t\) as “everything we know at time \(t\)”. The only requirement is that <strong>we never forget</strong>.</p>

<p><strong>The filtration generated by a process.</strong> \(\mathcal F^X_n:=\sigma(X_0,\dots,X_n)\), or in continuous time \(\mathcal F^X_t:=\sigma(X_s:0\le s\le t)\) — the smallest \(\sigma\)-algebra containing what you learn by watching \(X\) up to now.</p>

<h2 id="6-adaptedness-and-measurability">6. Adaptedness and measurability</h2>

<p>\(X\) is <strong>adapted</strong> to \(\mathbb F\) if the information in \(\mathbb F\) is enough to know \(X\) at every time:</p>

<ul>
  <li>\(X_t\) is \(\mathcal F_t\)-measurable (“mbl”), i.e.</li>
  <li>\(\{\omega: X_t(\omega)\in E\}\in\mathcal F_t\) for every nice \(E\subseteq\mathbb R\).</li>
</ul>

<p>Intuition: at time \(t\), if you know \(\mathcal F_t\) you can read off the number \(X_t\). No peeking into the future is needed.</p>

<p><strong>A filtration for a Brownian motion.</strong> \(\mathbb F\) (not necessarily \(\mathbb F^W\)) is a filtration for \(W\) if</p>

<ul>
  <li>\(W\) is adapted to \(\mathbb F\), and</li>
  <li>\(W_t-W_s\) is independent of \(\mathcal F_s\) for all \(0\le s&lt;t\).</li>
</ul>

<p>The second condition says: everything we know today tells us nothing about tomorrow’s increment.</p>

<h2 id="7-conditional-expectation">7. Conditional expectation</h2>

<p>Fix a r.v. \(X\) and a sub-\(\sigma\)-algebra \(\mathcal G\subseteq\mathcal F\). The conditional expectation \(E[X\mid\mathcal G]\) is a <strong>random variable</strong> with two properties:</p>

<ol>
  <li><strong>Measurability:</strong> \(E[X\mid\mathcal G]\) is \(\mathcal G\)-measurable (knowing \(\mathcal G\) is enough to know it);</li>
  <li><strong>Partial averaging:</strong> for every \(A\in\mathcal G\),</li>
</ol>

\[E[\mathbf 1_A X]=E\big[\mathbf 1_A\,E(X\mid\mathcal G)\big].\]

<p>Interpretation: \(E[X\mid\mathcal G]\) is our best guess of \(X\) given the information in \(\mathcal G\).</p>

<p><strong>Intuition for partial averaging.</strong> Think of \(\mathcal G\) as a way of chopping \(\Omega\) into pieces you can tell apart. On each piece \(A\), the guess \(E[X\mid\mathcal G]\) must have the same average as \(X\) itself. So the conditional expectation is “\(X\), averaged within each piece you can distinguish” — it keeps exactly the detail that \(\mathcal G\) can see and smooths away the rest. Example: two coin tosses, \(X=\) number of heads, \(\mathcal G=\) “the first toss”. On \(\{H\ast\}\) the guess is \(1.5\), on \(\{T\ast\}\) it is \(0.5\); check \(E[\mathbf 1_{\{H\ast\}}X]=\tfrac14(2+1)=\tfrac34=\tfrac12\cdot1.5\).</p>

<h3 id="properties-use-these-constantly">Properties (use these constantly)</h3>

<ol>
  <li><strong>Notation.</strong> If \(\mathcal G=\sigma(Y)\), write \(E[X\mid Y]\).</li>
  <li><strong>Independence:</strong> if \(X\perp\!\!\!\perp\mathcal G\) then \(E[X\mid\mathcal G]=E[X]\).</li>
  <li><strong>Known:</strong> if \(X\) is \(\mathcal G\)-measurable then \(E[X\mid\mathcal G]=X\).</li>
  <li><strong>Linearity:</strong> \(E[\alpha X+\beta Y\mid\mathcal G]=\alpha E[X\mid\mathcal G]+\beta E[Y\mid\mathcal G]\).</li>
  <li><strong>Taking out what is known (TOWK):</strong> if \(X\) is \(\mathcal G\)-measurable, \(E[XY\mid\mathcal G]=X\,E[Y\mid\mathcal G]\).</li>
  <li><strong>Tower:</strong> if \(\mathcal H\subseteq\mathcal G\subseteq\mathcal F\), then \(E\big[E(X\mid\mathcal G)\mid\mathcal H\big]=E[X\mid\mathcal H]\).</li>
</ol>

<p>Memory trick for Tower: the <strong>smaller</strong> information set wins, and in time-indexed form the <strong>later</strong> time sits <strong>inside</strong>.</p>

<p><strong>On processes.</strong> With \(X\) adapted and \(0\le s&lt;t&lt;u\):</p>

\[\text{TOWK: } E[f(X_s)g(X_t)\mid\mathcal F_s]=f(X_s)\,E[g(X_t)\mid\mathcal F_s],\qquad\text{Tower: } E[X_u\mid\mathcal F_s]=E\big[E(X_u\mid\mathcal F_t)\mid\mathcal F_s\big].\]

<p>At time \(s\), \(X_s\) behaves like a constant; Tower is time-consistency of averaging.</p>

<h2 id="8-martingales">8. Martingales</h2>

<p><strong>Definition (continuous time).</strong> An adapted \(X\) is a <strong>martingale</strong> if for all \(0\le s&lt;t\)</p>

\[E[X_t\mid\mathcal F_s]=X_s\quad\text{(with probability one).}\]

<p>Discrete time is the same with \(n,m\); there it is enough to check one step: \(E[X_{n+1}\mid\mathcal F_n]=X_n\) for all \(n\).</p>

<ul>
  <li><strong>Super-martingale</strong> (\(\searrow\)): \(E[X_t\mid\mathcal F_s]\le X_s\) — the future is smaller on average.</li>
  <li><strong>Sub-martingale</strong> (\(\nearrow\)): \(E[X_t\mid\mathcal F_s]\ge X_s\).</li>
</ul>

<p>Taking expectations (Tower), \(t\mapsto E[X_t]\) is non-increasing for a super-martingale, constant for a martingale, non-decreasing for a sub-martingale.</p>

<p>Intuition: a martingale is a <strong>fair game</strong>. Given everything you know, your best forecast of tomorrow’s value is today’s value.</p>

<h3 id="brownian-motion-is-a-martingale">Brownian motion is a martingale</h3>

<p>Let \(\mathbb F\) be a filtration for \(W\) and \(s&lt;t\):</p>

\[\begin{aligned}
E[W_t\mid\mathcal F_s]&amp;=E[W_t-W_s\mid\mathcal F_s]+E[W_s\mid\mathcal F_s]&amp;&amp;\text{(linearity)}\\
&amp;=E[W_t-W_s]+W_s&amp;&amp;(W_t-W_s\perp\!\!\!\perp\mathcal F_s;\ W_s\text{ known})\\
&amp;=W_s&amp;&amp;(W_t-W_s\sim N(0,t-s)).
\end{aligned}\]

<p>The trick — write \(W_t=(W_t-W_s)+W_s\), “future increment plus what we know” — will be used again and again.</p>

<hr />

<p><strong>Series contents</strong></p>

<ol>
  <li><strong>01 · Probability Spaces, Filtrations, Conditional Expectation and Martingales</strong> (this post)</li>
  <li><a href="/homepage_en/2026/10/21/mf790-02-brownian-motion/">02 · Random Walks, Quadratic Variation and Brownian Motion</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-03-stochastic-integration/">03 · Stochastic Integration</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-04-ito-formula/">04 · Itô’s Formula, Itô Processes and Geometric Brownian Motion</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-05-black-scholes/">05 · Black–Scholes: Replication, the PDE and the Greeks</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-06-risk-neutral-pricing/">06 · Risk-Neutral Pricing, Change of Measure and Girsanov</a></li>
  <li><a href="/homepage_en/2026/10/21/mf790-07-sde-feynman-kac/">07 · SDEs, Feynman–Kac and Stopping Times</a></li>
</ol>

<p><a href="/homepage_en/2026/10/21/mf790-02-brownian-motion/">Next: Random Walks, Quadratic Variation and Brownian Motion →</a></p>

<p><em>This series collects my notes from QST MF 790 Stochastic Calculus at Boston University’s Questrom School of Business, in 7 parts. The content follows the order of the course; wording, intuition and a few corrections are my own. Throughout, \(N(\mu,\sigma^2)\) uses the variance as its second argument. Corrections are welcome. Chinese version of this post: <a href="https://bobothebest.github.io/homepage_cn/2026/10/21/mf790-01-foundations/">中文版</a>.</em></p>]]></content><author><name>Ziyuan Zhang</name></author><category term="Stochastic Calculus Notes" /><category term="study notes" /><summary type="html"><![CDATA[Overview These are my notes from QST MF 790 Stochastic Calculus at Boston University’s Questrom School of Business, cleaned up into 7 posts. The whole course hangs on one sentence: “Let \(W\) be a Brownian motion adapted to a filtration \(\mathbb F\). Then \(W\) is a martingale.” This first post unpacks every word in it — probability space, random variable, filtration, adaptedness, conditional expectation and martingale — so that the rest of the series can just use them.]]></summary></entry><entry><title type="html">Probability &amp;amp; Statistics Review 07 | Interval Estimation, Hypothesis Testing and Results from the Exercises</title><link href="https://bobothebest.github.io/homepage_en/2026/10/01/mao-notes-07-intervals-tests/" rel="alternate" type="text/html" title="Probability &amp;amp; Statistics Review 07 | Interval Estimation, Hypothesis Testing and Results from the Exercises" /><published>2026-10-01T14:07:00+00:00</published><updated>2026-10-01T14:07:00+00:00</updated><id>https://bobothebest.github.io/homepage_en/2026/10/01/mao-notes-07-intervals-tests</id><content type="html" xml:base="https://bobothebest.github.io/homepage_en/2026/10/01/mao-notes-07-intervals-tests/"><![CDATA[<blockquote>
  <p><strong>Overview</strong></p>

  <p>The last part of the series puts all of interval estimation and hypothesis testing into tables: the one-sample and two-sample normal cases, large-sample methods, and the u, t, χ² and F tests.</p>

  <p>A trick for remembering these tables: <strong>intervals and tests use the same pivotal quantity</strong>. First get clear on “under which conditions, which statistic follows which distribution”, and you can derive both the interval and the rejection region yourself. At the end there is a summary of handy results derived in the exercises.</p>
</blockquote>

<hr />

<blockquote>
  <p>Notation: \(u_p\), \(t_p\), \(\chi^2_p\), \(F_p\) are all <strong>lower</strong> \(p\)-quantiles. The confidence level is \(1-\alpha\).</p>
</blockquote>

<hr />

<h2 id="1-confidence-intervals-and-pivotal-quantities-p343p352-guide-p369">1. Confidence intervals and pivotal quantities (P343–P352, Guide P369)</h2>

<p><strong>Pivotal method:</strong> construct a function \(G\) (the pivot) that involves only the parameter of interest and whose distribution is known and free of parameters; solve \(P(a\le G\le b)=1-\alpha\) for the parameter to get the interval.</p>

<h3 id="one-normal-population-nmusigma2">One normal population \(N(\mu,\sigma^2)\)</h3>

<table>
  <thead>
    <tr>
      <th>Parameter</th>
      <th>Condition</th>
      <th>Pivot</th>
      <th>\(1-\alpha\) confidence interval</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>\(\mu\)</td>
      <td>\(\sigma\) known</td>
      <td>\(\dfrac{\bar x-\mu}{\sigma/\sqrt n}\sim N(0,1)\)</td>
      <td>\(\bar x\pm u_{1-\alpha/2}\dfrac{\sigma}{\sqrt n}\)</td>
    </tr>
    <tr>
      <td>\(\mu\)</td>
      <td>\(\sigma\) unknown</td>
      <td>\(\dfrac{\sqrt n(\bar x-\mu)}{s}\sim t(n-1)\)</td>
      <td>\(\bar x\pm t_{1-\alpha/2}(n-1)\dfrac{s}{\sqrt n}\)</td>
    </tr>
    <tr>
      <td>\(\sigma^2\)</td>
      <td>\(\mu\) unknown</td>
      <td>\(\dfrac{(n-1)s^2}{\sigma^2}\sim\chi^2(n-1)\)</td>
      <td>\(\left[\dfrac{(n-1)s^2}{\chi^2_{1-\alpha/2}(n-1)},\ \dfrac{(n-1)s^2}{\chi^2_{\alpha/2}(n-1)}\right]\)</td>
    </tr>
  </tbody>
</table>

<h3 id="two-normal-populations-xsim-nmu_1sigma_12-sample-size-m-ysim-nmu_2sigma_22-sample-size-n">Two normal populations \(X\sim N(\mu_1,\sigma_1^2)\) (sample size \(m\)), \(Y\sim N(\mu_2,\sigma_2^2)\) (sample size \(n\))</h3>

<p><strong>Confidence intervals for \(\mu_1-\mu_2\)</strong></p>

<table>
  <thead>
    <tr>
      <th>Case</th>
      <th>Interval</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>① \(\sigma_1^2,\sigma_2^2\) known</td>
      <td>\(\bar x-\bar y\pm u_{1-\alpha/2}\sqrt{\dfrac{\sigma_1^2}{m}+\dfrac{\sigma_2^2}{n}}\)</td>
    </tr>
    <tr>
      <td>② \(\sigma_1^2=\sigma_2^2\) unknown</td>
      <td>\(\bar x-\bar y\pm\sqrt{\dfrac{m+n}{mn}}\,s_w\,t_{1-\alpha/2}(m+n-2)\), \(s_w^2=\dfrac{(m-1)s_x^2+(n-1)s_y^2}{m+n-2}\)</td>
    </tr>
    <tr>
      <td>③ \(\sigma_1^2/\sigma_2^2=\theta\) known</td>
      <td>\(\bar x-\bar y\pm\sqrt{\dfrac{m\theta+n}{mn}}\,s_t\,t_{1-\alpha/2}(m+n-2)\), \(s_t^2=\dfrac{(m-1)s_x^2+(n-1)s_y^2/\theta}{m+n-2}\)</td>
    </tr>
    <tr>
      <td>④ \(m,n\) both large (approximate)</td>
      <td>\(\bar x-\bar y\pm u_{1-\alpha/2}\sqrt{\dfrac{s_x^2}{m}+\dfrac{s_y^2}{n}}\)</td>
    </tr>
    <tr>
      <td>⑤ General case, small samples (approximate t, Welch)</td>
      <td>\(\bar x-\bar y\pm s_0\,t_{1-\alpha/2}(l)\), \(s_0^2=\dfrac{s_x^2}m+\dfrac{s_y^2}n\), \(l=\dfrac{s_0^4}{\frac{s_x^4}{m^2(m-1)}+\frac{s_y^4}{n^2(n-1)}}\) (round to the nearest integer)</td>
    </tr>
  </tbody>
</table>

<p><strong>Confidence interval for \(\sigma_1^2/\sigma_2^2\)</strong> (\(\mu_1,\mu_2\) unknown)</p>

\[F=\frac{s_x^2/\sigma_1^2}{s_y^2/\sigma_2^2}\sim F(m-1,n-1),\qquad\left[\frac{s_x^2}{s_y^2}\cdot\frac{1}{F_{1-\alpha/2}(m-1,n-1)},\ \frac{s_x^2}{s_y^2}\cdot\frac{1}{F_{\alpha/2}(m-1,n-1)}\right].\]

<h3 id="large-sample-confidence-intervals-know-the-derivation">Large-sample confidence intervals (know the derivation)</h3>

<p>For \(X\sim b(1,p)\), the CLT gives \(\dfrac{\bar x-p}{\sqrt{p(1-p)/n}}\ \dot\sim\ N(0,1)\). Replacing \(p\) in the denominator by \(\bar x\) gives</p>

\[\bar x\pm u_{1-\alpha/2}\sqrt{\frac{\bar x(1-\bar x)}{n}}.\]

<details>
  <summary>A more accurate version (solve the quadratic instead of plugging in \(\bar x\))</summary>

  <p>From \(\left\vert \bar x-p\right\vert \le u_{1-\alpha/2}\sqrt{p(1-p)/n}\), squaring both sides gives a quadratic inequality in \(p\):</p>

\[\left(1+\frac{u^2}n\right)p^2-\left(2\bar x+\frac{u^2}n\right)p+\bar x^2\le0,\qquad u=u_{1-\alpha/2}.\]

  <p>The interval between the two roots is the confidence interval for \(p\). For large \(n\) it is almost identical to the simplified interval above.</p>

</details>

<hr />

<h2 id="2-hypothesis-tests-at-a-glance">2. Hypothesis tests at a glance</h2>

<p><strong>Basic steps of a test (P357):</strong> see Part 1.<br />
<strong>p-value:</strong> the probability, assuming \(H_0\) is true, of getting a result at least as extreme as the one observed. Reject \(H_0\) when the p-value is \(\le\alpha\).</p>

<h3 id="tests-for-the-mean-mu-of-one-normal-population-p369">Tests for the mean \(\mu\) of one normal population (P369)</h3>

<table>
  <thead>
    <tr>
      <th>Test</th>
      <th>\(H_0\)</th>
      <th>\(H_1\)</th>
      <th>Test statistic</th>
      <th>Rejection region \(W\)</th>
      <th>p-value</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>u test (\(\sigma\) known)</td>
      <td>\(\mu\le\mu_0\)</td>
      <td>\(\mu&gt;\mu_0\)</td>
      <td>\(u=\dfrac{\bar x-\mu_0}{\sigma/\sqrt n}\)</td>
      <td>\(u\ge u_{1-\alpha}\)</td>
      <td>\(1-\Phi(u_0)\)</td>
    </tr>
    <tr>
      <td> </td>
      <td>\(\mu\ge\mu_0\)</td>
      <td>\(\mu&lt;\mu_0\)</td>
      <td> </td>
      <td>\(u\le u_\alpha\)</td>
      <td>\(\Phi(u_0)\)</td>
    </tr>
    <tr>
      <td> </td>
      <td>\(\mu=\mu_0\)</td>
      <td>\(\mu\ne\mu_0\)</td>
      <td> </td>
      <td>\(\lvert u\rvert\ge u_{1-\alpha/2}\)</td>
      <td>\(2[1-\Phi(\lvert u_0\rvert)]\)</td>
    </tr>
    <tr>
      <td>t test (\(\sigma\) unknown)</td>
      <td>\(\mu\le\mu_0\)</td>
      <td>\(\mu&gt;\mu_0\)</td>
      <td>\(t=\dfrac{\bar x-\mu_0}{s/\sqrt n}\)</td>
      <td>\(t\ge t_{1-\alpha}(n-1)\)</td>
      <td>\(P(T\ge t_0)\)</td>
    </tr>
    <tr>
      <td> </td>
      <td>\(\mu\ge\mu_0\)</td>
      <td>\(\mu&lt;\mu_0\)</td>
      <td> </td>
      <td>\(t\le t_\alpha(n-1)\)</td>
      <td>\(P(T\le t_0)\)</td>
    </tr>
    <tr>
      <td> </td>
      <td>\(\mu=\mu_0\)</td>
      <td>\(\mu\ne\mu_0\)</td>
      <td> </td>
      <td>\(\lvert t\rvert\ge t_{1-\alpha/2}(n-1)\)</td>
      <td>\(2P(T\ge\lvert t_0\rvert)\)</td>
    </tr>
  </tbody>
</table>

<p>(\(u_0\), \(t_0\) are the observed values of the statistics; \(T\sim t(n-1)\).)</p>

<h3 id="tests-for-the-difference-of-two-normal-means-p373">Tests for the difference of two normal means (P373)</h3>

<p>The null is always written \(H_0:\mu_1-\mu_2=0\) (or \(\le0\), \(\ge0\)); the direction of the rejection region follows the table above.</p>

<table>
  <thead>
    <tr>
      <th>Test</th>
      <th>Condition</th>
      <th>Test statistic</th>
      <th>Distribution under \(H_0\)</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Two-sample u test</td>
      <td>\(\sigma_1,\sigma_2\) known</td>
      <td>\(u=\dfrac{\bar x-\bar y}{\sqrt{\sigma_1^2/m+\sigma_2^2/n}}\)</td>
      <td>\(N(0,1)\)</td>
    </tr>
    <tr>
      <td>Two-sample t test</td>
      <td>\(\sigma_1=\sigma_2=\sigma\) unknown</td>
      <td>\(t=\dfrac{\bar x-\bar y}{s_w\sqrt{\frac1m+\frac1n}}\)</td>
      <td>\(t(m+n-2)\)</td>
    </tr>
    <tr>
      <td>Large-sample u test</td>
      <td>\(m,n\) large enough</td>
      <td>\(u=\dfrac{\bar x-\bar y}{\sqrt{s_x^2/m+s_y^2/n}}\)</td>
      <td>approx. \(N(0,1)\)</td>
    </tr>
    <tr>
      <td>Approximate t test</td>
      <td>\(m,n\) not very large, variances unknown and unequal</td>
      <td>\(t=\dfrac{\bar x-\bar y}{\sqrt{s_x^2/m+s_y^2/n}}\)</td>
      <td>approx. \(t(l)\), \(l\) as above</td>
    </tr>
  </tbody>
</table>

<h3 id="tests-for-variances">Tests for variances</h3>

<table>
  <thead>
    <tr>
      <th>Test</th>
      <th>\(H_0\)</th>
      <th>Test statistic</th>
      <th>Rejection region (two-sided / right / left)</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>\(\chi^2\) test</td>
      <td>\(\sigma^2=\sigma_0^2\)</td>
      <td>\(\chi^2=\dfrac{(n-1)s^2}{\sigma_0^2}\sim\chi^2(n-1)\)</td>
      <td>\(\chi^2\le\chi^2_{\alpha/2}\) or \(\chi^2\ge\chi^2_{1-\alpha/2}\) ／ \(\chi^2\ge\chi^2_{1-\alpha}\) ／ \(\chi^2\le\chi^2_\alpha\)</td>
    </tr>
    <tr>
      <td>F test</td>
      <td>\(\sigma_1^2=\sigma_2^2\)</td>
      <td>\(F=\dfrac{s_x^2}{s_y^2}\sim F(m-1,n-1)\)</td>
      <td>\(F\le F_{\alpha/2}\) or \(F\ge F_{1-\alpha/2}\) ／ \(F\ge F_{1-\alpha}\) ／ \(F\le F_\alpha\)</td>
    </tr>
  </tbody>
</table>

<p><strong>Duality between intervals and tests:</strong> the two-sided test of \(\mu=\mu_0\) at level \(\alpha\) accepts if and only if \(\mu_0\) lies inside the \(1-\alpha\) confidence interval.</p>

<p><strong>Power function (P360):</strong> e.g. for the u test of \(H_0:\mu\le\mu_0\) vs \(H_1:\mu&gt;\mu_0\),</p>

\[g(\mu)=P_\mu(u\ge u_{1-\alpha})=1-\Phi\left(u_{1-\alpha}-\frac{\mu-\mu_0}{\sigma/\sqrt n}\right),\]

<p>which is increasing in \(\mu\) and equals \(\alpha\) at \(\mu=\mu_0\).</p>

<hr />

<h2 id="3-results-derived-in-the-exercises">3. Results derived in the exercises</h2>

<table>
  <thead>
    <tr>
      <th>Exercise</th>
      <th>Result</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>1.2.1(3)</td>
      <td>\(\binom n0+\binom n1+\cdots+\binom nn=2^n\)</td>
    </tr>
    <tr>
      <td>1.2.1(4)</td>
      <td>\(\binom n1+2\binom n2+\cdots+n\binom nn=n2^{n-1}\)</td>
    </tr>
    <tr>
      <td>1.2.1(5)</td>
      <td>Vandermonde’s identity: \(\sum_{k=0}^{n}\binom ak\binom b{n-k}=\binom{a+b}n\), \(n\le\min\{a,b\}\)</td>
    </tr>
    <tr>
      <td>1.3.2</td>
      <td>Probabilities don’t determine events: \(P(AB)=0\not\Rightarrow AB=\varnothing\) (e.g. a continuous random variable hits any single point with probability 0, yet that event is not impossible)</td>
    </tr>
    <tr>
      <td>2.2.20</td>
      <td>Continuous case: \(E(X)=\int_0^{\infty}[1-F(x)]dx-\int_{-\infty}^0F(x)dx\)</td>
    </tr>
    <tr>
      <td>2.2.21</td>
      <td>Non-negative continuous case: \(E(X)=\int_0^{\infty}P(X&gt;x)dx\), \(E(X^n)=\int_0^{\infty}nx^{n-1}P(X&gt;x)dx\)</td>
    </tr>
    <tr>
      <td>2.3.8</td>
      <td>Use the two results above fluently; \(\int_0^{\infty}x^2e^{-x^2}dx=\frac{\sqrt\pi}4\)</td>
    </tr>
    <tr>
      <td>2.3.9</td>
      <td>\(E(X-EX)^2\le E(X-c)^2\) (minimized at the mean); \(E\lvert X-m\rvert\le E\lvert X-c\rvert\) (minimized at the median)</td>
    </tr>
    <tr>
      <td>2.3.12</td>
      <td>\(g\) non-negative, non-decreasing, \(E g(X)\) exists \(\Rightarrow P(X&gt;\varepsilon)\le\frac{E g(X)}{g(\varepsilon)}\)</td>
    </tr>
    <tr>
      <td>—</td>
      <td>Bounded \(X\in[a,b]\): \(a\le EX\le b\), \(\mathrm{Var}X\le\left(\frac{b-a}2\right)^2\)</td>
    </tr>
    <tr>
      <td>2.7.3(3)</td>
      <td>The median of \(LN(\mu,\sigma^2)\) is \(e^\mu\)</td>
    </tr>
    <tr>
      <td>2.7.4</td>
      <td>\(Ga(\alpha,\lambda)\): \(E(X^k)=\frac{\Gamma(\alpha+k)}{\Gamma(\alpha)\lambda^k}\)</td>
    </tr>
    <tr>
      <td>2.7.5</td>
      <td>\(Exp(\lambda)\): \(E(X^k)=\frac{k!}{\lambda^k}\), \(C_v=1\), \(\beta_s=2\), \(\beta_k=6\)</td>
    </tr>
    <tr>
      <td>2.7.11</td>
      <td>The \(p\)-quantile of \(LN(\mu,\sigma^2)\) is \(e^{\mu+\sigma u_p}\)</td>
    </tr>
    <tr>
      <td>3.3.12</td>
      <td>\(\min\{a,b\}=\frac12[a+b-\lvert b-a\rvert]\), \(\max\{a,b\}=\frac12[a+b+\lvert b-a\rvert]\)</td>
    </tr>
    <tr>
      <td>3.4.14</td>
      <td>\(X,Y\overset{iid}{\sim}N(0,1)\): \(E\max\{X,Y\}=\frac1{\sqrt\pi}\)</td>
    </tr>
    <tr>
      <td>3.4.18</td>
      <td>\(X,Y\overset{iid}{\sim}N(a,\sigma^2)\): \(E\max\{X,Y\}=a+\frac\sigma{\sqrt\pi}\)</td>
    </tr>
    <tr>
      <td>Matching problem</td>
      <td>Gift exchange: \(E(S_n)=1\), \(\mathrm{Var}(S_n)=1\)</td>
    </tr>
    <tr>
      <td>4.1.18</td>
      <td>i.i.d., \(EX=0\), \(\mathrm{Var}X=\sigma^2\) \(\Rightarrow\frac1n\sum X_k^2\xrightarrow{P}\sigma^2\)</td>
    </tr>
    <tr>
      <td>4.3.4</td>
      <td>Only neighbors correlated: \(\mathrm{Var}(\sum X_i)=\sum\mathrm{Var}(X_i)+2\sum_{i=1}^{n-1}\mathrm{Cov}(X_i,X_{i+1})\)</td>
    </tr>
    <tr>
      <td>5.3.4</td>
      <td>\(s_{n+1}^2=\frac{n-1}ns_n^2+\frac1{n+1}(x_{n+1}-\bar x_n)^2\)</td>
    </tr>
    <tr>
      <td>5.3.10</td>
      <td>\((\sum x_i)^2=\sum x_i^2+2\sum_{i&lt;j}x_ix_j\)</td>
    </tr>
    <tr>
      <td>5.3.22–23</td>
      <td>Applications of Theorem 5.3.6 (joint density of two order statistics)</td>
    </tr>
    <tr>
      <td>5.3.28</td>
      <td>\(\eta_i=F(x_{(i)})\) are \(U(0,1)\) order statistics; \(E\eta_i=\frac i{n+1}\), \(\mathrm{Var}\eta_i=\frac{i(n+1-i)}{(n+1)^2(n+2)}\)</td>
    </tr>
    <tr>
      <td>5.3.34</td>
      <td>The joint density of all order statistics of \(U(0,\theta)\) is \(\frac{n!}{\theta^n}\), \(0&lt;u_1\le\dots\le u_n\le\theta\)</td>
    </tr>
    <tr>
      <td>6.3.2</td>
      <td>The MLE may not be unique</td>
    </tr>
    <tr>
      <td>6.4.5</td>
      <td>\(I(\theta)=-E\left[\frac{\partial^2}{\partial\theta^2}\ln p(x;\theta)\right]\)</td>
    </tr>
  </tbody>
</table>

<hr />

<p><strong>Series contents</strong></p>

<ol>
  <li><a href="/homepage_en/2026/10/01/mao-notes-01-concepts/">01 · Core Definitions</a></li>
  <li><a href="/homepage_en/2026/10/01/mao-notes-02-distributions/">02 · Common Distributions</a></li>
  <li><a href="/homepage_en/2026/10/01/mao-notes-03-multivariate/">03 · Random Vectors, Covariance and Conditional Expectation</a></li>
  <li><a href="/homepage_en/2026/10/01/mao-notes-04-limit-theorems/">04 · Characteristic Functions, LLN and CLT</a></li>
  <li><a href="/homepage_en/2026/10/01/mao-notes-05-sampling/">05 · Sampling Distributions, Order Statistics and Sufficiency</a></li>
  <li><a href="/homepage_en/2026/10/01/mao-notes-06-estimation/">06 · Point Estimation</a></li>
  <li><strong>07 · Interval Estimation, Hypothesis Testing and Exercise Results</strong> (this post)</li>
</ol>

<p><strong>That’s the end of the series</strong> — thanks for reading all the way here.　·　<a href="/homepage_en/2026/10/01/mao-notes-06-estimation/">← Previous: Point Estimation</a></p>

<p><em>This series collects my review notes on</em> Probability Theory and Mathematical Statistics <em>by Mao Shisong, Cheng Yiming and Pu Xiaolong, in 7 parts. P××× refers to page numbers in the book; “Guide” refers to its companion study guide and solutions manual. Corrections are welcome. A Chinese version is on my <a href="https://bobothebest.github.io/homepage_cn/">Chinese homepage</a>.</em></p>]]></content><author><name>Ziyuan Zhang</name></author><category term="Probability &amp; Statistics Review" /><category term="study notes" /><summary type="html"><![CDATA[Overview The last part of the series puts all of interval estimation and hypothesis testing into tables: the one-sample and two-sample normal cases, large-sample methods, and the u, t, χ² and F tests. A trick for remembering these tables: intervals and tests use the same pivotal quantity. First get clear on “under which conditions, which statistic follows which distribution”, and you can derive both the interval and the rejection region yourself. At the end there is a summary of handy results derived in the exercises.]]></summary></entry><entry><title type="html">Probability &amp;amp; Statistics Review 06 | Point Estimation: Unbiasedness, Consistency, MLE, Fisher Information and the Cramér–Rao Bound</title><link href="https://bobothebest.github.io/homepage_en/2026/10/01/mao-notes-06-estimation/" rel="alternate" type="text/html" title="Probability &amp;amp; Statistics Review 06 | Point Estimation: Unbiasedness, Consistency, MLE, Fisher Information and the Cramér–Rao Bound" /><published>2026-10-01T14:06:00+00:00</published><updated>2026-10-01T14:06:00+00:00</updated><id>https://bobothebest.github.io/homepage_en/2026/10/01/mao-notes-06-estimation</id><content type="html" xml:base="https://bobothebest.github.io/homepage_en/2026/10/01/mao-notes-06-estimation/"><![CDATA[<blockquote>
  <p><strong>Overview</strong></p>

  <p>The properties in the estimation chapter are especially easy to mix up: is unbiasedness invariant? Is the method-of-moments estimator unique? What about the MLE?</p>

  <p>This part first lines up all the “unique / invariant” results in one table, then collects the theorems you need to be able to prove — consistency, UMVUE, the sufficiency principle and the Cramér–Rao inequality — and ends with a conjugate-prior example of Bayesian estimation.</p>
</blockquote>

<hr />

<h2 id="1-two-methods-of-point-estimation">1. Two methods of point estimation</h2>

<p><strong>Method of moments (substitution principle):</strong> replace population moments with sample moments, and a function of population moments with the same function of sample moments.<br />
Example: \(E(X)=\mu\Rightarrow\hat\mu=\bar x\); \(\mathrm{Var}(X)=\sigma^2\Rightarrow\hat\sigma^2=s_n^2\).</p>

<p><strong>Maximum likelihood:</strong> \(L(\theta)=\prod_{i=1}^np(x_i;\theta)\); usually solve the log-likelihood equation \(\frac{\partial\ln L}{\partial\theta}=0\).</p>
<ul>
  <li>Normal population (P316): \(\hat\mu=\bar x\), \(\hat\sigma^2=s_n^2=\frac1n\sum(x_i-\bar x)^2\)</li>
  <li>When the support depends on the parameter you cannot differentiate; look directly at how \(L\) behaves. Example: for \(U(0,\theta)\), \(L(\theta)=\theta^{-n}I_{\{\theta\ge x_{(n)}\}}\) is decreasing on \(\theta\ge x_{(n)}\), so \(\hat\theta=x_{(n)}\).</li>
</ul>

<hr />

<h2 id="2-properties-side-by-side-what-is-unique-what-is-invariant">2. Properties side by side (what is “unique”, what is “invariant”)</h2>

<table>
  <thead>
    <tr>
      <th>Result</th>
      <th>Page</th>
      <th>Explanation / example</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><strong>Unbiasedness is not invariant</strong></td>
      <td>P303</td>
      <td>\(s^2\) is unbiased for \(\sigma^2\), but \(s\) is not unbiased for \(\sigma\) (by Jensen’s inequality, \(E s&lt;\sigma\))</td>
    </tr>
    <tr>
      <td>Method of moments: the MoM estimator of \(g(\theta)\) can be taken as \(g(\hat\theta)\)</td>
      <td>P309</td>
      <td>Direct consequence of the substitution principle</td>
    </tr>
    <tr>
      <td><strong>MoM estimators are not unique</strong></td>
      <td>P309</td>
      <td>For a Poisson population, both \(\bar x\) and \(s_n^2\) are MoM estimators of \(\lambda\) (since \(E X=\mathrm{Var}X=\lambda\))</td>
    </tr>
    <tr>
      <td><strong>Consistent estimators are not unique</strong></td>
      <td>P310</td>
      <td>If \(\hat\theta_n\) is consistent, so is \(\hat\theta_n+\frac1n\)</td>
    </tr>
    <tr>
      <td><strong>Consistency is invariant</strong> (Thm 6.2.2, know the proof)</td>
      <td>P311</td>
      <td>\(\hat\theta_n\xrightarrow{P}\theta\) and \(g\) continuous \(\Rightarrow g(\hat\theta_n)\xrightarrow{P}g(\theta)\)</td>
    </tr>
    <tr>
      <td><strong>MoM estimators are generally consistent</strong></td>
      <td>P312</td>
      <td>Khinchin’s LLN + Thm 6.2.2</td>
    </tr>
    <tr>
      <td><strong>The MLE is invariant</strong></td>
      <td>P316</td>
      <td>\(\hat\theta\) is the MLE \(\Rightarrow g(\hat\theta)\) is the MLE of \(g(\theta)\). Example: the MLE of \(\sigma\) is \(s_n\)</td>
    </tr>
    <tr>
      <td><strong>The MLE may not be unique</strong> (Exercise 6.3.2)</td>
      <td> </td>
      <td>For \(U(\theta-\frac12,\theta+\frac12)\), any point in \([x_{(n)}-\frac12,\ x_{(1)}+\frac12]\) is an MLE</td>
    </tr>
  </tbody>
</table>

<hr />

<h2 id="3-consistency">3. Consistency</h2>

<p><strong>Theorem 6.2.1 (P310, know the proof):</strong> if \(\lim_{n\to\infty}E(\hat\theta_n)=\theta\) and \(\lim_{n\to\infty}\mathrm{Var}(\hat\theta_n)=0\), then \(\hat\theta_n\) is a consistent estimator of \(\theta\).</p>

<details>
  <summary>Proof</summary>

  <p>By Markov’s (Chebyshev-type) inequality,</p>

\[P(\vert \hat\theta_n-\theta\vert \ge\varepsilon)\le\frac{E(\hat\theta_n-\theta)^2}{\varepsilon^2}=\frac{\mathrm{Var}(\hat\theta_n)+\big(E\hat\theta_n-\theta\big)^2}{\varepsilon^2}\to0.\]

</details>

<p><strong>Theorem 6.2.2 (P311, know the proof):</strong> if \(\hat\theta_{n1},\dots,\hat\theta_{nk}\) are consistent for \(\theta_1,\dots,\theta_k\), and \(\eta=g(\theta_1,\dots,\theta_k)\) is continuous, then \(\hat\eta_n=g(\hat\theta_{n1},\dots,\hat\theta_{nk})\) is consistent for \(\eta\).</p>

<details>
  <summary>Proof sketch (one dimension)</summary>

  <p>Since \(g\) is continuous at \(\theta\), for any \(\varepsilon&gt;0\) there is \(\delta&gt;0\) such that \(\vert \hat\theta_n-\theta\vert &lt;\delta\) implies \(\vert g(\hat\theta_n)-g(\theta)\vert &lt;\varepsilon\). Hence</p>

\[P\big(\vert g(\hat\theta_n)-g(\theta)\vert \ge\varepsilon\big)\le P(\vert \hat\theta_n-\theta\vert \ge\delta)\to0.\]

</details>

<p><strong>Asymptotic normality of the MLE (Guide P328):</strong> under suitable regularity conditions,</p>

\[\hat\theta_{MLE}\ \dot\sim\ N\left(\theta,\ \frac{1}{nI(\theta)}\right),\]

<p>where \(n\) is the sample size and \(I(\theta)\) the Fisher information. So the MLE is both <strong>consistent</strong> and <strong>asymptotically normal</strong>, and its asymptotic variance attains the C-R lower bound (asymptotically efficient).</p>

<hr />

<h2 id="4-mean-squared-error-and-efficiency">4. Mean squared error and efficiency</h2>

<p><strong>Mean squared error (P323)</strong></p>

\[\mathrm{MSE}(\hat\theta)=E(\hat\theta-\theta)^2=\mathrm{Var}(\hat\theta)+\big(E\hat\theta-\theta\big)^2.\]

<p>For an unbiased estimator, MSE is just the variance. A biased estimator can actually have smaller MSE. Example: for a normal population, the estimator \(\frac1{n+1}\sum(x_i-\bar x)^2\) of \(\sigma^2\) has smaller MSE than \(s^2\).</p>

<hr />

<h2 id="5-umvue">5. UMVUE</h2>

<p><strong>Theorem 6.4.1 (P325, know the proof):</strong> let \(\hat\theta\) be unbiased for \(\theta\) with \(\mathrm{Var}(\hat\theta)&lt;\infty\). Then \(\hat\theta\) is the UMVUE of \(\theta\) if and only if, for every statistic \(\varphi\) with \(E(\varphi)=0\) and \(\mathrm{Var}(\varphi)&lt;\infty\) (an “unbiased estimator of zero”),</p>

\[\mathrm{Cov}_\theta(\hat\theta,\varphi)=0,\qquad\forall\theta\in\Theta.\]

<p>In one sentence: the UMVUE is uncorrelated with every unbiased estimator of zero.</p>

<details>
  <summary>Proof</summary>

  <p><strong>Sufficiency:</strong> let \(\tilde\theta\) be any unbiased estimator and \(\varphi=\tilde\theta-\hat\theta\), so \(E\varphi=0\). Then</p>

\[\mathrm{Var}(\tilde\theta)=\mathrm{Var}(\hat\theta+\varphi)=\mathrm{Var}(\hat\theta)+\mathrm{Var}(\varphi)+2\underbrace{\mathrm{Cov}(\hat\theta,\varphi)}_{=0}\ge\mathrm{Var}(\hat\theta).\]

  <p><strong>Necessity</strong> (by contradiction): if \(\mathrm{Cov}(\hat\theta,\varphi)\ne0\) for some \(\theta_0\), consider the unbiased estimator \(\hat\theta+\lambda\varphi\):</p>

\[\mathrm{Var}(\hat\theta+\lambda\varphi)=\mathrm{Var}(\hat\theta)+2\lambda\mathrm{Cov}(\hat\theta,\varphi)+\lambda^2\mathrm{Var}(\varphi).\]

  <p>Taking \(\lambda=-\mathrm{Cov}/\mathrm{Var}(\varphi)\) makes the variance strictly smaller than \(\mathrm{Var}(\hat\theta)\), contradicting the UMVUE property.</p>

</details>

<p><strong>Theorem 6.4.2, sufficiency principle (P327, know the proof):</strong> let \(T\) be a sufficient statistic, \(\hat\theta\) an unbiased estimator of \(\theta\), and \(\tilde\theta=E(\hat\theta\mid T)\). Then \(\tilde\theta\) is also unbiased for \(\theta\), and \(\mathrm{Var}(\tilde\theta)\le\mathrm{Var}(\hat\theta)\).</p>

<details>
  <summary>Proof</summary>

  <p>Because \(T\) is sufficient, the conditional distribution does not depend on \(\theta\), so \(E(\hat\theta\mid T)\) involves no \(\theta\) — it is a statistic.</p>
  <ul>
    <li>Unbiasedness: by the law of total expectation, \(E\tilde\theta=E\big(E(\hat\theta\mid T)\big)=E\hat\theta=\theta\).</li>
    <li>Variance: by the law of total variance, \(\mathrm{Var}(\hat\theta)=\mathrm{Var}\big(E(\hat\theta\mid T)\big)+E\big(\mathrm{Var}(\hat\theta\mid T)\big)\ge\mathrm{Var}(\tilde\theta)\).</li>
  </ul>

</details>

<p>Intuition: a good estimator should depend only on the sufficient statistic, and conditioning on the sufficient statistic can only make an estimator better (or at least no worse). So to find the UMVUE, you only need to search among functions of the sufficient statistic (Rao–Blackwell).</p>

<hr />

<h2 id="6-fisher-information-and-the-c-r-inequality">6. Fisher information and the C-R inequality</h2>

<p><strong>Fisher information (P329)</strong></p>

\[I(\theta)=E\left[\frac{\partial}{\partial\theta}\ln p(x;\theta)\right]^2=-E\left[\frac{\partial^2}{\partial\theta^2}\ln p(x;\theta)\right].\]

<p>For the second equality see Exercise 6.4.5; the second-derivative form is usually easier to compute. The larger \(I(\theta)\), the more information one observation carries about \(\theta\).</p>

<p><strong>☆ Theorem 6.4.3, Cramér–Rao inequality (P329, know the proof):</strong> under regularity conditions, if \(T\) is an unbiased estimator of \(g(\theta)\), then</p>

\[\mathrm{Var}(T)\ge\frac{[g'(\theta)]^2}{nI(\theta)}.\]

<p>In particular, every unbiased estimator of \(\theta\) has variance \(\ge\dfrac1{nI(\theta)}\). An unbiased estimator attaining the bound is called <strong>efficient</strong>.</p>

<details>
  <summary>Proof sketch</summary>

  <p>Let the score be \(S=\sum_{i=1}^n\frac{\partial}{\partial\theta}\ln p(x_i;\theta)\); then \(E(S)=0\) and \(\mathrm{Var}(S)=nI(\theta)\).<br />
Differentiate both sides of \(E_\theta(T)=g(\theta)\) with respect to \(\theta\) (regularity lets us swap derivative and integral):</p>

\[g'(\theta)=\int T(\boldsymbol x)\frac{\partial}{\partial\theta}p(\boldsymbol x;\theta)\,d\boldsymbol x=E(TS)=\mathrm{Cov}(T,S).\]

  <p>By the Schwarz inequality, \([g'(\theta)]^2=[\mathrm{Cov}(T,S)]^2\le\mathrm{Var}(T)\,\mathrm{Var}(S)=\mathrm{Var}(T)\cdot nI(\theta)\).</p>

</details>

<p><strong>Fisher information of common distributions (Guide P341)</strong></p>

<table>
  <thead>
    <tr>
      <th>Distribution</th>
      <th>Fisher information</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>\(b(1,p)\)</td>
      <td>\(I(p)=\dfrac1{p(1-p)}\)</td>
    </tr>
    <tr>
      <td>\(P(\lambda)\)</td>
      <td>\(I(\lambda)=\dfrac1\lambda\)</td>
    </tr>
    <tr>
      <td>\(Exp(\lambda)\), density \(\lambda e^{-\lambda x}\)</td>
      <td>\(I(\lambda)=\dfrac1{\lambda^2}\)</td>
    </tr>
    <tr>
      <td>\(N(\mu,1)\)</td>
      <td>\(I(\mu)=1\)</td>
    </tr>
    <tr>
      <td>\(N(0,\sigma^2)\)</td>
      <td>\(I(\sigma^2)=\dfrac1{2\sigma^4}\)</td>
    </tr>
    <tr>
      <td>\(N(\mu,\sigma^2)\)</td>
      <td>\(I(\mu,\sigma^2)=\begin{pmatrix}\frac1{\sigma^2}&amp;0\\0&amp;\frac1{2\sigma^4}\end{pmatrix}\)</td>
    </tr>
  </tbody>
</table>

<p>Example: for a Poisson population, \(\mathrm{Var}(\bar x)=\frac\lambda n=\frac{1}{nI(\lambda)}\), so \(\bar x\) is an efficient estimator of \(\lambda\).</p>

<hr />

<h2 id="7-bayesian-estimation">7. Bayesian estimation</h2>

<p><strong>Posterior distribution</strong></p>

\[\pi(\theta\mid x_1,\dots,x_n)=\frac{h(x_1,\dots,x_n,\theta)}{m(x_1,\dots,x_n)}=\frac{p(x_1,\dots,x_n\mid\theta)\,\pi(\theta)}{\int_\Theta p(x_1,\dots,x_n\mid\theta)\,\pi(\theta)\,d\theta},\]

<p>where \(\pi(\theta)\) is the prior and \(m\) is the marginal distribution of the sample. The posterior mean \(E(\theta\mid\boldsymbol x)\) is usually taken as the Bayes estimator of \(\theta\).</p>

<p><strong>Conjugate prior example:</strong> \(x_i\sim b(1,p)\) with prior \(p\sim Be(a,b)\). The posterior is \(Be\left(a+\sum x_i,\ b+n-\sum x_i\right)\), and the Bayes estimator is</p>

\[\hat p_B=\frac{a+\sum x_i}{a+b+n}.\]

<p>Intuition: the prior is like “having already seen \(a+b\) trials, \(a\) of them successes”; you pool those with the real data and compute the success rate.</p>

<hr />

<p><strong>Series contents</strong></p>

<ol>
  <li><a href="/homepage_en/2026/10/01/mao-notes-01-concepts/">01 · Core Definitions</a></li>
  <li><a href="/homepage_en/2026/10/01/mao-notes-02-distributions/">02 · Common Distributions</a></li>
  <li><a href="/homepage_en/2026/10/01/mao-notes-03-multivariate/">03 · Random Vectors, Covariance and Conditional Expectation</a></li>
  <li><a href="/homepage_en/2026/10/01/mao-notes-04-limit-theorems/">04 · Characteristic Functions, LLN and CLT</a></li>
  <li><a href="/homepage_en/2026/10/01/mao-notes-05-sampling/">05 · Sampling Distributions, Order Statistics and Sufficiency</a></li>
  <li><strong>06 · Point Estimation</strong> (this post)</li>
  <li><a href="/homepage_en/2026/10/01/mao-notes-07-intervals-tests/">07 · Interval Estimation, Hypothesis Testing and Exercise Results</a></li>
</ol>

<p><a href="/homepage_en/2026/10/01/mao-notes-05-sampling/">← Previous: Sampling Distributions, Order Statistics and Sufficiency</a>　·　<a href="/homepage_en/2026/10/01/mao-notes-07-intervals-tests/">Next: Interval Estimation, Hypothesis Testing and Exercise Results →</a></p>

<p><em>This series collects my review notes on</em> Probability Theory and Mathematical Statistics <em>by Mao Shisong, Cheng Yiming and Pu Xiaolong, in 7 parts. P××× refers to page numbers in the book; “Guide” refers to its companion study guide and solutions manual. Corrections are welcome. A Chinese version is on my <a href="https://bobothebest.github.io/homepage_cn/">Chinese homepage</a>.</em></p>]]></content><author><name>Ziyuan Zhang</name></author><category term="Probability &amp; Statistics Review" /><category term="study notes" /><summary type="html"><![CDATA[Overview The properties in the estimation chapter are especially easy to mix up: is unbiasedness invariant? Is the method-of-moments estimator unique? What about the MLE? This part first lines up all the “unique / invariant” results in one table, then collects the theorems you need to be able to prove — consistency, UMVUE, the sufficiency principle and the Cramér–Rao inequality — and ends with a conjugate-prior example of Bayesian estimation.]]></summary></entry><entry><title type="html">Probability &amp;amp; Statistics Review 05 | Sampling Distributions, Order Statistics and Sufficient Statistics</title><link href="https://bobothebest.github.io/homepage_en/2026/10/01/mao-notes-05-sampling/" rel="alternate" type="text/html" title="Probability &amp;amp; Statistics Review 05 | Sampling Distributions, Order Statistics and Sufficient Statistics" /><published>2026-10-01T14:05:00+00:00</published><updated>2026-10-01T14:05:00+00:00</updated><id>https://bobothebest.github.io/homepage_en/2026/10/01/mao-notes-05-sampling</id><content type="html" xml:base="https://bobothebest.github.io/homepage_en/2026/10/01/mao-notes-05-sampling/"><![CDATA[<blockquote>
  <p><strong>Overview</strong></p>

  <p>From here on we are in mathematical statistics. The sample mean \(\bar x\), the sample variance \(s^2\), and the three sampling distributions \(\chi^2\), t and F are the “raw materials” for all the interval estimation and hypothesis testing that follows.</p>

  <p>The single most important theorem is: <strong>for a normal sample, \(\bar x\) and \(s^2\) are independent</strong> (Theorem 5.4.1). Almost every pivotal quantity later is built on it, so make sure you can prove it.</p>
</blockquote>

<hr />

<h2 id="1-sample-mean-and-sample-variance">1. Sample mean and sample variance</h2>

<p><strong>Sample variance (P267)</strong></p>

\[s^2=\frac1{n-1}\sum_{i=1}^n(x_i-\bar x)^2,\qquad s_n^2=\frac1n\sum_{i=1}^n(x_i-\bar x)^2.\]

<p>A computational identity (worth memorizing):</p>

\[\sum_{i=1}^n(x_i-\bar x)^2=\sum x_i^2-\frac{\left(\sum x_i\right)^2}{n}=\sum x_i^2-n\bar x^2.\]

<p>Often useful in proofs (Exercise 5.3.10): \(\left(\sum_{i=1}^nx_i\right)^2=\sum_{i=1}^nx_i^2+2\sum_{i&lt;j}x_ix_j\).</p>

<p><strong>Recursive update (Exercise 5.3.4):</strong> with \(\bar x_n=\frac1n\sum_{i=1}^nx_i\) and \(s_n^2=\frac1{n-1}\sum_{i=1}^n(x_i-\bar x_n)^2\),</p>

\[s_{n+1}^2=\frac{n-1}{n}s_n^2+\frac1{n+1}(x_{n+1}-\bar x_n)^2.\]

<p><strong>The sample mean minimizes squared deviation (P264, Theorem 5.3.2):</strong> \(\sum(x_i-\bar x)^2\le\sum(x_i-c)^2\) for any constant \(c\).</p>

<p><strong>Theorem 5.3.3 (P265): distribution of \(\bar x\)</strong></p>
<ul>
  <li>Normal population \(N(\mu,\sigma^2)\): \(\bar x\sim N(\mu,\sigma^2/n)\) (exactly)</li>
  <li>Arbitrary population with finite variance \(\sigma^2\): for large \(n\), \(\bar x\ \dot\sim\ N(\mu,\sigma^2/n)\) (by the CLT)</li>
</ul>

<p><strong>Theorem 5.3.4 (P268, know the proof):</strong> if the population has a finite second moment, then</p>

\[E(\bar x)=\mu,\qquad\mathrm{Var}(\bar x)=\frac{\sigma^2}n,\qquad E(s^2)=\sigma^2.\]

<details>
  <summary>Proof</summary>

  <p>The first two follow directly from properties of expectation and variance. For \(s^2\):</p>

\[E\left[\sum(x_i-\bar x)^2\right]=\sum E(x_i^2)-nE(\bar x^2)=n(\sigma^2+\mu^2)-n\left(\frac{\sigma^2}n+\mu^2\right)=(n-1)\sigma^2.\]

  <p>So \(E(s^2)=\sigma^2\). This is also why \(s^2\) divides by \(n-1\): replacing \(\mu\) with \(\bar x\) “uses up” one degree of freedom.</p>

</details>

<hr />

<h2 id="2-order-statistics">2. Order statistics</h2>

<p><strong>Distribution of a single order statistic (P273, memorize):</strong> for a population with density \(p(x)\) and distribution function \(F(x)\),</p>

\[p_k(x)=\frac{n!}{(k-1)!\,(n-k)!}\,[F(x)]^{k-1}\,[1-F(x)]^{n-k}\,p(x).\]

<p>In particular,</p>

\[p_{(1)}(x)=n[1-F(x)]^{n-1}p(x),\qquad p_{(n)}(x)=n[F(x)]^{n-1}p(x).\]

<blockquote>
  <p><strong>Note:</strong> the density formula only applies to continuous populations; it fails for discrete ones. In the discrete case, work from the distribution function: \(F_{(n)}(x)=[F(x)]^n\), \(F_{(1)}(x)=1-[1-F(x)]^n\).</p>
</blockquote>

<details>
  <summary>Memory aid: "split into three groups"</summary>

  <p>For \(x_{(k)}\) to land near \(x\), you need \(k-1\) observations to the left of \(x\) (probability \(F\)), \(1\) near \(x\) (probability \(p(x)dx\)), and \(n-k\) to the right (probability \(1-F\)). The coefficient is the multinomial coefficient for splitting \(n\) observations into three groups, \(\frac{n!}{(k-1)!\,1!\,(n-k)!}\).</p>

</details>

<p><strong>Joint distribution of several order statistics (P274; see Exercises 5.3.22, 5.3.23 for applications of Theorem 5.3.6):</strong> the joint density of \((x_{(i)},x_{(j)})\), \(i&lt;j\), is</p>

\[p_{ij}(y,z)=\frac{n!}{(i-1)!\,(j-i-1)!\,(n-j)!}[F(y)]^{i-1}[F(z)-F(y)]^{j-i-1}[1-F(z)]^{n-j}p(y)p(z),\quad y\le z.\]

<p>The joint density of all order statistics is \(n!\prod_{i=1}^np(y_i)\), \(y_1&lt;\dots&lt;y_n\).<br />
Example (Exercise 5.3.34): for \(X\sim U(0,\theta)\), the joint density of \((x_{(1)},\dots,x_{(n)})\) is \(\frac{n!}{\theta^n}\), \(0&lt;u_1\le\dots\le u_n\le\theta\).</p>

<p><strong>Order statistics of the uniform</strong></p>
<ul>
  <li>Example 5.3.8 (P274): for a \(U(0,1)\) population, \(x_{(k)}\sim Be(k,\ n-k+1)\)</li>
  <li>Example 5.3.9 (P275): for a \(U(0,1)\) population, the range \(x_{(n)}-x_{(1)}\sim Be(n-1,\ 2)\)</li>
</ul>

<p><strong>☆ Exercise 5.3.28 (turning any continuous population into a uniform):</strong> if the population distribution function \(F\) is continuous, let \(\eta_i=F(x_{(i)})\). Then</p>
<ol>
  <li>\(\eta_1\le\dots\le\eta_n\) are exactly the order statistics of a \(U(0,1)\) sample (since \(F(X)\sim U(0,1)\) and \(F\) is monotone);</li>
  <li>\(E(\eta_i)=\frac{i}{n+1}\), \(\mathrm{Var}(\eta_i)=\frac{i(n+1-i)}{(n+1)^2(n+2)}\) (from the mean and variance of \(Be(i,n-i+1)\));</li>
  <li>the covariance matrix of \(\eta_i,\eta_j\) (\(i&lt;j\)) is</li>
</ol>

\[\begin{pmatrix}\frac{a_1(1-a_1)}{n+2}&amp;\frac{a_1(1-a_2)}{n+2}\\[2pt]\frac{a_1(1-a_2)}{n+2}&amp;\frac{a_2(1-a_2)}{n+2}\end{pmatrix},\qquad a_1=\frac i{n+1},\ a_2=\frac j{n+1}.\]

<p><strong>Asymptotic distribution of the sample \(p\)-quantile (Theorem 5.3.7, P276):</strong> if the population density \(p(x)\) is continuous at \(x_p\) with \(p(x_p)&gt;0\), then</p>

\[m_p\ \dot\sim\ N\left(x_p,\ \frac{p(1-p)}{n\,p^2(x_p)}\right).\]

<p>In particular, the sample median \(m_{0.5}\ \dot\sim\ N\left(x_{0.5},\ \frac{1}{4n\,p^2(x_{0.5})}\right)\).</p>

<p><strong>The median is robust (P277):</strong> a few outliers barely affect the median, but can move the mean a lot.</p>

<hr />

<h2 id="3-the-three-sampling-distributions">3. The three sampling distributions</h2>

<table>
  <thead>
    <tr>
      <th>Distribution</th>
      <th>Construction</th>
      <th>Density</th>
      <th>Page</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>\(\chi^2(n)\)</td>
      <td>\(X_1,\dots,X_n\overset{iid}{\sim}N(0,1)\), \(\sum X_i^2\)</td>
      <td>\(\frac{1}{2^{n/2}\Gamma(n/2)}x^{\frac n2-1}e^{-x/2},\ x&gt;0\)</td>
      <td>P283</td>
    </tr>
    <tr>
      <td>\(F(m,n)\)</td>
      <td>\(\dfrac{X/m}{Y/n}\), \(X\sim\chi^2(m)\), \(Y\sim\chi^2(n)\) independent</td>
      <td>\(\frac{\Gamma(\frac{m+n}2)}{\Gamma(\frac m2)\Gamma(\frac n2)}\left(\frac mn\right)^{\frac m2}x^{\frac m2-1}\left(1+\frac mnx\right)^{-\frac{m+n}2},\ x&gt;0\)</td>
      <td>P286</td>
    </tr>
    <tr>
      <td>\(t(n)\)</td>
      <td>\(\dfrac{X}{\sqrt{Y/n}}\), \(X\sim N(0,1)\), \(Y\sim\chi^2(n)\) independent</td>
      <td>\(\frac{\Gamma(\frac{n+1}2)}{\sqrt{n\pi}\,\Gamma(\frac n2)}\left(1+\frac{x^2}n\right)^{-\frac{n+1}2}\)</td>
      <td>P288</td>
    </tr>
  </tbody>
</table>

<ul>
  <li><strong>Quantiles of the F distribution (P287):</strong> \(F_\alpha(n,m)=\dfrac{1}{F_{1-\alpha}(m,n)}\) (since \(F\sim F(m,n)\) implies \(\frac1F\sim F(n,m)\))</li>
  <li>\(t(1)\) is the standard Cauchy; \(t(n)\to N(0,1)\) as \(n\to\infty\); if \(T\sim t(n)\), then \(T^2\sim F(1,n)\)</li>
  <li>\(\chi^2(n)\) has mean \(n\) and variance \(2n\); for the means and variances of \(F(m,n)\) and \(t(n)\), see Part 2</li>
</ul>

<details>
  <summary>Deriving the F density (know it)</summary>

  <p>First find the density of \(Z=X/Y\). By the formula for the density of a quotient,</p>

\[p_Z(z)=\int_0^{\infty}p_X(zy)\,p_Y(y)\,y\,dy=\frac{z^{\frac m2-1}}{2^{\frac{m+n}2}\Gamma(\frac m2)\Gamma(\frac n2)}\int_0^{\infty}y^{\frac{m+n}2-1}e^{-\frac{(1+z)y}{2}}\,dy.\]

  <p>The remaining integral is a gamma integral equal to \(\Gamma(\frac{m+n}2)\left(\frac{2}{1+z}\right)^{\frac{m+n}2}\), so</p>

\[p_Z(z)=\frac{\Gamma(\frac{m+n}2)}{\Gamma(\frac m2)\Gamma(\frac n2)}z^{\frac m2-1}(1+z)^{-\frac{m+n}2}.\]

  <p>Finally \(F=\frac nmZ\); apply the linear change of variables. The \(t\) derivation is similar: first find the density of \(\sqrt{Y/n}\), then use the quotient formula.</p>

</details>

<p><strong>☆ Theorem 5.4.1 (P284, know the proof):</strong> let \(x_1,\dots,x_n\) be a sample from \(N(\mu,\sigma^2)\). Then</p>
<ol>
  <li>\(\bar x\) and \(s^2\) are independent;</li>
  <li>\(\bar x\sim N(\mu,\sigma^2/n)\);</li>
  <li>\(\dfrac{(n-1)s^2}{\sigma^2}\sim\chi^2(n-1)\).</li>
</ol>

<details>
  <summary>Proof sketch (orthogonal transformation)</summary>

  <p>WLOG \(\mu=0\). Take an orthogonal matrix \(A\) whose first row is \(\left(\frac1{\sqrt n},\dots,\frac1{\sqrt n}\right)\) and set \(\boldsymbol y=A\boldsymbol x\).</p>
  <ul>
    <li>Orthogonal transformations preserve i.i.d. normality: \(y_1,\dots,y_n\overset{iid}{\sim}N(0,\sigma^2)\)</li>
    <li>
\[y_1=\sqrt n\,\bar x\]
    </li>
    <li>\(\sum y_i^2=\sum x_i^2\), so \((n-1)s^2=\sum x_i^2-n\bar x^2=\sum_{i=2}^ny_i^2\)</li>
  </ul>

  <p>So \(\bar x\) depends only on \(y_1\) and \(s^2\) only on \(y_2,\dots,y_n\), hence they are independent; and \(\frac{(n-1)s^2}{\sigma^2}=\sum_{i=2}^n\left(\frac{y_i}\sigma\right)^2\sim\chi^2(n-1)\).</p>

</details>

<p><strong>Corollaries (the building blocks of pivotal quantities)</strong></p>
<ul>
  <li>
\[\dfrac{\sqrt n(\bar x-\mu)}{s}\sim t(n-1)\]
  </li>
  <li>Two independent normal samples: \(\dfrac{s_x^2/\sigma_1^2}{s_y^2/\sigma_2^2}\sim F(m-1,n-1)\)</li>
  <li>If \(\sigma_1=\sigma_2\): \(\dfrac{(\bar x-\bar y)-(\mu_1-\mu_2)}{s_w\sqrt{\frac1m+\frac1n}}\sim t(m+n-2)\), where \(s_w^2=\dfrac{(m-1)s_x^2+(n-1)s_y^2}{m+n-2}\)</li>
</ul>

<hr />

<h2 id="4-sufficient-statistics">4. Sufficient statistics</h2>

<p><strong>Theorem 5.5.1, factorization theorem (P297):</strong> \(T(\boldsymbol x)\) is sufficient for \(\theta\) if and only if there exist functions \(g(t;\theta)\) and \(h(\boldsymbol x)\) such that</p>

\[p(\boldsymbol x;\theta)=g\big(T(\boldsymbol x);\theta\big)\,h(\boldsymbol x),\]

<p>where \(h\) does not involve \(\theta\), and \(g\) depends on the sample only through \(T\).</p>

<p><strong>Sufficient statistics of common distributions (Guide P300)</strong></p>

<table>
  <thead>
    <tr>
      <th>Distribution</th>
      <th>Parameter(s)</th>
      <th>Sufficient statistic</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>\(b(1,p)\)</td>
      <td>\(p\)</td>
      <td>\(\sum x_i\)</td>
    </tr>
    <tr>
      <td>\(P(\lambda)\)</td>
      <td>\(\lambda\)</td>
      <td>\(\sum x_i\)</td>
    </tr>
    <tr>
      <td>\(Ge(\theta)\)</td>
      <td>\(\theta\)</td>
      <td>\(\sum x_i\)</td>
    </tr>
    <tr>
      <td>\(Exp(\lambda)\)</td>
      <td>\(\lambda\)</td>
      <td>\(\sum x_i\)</td>
    </tr>
    <tr>
      <td>\(U(0,\theta)\)</td>
      <td>\(\theta\)</td>
      <td>\(x_{(n)}\)</td>
    </tr>
    <tr>
      <td>\(U(\theta_1,\theta_2)\)</td>
      <td>\(\theta_1,\theta_2\)</td>
      <td>\((x_{(1)},x_{(n)})\)</td>
    </tr>
    <tr>
      <td>\(U(\theta,2\theta)\)</td>
      <td>\(\theta\)</td>
      <td>\((x_{(1)},x_{(n)})\)</td>
    </tr>
    <tr>
      <td>\(N(\mu,\sigma^2)\)</td>
      <td>\(\mu,\sigma^2\)</td>
      <td>\(\left(\bar x,\ \sum(x_i-\bar x)^2\right)\)</td>
    </tr>
    <tr>
      <td>Power distribution \(\theta x^{\theta-1},\ 0&lt;x&lt;1\)</td>
      <td>\(\theta\)</td>
      <td>\(\prod x_i\) or \(\sum\ln x_i\)</td>
    </tr>
    <tr>
      <td>Two-parameter exponential \(\frac1\theta e^{-\frac{x-\mu}\theta},\ x&gt;\mu\)</td>
      <td>\(\mu,\theta\)</td>
      <td>\(\left(x_{(1)},\ \sum x_i\right)\)</td>
    </tr>
    <tr>
      <td>\(Ga(\alpha,\lambda)\)</td>
      <td>\(\alpha,\lambda\)</td>
      <td>\(\left(\sum x_i,\ \prod x_i\right)\)</td>
    </tr>
    <tr>
      <td>\(LN(\mu,\sigma^2)\)</td>
      <td>\(\mu,\sigma^2\)</td>
      <td>\(\left(\sum\ln x_i,\ \sum(\ln x_i)^2\right)\)</td>
    </tr>
    <tr>
      <td>\(Be(a,b)\)</td>
      <td>\(a,b\)</td>
      <td>\(\left(\sum\ln x_i,\ \sum\ln(1-x_i)\right)\)</td>
    </tr>
  </tbody>
</table>

<ul>
  <li>A one-to-one transformation of a sufficient statistic is still sufficient (Guide P300); e.g. \(\sum x_i\) and \(\bar x\) are equivalent.</li>
  <li>The pattern: for an exponential family, the sufficient statistics are the sums of the sample functions that multiply the parameters in the exponent; when the support depends on the parameter (e.g. the uniform), the sufficient statistics are the extremes.</li>
</ul>

<details>
  <summary>Example: \(U(0,\theta)\)</summary>

\[p(\boldsymbol x;\theta)=\prod_{i=1}^n\frac1\theta I_{\{0&lt;x_i&lt;\theta\}}=\underbrace{\theta^{-n}I_{\{x_{(n)}&lt;\theta\}}}_{g(x_{(n)};\theta)}\cdot\underbrace{I_{\{x_{(1)}&gt;0\}}}_{h(\boldsymbol x)},\]

  <p>so \(x_{(n)}\) is sufficient.</p>

</details>

<hr />

<p><strong>Series contents</strong></p>

<ol>
  <li><a href="/homepage_en/2026/10/01/mao-notes-01-concepts/">01 · Core Definitions</a></li>
  <li><a href="/homepage_en/2026/10/01/mao-notes-02-distributions/">02 · Common Distributions</a></li>
  <li><a href="/homepage_en/2026/10/01/mao-notes-03-multivariate/">03 · Random Vectors, Covariance and Conditional Expectation</a></li>
  <li><a href="/homepage_en/2026/10/01/mao-notes-04-limit-theorems/">04 · Characteristic Functions, LLN and CLT</a></li>
  <li><strong>05 · Sampling Distributions, Order Statistics and Sufficiency</strong> (this post)</li>
  <li><a href="/homepage_en/2026/10/01/mao-notes-06-estimation/">06 · Point Estimation</a></li>
  <li><a href="/homepage_en/2026/10/01/mao-notes-07-intervals-tests/">07 · Interval Estimation, Hypothesis Testing and Exercise Results</a></li>
</ol>

<p><a href="/homepage_en/2026/10/01/mao-notes-04-limit-theorems/">← Previous: Characteristic Functions, LLN and CLT</a>　·　<a href="/homepage_en/2026/10/01/mao-notes-06-estimation/">Next: Point Estimation →</a></p>

<p><em>This series collects my review notes on</em> Probability Theory and Mathematical Statistics <em>by Mao Shisong, Cheng Yiming and Pu Xiaolong, in 7 parts. P××× refers to page numbers in the book; “Guide” refers to its companion study guide and solutions manual. Corrections are welcome. A Chinese version is on my <a href="https://bobothebest.github.io/homepage_cn/">Chinese homepage</a>.</em></p>]]></content><author><name>Ziyuan Zhang</name></author><category term="Probability &amp; Statistics Review" /><category term="study notes" /><summary type="html"><![CDATA[Overview From here on we are in mathematical statistics. The sample mean \(\bar x\), the sample variance \(s^2\), and the three sampling distributions \(\chi^2\), t and F are the “raw materials” for all the interval estimation and hypothesis testing that follows. The single most important theorem is: for a normal sample, \(\bar x\) and \(s^2\) are independent (Theorem 5.4.1). Almost every pivotal quantity later is built on it, so make sure you can prove it.]]></summary></entry></feed>