Archive for binary tree

random variate generation with [finite] guarantees

Posted in Books, Statistics, University life with tags , , , , , , , , on August 17, 2025 by xi'an

I came across this paper by Feras A. Saad and Wonyeol Lee, to appear in Proc. ACM Program. Lang. It is calling for a finite precision assessment of random numbers generators. Rather than the “fictitious infinite-precision (Real-RAM)” model. With the following illustration

“Mironov (2012) demonstrates that floating-point effects in the Laplace random variate generator from existing software libraries can entirely destroy the real-world privacy guarantees of algorithms”

Their solution is to resort to finite precision computation of the CDF of a target distribution, and then to apply the inverse CDF transform to a chain of random bits. I did not go through any of the technical (gory) details of the implementation, presented as an optimised version of the original Knuth and Yao method, but the author compute the cdf of standard distributions from

“the GNU Scientific Library (GSL) by reusing high-quality CDF implementations. The built-in GSL Gaussian generators often have complex implementations spanning hundreds of lines of code, and each specify different output distributions which are all intractable to estimate. Indeed, any GSL random variate generator that makes just two (or more) calls to uniform is already intractable to analyze” 

and claim faster execution times, larger ranges of output, and a minimal overhead for extended-accuracy generators. I wonder if an MCMC study is under production towards handling intractable CDFs.

Approximation Methods in Bayesian Analysis [#3]

Posted in Mountains, pictures, Running, Statistics, Travel, University life with tags , , , , , , , , , , , , , , on June 23, 2023 by xi'an

My last day (#4) at the workshop, as I had to return to Paris earlier. A rather theoretical morning again, with Morgane Austern on (probabilistic) concentration inequalities on transport distances, far from my comfort zone if lively, Jason Xu on replacing non-convex penalisation factors to distances to the corresponding manifold, which I found most interesting if not directly helpful for simulating over submanifolds, and Hugo Lavenant on studying the impact of prior choice as merging of opinions, in the (Milanese) setting of completely random measures, with the surprise occurrence of a double bent for some choices. The afternoon session saw Andrew Gelman reflecting on multiscale modelling (sans slide et sans tableau) and Chris Holmes introduce the fundamentals of Bayesian conformal prediction, towards reaching well-calibrated (in a frequentist sense) Bayesian procedures by resorting to exchangeability and rank tests. I alas missed the other talks of the day.

In recap, this was a wonderful conference, with a perfect audience size, a diverse if intense program, and a lot of interactions. In addition, the short talk sessions worked very nicely, even at 22:10 after a long day. And attracted very strong audience, even at 22:10! Indeed, they were uniformly well-calibrated, time-wise, and with high clarity messages. To be repeated. As there were many newcomers to CIRM, they discovered the idiosyncrasies of the place and of its surrounding, mostly positively.

On the outdoor front, the week saw an overall moderately hot weather but a constant wind that prevented me from sleeping (well), but which helped with waking up before dawn to cycle or run to my open water pool! The sea remained reasonably choppy, so waves did not prevent my swimming.

Approximation Methods in Bayesian Analysis [#1]

Posted in Mountains, pictures, Running, Statistics, Travel, University life with tags , , , , , , , , , , , , on June 20, 2023 by xi'an

Interesting first day, if somewhat intense!, with Sylvia Richardson talking of divide & conquer strategies, which we had recently explored in our work on mixtures with Adrien and Judith. Then Jere Koskela (Warwick) on sufficient conditions for consistent inference on trees like Kingman’s coalescent. And in the afternoon Julia-Adela Palacios on tree estimation, with novel notions of tree distances and barycentre (soon to appear in Biometrika!). And Julyan Arbel on the notion and properties of priors within (deep) neural networks, following different asymptotics. On top of this, two fast sessions for people presenting their poster, to be attended tonight. And the usual early morning run to swim 25mn in one of the calanques… Luckily enough, Marseille is not too hot this week, feeling even nicer than Paris!

The CS detective

Posted in Books, Kids, Travel, University life with tags , , , , , , , on October 29, 2016 by xi'an

A few weeks ago, I received a generic email from No Starch Press promoting The CS Detective, and as I had liked their earlier Statistics Done Wrong, I requested a review copy of the book. Which I received in Warwick while I was there, last week. And read over my trip back to Paris. As it is a very quick read.

“The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.” T. Pratchett

The idea of the book is to introduce some concepts of tree searching algorithms through a detective-cum-magic story, a very shallow story if somewhat à la Terry Pratchett. (While this reference does not appear in the book, there are enough mentions made of turtles to suspect the filiation. Even though it is turtles all the way down. Hence I could not swear Frank Runtime was 100% inspired from Sam Vimes. But it rhymes.) I cannot say I am a bit fan of this approach as the story is an hindrance rather than an help, I do not find it particularly funny or enticing, and I keep wishing for the next concept to appear to end the current chapter and its inane plot. Of course, once the story is set aside, the book contains not that much in terms of search algorithms, because they all are limited to discrete tree structures. Namely, exhaustive, binary, breadth- and depth-first, iterative deepening, best-first, search algorithms, along with the notions of arrays, queues, stacks, and heaps. This fills about 50 pages of technical vignettes found at the end of each chapter…

So I end up wondering at what age this book would appeal to a young reader. Trying to remember from my own experience with summer vacation riddle and puzzle books, I would think the range 10-12 could be most appropriate although mileage will vary. Since the author, Jeremy Kubica, animates the Computational Fairy Tales blog with stories of the same flavour, you may start by tasting and testing this approach to popular science before getting the entire book…