Archive for ChatGPT

Bayes and the Fiddler

Posted in Books, Kids, pictures, Statistics with tags , , , , , , , on March 31, 2024 by xi'an

An ex se intellegitur from The Fiddler

You are given an urn containing 100 balls. N of them are red, and 100−N green, where N is chosen uniformly at random between 0 and 100 (inclusive). You take a random ball out of the urn—it just so happens to be red—and discard it. Is the next ball you pick, from among the 99 remaining balls, more likely to be red or green?

since this is Bayes or Laplace in action. Namely, since P(R,R⁰|N)=N(N-1)/100×99 and

P(R^1|R^0)=\sum_{N=0}^{100} P(R^1,N|R^0)

or

\sum_{N=0}^{100} P(R^1,R^0|N) \big/ \sum_{N=0}^{100} P(R^0|N)

the probability is,

1/99 \sum_{N=0}^{100} N(N-1) \big/ \sum_{N=0}^{100} N

which is equal to  2/3 (for any total number of balls) since

n(n+1)(2n+1)/6-n(n+1)/2=n(n+1)(2n-2)/6

by a variation of Gauss formula. Once again ChatGPT³ got it all wrong:

merely fiddlin

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

For any positive, base-10 integer N, define f(N) as the number of times you have to add up its digits until you get a one-digit number. Find the smallest whole number N such that f(N) = 4. Fiddler on the Proof

Although I first gave in to the R brute force attempt, it failed to return a value for N up to 10⁹, but the solution is obvious as f(N)=p iff F(s(N))=p-1. Since f(19)=2 and f(199)=3, a number N whose sum of digits is 199 is legit, for instance

f(99999999999999999999991)=4

where there are 22 9s. And although it gets a wee bit boring, here is the associated attempt by ChatGPT³

futuristic statistical science [editorial]

Posted in Books, Kids, Statistics, University life with tags , , , , , , , , , , , , , , , , , , , , , , on January 13, 2024 by xi'an

This special issue of Statistical Science is devoted to the future of Bayesian computational statistics, from several perspectives. It involves a large group of researchers who contributed to collective articles, bringing their own perspectives and research interests into these surveys. Somewhat paradoxically, it starts with the past—and a conference on a Gold Coast beach. Martin, Frazier, and Robert first submitted a survey on the history of Bayesian computation, written after Gael Martin delivered a plenary lecture at Bayes on the Beach, a conference held in November 2017 in Surfers Paradise, Gold Coast, Queensland, and organised by Bayesian Research and Applications Group (BRAG), the Bayesian research group headed by Kerrie Mengersen at the Queensland University of Technology (QUT). Following a first round of reviews, this paper got split into two separate articles, Computing Bayes: From Then ‘Til Now , retracing some of the history of Bayesian computation, and Approximating Bayes in the 21st Century, which is both a survey and a prospective on the directions and trends of approximate Bayesian approaches (and not solely ABC). At this point, Sonia Petrone, editor of Statistical Science, suggested we had a special issue on the whole issue of trends of interest and promise for Bayesian computational statistics. Joining forces, after some delays and failures to convince others to engage, or to produce multilevel papers with distinct vignettes, we eventually put together an additional four papers, where lead authors gathered further authors to produce this diverse picture of some incoming advances in the field. We have deliberated avoided topics which have excellent recent reviews— such as Stein’s method, sequential Monte Carlo, piecewise deterministic Markov processes— and topics which are still in their infancy, such as the relationship of Bayesian approaches to large language models (LLMs) and foundation models.

Within this issue, Past, Present, and Future of Software for Bayesian Inference from Erik Štrumbelj & al covers the state of the art in the most popular Bayesian software, reminding us of the massive impact BUGS has had on the adoption of Bayesian tools since its early introduction in the early 1990s (which I remember discovering at the Fourth Valencia meeting on Bayesian statistics in April 1991). With an interesting distinction between first and second generations, and a light foray of the potential third generation, maybe missing the role of LLMs in coding that are already impacting the approach to computing and the less immediate revolution brought by quantum computing. Winter & al.’s The Future of Bayesian Computation [TITLE TO CHANCE] is making a link with machine learning techniques, without looking at the scariest issue of how Bayesian inference can survive in a machine learning world! While it produces an additional foray into the blurry division between proper sampling (à la MCMC) and approximations, additional to the historical Martin et al. (2024), it articulates these aspects within a (deep) machine learning perspective, emphasizing the role of summaries produced by generative models exploiting the power of neural network computation/optimization. And the pivotal reliance on variational Bayes, which is the most active common denominator with machine learning. With further entries on major issues like distributed computing, opening on the important aspect of data protection and guaranteed  privacy. We particularly like the clinical presentation of this paper with attention to automation and limitations. Normalizing flows actually link this paper with Heng, Bortoli and Doucet’s coverage of the Schrödinger bridge, which is a more focussed coverage of recent advances on possibly the next generation of posterior samplers. The final paper, Bayesian experimental design by Rainforth & al., provides a most convincing application of the methods exposed in the earlier papers in that the field of Bayesian design has hugely benefited from the occurrence of such tools to become a prevalent way of designing statistical experiments in real settings.

We feel the future of Bayesian computing is bright! The Monte Carlo revolution of the 1990s continues to be a huge influence on today’s work, and now is complemented by an exciting range of new directions informed by modern machine learning.

Dennis Prangle and Christian P Robert

Nature snapshots [10 Aug 2023]

Posted in Statistics with tags , , , , , , , , , , , , , on November 12, 2023 by xi'an

Many gems in the 10 Aug issue I found home back from Western Canada. Starting with the cover theme related to the fascinating paper Solid-body trajectoids shaped to roll along desired pathways by Sobolev et al. which shows that there exist 3D objects corresponding to any infinitely periodic trajectory and furthermore that such objects can be printed to this effect (watch the great videos!). Although they are more likely to be of a period larger than 1, i.e. producing several copies of the trajectory basis before returning to their original contact point. Amazingly, self-intersecting trajectories may also be produced.

Plenty of AI entries, like Artificial-intelligence search engines wrangle academic literature (as an advanced Google Scholar) and Publishing companies (like Elsevier) developing ChatGPT-like search engines. (While trying to stay clear from fake references!). Plus a long enquiry on Rules to keep AI in check: nations carve different paths for tech regulation about the different approaches envisioned by the EU, the USA, and China, with little practical advance so far for the first two. (While the UK plans its own AI safety summit in Bletchley Park this Fall.)

And an article on how Chinese students are starting to feel less inclined to study abroad. And not only in connection with the COVID pandemic. Or the US growing restrictions on student visas. But mainly because of the quickly growing attractivity of mainland China and Hong Kong universities. (The article states that “For every 1,000 PhDs that have been denied [visa] by the US government, US institutions will lose nearly US$1 billion in tuition fees”, but this does not sound highly relevant since most PhD tuitions are paid from supervisors’ grants, while students from other country may substitute for those denied visa.)

Doug’s scared…

Posted in Books, Kids, pictures with tags , , , , , , , , , , , , , on August 1, 2023 by xi'an

Following a link from a NYT editorial, I came upon a transcribed interview of Douglas Hofstadter on his fright about the current nature of AI and in particular of the impact of (surprise, surprise!) ChatGPT. When the French translation of Gödel, Escher, Bach came out in 1985, it became an immediate success, I read it, enjoyed it and recommended to my inner circles. To the point of my superior in the Navy (during the year I was drafted in the French Navy) saw the cover (for I was also reading it in the Navy office!), browsed through it and asked me to… reproduce the sculpture (a 3D ambigram) for the logo of his own company (for he moonlighted several days a week at an hologram company he had created). Which proved rather straightforward (but I ignore if the result was ever exploited). While I am now much less reserved about the book, which I feel is quite pretentious and self-congratulary, without delivering a particularly deep message, I can related to my earlier self excitement when faced with a scientific book involving many themes of interest for me, pleasant and easy to read, if sometimes mired in heavily making a point. This is obviously a personal view and others, like the science vulgariser launched a celebration for the 40 years of the book. (Coincidence: I had a chat & a beer with a former high school teacher of his’ in Normandy a week before writing this post.)

“it almost feels that way, as if we, all we humans, unbeknownst to us, are soon going to be eclipsed, and rightly so, because we’re so imperfect and so fallible.”

“it feels as if the entire human race is going to be eclipsed and left in the dust soon”

The tone of the interview is hilariously super catastrophic, foreseeing the replacement of humans by their “successors” within a few years, nothing less. There is no deep argument in the discussion, only that AIs are now playing chess and Go better than humans, can provide apparently reasonable answers to many questions, at a speed surpassing human faculties, including poetry or coding. Which proves such a reducing modelling of what constitutes a human being and the meaning of consciousness. (The last line of the interview “YouTube transcript cleaned up by GPT-4 & checked against audio” is hilarious, whether it is intended to be so or not.)