Seeing a positive trend line on chart with Negative R^2. How can the trend be positive, but the correlation negative?

190 Views Asked by At

enter image description here

Hi! I have the data and scatterplot as shown. I fit a line to it.

The fit line looks positive and yields a function of:

y=0.125715x+(84.663831)

However, when I calculate the r squared I get -29.3. This is true if I calculate by hand or using a function.

How do I interpret this result? I agree that the chart looks noisey enough to not have a strong r squared, but the strong trend line is still there.

Is it possible this is a polynomial distribution and my r2 is not fit for this?

1

There are 1 best solutions below

0
On

The answer was a mistake in my use of the function. I was not using the model's predicted output, and instead reusing the initial data!