First of all why give write permission to an LLM ? Especially in this case of analysis.
Secondly, isn't it more simple and accurate to write a good old code, even with the help of AI, to just verify algorithmically the data points ?
So you don't have to wrestle with hallucinations.