<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2026-08-31T14:16:59+00:00</updated><id>/feed.xml</id><title type="html">PureRun89</title><subtitle>Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.</subtitle><entry><title type="html">Note: statistical inference (1)</title><link href="/probability-and-statistics/2026/07/13/note-statistics-inference-1.html" rel="alternate" type="text/html" title="Note: statistical inference (1)" /><published>2026-07-13T04:00:00+00:00</published><updated>2026-07-13T04:00:00+00:00</updated><id>/probability-and-statistics/2026/07/13/note-statistics-inference-1</id><content type="html" xml:base="/probability-and-statistics/2026/07/13/note-statistics-inference-1.html"><![CDATA[<div class="kdmath">$$
\newcommand{\P}{\mathbb{P}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\s}{\sigma}
\newcommand{\sA}{\mathscr{A}}
\newcommand{\sB}{\mathscr{B}}
\newcommand{\sF}{\mathscr{F}}
\newcommand{\sU}{\mathscr{U}}
$$</div>

<p>We define a <strong>statistical model</strong> to be a tuple $(X,\sF,P)$, where $X$ is the image space of some random variables, $\sF$ is a $\s$-algebra on $X$, and $P$ is a family of probability measures on $X$. Usually $X$ will be (a product of) Euclidean space. Often the probability measures will come from a parameter: $P = { P_\theta }, \theta \in \Theta \subset \R^p$. In this case we call this a <strong>parametric model</strong>.</p>

<p>In practice of the statistical inference, often we are given the values of the random variables $(X_1, \dots, X_n)$ (a sample), theoretically $(X_1,\dots, X_n)$ satisfies one distribution $P_\theta$ on $X$, and we want to determine the parameter $\theta$, often by some functions of $X_1,\dots, X_n$. Such a (Borel-measurable) function $T(X_1,\dots,X_n)$ will be called a statistic.</p>

<p>The following type of parametric model will appear to have nice properties:</p>

<p><strong>Def. 1</strong> A parametric model $(X,\sF,P)$ is called an <strong>exponential family of distributions</strong> if each $P_\theta$ admits a density or mass function $f(x;\theta)$ which is of the form</p>

<div class="kdmath">$$
f(x;\theta) = \exp(\eta(\theta)^T T(x) - \xi(\theta)) h(x)
$$</div>

<p>The <strong>dimension</strong> of this parametric model will be denoted as the dimension of the vector $T(x)$.</p>

<p>An exponential family of distribution is called <strong>full-rank</strong>, if the parametric space $\Theta$ contains an interior point in $\R^p$. $\square$</p>

<p>Examples: The binomial, Poisson, Gaussian distributions are all exponential families. (For example the mass function of Poisson distribution can be written as $\exp((\ln \theta) \cdot x - \theta) \cdot \frac{1}{k!}$)</p>

<p>Now we talk about the sufficient and complete statistics:</p>

<p><strong>Def.2 (sufficiency)</strong> Given a parametric model $(X,\sF,P)$, a statistic $T$ (recall: this is a measurable function whose domain is $X$) is called <strong>sufficient</strong>, if for any nonnegative Borel function $f$, there exists a Borel function $h$, that the random variable $E(f(x) \vert T(x))$ equals to $h(T(x))$ a.e., for any parameter $\theta$. By informal language, this is to say that the conditional distribution of $X$ given $T(X)$ doesn’t depend on $\theta$. $\square$</p>

<p>(Remark: the condition “nonnegative Borel” above can be replaced with “bounded Borel”. Moreover, if $T$ is already known to be sufficient, then for any Borel function $h$, if $h$ is $L^1$ for one parameter $\theta$, then $h$ is $L^1$ for all parameters, and the statement above remains true for $h$.)</p>

<p><strong>Def.3</strong> A sufficient statistic $T$ is called <strong>minimal</strong> if, for any sufficient statistic $S$, there exists a Borel function $f$ that $T = f(S) \text{ }P\text{-a.s.}$ Here $P\text{-a.s.}$ means that for any $\theta$, the statement is $P_\theta \text{-a.s.}$ true. $\square$</p>

<p>Examples: $T(x) = x$ is clearly a sufficient statistic. For a nontrivial example, consider $\Theta = {(a,b): a&lt;b}, X = \R^n$, and let $P_\theta = P_(a,b)$ be the distribution of $(X_1,\dots,X_n)$, where $X_1,\dots, X_n$ are i.i.d. random variables of the distribution $\sU(a,b)$ (the uniform distribution). Suppose that we know one sample of $(X_1,\dots, X_n)$, and we arrange them as $X_{(1)}\leq X_{(2)} \leq \cdots \leq X_{(n)}$. If $X_{(1)}$ and $X_{(n)}$ are given, then the other variables satisfy a uniform distribution in $[X_{(1)},X_{(n)}]$, hence we can believe that the vector $(X_{(1)}, X_{(n)})$ is sufficient to determine $(a,b)$. In fact, it is a minimal sufficient statistic, which we’ll see later.</p>

<p>Here are the theorems which determines sufficiency or the minimal condition:</p>

<p><strong>Thm.4 (Fisher–Neyman factorization theorem)</strong> Suppose that all $P_\theta$ has density or mass functions $f_\theta$, then $T$ is sufficient if and only if, there exists measurable functions $g_\theta(x), h(x)$ that</p>

<div class="kdmath">$$
f_\theta(x) = g_\theta(T(x)) h(x).
$$</div>

<p>The proof of the general case of this theorem is notoriously long, which we will hence admit. $\square$</p>

<p><strong>Thm.5</strong> Suppose that $X = \R^n$, $P_\theta$ has density function $f_\theta$, $T$ is sufficient and $h$ is a measurable function. Suppose that for any $x,y$ possible values of $X$, if “For any $\theta$, $f_\theta(x) = f_\theta(y) h(x,y)$” implies “$T(x)=T(y)$”. Then $T$ is minimal.</p>

<p><strong>Cor.6</strong> Suppose that $(X,\sF,P)$ is an exponential family of distributions, which has density function and has dimension $p$. We recall that</p>

<div class="kdmath">$$
f(x;\theta) = \exp(\eta(\theta)^T T(x) - \xi(\theta)) h(x)
$$</div>

<p>By the factorization theorem, $T$ is sufficient. Suppose that there exists $\theta_0,\dots, \theta_p \in \Theta$, that $\eta(\theta_i) - \eta(\theta_0)$ are linearly independent in $\R^p$, then $T$ is minimal. $\square$</p>

<p><strong>Proof of Thm.5</strong> A theorem of Baradur guarantees that, in the case $X = \R^n$ and $P_\theta$ has density functions, a minimal sufficient statistic always exists, which we will denote by $S$. By the definition, there exists a measurable function $g$ that $S = g(T)$. By the factorization theorem, we write $f_\theta(x) = g_\theta(S(x)) l(x)$, then $l \neq 0 \text{ }P\text{-a.s.}$. We denote $h(x,y) = \frac{l(x)}{l(y)}$.</p>

<p>For any $x,y$ that $S(x) = S(y)$, we know that $f_\theta(x) = f_\theta(y) h(x,y)$ for any $\theta$. Hence $T(x) = T(y)$. Hence $l$ is a bijection in the range of $S$ and $T$, and hence $T$ is also minimal. $\square$</p>

<p>As a direct consequence of theorem 4 and 5, we see that in the previous example, $(X_{(1)}, X_{(n)})$ is indeed a minimal sufficient statistic.</p>

<p><strong>Def.7 (Completeness)</strong> A statistic $T$ is called <strong>complete</strong>, if for any measurable function $h$, “For any $\theta$, $\E(h(T)) = 0$” implies “$h(T) = 0$ $P$-a.s.”. $T$ is called <strong>bounded complete</strong>, if the measurable functions are replaced by the bounded measurable functions. $\square$</p>

<p>The following theorem builds one relation between completeness and sufficiency:</p>

<p><strong>Thm.8</strong> Suppose that $T$ is finite-dimensional (the image of $T$ lies in Euclidean space), $T$ is bounded complete and sufficient, then $T$ is minimal.</p>

<p>Proof. Write $T = (T_1, \dots, T_k)$. For any sufficient statistic $S$, let $g_j(S) = \E(\arctan(T_j)\vert S), h_j(T) = \E(g_j(S)\vert T)$. Since $S, T$ are sufficient, $g_j, h_j$ don’t depend on $\theta$. For any $\theta$,</p>

<div class="kdmath">$$
\E(h_j(T)) = \E(g_j(S)) = \E(\arctan(T_j)).
$$</div>

<p>Hence by definition, $h_j(T) = \arctan(T_j)$ $P$-a.s. For any $\theta$,</p>

<div class="kdmath">$$
\begin{align}
Var(g_j(S)) = Var(\E(g_j(S) \vert T)) + \E(Var(g_j(S) \vert T)) \geq Var(h_j(T)) \\

Var(h_j(T)) = Var(\E(h_j(T) \vert S)) + \E(Var(h_j(T) \vert S)) \geq Var(g_j(S))
\end{align}
$$</div>

<p>Hence all the inequalities actually take equations, $Var(h_j(T) \vert S) = 0$. We deduce that</p>

<div class="kdmath">$$
\E((h_j(T) - \E(h_j(T) \vert S))^2 \vert S) = 0,
$$</div>

<p>hence $h_j(T) = \E(h_j(T) \vert S) = g_j(S)$. Hence $T_j = \tan(\arctan(T_j)) = \tan(g_j(S))$, $T$ is indeed minimal. $\square$</p>

<p>Here is one theorem for determining completeness, however in practice it’s more often to just use the definition.</p>

<p><strong>Thm.9</strong> Suppose that $(X,\sF,P)$ is an exponential family which is full-rank and $\eta(\theta) = \theta$, then $T$ is sufficient and complete.</p>

<p>The proof use some properties of the MGF (moment generating function), which we will admit. $\square$</p>

<p>The completeness help us determine some independence between random variables. To achieve this, we define first the ancillary statistics.</p>

<p><strong>Def.10</strong> A statistic $T$ is called <strong>ancillary</strong> if for any nonnegative Borel function $h$, $\E(h(T))$ doesn’t depend on the parameter $\theta$. It is called <strong>first-order ancillary</strong> if $\E(T)$ doesn’t depend on the parameter. $\square$</p>

<p>Remark. The statement above remains true for bounded or $L^1$ Borel function $h$. See the remark of Def.2.</p>

<p><strong>Thm.11 (Basu)</strong> Suppose that $V$ is <strong>ancillary</strong>, and $T$ is sufficient and complete. Then for any $\theta$, $V(x)$ and $T(x)$ are independent.</p>

<p>Proof. For any bounded Borel function $f$, $\E(f(V))$ doesn’t depend on $\theta$, hence can be viewed as a constant. Since</p>

<div class="kdmath">$$
\E(\E(f(V)\vert T) - \E(f(V))) = 0,
$$</div>

<p>$\E(f(V)\vert T) = \E(f(V))$ for any $f$. By the properties of conditioning, $V$ is independent to $T$. $\square$</p>

<p>Example: As a direct consequence, suppose that $X_1,\dots, X_n$ are i.i.d. variables of distribution $\text{Exp}(a,\theta)$:</p>

<div class="kdmath">$$
f_{(a,\theta)}(x) = \frac{1}{\theta} \exp(-\frac{x - a}{\theta}) 1_{x\geq a}
$$</div>

<p>Then for any $1\leq k \leq n$, the three variables</p>

<div class="kdmath">$$
\frac{X_{(n)} - X_{(k)}}{X_{(n)} - X_{(n-1)}}, X_{(1)}, \sum_{i=1}^{n} {(X_i - X_{(1)})}
$$</div>

<p>are independent.</p>]]></content><author><name></name></author><category term="probability-and-statistics" /><summary type="html"><![CDATA[note: statistical inference (1)]]></summary></entry><entry><title type="html">Note: conditional expectation</title><link href="/probability-and-statistics/2026/07/11/note-conditional-expectation.html" rel="alternate" type="text/html" title="Note: conditional expectation" /><published>2026-07-11T15:00:00+00:00</published><updated>2026-07-11T15:00:00+00:00</updated><id>/probability-and-statistics/2026/07/11/note-conditional-expectation</id><content type="html" xml:base="/probability-and-statistics/2026/07/11/note-conditional-expectation.html"><![CDATA[<p>The conditioning seems to be widely used in the theory of statistics, hence it might be useful to learn its basics before straightly diving into statistics.</p>

<div class="kdmath">$$
\newcommand{\P}{\mathbb{P}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\s}{\sigma}
\newcommand{\A}{\mathscr{A}}
\newcommand{\B}{\mathscr{B}}
$$</div>

<p>We firstly give several definitions of conditioning:</p>

<p><strong>Def.1 (Conditioning of $L^1$ variable)</strong> Suppose the space of probability $(\Omega, \mathscr{A}, \P)$. Given a random variable $X \in L^1(\Omega)$ and $\s$-algebra $\B \subset \A$, the conditional expectation of $X$ given $\B$ is uniquely (in a.e. sense) defined by a $\B$-measurable random variable $\E(X\vert \B) \in L^1$, such that for any $\B$-measurable bounded random variable $Z$,</p>

<div class="kdmath">$$
\E(XZ) = \E(\E(X\vert \B) Z).
$$</div>

<p>To demonstrate this, we consider the measure on $(\Omega, \B)$ defined by $B \mapsto \int_B X \P(d\omega)$, which is a signed measure controlled by $\P$. By the Radon-Nikodym theorem, there exists a $\B$-measurable function $f$ that the measure defined above is $f \cdot \P$. We denote $\E(X \vert \B) = f$, and the statement above can be proved by approximating $Z$ with sums of characteristic functions $1_B$.</p>

<p>For arbitrary $X \in L^1$, it suffices to decompose $X$ into its positive and negative parts, and go through the same proof. The uniqueness of $\E(X \vert \B)$ easily follows. $\square$</p>

<p><strong>Def.2 (Conditioning of nonnegative variable)</strong> Given a random variable $X \geq 0$ and $\s$-algebra $\B$, we can define the nonnegative $\B$-measurable variable $\E(X\vert \B)$ such that for any nonnegative $\B$-measurable random variable $Z$,</p>

<div class="kdmath">$$
\E(XZ) = \E(\E(X\vert \B) Z). \square
$$</div>

<p>The concrete construction is to consider $0\leq X_1\leq X_2 \leq \cdots \rightarrow X$, such that each $X_i$ is bounded. Then $\E(X_i\vert \B)$ converge to the demanded $\E(X\vert \B)$.</p>

<p>Note that even if $X$ is finite a.s., its condition expectation can equal to $+\infty$ a.s..</p>

<p>Generally, the conditioning on a variable $X$ is somewhat taking its average value on every set of points which can’t be distinguished by $\B$. When $\B$ is induced by another random variable $Y$, we denote the conditioning by $\E(X\vert Y)$. In fact, there is a unique (in a.e. sense) Borel function $f$ that $\E(X\vert Y) = f(Y)$, according to the following lemma, whose proof is fully measure-theoretic and technical:</p>

<p><strong>Lem.3 (Doob-Dynkin)</strong> Suppose that $T: \Omega \rightarrow (\Omega’, \mathscr{M})$, where $(\Omega’, \mathscr{M})$ is a space with its $\s$-algebra. We define the $\s$-algebra on $\Omega$ by $\sigma(T) := T^{-1}(\mathscr{M})$. Suppose $f: \Omega \rightarrow \mathbb{R}$. (We consider the Borel algebra instead of the Lebesgue one). Then,</p>

<p>$f$ is measurable if and only if there exists $g$ measurable, $f = g\circ T$. $\square$</p>

<p>Hence the conditioning of $X$ given another variable $Y$ is a variable $f(Y)$ which best approximates $X$.</p>

<p><strong>Prop.4</strong> When $X$ is in $L^2$, the conditioning of $X$ can also be realized by orthogonal projection: $L^2(\A)$ is a Hilbert space, and $L^2(\B)$ is its closed subspace. By definition, for any $Z \in L^2(\B)$, $\E(Z (X - \E(X\vert \B))) = 0$, hence $\E(X\vert \B))$ is the orthogonal projection of $X$. $\square$</p>

<p>Here are some other complementary definitions: the conditional variance and the conditional probability:</p>

<p><strong>Def.5</strong> For $X \in L^2$.</p>

<div class="kdmath">$$
Var(X\vert \B) := \E(X^2 \vert \B) - \E(X \vert \B)^2.
$$</div>

<p>For an event $A$,</p>

<div class="kdmath">$$
\P(A \vert \B) := \E(1_A \vert \B). \square
$$</div>

<p>Now there are some general properties of conditioning:</p>

<p><strong>Prop.6</strong></p>

<ul>
  <li>$\E(\E(X\vert \B)) = \E(X)$. (Total expectation)</li>
  <li>If $X$ is $\B$-measurable, $\E(X\vert \B) = X$.</li>
  <li>$\lvert \E(X\vert \B) \rvert \leq \E(\lvert X \rvert \vert \B)$.</li>
  <li>$\B_1 \subset \B_2$, then $\E(\E(X \vert \B_2) \vert \B_1) = \E(X \vert \B_1)$.</li>
</ul>

<p>(Conditional expectation looks like expectation:)</p>
<ul>
  <li>$X_n \geq 0$, then $\E(\text{lim inf } X_n \vert \B) \leq \text{lim inf } \E(X_n \vert \B)$.</li>
  <li>$f\geq 0$ convex, and $X \in L^1$, then $\E(f(X) \vert \B) \geq f(\E(X \vert \B))$. $\square$</li>
</ul>

<p><strong>Prop.7 (Independence)</strong> $\B_1$ and $\B_2$ are independent if and only if, for any $\B_2$-measurable positive variable $X$,</p>

<div class="kdmath">$$
\E(X\vert \B_1) = \E(X) \square
$$</div>

<p>The conditioning $\E(X\vert Y)$ is easy to compute, when the total space is discrete, or $X$ is already a function of $Y$, or when $(X,Y)$ has a density:</p>

<p><strong>Prop.8 (Computation in the density case)</strong> Suppose the density of $(X,Y)$ is $p(x,y), x \in \mathbb{R}^m ,y \in \mathbb{R}^n$. Let the density of $Y$ be $q(y) = \int p(x,y) dx$. For nonnegative Borel function $h$, Let</p>

<div class="kdmath">$$
\phi(y) = \frac{1}{q(y)} \int {h(x) p(x,y) dx} \text{ if } q(y)\neq 0
$$</div>

<p>(If $q(y)= 0$, $\phi(y)$ can be arbitrary) Then $\E(h(X)\vert Y) = \phi(Y)$. $\square$</p>

<p><strong>Prop. 9</strong> Under the same hypothesis of the preceding proposition, for $y \in \mathbb{R}^n$, define the measure of probability:</p>

<div class="kdmath">$$
\nu(y,dx) =
\begin{cases}
\frac{1}{q(y)} p(x,y)dx, \text{ if } q(y)>0, \\
\delta_0(dx), \text{ if } q(y) = 0
\end{cases}
$$</div>

<p>Then for any nonnegative Borel function $h$,</p>

<div class="kdmath">$$
\E(h(X,Y)\vert Y) = \int_{\mathbb{R}^m} h(x,Y) \nu(Y,dx).
$$</div>

<p>Proof. By Doob-Dynkin lemma, it suffices to verify that for any nonnegative Boren function $f$,</p>

<div class="kdmath">$$
\begin{align}
\E(h(X,Y)f(Y)) = \int h(x,y) f(y) p(x,y) dx dy \\
= \int_{\mathbb{R}^n} f(y) q(y) (\int h(x,y) \nu(y,dx)) dy \\
= \E(((x,y) \mapsto \int_{\mathbb{R}^m} h(x,y) \nu(y,dx)) \cdot f(Y)) \square
\end{align}
$$</div>

<p>Remark. The two propositions above can be extended to any Borel $h$ with good integrability conditions. Just write $h = h_+ - h_-$ and finish the proof.</p>]]></content><author><name></name></author><category term="probability-and-statistics" /><summary type="html"><![CDATA[The conditioning seems to be widely used in the theory of statistics, hence it might be useful to learn its basics before straightly diving into statistics.]]></summary></entry></feed>