/r/sportsanalytics

Photograph via snooOG

We're a subreddit for quantitative nerds who love sports.

Our goal is to showcase and discuss interesting links regarding the use of data and analytics in sports. Think of us like /r/sabermetrics, but not specific to baseball.

We have a preference for articles that show their work, especially if they include links to their source data.

Welcome to /r/sportsanalytics: a subreddit for quantitative nerds who love sports.

Guidelines

Submissions should seek to understand sports through the use of objective, empirical analysis. Specifically, submissions should focus on understanding player/team performance or game strategy through the use of data and statistics. Submissions should not be industry-focused (e.g. attendance, league revenues, etc) or specifically relate to gambling.

/r/sportsanalytics

10,868 Subscribers

1

NFL Coverage Data

Any APIs out there that allow you to access nfl coverage data?

0 Comments
2024/10/04
20:51 UTC

1

Best visualization tool to create a season report

Hi,
I have a bunch of football data and want to create a season report based on a specific teams performances in different aspects. I want to be able to add comments to the visuals.

Which tool is the best for this?

1 Comment
2024/10/02
17:37 UTC

3

Soccer Penalty Taking Data

Hey everyone!

I am a newbie at sports analytics and I'd like to start doing some analyses on penalty-taking pattern (e.g. placement of shots from lefties/righties, etc.).

I couldn't find any extensive source of datasets to crunch, which is evidencing my little capacity on finding them making me frustrated.

Can you please direct me towards where I can find such a database?

Thanks in advance!

2 Comments
2024/10/02
05:30 UTC

1

Premier League Revenue Search

Hello everyone,

Does anyone know where I can find a dataset that expresses the revenues of individual teams in the premier league over the past 20 seasons?

1 Comment
2024/10/01
19:34 UTC

4

NCAA FBS Imperialism Map

Found this concept on twitter, decided to build out a dashboard for it.

NCAA FBS Football Imperialism

  • At the beginning of the season, each team in the FBS gets to claim the U.S. counties where they are the closes FBS team.
  • A team claims the territory of another team if they beat them in the given week (this includes the ability for FCS teams to gain territory if they beat an FBS team)

There is a twitter account that builds this out with logos, but I haven't gotten to that just yet, but I have a filter drop down that can show you the map from previous weeks. The team list is also sorted by the total number of counties claimed by the team. The current champion is Penn State.

https://public.tableau.com/app/profile/mattbman/viz/NCAAFBSImperialismMap/FBSImperialismMap

https://preview.redd.it/zvr6j06olsrd1.png?width=1562&format=png&auto=webp&s=aca6eb2b10030c746f5e23e2a0b98fbb51e69492

0 Comments
2024/09/29
18:41 UTC

1

Dashboard/draft analysis suggestions

Hi everyone. Working in an intern team of 3 for a software company to help crunch some numbers and/or create a new dashboard for a growing sports league. We don’t have strong sports backgrounds and weren’t given much direction on what type of questions or products to create. We are currently working on looking historically at previous drafts to see patterns in drafting, but when it comes to visuals and numbers that we could present to players in the league (who themselves draft new teams each week) to help them be more informed drafters, we aren’t sure what might be most useful to them. Does anyone here with more background have suggestions? Thanks!

2 Comments
2024/09/29
05:41 UTC

1

English Premier League - tables including matches where both teams have played the opponent?

To better describe what I'm looking for:

Over the course of the season every team will play every team. But some teams will have easier/harder starts/ends of the season.

What I want to see is a real title race table where you can select the team, e.g. Man City, Liverpool, Arsenal, and if 10 games have been played, and all 3 have played, for example, Fulham Away, Newcastle Home, Man U Away, then it won't be a 10 game league table, it will have 3 games where only matches that all the selected teams have played.

Does this exist somewhere?

11 Comments
2024/09/28
16:04 UTC

5

NHL Polar Charts

Wrote an article on creating basic level visual analysis of NHL players. Always open to any criticism or insight!

https://open.substack.com/pub/corsichronicles/p/building-nhl-polar-charts?r=n8if7&utm_campaign=post&utm_medium=web

4 Comments
2024/09/27
15:28 UTC

1

NFL Play Clock Data

I see plenty of data sources for play clock time when the ball was snapped, but I’d also like to see the play clock time when the huddle breaks. Does anyone know of a data source for that?

0 Comments
2024/09/26
11:32 UTC

7

Trying to predict NFL player stats

Hi I am new to ML and I am trying to predict NFL player stats and this is my first ML project. My plan was to use random forrest, gradient boosting and one more model to predict stats.

But, I am struggling to figure out how I would start to go about this. Would I use career stats for a player or recent game stats or a combination of both or something else? Now the question is where could I find all these stats I am looking for?

I eventually want to use these player stats to generate fantasy points predictions

I would appreicate any help!

6 Comments
2024/09/25
20:46 UTC

5

NBA: Player and position strengths

I've been working player NBA metrics to learn more about player impact. Player strength is hard, but finally have something to show/tell.

Iv have a couple bias i'm trying to reduce with my dataset which people here will agree on, but are hard to quantify.

Bias 1. Current player strength metrics all have a "lineup bias". Given Player X, if player X is on a strong line, their calculated "Player Strength" will be higher than if they were on a weaker line. Playing with better teammates typically will give a person better stats.

Bias 2. Positions matter, Center, Forward and Guard all play differently. So good stats for a Forward are different than good stats for a guard.

My results to date are for Bias 2. Position. I made a model for each position and then looked at the feature importance for each position.

The Data:

  • Starters from 2008 to now taken from nba_api.
  • Only looked at Guard, Center and Forward
  • Focused on stats that don't depend on playing time.
  • Simple win/loss as the target.
  • Models for each position were created, allowed me to look into the impact of each stat for the position.

The initial results (normalized):

guard ={
    "E_OFF_RATING": 0.280,
    "DEF_RATING": 0.247,
    "TS_PCT": 0.215,
    "OBPM": 0.118,
    "EFG_PCT": 0.105
}

forward = {
    "E_OFF_RATING": 0.343,
    "DEF_RATING": 0.271,
    "TS_PCT": 0.265,
    "OBPM": 0.089
}

center = {
    "E_OFF_RATING": 0.216,
    "DEF_RATING": 0.206,
    "TS_PCT": 0.199,
    "OBPM": 0.191,
    "EFG_PCT": 0.040,
    "FG_PCT": 0.118
}

Interpreting the results.

Each stat in the position is how impactful it is on the players performance. E_OFF_RATING is weighted to 28.0% of a guards total power. Iv ignored stats with low feature importance.

on https://www.sharpsresearch.com/nba/match/0022301077/ iv made a table and have made "Player Strengths" which is the sum of players feature importance * their scaled stats.

guard strength =0.280×E_OFF_RATING+0.247×DEF_RATING+0.215×TS_PCT+0.118×OBPM+0.105×EFG_PCT

Note the website takes like 10 seconds to load atm due to tech debt.

Finally, ill need to adjust to normalize the last10 stats before calculating the positional strength int he table which hasnt been done yet.

0 Comments
2024/09/25
14:10 UTC

5

Do NBA Draft Combine Metrics Predict NBA Success?

0 Comments
2024/09/24
17:15 UTC

1

College football formations play by play API

I checked out https://api.collegefootballdata.com but it's play data doesn't contain the formations the teams are using. Does anyone know of an API that does contain this information?

1 Comment
2024/09/23
02:59 UTC

1

Help with PPG calculation

I recently took a TA position at my school for a sports analytics class that I had taken during my FR year (I’m now a JR). The professor used PPG and wins in basketball to demonstrate a positive correlation to the students and it gave me the idea to examine a possible correlation between all 30 NBA teams during the 2018-2019 season and the international players on their roster.  

In all, I would be examining: 

  • Wins
  • Team PPG
  • Total Team Pts
  • of International Players on a team

  • PPG of International Players
  • Total International Player Points
  • of USA Players

  • USA players PPG
  • Total USA player points

Once I have all the data, I am planning to do a test to see if there is a correlation between the more international players you have on a team, the higher win total you have.

My question pertains more to the calculation part. For example, n the 2018-2019 season, the Atlanta Hawks had 2 international players, Alex Len and Isaac Humphries, according to BasketballRef. 

Alex Len: 77 GP, 11.1 PPG, 854 total pts

Isaac Humphries: 5 GP, 3 PPG, 15 total pts

With the help of Excel, the average comes out to be 7.05. Would I then take the 2018-2019 Hawks PPG of 108.1 and just subtract 108.1-7.05? Or is there more that I need to do?

I am 1000% overthinking this and I appreciate any feedback!

3 Comments
2024/09/20
16:57 UTC

2

wearable technology

what wearable tech solutions are currently used for training/ coaching/ sports science, etc? and how much do these wearables usually cost

3 Comments
2024/09/17
15:47 UTC

5

Soccer 3D Plots

I made a Streamlit app that plots soccer match data from statsbomb like passing maps, shot maps, pressure maps, etc. on a 3D field. It also has the trajectory of passes and shots if they are off the ground. Lmk what you think.

https://3dsoccervisualizer.streamlit.app/

3 Comments
2024/09/14
21:25 UTC

1

Struggling to install mplsoccer

https://preview.redd.it/fpq2r2sohmod1.png?width=962&format=png&auto=webp&s=44ae6079c8ae5eb2d29e16bf9f986cbdbb759f2d

As the title - I am met with this error message when installing mplsoccer, seems to be some problem with matplotplib, but I am very new to this so unsure how to proceed. Any help would be greatly appreciated.

1 Comment
2024/09/13
18:51 UTC

10

Stats Websites

What are your go to websites for sports data?

2 Comments
2024/09/13
18:03 UTC

2

college advice

I’m currently in school majoring in software engineering. I’ve been wondering what direction i’ve wanted to take that. With my love for sports I stumbled across sports analytics. What does it look like getting in the field? Should I minor in Sports analytics? Growing or stagnant job market? Any help would be appreciated!

4 Comments
2024/09/10
19:02 UTC

14

mplbasketball: Python package for basketball data

1 Comment
2024/09/10
01:12 UTC

1

Hockey Shot X Y Coordinates

Hello,

I am relatively new at making hockey shot heat maps or shot location maps. I know about Money Pucks free data sheets. However, i do not understand how people can find the x y coordinates from them when it doesn't say that specifically, at least from what i can see. Can anyone help me and explain how to do this? This is something i've been trying to understand for a bit now. Any help is appreciated, thank you!

2 Comments
2024/09/09
20:59 UTC

1

Is the best country more likely to win a team event or individual? All other things being equal?

I'd think it's easier for a country that doesn't have the best player to win an Olympic or World Championship event where it's every person for themselves than for that country to win a team event but there are individual Olympic events where a very small number of countries always wins or that America never, ever wins so I don't know. Or maybe those countries would have even better or worse odds in team versions of those events?

1 Comment
2024/09/09
14:47 UTC

5

Live WNBA player stats

I'm looking to build a program that can fetch the live stats for particular players from ongoing WNBA games. This is purely a personal project and not a commercial one. Is there an API that can fetch live player stats? The APIs I have found are either for enterprise clients or past games.

1 Comment
2024/09/07
00:55 UTC

3

Big MLB fan posting their first analytics-heavy production, appreciate any feedback!

0 Comments
2024/09/06
19:29 UTC

1

Ice hockey score databases

Are there any ice hockey score databases out there for high school or even youth level?

1 Comment
2024/09/06
18:32 UTC

1

NFL Passing/Rushing Prop Cheat Sheets - using 2023 game stats

0 Comments
2024/09/06
18:24 UTC

Back To Top