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

rolling calcs checks #9

Closed
dpopadic opened this issue May 27, 2020 · 3 comments
Closed

rolling calcs checks #9

dpopadic opened this issue May 27, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@dpopadic
Copy link
Owner

Rolling functions double checks.

looking at Japanese league in separation we get the following factor data for goal superiority factor with k=3 (lagged):
image

However, when performing calculations across leagues we get the following:

image

@dpopadic dpopadic added the bug Something isn't working label May 27, 2020
@dpopadic dpopadic self-assigned this May 27, 2020
@dpopadic
Copy link
Owner Author

dpopadic commented May 27, 2020

Previous season games for the team kobe are taken into account whereas the 1st 3 get neutralised for new entrants into the league:

image

Hence, the calculations DO NOT seem correct. Note that this is not lagged here - so when comparing you need to look 1 date further above. For example, for the following dates it should look like:
2019-08-23: +3
2019-08-31: +8

@dpopadic
Copy link
Owner Author

The issue is when neutralising the scores for new entrants via neutralise_scores. The function performs its tasks as required. However, there seems to be an issue with the data.

kobe is in 2 different leagues (Japan J1 League, Japan J-League) in the same season (2019).

@dpopadic
Copy link
Owner Author

Leaving it for now since it's doing what it is supposed to do. Concluding that modelling and factor construction by league is preferred at this stage due to this and other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant