Archive for Rivers of London

THAMES for mixtures, a reply from the authors

Posted in Books, pictures, R, Statistics, University life with tags , , , , , , , , , , , , , , on June 23, 2025 by xi'an

[Here is a reply to my comments on THAMES sent by the first author of the paper, Martin Metodiev. The above replica of the cover of Rivers of London is obviously unrelated with the reply or the original blog, beyond presenting a fantasy map of the Thames!]

Thank you for your review of our article! Adapting your previous work in this field has been a pleasure. Before I respond to your comments, I would like to emphasize that the simplicity of our estimator lies in its simple analytic expression (a truncated harmonic mean of reciprocal unnormalized posterior density values). Indeed, our package “thamesmix” (recently submitted to CRAN!) has a function to compute the marginal likelihood of any mixture model. This function requires only two parameters: the unnormalized log-posterior function (the logarithm of the prior plus the log-likelihood) and the MCMC simulations from the posterior.

Regarding your main comments:

1. “the evacuation of earlier methods as not simple or not universal enough is rather disingenuous. For instance, software that do not return (latent) allocation vectors can easily be post-processed.”

I could not find an example of post-process simulations on top of MCMC outputs applied to compute these methods. It sounds really interesting, and I would be happy to cite it. Is there a reference that you can recommend?

In any case, the point still stands. Most estimators which we cite with regards to this point do not just need allocation samplers, but also the analytic expressions of the distribution of the allocation vectors or the distribution of the data conditional on these allocation vectors that come with them. I do not think that a closed form of this distribution is available in general.

2.“the handling of the label switching issue—the reason why Larry Wasserman saw mixtures at the same magnitude of evil as tequila!—is problematic for several reasons.”

The fact that our estimator is invariant to label-switching is indeed the core of our method. The simple Gibbs sampler gets stuck in one mode, and this is why the classical version of bridge sampling is biased by a factor of G! in the simulation setting. As you point out, this is successfully resolved when using fully symmetric bridge sampling in the experiment section. However, the computation cost of this fully symmetric estimator rises super-exponentially with G, so I do not see how it could be evaluated for G=15, where the number of symmetric modes is equal to 15! (over one trillion). One of the main points of our article is that the symmetric THAMES can be evaluated in a feasible amount of time, even in such a high-dimensional multivariate setting.

3. “the (legitimate) purpose of using marginal likelihoods for selecting the number G of components is weakened by the intrusion of alternate proposals to assess G from the data”

I would like to point out that these alternate proposals do not in any way impact the definition of the THAMES. It is the simple definition given in Equation (5). They are only used to speed up the computation.

4. “several mentions are made of the other estimators being biased, which is indeed the case for bridge sampling (if not necessarily for importance sampling), but not necessarily a central issue”

The problem that we see with the classical, non-symmetric bridge sampling method in the setting of mixture models is not simply that it is biased. The problem is that the bias is persistent and often roughly equal to the factor of G! when the MCMC sampler failed to switch between modes. We have not had this experience with the THAMES: it converged even when the MCMC was stuck.

a journal of the conquest, war, [not exactly] famine, and death year

Posted in Books, Kids, pictures, Running, Travel with tags , , , , , , , , , , , , , , , , , , , , , , on December 11, 2023 by xi'an

Read [in French] Lesson of the Evil (悪の教典) by Yusuke Kishi, caught by the book strip including a France Inter praise…! The book and the subsequent manga and film appear to be very popular but it failed to impress me.  The trope of the assassin professor happens to be a fairly easy scenarist concept. This may be partly due to a very laborious translation into French, but the dialogues are not very credible, it is difficult to engage and develop empathy for the teenage victims (and even less for the assassin), especially after the nth murder. Hasumi’s impunity throughout his career assassin is completely unrealistic, his inner dialogue ridiculous, and the final evening of the story drawn out beyond boredom in every way. Also read the novella Winter’s Gifts by Ben Aaronovitch, an attempt at transplanting the spirit of Rivers of London to Lakes of Wisconsin. While the central character of Kimberley Reynolds is a success, with depth and wits, the story itself does not click, from the grandguignolesque monsters to the red herrings and the unconvincing resolution of the greatest menace by Kimberley. When an ice tornado strolls through your town, you don’t continue attending your pub or visiting the local library…

Cooked a lot of stir-fries both away and at home, returning to Fall veggies like cabbages and gourds, along local mushrooms. (Except in Martinique where we took advantage of ignames (yam), christophines (chayote), cooking bananas, gombos, sweet potatoes, dachines (taro), veggie chilis, and other local vegetables).

Watched Bodies, a British science-fiction series involving four detectives at different eras from 1890 till 2053 around the same incomprehensible murder, with a nice cast of diverse characters (and enjoyable London accents), but unable to stand time travel paradoxes till the very end. And obvious budget limitations that make past and future scenes somewhat limited. But, again, the actors are fantastic.

a journal of the twice Caribean year

Posted in Books, Kids, Mountains, pictures, Running, Travel with tags , , , , , , , , , , , , , , , , , , , , , , on November 24, 2023 by xi'an

Read the second volume of Aliette de Bodard’s series, The House of Binding Thorns, during the Martinique trip, which proved kind of a chore, disappointingly… Visited a nice bookstore in Fort-de-France, Kazabul, which was originally twinned with La Cas’A Bulles in Cayenne that I also visited when our daughter was residing there. But did not buy any new book or local vegetables to carry home since we were bringing back some of her gear for her imminent move to Marseille for a year or so. I also read Winter’s Gift, a Rivers of London novella by Ben Aaronovitch set in… Wisconsin, with a great central character but a poor supernatural challenge and ice-thin scenario. Had a daily run around Fort-de-France without really training since the topography is just too steep for that. And a few swimming bouts in a Caribbean sea way too hot at 32⁰ to be enjoyable. Plus a catamaran excursion to the north of the island, where after missing a substantial marlin the skipper fished a yellowfin tuna that we turned into sashimi on the spot. Apart from this unique moment, and a sample of poulet boucanné from a road stall, I mostly ate local fruits, primarily bananas of various kinds. And did not sample any of the local rums despite a few visits to distilleries…

 

a journal of the [tolerated] plague and [mostly] pestilence year

Posted in Books, Kids, Mountains, pictures, Travel, University life with tags , , , , , , , , , , , , , , , , , , , , , on August 31, 2022 by xi'an

Read Among Our Weapons by Ben Aaronovitch, the ninth installment in the Rivers of London urban fantasy series. Which I found superior to the earlier volumes. As the ninth novel in the series, it obviously shows some signs of fatigue in the relatively thin plot that painstakingly connects a series of no-spoilers with the Spanish Inquisition, in the convenient so convenient appearance of a new kind of magical being, and in the convoluted uncovering of this connection in the final pages. However, the witty remarks of Peter Grant still make me smile and his move to becoming a father is rather charming. Recommended for the comforting feeling of being reunited with a familiar.

Over the four week summer period “everyone” was away (on vacations), I managed to deal with long delayed projects, keep my Biometrika slate mostly clean, and work on an incoming grant. Plus, made an uninterrupted series of compotes from my neighbour’s fallen apples and rhubarb sticks from the local market, as I found a much faster way to bake them in the microwave oven, with no danger for kitchen pans! Observing in the process a phase transition phenomenon where the contents very suddenly change structure and the bowl overflows, despite my frequent stirring. And I found time to lazily bike with my wife on weekends to traffic-free Paris, incl. light dinners outside (except during heatwaves), like a nice and perfectly spicy Korean bulgogi near Denfert. Had some DIY experiences as well, incl. changing my 2000 Twingo car battery, which had run flat after at least three months of idleness (now that our children no longer drive it)! Which as usual induced several (dreaded) trips to the DIY store…

Watched Extraordinary Attorney Woo, which is a Korean TV series following an autistic attorney at law, which has some original features but leaves me uneasy about its rather charicaturesque depiction of autism. At least, addressing discrimination and sexism (albeit with mixed results, as in the stereotyped representation of both female heads of the law firms). And The Soul, a Taiwanese horror + sci-fi + noir movie whose foggy atmosphere was rather appealing but alas following a terrible scenario.

false value

Posted in Statistics with tags , , , , , , , , , , , on November 23, 2020 by xi'an

A very pleasant eighth volume in the Rivers of London series after a few so-so episodes! The relentless deadpan of Peter Grant is back full shape, the plot is substantial and gripping, new and well-drawn characters abound, and the story offers an original retelling of the Difference Engine. (Not that I have reservations about Gibbson’s plus Sterling’s 1990 version!) Including mentions of Jacquard’s loom, card fed organ automates, Ada Lovelace and Mary Somerville. Plus providing great satire on Ai companies with a hardly modified “Deep Thought” pastiche. Enjoyable all along and definitely a page turner that I read within three days..! And being strongly immersed in the current era, from the passing away of David Bowie to the dearful impact of Theresa May as home secretary. Presumably missing a heap of references to geek culture and subcultures, apart from Hitchhiker Guide to the Galaxy. And too many quotes to report, but some mentions of stats (“the Red Army had done a statistical analysis with demon traps just as they had with conventional minefields. The conclusions had been the same in both cases.” (p.50) and “Beverley climbed into the bath with a second-hand copy of Statistics for Environmental Science and Management” (p.69), which is a genuine book.) As often the end is a bit murky and a bit precipitated, but not enough to whine about. Recommended (conditional on having read the earliest ones in the series)!