![]() |
TamperMonkey script to analyze district standings and predict DCMP invitations
I wrote a TamperMonkey script that will run on the district standings page of your choice and make a very crude attempt at identifying those teams that are in, likely in, on the bubble, likely out and out.
It's located here: https://github.com/BHSRobotix/TamperMonkeyScripts You need the Chrome extension TamperMonkey and the script at the github link above. I set it up for the New England district - if you want to use it elsewhere, you would have to modify the @match parameter on line 7 to match the URL for the district you are interested in. The biggest reason I am bringing it to public attention is that I have no idea how to do a real statistical analysis, and so my system is very crude. I'd be interested in hearing how to better go about predicting teams' second event score and what the invitation cutoff might be. I've tried to modularize a little so people can just change the right functions but it's likely there is not enough or the right data being passed. I'm interested in feedback. |
Re: TamperMonkey script to analyze district standings and predict DCMP invitations
Per a recent (last?) team update, the NE district invite cutoff will be 64 teams.
That will be the top 64 teams by quality points unless a team that's outside of the top 64 gets an invite to champs through other means (district chairmans award). If that happens then I believe the cutoff by rank moves up. I've done an analysis independently, and determined the cutoff would be around 63 quality pts. I took the average difference in points scored for all teams who played two events. On average teams improve their first event score by 3pts. For all teams that haven't played their 2nd event, I just took their first event score plus 3, then sorted all by pts. This oversimplifies the problem, as some teams will compete in more than two events, the more they play the better they will likely perform. They'll end up pulling available points out of the pool available for teams who haven't played in two events yet... But the above method was a quick way I cane up with determining rank. |
Re: TamperMonkey script to analyze district standings and predict DCMP invitations
I think the numbers that you have are not terribly far off for New England.
I've also had a script to do this for some time. It's set up to automatically come up with estimates for any of the districts without any magic numbers. I've previously shared it here: http://www.chiefdelphi.com/forums/sh...3&postcount=13 Appearantly that's not easy to find though so I've put it on github: https://github.com/errorcodexero/standing_predictor I welcome pull requests. For comparison, here's the output that I get: Key: Code:
in=will have enough points to make it inCode:
Best-case points to make it to district cmp: 48 |
Re: TamperMonkey script to analyze district standings and predict DCMP invitations
Quote:
While your posts are awesome and much appreciated, I thought it would be neat to go to the district rankings page and have them automatically do what I wanted right in the browser - the beauty of Grease - er - TamperMonkey. (The original name is so much better!) My son is taking Python - with your permission, when I get a chance (probably next season at this point) I will, with his help, translate your algorithm into Javascript. |
Re: TamperMonkey script to analyze district standings and predict DCMP invitations
Quote:
How do you run a TamperMonkey script anyway? I tried installing it and got a page that looked IDE-like so I copied your code in but then I wasn't sure what to do next. I haven't been keeping up on the latest Javascript stuff, so I feel like there's probably some security rules that will prevent this, but is it possible to make a webpage that loads a remote page and then parses it? Can you make an iframe and then mess with its contents? Could this be done with just a normal webpage? I feel like the less barriers to entry for someone running the script the more useful it will be. For example, I don't know whether anyone besides me has tried to run my script despite it being publicly available for years. I wonder if ultimately the right thing is to put a CGI script together on a server someplace. What do you think? Either way, feel free to copy the algorithm. And I know it's a little sparse on comments so I'm happy to answer questions about what it's doing. |
Re: TamperMonkey script to analyze district standings and predict DCMP invitations
Quote:
Quote:
|
| All times are GMT -5. The time now is 09:05. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi