I would like to understand the difference between simple R², predicted R², and adjusted R². I have done several research and readings, but the difference is still not clear to me. I have even reached some conclusions, but I'm not sure about my understanding. R² is a metric that ranges from 0 to 1 and measures how much the independent variables explain the variability in the dependent variable. Predicted R² follows the same logic as R² but is applied to a dataset that was not used to train the model, meaning it is applied to test data.Adjusted R² is a modified version of R² that penalizes unnecessary predictor variables.
My question is: Given that the predicted R² is applied to new data, i.e., test data, does this mean that simple R² and adjusted R² should be applied to training data? Does that make sense? I've seen different discussions on this, but I haven't found a common consensus. The most I found is that applying R² to the training sample and comparing it to the result of applying it to the test sample helps detect overfitting. There are some discussions in the forum about this, but the issue of overfitting is not my concern. I want to understand which input data makes more sense to use for each metric, whether it's training and/or test data. If anyone has any articles or theoretical reference books to recommend for further study, I would also appreciate it.
I am assuming the following formula for R² and adjusted R². For predicted R², I haven't found a specific formula so I imagine it should be the same formula as R², with the only difference being the input data, where in R² it would be the training data, and in predicted R², it would be the test data, but again, I'm not sure if this conclusion is correct.