A bug in regression predicted values
Posted: Wed Jun 14, 2023 12:34 am
I was preparing a seminar and accidentally stumbled upon an odd situation in SPSS. When there is a negative relationship between the predictor and the dependent variable in a simple regression, the calculated predicted value showed a negative perfect correlation (-1) with the original predictor in SPSS. This is a non-sense. When I draw the scatterplot between the IV (Positive Affectivity) and DV (Depression), it clearly showed a strong negative trend. But, when I draw the scatterplot in regression menu in SPSS using the predicted value on X and the DV on Y, the scatterplot showed a strong positive trend, which is also wrong.
I thought that the SPSS was in error and checked the same issue using jamovi. Well, surprisingly, I see exactly the same issue. The calculated predicted values showed a -1 correlation with the original predictor. When the IV and DV are positively related, I could not see the same issue. Please see the attached file.
I thought that the SPSS was in error and checked the same issue using jamovi. Well, surprisingly, I see exactly the same issue. The calculated predicted values showed a -1 correlation with the original predictor. When the IV and DV are positively related, I could not see the same issue. Please see the attached file.