I have to calculate the slope of a line based on a dataset of points with a height value.
I am doing this by calculating the slope over a raster created using the trend function (linear 1st order). when i create the raster using the trend function I get also an RMSE value and the chi^2 value. I understand how the RMSE value is created, but I dont understand how the chi^2 is calculated. Is there someone who can explain to me how this value is calculated, and/or can tell me how to find out the degrees of freedom so i can interpret this value?