I have a question on calculating James-Stein Shrinkage factor in the 1977 Scientific American paper by Bradley Efron and Carl Morris, "Stein's Paradox in Statistics".
I gathered the data for the baseball players and it is given below:
Name, avg45, avgSeason
Clemente, 0.400, 0.346
Robinson, 0.378, 0.298
Howard, 0.356, 0.276
Johnstone, 0.333, 0.222
Berry, 0.311, 0.273
Spencer, 0.311, 0.270
Kessinger, 0.289, 0.263
Alvarado, 0.267, 0.210
Santo, 0.244, 0.269
Swoboda, 0.244, 0.230
Unser, 0.222, 0.264
Williams, 0.222, 0.256
Scott, 0.222, 0.303
Petrocelli, 0.222, 0.264
Rodriguez, 0.222, 0.226
Campaneris, 0.200, 0.285
Munson, 0.178, 0.316
Alvis, 0.156, 0.200
avg45
is the average after at bats and is denoted as in the article. avgSeason
is the end of the season average.
The James-Stein estimator for the average () is given by
where is the number of unknown means. Here there are 18 players so . I can calculate using avg45
values. But I don't know how to calculate . The authors say for the given data set.
I tried using both and for but they don't give the correct answer of
Can anybody be kind enough to let me know how to calculate for this data set?