Season-to-Date Stats
This evening I completed work to allow Owners to track their Kilg.us teams’ season-to-date statistics. This has been a popular request throughout the past year. Your team’s season-to-date stats are now available from each Team page by clicking on the “Season-to-Date” tab just below your team name. Clicking the “Today” tab will return you to your live, up-to-the-minute daily stats.
Season-to-Date statistics are for the players CURRENTLY on your roster. Kilg.us does not track the changes you make to your roster throughout the season. The Season-to-Date statistics center around a Strat-O-Matic scoring model. I’ve never played Strat-O-Matic, but–as described to me–roster moves aren’t allowed during the season. Rosters are locked in before the season and only change in the off-season.
For those playing in a standard fantasy baseball league, these Season-to-Date stats will be different than your fantasy team’s total stats (accumulating stats for players in your lineup on any given day). For Owners in this situation, season-to-date stats will make it a touch easier to view all your players’ season performance, but won’t be of direct use when tracking your team’s performance.
Adding Season-to-Date stats wasn’t a trivial matter. I had to make changes to more than a half-dozen of Kilg.us’ most important objects. In addition to changes to Kilg.us objects, the database was also expanded to include tables to store the season stats for players. At the moment, the objects are writing to the database via SQL statements. In the coming days I’ll update to use stored procedures like the rest of the database communications.
I have tried to test for unexpected repercussions from the object and database changes, but please let me know if you encounter any odd behavior by posting a comment or emailing me.
Tags: architecture, code, database, object-oriented, stats
Thanks so much for putting this together. I know it had to have been a lot of work. And to make one correction, there are Strat-O-Matic leagues that do have in-season trading. In those leagues, the season it typically divided into blocks, and after each block a short trading window opens. It’s the commissioner’s decision as to whether there will be in-season trading. Even though players’ 2010 statistics won’t show up in Strat until 2011, it is really nice to see how my team is performing as I prepare for offseason transactions following the completion of our 2010 Strat season. I also have rookie teams set up for each position so that I can have their stats in one place to aid with our annual rookie draft that we use to get all the new players in the league.
Here’s a youtube video showing a group of guys playing the game using the cards and dice: http://www.youtube.com/watch?v=_vMGRmWuBOQ. For years now there has been a computer version of the game that eliminates the need for physical cards and dice like those guys are using in the first video. Here’s a video of the most current game interface being used to play a 1985 replay game between the Expos and Cardinals: http://www.youtube.com/watch?v=5sl69J_XJcQ.
And when all else fails, wikipedia: http://en.wikipedia.org/wiki/Strat-O-Matic.
Again, thank you, thank you, thank you. I’m going to head over to my email right after this and let them know about your site.
The Season to Date feature seems to be showing incorrect numbers – are the numbers from Spring Training? For instance, my screen is showing that Carlos Pena has already had 51 AB’s…
David –
Yes, spring training stats will appear for players until they have regular season stats to report. For most players, that means by tomorrow we’ll have real data. Reviewing teams just now, though, I realized that players not on a major league roster won’t have their stats cleared out. I’ll try to get that fixed here as soon as I can.
How can we get team totals for a stat category under “year-to-date”?
This site is great, and the season-to-date function is awesome. Thanks for doing all this. I agree that a team totals function would be helpful, and I also think being able to set season-to-date as the default view would be helpful. Keep up the good work.
Charlie –
By “team totals” are you referring to the accumulated stats for the specific players that you had active on your roster on any given day? If so, I don’t think Kilg.us will be able to support that any time soon.
While it seems like a simple concept, there are a lot of complicating factors. For example, at what point during the day does a player need to be in the lineup for their stats to count? Different leagues have different rules. Also, Kilg.us doesn’t save daily stats beyond that day. So when tomorrow’s daily stats are recorded, they over-write today’s. This is done to prevent the database for growing too large. At present, Kilg.us runs on a low-end hosting option. To support the database (and processing) for more advanced features I would need a more robust server…which costs money.
So, while the team totals has been an on-going request, it isn’t something Kilg.us can support at present. I will definitely keep it in mind and hopefully one day will come up with a solution.
DarthLawyer –
Setting “season-to-date” as the default view is one of the next items on my to-do list. It should show up in the next week or so.
JimT Arizona Outlaws CUBL APBA Baseball
Hey Thanks for adding YTD Stats great job !!!! I play in a APBA Baseball 20 team Computer League WOW not a Strat league but just as COOL and all the owners are logging in to check stats. Games played would be a good update next time for Stats. Great site telling everyone about it THANKS AGAIN !!!!!!!!
Thanks for putting this together.
Question: WHIP is not showing for individual pitchers on the season-to-date tab, is that intentional or a bug?
[...] comment yesterday brought to my attention that Kilg.us was not showing WHIP values for individual players on their [...]
Oh yea man. This site is awesome. How could i make it look like this!
On “season to date” stats for my team, I’m not being given cumulative totals for my team as a whole (not adding up all my players stats for me). Is this a glich? Or did I set up my team wrong? Thanks in advance.
Make sure you have dragged any players whose stats should be counted above the “bench” row. “active” players should display black whereas “bench” players are gray. If this doesn’t resolve the issue, let me know.