Trendline equation incorrect (Numbers)

I made a scatter plot in Numbers and drew a linear trendline which by eye is a good fit to the data. Then I displayed the associated equation, but the equation it displays does not correspond to the trendline. To prove this to myself, I made a new column with the equation and plotted it, and it's very clearly wrong. I also copied the data into Google Sheets, repeated the process, and plotted the trendline Sheets gives me which appears correct within precision. I've included screenshots below.


Does anyone have any ideas for how this might be something I'm doing incorrectly? Or is this just a bug in Numbers?


Posted on Apr 4, 2019 8:43 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 4, 2019 12:27 PM

I found a mistake that I made which solved the problem, though in a way I find unsatisfying. Instead of choosing "2D Scatter" as I had intended, the plot was "2D Line" type. I would expect a "2D Line" type to be able to do this, but apparently it can't. Changing the plot type to "2D Scatter" gave me the correct equation for the trendline.


S.M.

8 replies
Question marked as Top-ranking reply

Apr 4, 2019 12:27 PM in response to sssim

I found a mistake that I made which solved the problem, though in a way I find unsatisfying. Instead of choosing "2D Scatter" as I had intended, the plot was "2D Line" type. I would expect a "2D Line" type to be able to do this, but apparently it can't. Changing the plot type to "2D Scatter" gave me the correct equation for the trendline.


S.M.

Apr 4, 2019 2:18 PM in response to sssim

All the charts other than scatter are category charts. On a category chart, the X axis is text labels, all evenly spaced. They might as well be letters or words. The trendline on that line chart doesn't care what your X axis "values" are, it uses 1,2,3, etc. . If you replace your X values in your table with 1,2,3 etc, the line works out perfectly.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Trendline equation incorrect (Numbers)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.