Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Section 15.4.1: can't follow #19

Open
jcornickm opened this issue Oct 31, 2024 · 0 comments
Open

Section 15.4.1: can't follow #19

jcornickm opened this issue Oct 31, 2024 · 0 comments

Comments

@jcornickm
Copy link

Hello Rafa. Just to be clear: I write to report a difficulty other readers may be experiencing, and which you might take into account for future editions of IDS (part 2). I am NOT writing expecting you the problem I will report (I understand you are not my tutor).

I simply can´t follow the section.

Step 1 is easy enought: you run a regression of runs on all plays with data up to 2001:

Step 2: you calculate the average team plate appeareces per game in 2002 (pa_per_game).

Step 3: you indicate that ppa will be computed for players available in 2002, but I don´t see anywhere a filter so that only those players are taken into account.

But the calculation of g is what really throws me off: g = sum(pa)/pa_per_game.

The thing is: sum(pa) may vary acrross players of similar ability if some played more years than others, so what sense does it make to compare it between someone who played, say, ten years, and someone who played only two? And then that is divided by pa_per_game, which was calculated using data only for 2022?

It may be very well my fault, but I have been working at this for several hours, and can´t make heads or tails of it, but I thought I would let you know, just in case at least part of the fault lies with the text itself.

Best regards, JC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant