Archive for final exam

ChatGPT’ed Monte Carlo exam

Posted in Books, Kids, R, Statistics, University life with tags , , , , , , , , , , on January 22, 2026 by xi'an

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!

last exams

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

ChomGPT

Posted in Books, pictures, University life with tags , , , , , , , , on April 1, 2023 by xi'an

I got pointed out at an interesting NTY editorial of March 8, 2023, on ChatGPT written by Noam Chomsky, Ian Roberts and Jeffrey Watumull.

“we fear that the most popular and fashionable strain of A.I. — machine learning — will degrade [linguistics] and debase our ethics by incorporating into our technology a fundamentally flawed conception of language and knowledge.”

Starting with a quote of Jorge Luis Borges, most appropriately for the dystopian prospects brought by the new chatbots. And seeing the arrival of these machines as something trivial that operates in contrast with the human mind by making use of terabytesque amounts of data and (cleverly) extrapolating to suit the question. Which is to state that they are merely (?) much better interfaces at reproducing patterns found in their data bases. This remains a technical feat but given the lack of reliability of their output (cf my exam answers) and the correlated lack of uncertainty in their assessment, they are very much useless at explanations. (But sometimes usefull as typewriting monkeys for recommendation letters.)

“The crux of machine learning is description and prediction; it does not posit any causal mechanisms or physical laws.”

The second part of the tribune points out the amorality of such platforms, unable to reach a moral position. This is illustrated by Q&As about the morality of terraforming an other planet (which I cannot connect with morality if there is no sentient life on that planet). While I see the point as a fundamental distinction between humans and AIs, I would feel uncomfortable with the latter producing moral judgements as this would imply a choice of moral rules in their training, as there is no universal moral ground beyond the “obvious”… (Actually, by presenting arguments in an authoritative manner, rarely with provisions for being wrong or incomplete, ChatGPT is agreeing on lying by omission!)

“Given the amorality, faux science and linguistic incompetence of these systems, we can only laugh or cry at their popularity.”

a neat EM resolution

Posted in Books, Kids, Statistics, University life with tags , , , , , , on February 3, 2021 by xi'an

Read (and answered) this question on X validation about finding the maximum likelihood estimator of a 2×2 Gaussian covariance matrix when some observations are partly missing.  The neat thing is that, in this case, the maximisation step is identical to the maximum likelihood estimation of the 2×2 Gaussian covariance matrix by redefining the empirical covariance matrix into Z and maximising

-n\log|\Sigma|-\text{trace}(Z\Sigma^{-1})

in Σ. Nothing involved but fun to explain, nonetheless. (In my final exam this year, no student even approached the EM questions!)

factorisation theorem on densities

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

Another occurrence, while building my final math stat exam for my (quarantined!) third year students, of a question on X validated that led me to write down more precisely an argument for the decomposition of densities in exponential families. Albeit the decomposition is somewhat moot (and lost on the initiator of the question since this person later posted an answer ignoring measures), as it all depends on the choice of the dominating measures over X, T(X), and the slices {x; T(x)=t}. The fact that the slice does depend on t requires the measure to accept a potential dependence on t, in which case the conditional density wrt this measure can as well be constant.