Page 1 of 2

What to look for when analyzing teams in your league

PostPosted: Wed May 05, 2010 5:57 pm
by wavygravy2k
Just wondering if anyone would be interested in a Greasemonkey script that would analyze or rate each team in a league? Any thoughts on what kind of data the script should analyze?

For starts, I have a script running on my [url]http://fantasygames.sportingnews.com/stratomatic/league/roster_chart.html[/url] page. So far, I've added pitcher endurance and balance columns to each table but it looks pretty crowded (see image below). If I remove the endurance column the script should still be able to access the pitcher endurance data. What do you look for when you are viewing the roster_chart.html page?

Here's a list of things that I was brainstorming about:

[b:1162033e70]1.[/b:1162033e70] Display the number of right handed and/or left handed batters (salary over 2M) each team owns.

[i:1162033e70]NOTE: It's assumed that all batters with a salary over 2M would likely be in the everyday starting lineup.[/i:1162033e70]

[b:1162033e70]2. [/b:1162033e70] Display an average balance (against righthanded or lefthanders pitchers) for each team (batters with salary over 2M). For the team below the avg would be 0.8R.

[b:1162033e70]3.[/b:1162033e70] Average balance for starting pitchers and relief pitchers.

[b:1162033e70]4.[/b:1162033e70] Hitting vs. Pitching salary balance.


The primary purpose of the script is to basically help speed up the amount of time it takes to analyze a league.

[img:1162033e70]http://baseballsimulator.com/images/roster_chart_changes.jpg[/img:1162033e70]

PostPosted: Wed May 05, 2010 7:58 pm
by ROBERTLATORRE
OPS for hitters

PostPosted: Wed May 05, 2010 8:30 pm
by Palmtana
Opponents SP and RP balance has never affected a decision I've made with a team. I like the opponents average hitter balance idea. I always look at that in my division. I weight the balance by salary but yours would be a good starting point with which to compare.

BTW, I answered your Quickdraft question in [url=http://forums-beta.sportingnews.com/viewtopic.php?t=608628]this thread[/url].

PostPosted: Wed May 05, 2010 10:58 pm
by tcochran
I agree that OPS is important -- and if it's during the season, both vs LHP and vs. RHP would be great.

Also, getting a sense of the team's defense -- especially up the middle (C - 2B - SS - CF) -- is handy.

Likewise, I tend to favor teams that run a lot, so the arm ratings on the fielders and the hold ratings on the pitchers are always useful.

Obviously, you can't show all that in an online roster page, but perhaps some composite formulas for each of the elements would work?

PostPosted: Sat May 08, 2010 9:29 pm
by artie4121
Wavy, you are an unsung hero here. Without your tools, I would have quit a long time ago.

I sent you a message once on what scripts would be helpful.

[quote:2bb77f0c50]But an extra line to add up Total bases (Singles x 1; Doubles x 2; triples x 3; Homers X4) would add greater depth, and for pitchers, . . . the same thing, but TB allowed.

If there were a way to calculate and script BA vs. LHP and BA vs RHP; and for pitchers OPBA vs. LHH and RHH, that would be great too.

Is there a way to create a script that expands the stats page? Perhaps adds lines like "Bunt base hits," "IBB" "OF assists" . . . data from the game summaries that do not show up anywhere?[/quote:2bb77f0c50]

Thoughts on these?

Again, keep up the good work . . .

Artie

PostPosted: Mon May 10, 2010 12:44 pm
by wavygravy2k
[quote:21ae5730b3="Palmtana"]BTW, I answered your Quickdraft question in [url=http://forums-beta.sportingnews.com/viewtopic.php?t=608628]this thread[/url].[/quote:21ae5730b3]

Thanks for that.

PostPosted: Mon May 10, 2010 1:00 pm
by wavygravy2k
[quote:8e3650a908="Artie412"]Wavy, you are an unsung hero here. Without your tools, I would have quit a long time ago.

I sent you a message once on what scripts would be helpful.

[quote:8e3650a908]But an extra line to add up Total bases (Singles x 1; Doubles x 2; triples x 3; Homers X4) would add greater depth, and for pitchers, . . . the same thing, but TB allowed.

If there were a way to calculate and script BA vs. LHP and BA vs RHP; and for pitchers OPBA vs. LHH and RHH, that would be great too.

Is there a way to create a script that expands the stats page? Perhaps adds lines like "Bunt base hits," "IBB" "OF assists" . . . data from the game summaries that do not show up anywhere?[/quote:8e3650a908]

Thoughts on these?

Again, keep up the good work . . .

Artie[/quote:8e3650a908]

Hi Artie,

I'll see if I can add a total bases column.

I'm not sure how I would calculate BA and OBP because the script is reading the card data rather than baseball actual stats. It would be great to be able to grab a player's splits from baseball-reference website but to do that we'd probably need to map each player's baseball reference id with their TSN id.

Adding"Bunt base hits," "IBB" "OF assists" might be possible with a script too but it may take a while to do this.

PostPosted: Tue May 11, 2010 10:49 pm
by artie4121
Thanks Wavy.

While I had, for a while, looked at Baseball Reference to analyze splits, I am realizing that the BA and OBP do NOT translate directly. A player may bat .300 vs RHP, but his card does NOT reflect that. Frustrating.

[b:0dbc94060d]The most valuable script I can imagine would be one that would reveal the carded BA/OBP/SLG on each side! [/b:0dbc94060d]This should not be impossible, as it deals only with the card data.

S+D+T+HR/[108 - (W + HBP)] = BA Etc.

It's all right there.

Easy for ME to say. I'm not the guy who would have the first idea how to create such a script.

Again, thanks for helping make this game fun.

PostPosted: Wed May 12, 2010 1:09 pm
by wavygravy2k
I decided to work on a different script that analyzes the upcoming opponent on the Front Office page. Let me know what you think! See image below. I added starting pitcher balance and BP information in [color=red:2e407a1bd6][b:2e407a1bd6]red [/b:2e407a1bd6][/color:2e407a1bd6]font.

I also added a table (Upcoming Opponent) with some data about the opponent. For this table the script grabs data from the 'Sim L/R splits' page and determines the top 9 individual player AB totals. This allows us to get an idea how many RHBs and LHBs might be in the starting lineup. The AVG Hitter balance row is also based on the same 9 batters. The OPS rows are from the team totals on the 'splits' page.

I wrote this script for the casual manager or lazy manager (like me) in mind. I usually don't have the time to do an in-depth analysis of my upcoming opponent each day. With this script it will save me from making those extra 3-4 mouse clicks.


Here's a link to the opponent shown in the image:
[url]http://fantasygames.sportingnews.com/stratomatic/team/team_other.html?user_id=268890&stats=splits&onroster=1[/url]

[img:2e407a1bd6]http://baseballsimulator.com/images/next_games.png[/img:2e407a1bd6]

PostPosted: Wed May 12, 2010 1:50 pm
by Knerrpool
I like it. As you said, it's perfect for the lazy manager (me).