This semester I was teaching a graduate course on Monte Carlo methods at Paris Dauphine and I decided to experiment how helpful ChatGPT would prove in writing the final exam. Given my earlier poor impressions, I did not have great expectations and ended up definitely impressed! In total it took me about as long as if I had written the exam by myself, since I went through many iterations, but the outcome was well-suited for my students (or at least for what I expected from my students). The starting point was providing ChatGPT with the articles of Giles on multi-level Monte Carlo and of Jacob et al on unbiased MCMC, and the instruction to turn them into a two-hour exam. Iterations were necessary to break the questions into enough items and to reach the level of mathematical formalism I wanted. Plus add extra questions with R coding. And given the booklet format of the exam, I had to work on the LaTeX formatting (if not on the solution sheet, which spotted a missing assumption in one of my questions). Still a positive experiment I am likely to repeat for the (few) remaining exams I will have to produce!
Archive for ChatGPT
ChatGPT’ed Monte Carlo exam
Posted in Books, Kids, R, Statistics, University life with tags AI, ChatGPT, final exam, graduate course, LaTeX, LLM, Monte Carlo Statistical Methods, multilevel Monte Carlo, R, unbiased MCMC, Université Paris Dauphine on January 22, 2026 by xi'anfAIrst contAIct
Posted in Books, Kids, pictures, Statistics, University life with tags ChatGPT, coding, debugging, discipline, master project, plagiarism, Python, R, teaching, Université Paris Dauphine, University of Warwick on November 12, 2025 by xi'an
This semester, I—as a teacher—came across two cases of heavily reliance on AI by master students, mostly for coding purposes, to which I had rather surprisingly not been exposed before. (Except for this plagiarised thesis two years ago that essentially rewrote existing papers with synonyms and for which we had to get to the disciplinary committee!) One project made a massive advance within two days, with hundreds of lines of beautiful python code, and reasonable output, but with my student unable to explain the code or the method behind… And anther case homeworks involving coding came back with extremely clean codes as well. Meaning they could not be graded and we had to switch to another type of evaluation. Oh well, welcome ol’me into the new age (just for a few years!)
finite variance goals
Posted in Books, Statistics, Travel, University life with tags ChatGPT, control variates, importance sampling, infinite variance estimators, MathJax, Monte Carlo Statistical Methods, Pareto smoothed importance sampling, plugin, University of Warwick, Wordpress, xianblog on November 8, 2025 by xi'anDuring Johan Seger’s seminar in Warwick, on the control variate improvements he developed with Rémi Leluc (which PhD thesis committee I joined), Aymeric Dieuleveut, François Portier, and Aigerim Zhuman, I started wondering at whether or not a control variate could turn an infinite variance Monte Carlo estimate into a finite variance one. And asked… ChatGPT about it, with the above reply that is correct if not practical in the least since the example provided therein was reverse-engineering an infinite variance rv into a sum of an infinite variance rv considered as the control variate and a finite variance rv. As summarised below. In practice, this would mean replacing the integrand of interest with a much simpler integrand that shares the same asymptotic behaviour, not an easy task! (As an aside, I found out that enabling MathJax on this ‘Og would cost me $40 a month!)
5. Summary
✅ Theoretical possibility:
Yes — control variates can make an infinite-variance estimator finite, but only if the control’s sample path shares the same tail driver and its expectation is known.infinite variance rv
In real-world Monte Carlo, when X is heavy-tailed, you usually:
-
Split X = Y + (X-Y), where Y has known expectation and similar tails,
-
Use Y as control variate, and
-
Possibly combine with truncation, conditional expectation, or importance sampling for stability.



