I have the following scatter plot in Google Sheets and I would like to add a line that averages all my points.
Can I do that and if yes, how?
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.Sign up to join this community
First, calculate the linear regression factors: y=ax+b with the following formula:
Then add another column next to the y-axis and name it calculated y-axis. Build the following formula to calc. the y-axis and copy that for all x-values.:
Next is a piece of cake. Add the calculated y-axis to the existing data range or add it seperately.
UPDATE: I've added the calculated mean value as well, in order to be absolutely sure to have answered your question properly, see plot:
See example file for more details: plot regression example