Archive for St Kilda

statistical accuracy of neural posterior and likelihood estimation

Posted in pictures, Running, Statistics, Travel, University life with tags , , , , , , , , , , , , on March 17, 2025 by xi'an

As I have been aiming at mentioning this news for quite a while, David Frazier, Ryan Kelly, Christopher Drovandi, and David Warne arXived last November a paper that parallels our paper (with David and Gael) on ABC consistency and some earlier papers of theirs for synthetic likelihood in the case of neural posterior approximations, under similar conditions (see, e.g., Assumptions 1 and 2), with potential reduced computational cost in some situations.

“NLE requires additional MCMC steps to produce a posterior approximation, whereas NPE produces a posterior approximation directly and does not require any additional sampling”

Convergence is achieved when the neural  learning size grows fast enough with the sample size. And when the tolerance decreases fast enough with respect to the convergence rate of the summary statistic. Two options are possible, that is either approximating the likelihood and then exploiting this approximation in an MCMC algorithm, or directly approximating the posterior distribution, as a function of of the summary statistic Sn (rather than for the observed S⁰n), with arguments favouring the second option.

“if the intractable posterior Π(· | Sn) is asymptotically Gaussian a nd calibrated, then so long as νnγN = o(1), the NPE is also asymptotically Gaussian and calibrated”

where γN denotes the rate at which the neural approximation of the posterior converges to the ideal posterior (for the Kullback-Leibler divergence) in N the size of the learning sample. And νn is the rate of convergence of the statistic Sn to its asymptotic mean. The convergence result does not make explicit assumptions on the class of neural posteriors, but it requires that the observed statistic must fit within the range of the simulated values (a possibility illustrated in the paper with an MA(2) model that was already used in several of our papers (as I noticed when giving an ABC masterclass in Warwick this very week).

“While neural methods and normalizing flows are common choices for the approximating class Q, the diversity of such methods, along with their complicated tuning and training regimes, makes establishing theoretical results on the rate of convergence, γN,  difficult”

Under stronger and hard to check assumptions, namely on the minimaxity of the posterior density estimator within the class of locally β-Hölder functions, they recover a closed form γN . Which unravels how N should be chosen (with a surprising addition of the dimensions of the parameter θ and of the summary Sn. With a resulting explosion in the theoretical minimal value of N one should use. (And decent performances of the method with smaller values of N!) Concerning minimaxity, I have no intuition how this impacts the sparseness (lack thereof) of the neural networks that can be used.

I am wondering at strategies to remove superfluous statistics since their dimension matters so much and in detecting or evaluating the misspecification (or its complement, the compatibility, as discussed on page 31). But all in all this paper represents a massive addition to the consistency results for approximate Bayesian inference methods!

a journal of the conquest, war, famine, death, and chaos year

Posted in Books, Kids, pictures, Running, Travel with tags , , , , , , , , , , , , , , , , , , , , , , , , , , on February 15, 2024 by xi'an

Had to find a fifth horseman of the Apocalypse for 2024, and figured out that Terry Pratchett was the ultimate expert on these characters, witness

“The Four Horsemen whose Ride presages the end of the world are known to be Death, War, Famine, and Pestilence. But even less significant events have their own Horsemen. For example, the Four Horsemen of the Common Cold are Sniffles, Chesty, Nostril, and Lack of Tissues; the Four Horsemen whose appearance foreshadows any public holiday are Storm, Gales, Sleet, and Contra-flow.” Terry Pratchet, Interesting Times

Hence followed suit when he signaled Chaos as the fifth (part-time) horseman. In Thief of Time. (Incidentally, I do not remember ever finishing a single book from his Discworld series, despite several attempts and encouragements from fellow readers.) With the precision of “not [being] the chaos which can be used to draw pretty Mandelbrot patterns”.

Read The Bone Season by Samantha Shannon. While I did not like much the author’s later The Priory of the Orange Tree, bought in one of the many Montréal bookstores and read by Lac Saint-Jean, which I found very shallow and predictable [the book, not the lake!], with most of the tropes of the genre (e.g., ninja-like fighters, heroes uncovering long-lost magical artefacts, super-evil entity about to return to life/power, a few predestined characters saving the Universe), unrealistic events, all-too-convenient coincidences, with little efforts put in the construction of the world, of the magical rules, or of the political structure, I still picked this rather heavy volume in a St Kilda bookstore, in [misguided] prevision for the flight back to Paris and read it later over the Winter solstice break. It is actually much better and enjoyable, in terms of world building for certain, involving a modified history of our World, mostly Britain and Ireland, with a non-human dominant species in the background, a no-man’s land gothic Oxford surrounded by zombies (?), and a part of humanity endowed with paranormal powers. The characters have some depth as well, even when remaining somehow predictable and often repetitive, and the scenario is mostly solid, apart from the unraveling finale. (The Guardian pointed out a direct filiation to Charlotte Brontë’s Jane Eyre, which I certainly did not see coming.) I am unsure I am ready for the next six volumes in the series, though!

Watched Gyeongseong, a Korean TV series that is a mix of horror, period, WW II, sadistic, mad scientists, nationalist, colonialist, family, survival, love, comical, soapy, teary stories all at once! Gyeongseong [경성, capital city] being the name of Seoul during the Japanese occupation and the entire series takes place in a recreated city that resembles the one in other period series I watched. Still enjoyable with a complete suspension of belief (as the scenario accumulates convenient coincidences, clueless Japanese occupiers, and bullet proof main characters) and the acceptance of the cartoonesque nature of fights and innumerable deaths.

Exhalation [book review]

Posted in Books, Kids, pictures with tags , , , , , , , , , , , , , , , , , , , on January 18, 2024 by xi'an

Exhalation is a diverse and original collection of (more or less) short stories by Ted Chiang, published between 2007 and 2015 in different journals including Nature at the time Nature had a weekly one-page short story (of varying quality). This is science fiction in a sense, given that all stories involve impossible situations and a connection with science at a low technical level (no space opera). However, it is much closer to philosophy in my opinion in that the author builds upon an alternate reality to question ours, sometimes with remarkable prescience and a remarkable kindness towards his characters.

So, there is the time travel portal story that does not lead to paradoxes, even with temporal loops, but to a reflection on human nature. (Not my favourite but this first story got the Nebula Award, the Hugo Award, and the Seiun Award!) They are doomed universes, either because the pressure is slowly getting away, or because a lack of communication and awareness pushes one species towards extinction (with the side sad coïncidence of being associated with the soon to fall Arecibo dish!). There are social media killing free will but calling for resistance. And a novella on virtual entities (digients) turning more and more real, while the company that produced them goes bankrupt and their universe is no longer upgraded, which also brings a well-balanced discussion on whether or not they should become legal entities and be given freedom, resonating in opposition to the recent doomsaying warnings about AI taking over humanity. Plus reflecting on the hardships of parenting and teaching. There is a Victorian story of building a difference engine nanny, with terrible consequences on two successive generations. There is another story about the potential horror of having one’s entire life stored on line and accessible by sentient interfaces, negating the very notion of memory since both remembering and forgetting escape the individual. There is a pre-Copernician universe where everything literally fits the Bible creation, until it does not. And there is the case of a quantic collection of universes where alternate paths could be consulted, to the point of interacting with alternate selves, maybe a bit fuzzy in the scientific details, but again leading to deeper reflections on human nature. I read the book around my trip to Melbourne and back, which may explain for my highly positive reaction as I had plenty of free time and sunny days to enjoy reading in the planes, on the trams (where I nearly lost my wallet, rescued by the kindness of another passenger!), and in my St Kilda comfy rental, but I do very much recommend it. Especially for those with a scientific mind. Joyce Carol Oates wrote for The New Yorker a much longer and better argued analysis of Exhalation. when the book appeared.

[Disclaimer about potential self-plagiarism: this post or an edited version may eventually appear in my Books Review section in CHANCE.]

probably overthinking it [book review]

Posted in Books, Statistics, University life with tags , , , , , , , , , , , , , , , , , , , , on December 13, 2023 by xi'an

Probably overthinking it, written by Allen B. Downey (who wrote a series of books starting with Think, like Think Python, Think Bayes, Think Stats), belongs to this numerous collection of introductory books that aim at making statistics more palatable and enticing to the general public by making the fundamental concepts more intuitive and building upon real life examples. I would thus stop short of calling it “essential guide” as in the first flap of the dust jacket, since there exist many published books with a similar goal, some of which were actually reviews here. Now, there are ideas and examples therein I could borrow for my introductory stats course, except that I will cease teaching it next year! For instance, there are lots of examples related to COVID, which is great to engage (enrage?) the readers.

The book is quite pleasant to read, does not shy from mathematical formulae, and covers notions such as probability distributions, the Simpson, the Preston, the inspection, the Berkson paradoxes, and even some words on causality, sometimes at excessive lengths. (I have always been an adept of the concise church when it comes to textbook examples and fear that the multiplication of illustrations of a given concept may prove counterproductive.) The early chapters are heavily focussed on the Gaussian (or Normal) distribution. Making it appear as essential for conducting statistical analysis. When it does not, as in the ELO example, the explanations of a correction are less convincing.

I appreciated the book approach to model fit via the comparison of empirical cdfs with hypothetical ones. Also of primary interest is the systematic recourse to simulation, aka generative models, albeit without a systematic proper description. In the chapter (Chap 5) about durations, I think there are missed opportunities like the distributions of extremes (p 82) or the forgetfulness property of the Exponential distribution. Instead the focus is slightly diverging towards non-statistical issues on demography by the end of the chapter, with a potential for confusion between the Gomperz law and the Gomperz distribution. The Berkson paradox (Chap 6) is well-explained in terms of non-random populations (and reminded me when, years ago, when we tried to predict the first year success probability of undergrad applicants from their high school maths grade, the regression coefficient estimate ended up negative). Distributions of extremes do appear in Chap 8, if again seeking an ideal generic distribution seems to me rather misguided and misguiding. I would also argue that the author is missing the point of Taleb’s black swans by arguing in favour of a better modelling, when the later argues against the very predictability of extreme events in a non-stationary financial world… The chapter on fairness and fallacy (Chap 9) is actually about false positive/negative rates in different populations hence the ensuing unfairness (or the base fallacy). In that chapter there is no mention of Bayes (reserved for Think Bayes?!), but it is hitting hard enough at anti-vaxers (who will most likely not read the book). And does it again in the Simpson paradox chapter (Chap 10), whose proliferation is further stressed the following chapter on people becoming less racist or sexist or homophobic when they age, despite the proportion of racist/sexist/homophobic responses to a specific survey (GSS/Pew) increasing with age. This is prolonged into the rather minor final chapter.

Now that I have read the book, during a balmy afternoon in St Kilda (after an early start in the train to De Gaulle airport in freezing temperatures), I am a bit uncertain at what to make of it in terms of impact on the general public. For sure, the stories that accumulate chapter after chapter are nice and well argued, while introducing useful statistical concepts, but I do not see readers equipped enough to handle daily statistics with more than an healthy dose of scepticism, which obviously is a first step in the right direction!

Some nitpicking : the book is missing the historical connection to Quetelet’s “average man” when referring to the notion. And a potential explanation for the (approximate) log-Gaussianity of weights of individuals in a population through the fact that it is a volume, hence a third power of a sort.  Although birth weights are roughly Normal which kill my argument. I remain puzzled by the title, possibly missing a cultural reference (as there are tee-shirts sold with this sentence). It is the same as the name of a blog run by the author since 2011 and a fodder for the book. And the cover is terrible, breaking the words to fit the width making no sense, if I am not overthinking it! As often the book is rather US centric, although making no mention of US having much higher infant death rates than countries with similar GDPs when this data is discussed.

[Disclaimer about potential self-plagiarism: this post or an edited version will eventually appear in my Books Review section in CHANCE.]

St Kilda beach² [jatp]

Posted in pictures, Running, Travel with tags , , , , , , , , , , , , on December 5, 2023 by xi'an