Tim's Avatar

Tim

@talbtree.bsky.social

healthcare data analyst. Enjoy Twenty20 cricket (esp Women’s!), nfl and college football #rstats

204 Followers  |  171 Following  |  56 Posts  |  Joined: 25.08.2023  |  1.8014

Latest posts by talbtree.bsky.social on Bluesky

Preview
Changelog

#nflverse news: we've just published nflreadr v1.5.0 to CRAN in time for the new season πŸŽ‰

It comes with a few 🚨breaking changes🚨 to core functions, of note:

- load_players()
- load_player/team_stats()
- load_depth_charts()
- load_participation()

Full changelog here, details in thread 🧡

02.09.2025 17:19 β€” πŸ‘ 35    πŸ” 9    πŸ’¬ 4    πŸ“Œ 3

Keep in mind that the sample for these are a lot lower than for MLB where teams play 162 games per season, so there is a bit of a team component here given teams have home grounds i.e. if a team is good year on year then their home ground will likely rate higher

20.08.2025 00:34 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image Post image

Wanted to compare how different cricket grounds produce different scores. Utilised a similar methodology as Baseball - see link - however used strike rate.

Give the Hundred is on currently, makes most sense to present the Women's and Men's 100 Park Factors
www.mlb.com/glossary/adv...

20.08.2025 00:34 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0
Preview
White Ball Analytics A website that uses statistics to explore cricket and other sport; one day matches, T20, IPL. Uses analytical tools such as Runs Added and Wins Added to understand the impact of individual players on ...

Nothing really forward facing for WP models either. My pkg cricreadr has one but has similar issues as others - eg the unpredictability in the last few overs (and first few). All similar - balls/wickets remaining + target. There are some good articles on this website - www.whiteballanalytics.com

18.08.2025 22:25 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
batting This app was built in Streamlit! Check it out and visit https://streamlit.io for more awesome community apps. 🎈

@danny.page nothing like PFF exists where with a (affordable) subscription you can scroll advanced stats. Cricinfo is pretty much the only place that exists.

t20bat.streamlit.app by Himanish probably comes closest to PFF - can breakdown player stats - it’s all just cricinfo manipulated data 1/2

18.08.2025 22:22 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Screenshot of a successful GitHub action being pushed to cricreadR

Screenshot of a successful GitHub action being pushed to cricreadR

Due to Cricinfo API changes cricreadr previously hadn’t ingested any new matches since October 2024. I’ve now fixed this! πŸŽ‰πŸ₯³

Data is now being updated again on a daily basis for the *main* T20 competitions being played:

github.com/albtree/cric...

15.08.2025 00:52 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Thanks, I was wondering!

21.07.2025 11:22 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Variable name comparison of v1 and v2 nflverse players data.

Variable name comparison of v1 and v2 nflverse players data.

Rare breaking change in the #nflverse!

`nflreadr::load_players()` now loads v2 players data.

During the process of the rewrite I decided to rename some variables for consistency and removed some irrelevant variables. Please see the below table for a detailed comparison of old and new data.

17.07.2025 19:33 β€” πŸ‘ 19    πŸ” 6    πŸ’¬ 2    πŸ“Œ 1

That function naming is gold

17.07.2025 07:35 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

My first post on my new site is now available!

02.07.2025 16:15 β€” πŸ‘ 5    πŸ” 2    πŸ’¬ 1    πŸ“Œ 0

Suppose every baguette molecule is a data point, the whole loaf obviously has a negative correlation and each slice obviously has a positive correlation. Should think of simpson's paradox as a kind of selection bias. Every time you cut a data set you cut along some sort of shape.

01.07.2025 22:15 β€” πŸ‘ 46    πŸ” 7    πŸ’¬ 3    πŸ“Œ 2

Wild

01.07.2025 05:24 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

Wow this looks horrendous

01.07.2025 00:18 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Was taking a look at the college RTMs done by @talbtree.bsky.social

There are 3 players drafted in the top 10 of the NFL draft with a 99+ Overall Score...

16.05.2025 01:34 β€” πŸ‘ 4    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Science abstract: POLICING
High-frequency location data show that race affects citations and fines for speeding
Pradhi Aggarwal1, Alec Brandon2*, Ariel Goldszmidt3, Justin Holz4, John A. List3, Ian Muir5, Gregory Sun6, Thomas Yu7
Prior research on racial profiling has found that in encounters with law enforcement, minorities are punished more severely than white civilians. Less is known about the causes of these encounters and their implications for our understanding of racial profiling. Using high-frequency location data of rideshare drivers in Florida (N = 222,838 individuals), we estimate the effect of driver race on citations and fines for speeding using 19.3 million location pings. Compared with a white driver traveling the same speed, we find that racial or ethnic minority drivers are 24 to 33% more likely to be cited for speeding and pay 23 to 34% more money in fines. We find no evidence that accident and reoffense rates explain these estimates, which suggests that an animus against minorities underlies our results.

Science abstract: POLICING High-frequency location data show that race affects citations and fines for speeding Pradhi Aggarwal1, Alec Brandon2*, Ariel Goldszmidt3, Justin Holz4, John A. List3, Ian Muir5, Gregory Sun6, Thomas Yu7 Prior research on racial profiling has found that in encounters with law enforcement, minorities are punished more severely than white civilians. Less is known about the causes of these encounters and their implications for our understanding of racial profiling. Using high-frequency location data of rideshare drivers in Florida (N = 222,838 individuals), we estimate the effect of driver race on citations and fines for speeding using 19.3 million location pings. Compared with a white driver traveling the same speed, we find that racial or ethnic minority drivers are 24 to 33% more likely to be cited for speeding and pay 23 to 34% more money in fines. We find no evidence that accident and reoffense rates explain these estimates, which suggests that an animus against minorities underlies our results.

missed this last month: data science informing psych, sociology, polisci

in Lyft data (222K drivers), Black or minority drivers get speeding tickets 1/3 more often **when they are known to be going the same speed**

beautiful work, it's racial profiling, case closed

www.science.org/doi/10.1126/...

09.05.2025 04:42 β€” πŸ‘ 111    πŸ” 46    πŸ’¬ 2    πŸ“Œ 5

I used my monthly bluesky open for good then πŸ˜‚

05.05.2025 21:35 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

The music is very soothing!

05.05.2025 21:28 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

These look great! Will follow along tomorrow

24.04.2025 06:48 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

β€œAnalyzing Baseball Data with R” book club ⚾️

Dive into baseball analytics with us! Perfect for beginner (to advanced) R coders who want to explore sabermetrics. #rstats

Join us by sharing your availability here: dslc.io/bookclubber?... (If it asks for a URL for the slack it’s dsclio.slack.com)

31.03.2025 15:01 β€” πŸ‘ 16    πŸ” 4    πŸ’¬ 4    πŸ“Œ 2
Post image

😭

25.03.2025 23:33 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Scatter plot for top 20 bowlers by balls bowled in the 2025 Women's Indian Premier League cricket competition. X axis is dot balls bowled %. Y axis is boundary % against. Both axes are reversed so best remains top right. Shabnim Ismail and Shikha Pandey are the top 2 bowlers in the top right.

Scatter plot for top 20 bowlers by balls bowled in the 2025 Women's Indian Premier League cricket competition. X axis is dot balls bowled %. Y axis is boundary % against. Both axes are reversed so best remains top right. Shabnim Ismail and Shikha Pandey are the top 2 bowlers in the top right.

Scatter plot for top 20 batters by balls facedin the 2025 Women's Indian Premier League cricket competition. X axis is non boundary strike rate. Y axis is boundary %. Annabel Sutherland and Sarah Bryce are middle right leading the way in non boundary strike rate over 5. Richa Ghosh is top middle leading the way in boundary % at about 40%

Scatter plot for top 20 batters by balls facedin the 2025 Women's Indian Premier League cricket competition. X axis is non boundary strike rate. Y axis is boundary %. Annabel Sutherland and Sarah Bryce are middle right leading the way in non boundary strike rate over 5. Richa Ghosh is top middle leading the way in boundary % at about 40%

My cricket R package (github.com/albtree/cric...) has been out of action since October after an API change. Have finally started working on it again. Popped out some Women's Premier League charts from some old code.

18.02.2025 21:50 β€” πŸ‘ 2    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
Preview
Flight Facilities Decade Mix: 1992-2002 The third instalment of our Decade mixes. Taking you chronologically from 1992 – 2002. The 1992 - 2002 Decade Mix is available to download on the Flight Deck App. Link here: flightfacilities.com/app

True banger of a mix

on.soundcloud.com/uZyLLkULxg82...

27.01.2025 08:48 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

πŸ˜‚

17.12.2024 01:33 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

On discussion with my psych I set myself up a fortnightly mental health reminder of things to think about which usually help me. We identified these as themes that usually help me stay on track 😊

17.12.2024 00:59 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

These are great!

16.12.2024 22:12 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Free Five Minute Guided Meditation with Eve
YouTube video by Headspace Free Five Minute Guided Meditation with Eve

Trying to use mindfulness more regularly when I’m feeling overwhelmed or need a circuit breaker to help snap out of a grumpy mood. Wanted to share this one from last week, especially the quote:
β€œYou deserve this time. You matter and so does your well being”

Good self care!

youtu.be/pB_qUY1dPrs?...

16.12.2024 22:10 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Same, same but different

β€œLet me just dive into these 1,000 records that are showing up wrong.
Ok will just join them to this other table
**code runs for a few mins***
Ah, 1.2million results….wrong”

16.12.2024 22:08 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Week 4 as a data analyst using SQL

Me: beautiful, got all the right fields, looking great, good job me!
*compares results with an old report*
155 rows vs 4 rows

πŸ˜‚

05.12.2024 23:52 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 1

Greg Olsen putting on a clinic on why Arizona should go for this

01.12.2024 20:45 β€” πŸ‘ 8    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

@talbtree is following 20 prominent accounts