Home
we had subs it was crazy

Primary links

  • About
    • $upport (lol)
    • Ethics
    • FAQ
    • Privacy Policy
  • Contact
  • MGoStore
  • MGoBoard
    • MGoBoard FAQ
    • Ticket spreadsheet
    • Michigan bar locator
    • Moderator Action Sticky
  • Useful Stuff
    • Depth Chart By Class
    • Unofficial Two Deep
    • 2013 Offer Board
    • Crude Bug Tracking System
    • Third Down Stats
    • Diaries, Windows Live Writer, And You
    • Michigan Future Schedules
    • User-Curated HOF
    • 2013 Recruiting Board
    • Where To Eat In Ann Arbor
Home Forums MGoBoard

Navigation

  • Forums
  • Recent posts

User login

  • Create new account
  • Request new password

MGoElsewhere

  • @MGoBlog (Brian)
  • @aceanbender
  • @TomVH (Tom)
  • RSS Feed
  • iPhone App
  • Facebook profile
  • MGoKindle Store
  • mgo.licio.us
  • Brian @ TSB [Archive]
  • Brian @ AOL [Archive]
  • Sour Salty Bitter Sweet

Michigan Blogs

  • Big House Blog
  • Burgeoning Wolverine Star
  • Genuinely Sarcastic
  • Go Blue Michigan Wolverine
  • Holdin' The Rope
  • MGoFootball
  • MVictors
  • Maize 'n' Blue Nation
  • Maize 'n' Brew
  • Maize And Go Blue
  • Michigan Hockey Net
  • The Blog That Yost Built
  • The Hoover Street Rag
  • The M Block
  • The M Zone
  • The Wolverine Blog
  • Touch The Banner
  • UMGoBlog
  • UMHoops
  • UMTailgate
  • Wolverine Liberation Army

M On The Net

  • mgovideo
  • MGoBlue.com
  • Mike DeSimone
  • Recruiting Planet
  • The Wolverine
  • Go Blue Wolverine
  • Winged Helmet
  • UMGoBlue.com
  • MaizeRage.org
  • Puckhead
  • The M Den
  • True Blue Fan Forum

Big Ten Blogs

  • Illinois
    • A Lion Eye
    • Hail To The Orange
    • Illinois Baseball Report
    • Illinois Loyalty
  • Indiana
    • Inside The Hall
    • The Crimson Quarry
  • Iowa
    • Black Heart, Gold Pants
    • Fight For Iowa
  • Michigan State
    • The Only Colors
  • Minnesota
    • GopherHole.com
    • The Daily Gopher
    • I'm In Love With A Fringe Bowl Team
    • TNABACG
  • Nebraska
    • Big Red Network
    • Corn Nation
    • Husker Mike's Blasphemy
    • Husker Gameday
  • Northwestern
    • Sippin' On Purple
    • Lake The Posts
  • Notre Dame
    • The House Rock Built
    • One Foot Down
  • Ohio State
    • Eleven Warriors
    • Buckeye Commentary
    • Men of the Scarlet and Gray
    • Our Honor Defend
    • The Buckeye Nine
  • Penn State
    • Slow States
    • Black Shoe Diaries
    • Happy Valley Hardball
    • Penn State Clips
    • Linebacker U
    • Nittany White Out
  • Purdue
    • Boiled Sports
    • Hammer and Rails
  • Wisconsin
    • Bruce Ciskie

Links of Note

  • Baseball
    • Big Ten Hardball
    • College Baseball Today
    • The Baseball Zealot
    • The College Baseball Blog
  • Basketball
    • Ken Pomeroy
    • Basketball Prospectus
    • Midmajority
  • College Hockey
    • Chris Heisenberg
    • College Hockey Stats
    • Inside College Hockey
    • Michigan College Hockey
    • Hockey's Future
    • Sioux Sports
    • USCHO
    • Western College Hockey
    • CCHA
      • LSSU Hockey
      • Bronco Hockey Blog
  • Football
    • Smart Football
    • Every Day Should Be Saturday
    • Doctor Saturday
    • CFB Stats
    • Harold Stassen
    • NCAA D-I Stats Page
    • The Wizard Of Odds
  • General
    • Sports Central
  • Local Interest
    • The Ann Arbor Chronicle
    • Arborwiki
    • Arbor Update
    • Teeter Talk
    • Vacuum
  • Teams Of The D
    • Lions
      • Pride of Detroit
      • Fire Millen
    • Pistons
      • Detroit Bad Boys
      • Need4Sheed
    • Tigers
      • Roar Of The Tigers
      • The Detroit Tigers Weblog
      • The Daily Fungo
    • Red Wings
      • On The Wings
      • Behind The Jersey
      • Winging It In Motown
    • Michigan Sports Forum

Archive

  • May 2013 (53)
  • April 2013 (94)
  • March 2013 (104)
  • February 2013 (81)
  • January 2013 (93)
  • December 2012 (74)
  • November 2012 (142)
  • October 2012 (143)
  • September 2012 (107)
  • August 2012 (103)
  •  
  • 1 of 11
  • ››

Get Yer Tickets

Football Display Case

NFL Watches

Follow your favorite team with localtv-satellite.com: Click Here.

Site Search

Diaries

  • New
  • Popular
  • Hot
  • Does Expansion Actually Lead to More Recruits From a Certain Region?
    maizeonblueaction - 6 hours ago
  • Raiding the B1G-er Big Ten: Recruiting Prospects in Maryland and Rutgers Territory
    The Mathlete - 1 day ago
  • A Cynical Take on Why Expansion May be Dead for the Forseeable Future
    maizeonblueaction - 2 days ago
  • LIGHT IT UP, AGAIN. WALLPAPER
    jonvalk - 3 days ago
  • Using Rivals' Star Ratings To Look At Big Ten Football Recruiting: 2002-2013
    LSAClassOf2000 - 3 days ago
  •  
  • 1 of 4
  • ››
more
  • Using Rivals' Star Ratings To Look At Big Ten Football Recruiting: 2002-2013
    LSAClassOf2000 - 870 views
  • More Milford Men Than Michigan Men: Comparing the 11-12 and 12-13 Hockey Teams
    MGoBlueline - 776 views
  • UMich NFL draft history, Part III
    blueheron - 751 views
  • LIGHT IT UP, AGAIN. WALLPAPER
    jonvalk - 680 views
  • A Cynical Take on Why Expansion May be Dead for the Forseeable Future
    maizeonblueaction - 564 views
  •  
  • 1 of 2
  • ››
more
  • Big Ten Recruiting Rankings 4-30-13
    Ace - 81 comments
  • Using Rivals' Star Ratings To Look At Big Ten Football Recruiting: 2002-2013
    LSAClassOf2000 - 19 comments
  • LIGHT IT UP, AGAIN. WALLPAPER
    jonvalk - 17 comments
  • A Cynical Take on Why Expansion May be Dead for the Forseeable Future
    maizeonblueaction - 17 comments
  • Raiding the B1G-er Big Ten: Recruiting Prospects in Maryland and Rutgers Territory
    The Mathlete - 12 comments
  •  
  • 1 of 2
  • ››
more

MGoBoard

  • New
  • Recent
  • Hot
  • OT: Star Trek + Dilithium = Esplode…. Esplode clarity
    2 replies
  • OT - ND paid Charlie more than Brian Kelly in 2012
    16 replies
  • Softball SuperRegionals Open Thread
    22 replies
  • OT: ESPN hires Paul Finebaum
    30 replies
  • OT: Red Wings vs Hawks Game 4 Open Thread
    182 replies
  • Mark May Trolls Ohio State Again, Buckeyes Fans Let Him Have It On Twitter
    32 replies
  • Who should replace ND in a long-term series?
    131 replies
  • Baseball Eliminated from B1G
    19 replies
  • Denard, other rookies discuss Star Trek
    52 replies
  • Urbs and his obsession with butts
    51 replies
  • Very OT: The Hangover 3 *Thread May Contain Spoilers*
    57 replies
  • Scouting Report: Jabrill Peppers
    148 replies
  • Awesome Uniform Timeline on MVictors
    39 replies
  • Baby’s life saved with 3D printed device at C.S. Mott
    36 replies
  • OT: Mott Takeover
    15 replies
  •  
  • 1 of 7
  • ››
  • Who should replace ND in a long-term series?
    131 replies
  • OT: Star Trek + Dilithium = Esplode…. Esplode clarity
    2 replies
  • OT: Red Wings vs Hawks Game 4 Open Thread
    182 replies
  • Urbs and his obsession with butts
    51 replies
  • OT - ND paid Charlie more than Brian Kelly in 2012
    16 replies
  • Scouting Report: Jabrill Peppers
    148 replies
  • Very OT: The Hangover 3 *Thread May Contain Spoilers*
    57 replies
  • OT: ESPN hires Paul Finebaum
    30 replies
  • OT? Graduatin' Season. Who had the Worst Commencement Speaker?
    140 replies
  • Mark May Trolls Ohio State Again, Buckeyes Fans Let Him Have It On Twitter
    32 replies
  • Softball SuperRegionals Open Thread
    22 replies
  • 5 star 2013 DT may not be enrolling at Notre Dame
    91 replies
  • Awesome Uniform Timeline on MVictors
    39 replies
  • ESPN's Luginbill Predicts Top 5 Impact Freshmen, includes Derrick Green
    71 replies
  • OT - Official MGoBaby Thread (you got 'em, we want to see 'em)
    148 replies
  •  
  • 1 of 7
  • ››
  • OT: Red Wings vs Hawks Game 3 Open Thread
    203 replies
  • OT: Red Wings vs Hawks Game 4 Open Thread
    182 replies
  • OT - Official MGoBaby Thread (you got 'em, we want to see 'em)
    148 replies
  • Scouting Report: Jabrill Peppers
    148 replies
  • How much do you really hate ohio?
    145 replies
  • OT? Graduatin' Season. Who had the Worst Commencement Speaker?
    140 replies
  • Who should replace ND in a long-term series?
    131 replies
  • Speight and TomVH on Peppers
    116 replies
  • OT: Red Wings @ Hawks Game 2 Open Thread
    114 replies
  • Prayers for Moore, Oklahoma
    112 replies
  • Alex Bars to Notre Dame
    96 replies
  • 5 star 2013 DT may not be enrolling at Notre Dame
    91 replies
  • OT: NBA Draft Lottery
    78 replies
  • ESPN 30 for 30 on the Bad Boys
    77 replies
  • Michigan Softball vs. Cal Open Thread
    75 replies
  •  
  • 1 of 7
  • ››

mgo.licio.us

  • This college baseball team is the best at postgame interviews

    national champs baby

    0 comments
  • Rounding up the latest in NCAA absurdities.

    Patrick Hruby is doing God's work.

    0 comments
  • Cornell wrestler tops Michigan's Trey Burke for Sports Illustrated award | The Detroit News | detroitnews.com

    first comment: "EVERY ATHLETE HAS ASPIRATIONS OF WINNING AND WE HAVE OUR FAVORITES BUT IT IS ALWAYS A PLEASURE TO OTHER STUDENTS ACHIEVE THEIR GOALS, TOO!"

    0 comments
  • Burke hearing he'll go two through six in NBA draft

    stupid Pistons and their refusal to tank properly

    0 comments
  • 2013 NHL Draft Prospect: Andrew Copp

    rundown of Michigan's riser

    0 comments
  • Michigan's key returnee: Glenn Robinson

    needs moar usage

    0 comments
  • Former Arkansas QB Brandon Mitchell transferring to NC State

    so much for that

    0 comments
  • The B1G List: Ranking the State Fossils of the Big Ten

    This list is completely arbitrary and not a genuine analysis of the relative merits of state fossils.

    0 comments
  • Trey Burke turns to inner circle to prepare for NBA draft

    will be michigan's highest pick in a while

    2 comments
  • B1G assistant coach salaries on the rise

    money has to go somewhere

    0 comments
  • Tim Hardaway Jr. is motivated by his critics and doubters, and supremely confident in his ability

    I am only motivated by people who have no opinion about me.

    0 comments
  • Big Ten football procrastinates on parity-based scheduling, and nothing ever changes

    the just released schedules were a flat-out statement that the B10 doesn't believe SOS will matter in playoff selection

    1 comments
  • Michigan's Glenn Robinson III, Mitch McGary ranked inside top 20 on ESPN's 2014 draft board

    but I thought that draft was supposed to be incredibly loaded?

    1 comments
  • Tim Hardaway Jr. turning heads, viewed as a first-rounder by some teams, analyst says

    If you're gonna go please be in the first round.

    0 comments
  • Michigan-Ohio State once, Indiana-Purdue once? The Big Ten has to protect its hoops rivalries

    another delightful side effect of a 14 team conference

    0 comments
  •  
  • 1 of 2
  • ››
more

OT: Extracting play-by-play data

12 posts / 0 new
Login or register to post comments
Last post
July 10th, 2011 at 12:01 AM
#1
Bleedin9Blue
Bleedin9Blue's picture
Joined: 06/30/2008
MGoPoints: 1763
OT: Extracting play-by-play data

Due to all of the debate regarding the Wisconsin game and the quality of the 2010 offense in general, I've been thinking about stats a fair bit.  Thus, I went to find out some more regarding FEI calculation- I ended up not finding the information that I needed so I emailed Brian Fremeau to see if he can provide some illumination (although I believe the actual formula he uses is proprietary so I don't expect to learn too much).

The functional end result is that I've become curious about how people such as Brian Fremeau and others that create advanced stats based on play-by-play or drive-by-drive data are able to collect their data.

The NCAA team reports have game-by-game play-by-play data, but extracting the necessary information from them seems difficult since it's all text based.  I'm guessing that it just looks complicated to me since I'm not a CS or CE person.  But, I'm still interested in how the data is extracted.

So, if there a better site than the NCAA team reports to get play-by-play data to extract and distill down into the necessary components (pass, rush, yards, player(s), etc.) or is the NCAA site the best and it just takes some coding to make it work efficiently?

I wonder what kind of advanced stats the MGoCommunity could come up with access to years worth of distilled data from every team in the country...

Thanks.

Top
  • Login or register to post comments
Tags:
  • MGoBoard
  • data
  • football
  • OT
  • stats

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
July 10th, 2011 at 12:07 AM | Not sure (Score:2)
BiSB
BiSB's picture
Joined: 08/15/2009
MGoPoints: 27919

Can't the bots do it?

They no longer call me Bisbiño

  • Login or register to post comments
July 10th, 2011 at 12:20 AM | The first part of your (Score:2)
IncognitoWolverino
IncognitoWolverino's picture
Joined: 07/08/2011
MGoPoints: 1043

The first part of your signature goes very well with your comment (no disrespect, I don't know shit about this either).

"Be kind, for everyone you meet is fighting a hard battle."

  • Login or register to post comments
July 10th, 2011 at 12:10 AM | I've been working on getting (Score:2)
BlockM
BlockM's picture
Joined: 07/03/2008
MGoPoints: 25314

I've been working on getting the UFR data into a tractable database format for a while now in very short, very spread out bursts, but I don't think that's the data you'd want to use for this and I'm not really anywhere close to having something useful yet because i've been busy with other stuff.

The NCAA team reports could be pretty easy to extract if it's all structured in the same way every time. That was the biggest problem with the UFRs, as each season, and even each game, can have a different format so it needs its own parsing function.

Do you have a format you'd like to see it in?

@pnbloem | Ultra-MGoBoard

  • Login or register to post comments
July 10th, 2011 at 12:24 AM | UFRs aren't exactly what I'm looking for (Score:2 Interesting)
Bleedin9Blue
Bleedin9Blue's picture
Joined: 06/30/2008
MGoPoints: 1763

I'm not so much looking for UFR data as a method of extracting play-by-play data from either the NCAA game reports or some other site.  This could then be used to get as much data is reasonably possible on every game played that's been tracked.  Obviously the UFRs go into much greater detal than the NCAA game reports, but UFRs are specific to Michigan (and whatever other team specific sites do the equivalent of UFRs).

What I'd like to do is create a database of all play-by-play data that can be extracted from the game reports, and then unleash the MGoCommunity on it.  I personally can't fully trust FEI since I don't know how it's calculated.  But, if I had access to the database, then I could start trying to create my own stats.  Or, other people on the site could create their own stats and share their formulation.  The results could then be vetted by the community.  Of course, nobody would come up with a stat to make everyone happy, but it would definitely be something interesting to work on and discuss during the off season.

Fortunately, the NCAA database for play-by-play reports appears to be identical starting from 2004 (the first year that I found any play-by-play reports for Michigan v. OSU at least) until the present.  So, if something could be written to extract all possible information from any 1 game report, then it should work on all of them.

Unfortunately, my coding skills are nearly non-existant (I'm a ChemE/MSE) so my value to a project like this is rather small for this part.  Thus, if someone else wants to take up the banner of this I'd be delighted.  Until then, I'm using my l33t HZXOR Excel knowledge to try to extract the data.

I'd say that I can appreciate the difficulty in making the UFRs into an easily navigated database, but I really can't.

  • Login or register to post comments
July 10th, 2011 at 12:52 AM | NCAA play by play (Score:2 Informative)
Vincent
Joined: 07/04/2011
MGoPoints: 19

Maybe we can split the work. I am typically able to extract data from webpages and to format it in a nice database if it all looks the same. But I really don't have time to figure out what the HTML naming convention is. Tell me the sets of HTML pages I have to loop over, and how these URL addressee match teams/seasons/opponents, and I should be able download them (well, I'll try anyway).

  • Login or register to post comments
July 10th, 2011 at 10:30 AM | HTML (Score:1)
Bleedin9Blue
Bleedin9Blue's picture
Joined: 06/30/2008
MGoPoints: 1763

I'm starting to examine the URLs and source code of the play-by-play pages for both the ESPN and NCAA game reports.

I've found that ESPN labels their games with a "gameID" whose formulation I'm unable to determine.  I tried just going through the gameIDs and incrementing them by 1 to see what would happen.  Unfortunately, if a gameID is used [in the URL] which doesn't exist, you are redirected to the college football home page.

The NCAA team report is based on 4 things:

  1. Year game was played
  2. Home team ID
  3. Away team ID
  4. Full date game was played

Thus, the generalized URL for the NCAA play-by-play game reports is:

web1.ncaa.org/mfb/driveSummary.jsp?expand=A&acadyr=YEAR&hHOMETEAMID&v=AWAYTEAMID&date=DATE(FORMAT:DD-MMM-YY)&game=YEAR(FORMAT:YYYY)000000HOMETEAMIDDATE(FORMAT:YYYYMMDD)

Example- the 2010 Michigan v. UConn game was played on 2010/9/4.  Thus, the URL for that game is:

web1.ncaa.org/mfb/driveSummary.jsp?expand=A&acadyr=2010&h418&v=164&date=04-SET-10&game=2010000000418D20100904

Thus, it would be a fairly simple operation to find the URL for every game as long as a schedule of games could be found and distilled into a usable format.  I've already extracted the team IDs.

But, when viewing the HTML for the NCAA site, it is essentially identical to what is written in the plain-view report.  That is to say, the NCAA site doesn't use any useful tagging system that would allow easy data extraction.  Thus, I believe that anything used to extract data would have to be a semi-intelligent brute force method instead of simply looking for useful tags.

As previously mentioned, my coding skills are rusty at best.  Therefore, I'm simply trying to perform all of the necessary extractions using Excel.  I am fully confident that I can come up with a flexible system that will get all of the data out of a data report.  But, the problem is that iterating that over thousands of games using Excel would require a significant amount of labor- there must be a better program to use for such a task.  If someone could point me towards it, then I might be able to learn the most rudimentary portions of it and make it work.

  • Login or register to post comments
July 10th, 2011 at 1:50 PM | I did exactly this last year (Score:0)
umich1
umich1's picture
Joined: 09/14/2009
MGoPoints: 618

Last year, for Michigan and their opponents, I extracted all of the reports from the NCAA, like

http://web1.ncaa.org/mfb/driveSummary.jsp?acadyr=2010&h=31&v=692&date=04-SEP-10&game=201000000003120100904

into excel, and imported them into SAS.  From there, I made a predictive analytic to aid in my selection of scores for a football pick'em league I was in.

If the MGoBlogeratti is able to develop a better way, I'm very interested to learn myself.

  • Login or register to post comments
July 10th, 2011 at 12:55 AM | I don't know (Score:2 Normal)
HouseThatYostBuilt
Joined: 03/19/2011
MGoPoints: 268

I don't know who this Fremeau guy is, but how can the statistic he fabricated be trusted if he hasn't even published the formula for it? For all we know, he could be pulling numbers out of his ass. I'm suprised that so many people take FEI as gospel when they don't even know how it's calculated.

GBOD

  • Login or register to post comments
July 10th, 2011 at 1:06 AM | Read this PDF (Score:1)
Vincent
Joined: 07/04/2011
MGoPoints: 19

I wrote this short document a few weeks ago. It's not great but it has a short critique of proprietary stats that is quite along those lines. Tell me what you think.

http://db.tt/A4a32YC

  • Login or register to post comments
July 10th, 2011 at 1:15 AM | Yeah, that's basically (Score:2 Normal)
HouseThatYostBuilt
Joined: 03/19/2011
MGoPoints: 268

Yeah, that's basically what I was trying to say. The logic behind their formula is probably at least decent, but how can we know for sure unless it's scrubbed over by many impartial people? We can't really.

GBOD

  • Login or register to post comments
July 10th, 2011 at 5:56 AM | I wish I could help but you (Score:4 Normal)
redwhiteandMGOBLUE
redwhiteandMGOBLUE's picture
Joined: 07/08/2008
MGoPoints: 1277

.I wish I could help but you guys are way too smart for me.

This is how I feel when the discussion turns to FEI, advanced metrics, data mining, etc:

 

I really hate being dumb...

New Oldsmobiles are in early this year.
http://www.youtube.com/watch?v=IIdGxR-aU6o

  • Login or register to post comments
Powered by Pressflow, an open source content management system
Theme provided by Roopletheme; sidebars adapted from Chris Murphy.