|
|
|
|
|
by simonw
695 days ago
|
|
I would expect most good LLMs to be able to implement statistical functions from scratch in languages like Go. I often ask ChatGPT Code Interpreter to implement algorithm from scratch in Python where the library needed for that function isn't present in the Code Interpreter environment - things like haversine distances for example. |
|
Implementing statistical functions from scratch can be rather dangerous – can you trust the implementation is correct? You can have an implementation which works well for a few obvious tests, but then performs poorly for edge cases (e.g. due to excessive accumulation of rounding error). Whereas, good chance the existing R implementation of whatever has been reviewed by expert statisticians.
LLMs can be great for saving time/energy when you have the domain expertise to validate their answers. But if you don't...