On September 23 and 24, the NBA hosted its second annual hackathon at Skylight Modern on 27th Street in New York City. Four Tech students — second-year IE Nishant Reddy, third-year CS Nikki Cantrell, third-year IE Alan Lo and third-year CS Mayuri Mamtani — competed in the basketball analytics competition and placed third out of more than 200 participants.
For the students, the road to New York began over the summer.
“I saw something about it on Twitter from one of the basketball writers I follow,” Reddy said. “Then I told Alan about it because I know he’s pretty into basketball analytics. And then he reached out to Nikki and Mayuri because they’re pretty good friends and they’re good with CS.”
The NBA would receive 900 applicants, of which, only 207 were accepted. While parts of the application were optional, they were strongly encouraged.
“There was one question which was covered in one of my ISYE classes, so that was kind of cake,” Lo said. “The rest of it was coding.” The coding project required the applicants to take box scores from the 2016-2017 season and determine when teams were eliminated from playoff contention. The group, dubbed “Team Alley-Oops,” did not finish the project, but the incomplete work they supported was enough to convince evaluators of their potential.
In late August, the group heard back from the NBA that they had been accepted; however, the NBA did not provide travel, so the group convinced the College of Computing to sponsor their travel. Going into the hackathon, they did not know with what they would be tasked.
After arriving early Friday morning to explore the city, the team began their new project Saturday morning. “Alley-Oops” decided to tackle a possible rule change dealing with offensive fouling, specifically dealing with collisions around the restricted area. Currently, the restricted area, designated by a small arc inside the paint, is four feet from the basket. It is restrictive in that no defender can force a charging foul in the area, save for some occasional exceptions.
“What we planned to do was expand that restricted area for three reasons,” Lo said. “First, to decrease the number of injuries that might occur.” More offensive fouls mean more charges being called, which can lead to an increased risk of injury.
“Second,” he continued, “was to improve game watchability, in the sense that nobody wants to watch people drawing charges, that’s really boring. You’d rather watch someone play defense. Third, was to shorten game duration a bit because for people who aren’t as familiar with basketball the game seems kind of long and boring and drawn out.”
This was particularly apparent to Cantrell and Mamtani, who were not devout fans of the sport.
While the idea was solid on paper, the team needed data to back it up. This data came from the large data pool the NBA had given them a few days before.
“We were given a bunch of data and .csv files,” Cantrell said. “And we used … play-by-plays of each game since 2007. We did two things with it. First, we went through and parsed the data and looked at the number of offensive fouls per game and the actual time of the game, and we plotted that to show that there was a steady increase in offensive fouls as game time increased.”
With a clear relationship in place, the group needed to show where those fouls were occurring to justify their arguments.
“They gave us .xml files of SportVU data which gives the players’ location in the game very half second,” Cantrell said. “We looked at the time the offensive foul occurred and then went into the .xml file and got the location of the player at that instance and then wrote it back to an Excel file so that we could graph that and overlay it over top of a basketball court. That gave us a heat map of where all the offensive fouls occurred.”
Their heat map pointed to almost all offensive fouls occurring just outside the restricted area. They presented their findings in front of a group that included such figures as ESPN writer Zach Lowe, members of senior management for a few NBA teams and FiveThirtyEight editor-in-chief, Nate Silver.
“It wasn’t really nerve-racking for [Nikki and Mayuri],” Lo said. “Because they didn’t know anybody. But, it was nerve-racking for [Nishant and me] because we actually knew who we were
Their third place finish not only won them a gift card to the NBA Store and merchandise from JBL but also the chance to meet NBA Commissioner Adam Silver, former player Shane Battier and a host of league insiders. Not bad for a weekend’s work.