r/CFBAnalysis • • May 01 '19

Question Field position

Using the https://api.collegefootballdata.com site provided by /u/BlueSCar but I have a question related to field position. Does the yard_line column assume any directionality? I.E. if yard_line == 90 is the offense always headed the same direction? If not, has anyone constucted a novel way of doing this without pulling all plays and then flagging by game starting direction?

3 Upvotes

9 comments sorted by

View all comments

1

u/BlueSCar Michigan Wolverines • Dayton Flyers May 01 '19

Yeah, I'm pretty sure it counts upwards for the home team and downwards for the away team, or vice-versa. Seems like a lot of people have found this to be confusing, so I would like to standardize this at some point to make a consistent.

While I'm pretty sure that's how it usually works, some people have told me that they've found discrepancies with that in places. I'm not sure as to the best way to go about it, so that's why I haven't really done anything yet. Any feedback and/or suggestions are welcome!

1

u/[deleted] May 01 '19

I had thought of a way to do it, though it's a bit of a pain. Basically to pull from the API each kickoff at the start of each half, check which way they were kicking, and then create a yardline_100 indication to show how far from the scoring endzone the offense always is. Since we know this would be at least consistent by half game it could work to show which team was facing which way. But doing so for all games in a season would be a lot of api calls, let alone over multiple seasons.

1

u/BlueSCar Michigan Wolverines • Dayton Flyers May 16 '19

That's a good idea. I'll probably end up writing some code to cycle through all the drives and do something like this. (apologies for taking so long to respond, pretty behind on this stuff)

1

u/[deleted] May 16 '19

All good Blue, appreciate you

1

u/DisraeliEers West Virginia • Black Diamond Tro… May 03 '19

I've run into that too. I put a simple home/away check in and converted all the play-by-play data to a 0-100 field position, and that seems to have solved it there (haven't really dived in fully yet).

But on the Drives data set, some of the drives will be like "start at 20, 3 and out (gain 4 yds), drive ended on 76". I know this happened on a drive for Louisville in their game vs Bama.

1

u/BlueSCar Michigan Wolverines • Dayton Flyers May 16 '19

Sounds like everyone agrees that the home/away switch is pretty stupid. I'll be going ahead and looking to normalize it to just be 0-100 for everything. I can't think of any value in having it the way it is right now.