If you can't get a modern LLM to generate a simple linear regression I think what you have is a problem between the keyboard and the chair...