Archive for blackboard

math that jaX [on the ‘Og]

Posted in Linux, pictures, University life with tags , , , , , , , , , , , on November 4, 2026 by xi'an

Two weeks ago, I got sufficiently annoyed by the poor rendering of the base WordPress interface for \{\LaTeX\) formulas and equations to search for an easy move to ennabling MathJax. A few exchanges with Claude, ChatGPT, and Gemini later, it appeared that the solution was quite simple had been available for quite a while (!), and consisted in loading the MathJax-LaTeX plugin in my WordPress site, provided I adopted a personal version for its primary. Which is why it is now xianblog.fr instead of xianblog.wordpress.com, still operational. (I would have preferred xianblog.eu ou xianblog.world, but these suffixes were not proposed.) As a result, readers may see more math in the posts, and a renewed majority of paper discussions!

For instance, here is Claude’s lengthy rendering of the posterior median being the optimal Bayes estimator under absolute error loss:

Let \(\theta\) have posterior distribution \(\pi(\theta \mid x)\), and assume \(\mathbb{E}[\,|\theta| \mid x\,] < \infty\) so that the posterior expected absolute error \[ \rho(a) = \mathbb{E}\big[\,|\theta – a| \;\big|\; x\,\big] \] is finite for every \(a \in \mathbb{R}\). A posterior median is any \(m\) such that \[ P(\theta \le m \mid x) \ge \frac{1}{2} \quad \text{and} \quad P(\theta \ge m \mid x) \ge \frac{1}{2}. \] Claim: For every \(a \in \mathbb{R}\), \(\rho(a) \ge \rho(m)\).

Proof Case 1: \(a > m\). Compare \(|\theta – a|\) and \(|\theta – m|\) on three regions:

\[
|\theta – a| – |\theta – m| =
\begin{cases}
(a – \theta) – (m – \theta) = a – m, & \theta \le m, \\[4pt]
(a – \theta) – (\theta – m) = a + m – 2\theta, & m < \theta < a, \\[4pt]
(\theta – a) – (\theta – m) = -(a – m), & \theta \ge a.
\end{cases}
\]

On the middle region, \(\theta < a\) gives \(a + m – 2\theta > a + m – 2a = -(a – m)\). So for all \(\theta\),

\[
|\theta – a| – |\theta – m| \;\ge\; (a – m)\Big[\mathbf{1}\{\theta \le m\} – \mathbf{1}\{\theta > m\}\Big].
\]

Taking posterior expectations, which is allowed because both sides are bounded by \(|a – m|\):

\[
\rho(a) – \rho(m) \;\ge\; (a – m)\Big[P(\theta \le m \mid x) – P(\theta > m \mid x)\Big]
= (a – m)\Big[2\,P(\theta \le m \mid x) – 1\Big].
\]

Since \(a – m > 0\) and \(P(\theta \le m \mid x) \ge \frac12\), the right-hand side is \(\ge 0\). Hence \(\rho(a) \ge \rho(m)\).

Case 2: \(a < m\). By the symmetric argument, with the roles of the left and right tails swapped,

\[
|\theta – a| – |\theta – m| \;\ge\; (m – a)\Big[\mathbf{1}\{\theta \ge m\} – \mathbf{1}\{\theta < m\}\Big], \] so \[ \rho(a) – \rho(m) \;\ge\; (m – a)\Big[2\,P(\theta \ge m \mid x) – 1\Big] \;\ge\; 0, \] using \(m – a > 0\) and \(P(\theta \ge m \mid x) \ge \frac12\).

Case 3: \(a = m\). This case is trivial.

Therefore

\[
m \in \arg\min_{a \in \mathbb{R}} \; \mathbb{E}\big[\,|\theta – a| \;\big|\; x\,\big].
\]

too many marginals

Posted in Kids, Statistics with tags , , , , , , , on February 3, 2020 by xi'an

This week, the CEREMADE coffee room puzzle was about finding a joint distribution for (X,Y) such that (marginally) X and Y are both U(0,1), while X+Y is U(½,1+½). Beyond the peculiarity of the question, there is a larger scale problem, as to how many (if any) compatible marginals h¹(X,Y), h²(X,Y), h³(X,Y), …, need one constrains the distribution to reconstruct the joint. And wondering if any Gibbs-like scheme is available to simulate the joint.

the new building!

Posted in pictures, Travel, University life with tags , , , , , on October 22, 2018 by xi'an

The Department of Statistics at Warwick has moved to a new MSB building, next to the Zeeman building, with a lot of light and open space, including a sort of atrium in the centre. It remains to be seen how comfortable this new glassy structure will prove, in hot and cold weather, and how it will stand the test of years (months?!). It seems the place was not designed purposely for mathematicians and statisticians, as many are complaining of the lack of blackboards (and even of whiteboards!) versus an overwhelming number of voracious screens. (Funny enough, the early video selling the building included these blackboards!) And it is unclear how so many glass panes can be contributing to the carbon neutral goal. Still, so far, I enjoyed the light and luminosity of my office, but this may change in the rare event of a grey day… (And no indoor place to store bicycles! But I did recover my bike where I had left it last time.)

 

in the maths house [#2]

Posted in pictures, Travel, University life with tags , , , , , on April 22, 2016 by xi'an

in the maths house

Posted in pictures, Travel, University life with tags , , , , on April 21, 2016 by xi'an