Advertisements

Author Archives: statsinthewild

NFL Win probability art

So I was screwing around with the nflscrapr package by Ron Yurko and Maksim Horowitz, probably doing something useless and unproductive.  In their tutorial on the github, I came across this image:

Screen Shot 2019-06-21 at 9.56.37 AM.png

And for some reason, I thought that would look really cool rotated 90 degrees.  So after a few hours of playing around with win probabilities (and smoothing), I came up with these.  These are the win probabilities for every NFL team for the 2018 season.  I think these look awesome, and I’ll probably bring a few of these with me to the JSM Data Art show.

I particularly like New Orleans, Jacksonville, and New England:

win_prob_art_NO_2018win_prob_art_JAX_2018

(Wouldn’t this look nice in your office?)

Screen Shot 2019-06-21 at 9.59.56 AM.png

If you are interested in ordering one of these, DM me at @statsinthewild.

Cheers.

 

Advertisements

Some random NCAA Tournament thoughts

I want to start with this plot:

Screen Shot 2019-03-20 at 8.09.31 PM.png

This plot shows all the 1 and 2 seeds and their odds of making it to each round relative to Duke.  I think the most interesting parts of this plot are where they cross.  So for instance, Gonzaga is more likely to make the Final 4 than Virginia, but Virginia is more likely to make the Finals than Gonzaga.  That’s because Gonzaga will likely have to play Duke to get to the Finals.  Whereas Virginia will likely only (ONLY) have to play North Carolina/Kentucky to get to the Finals.

Another example is that Tennessee is more likely to make the Sweet Sixteen than Michigan State, but Michigan State is more likely to make the Elite 8 than Tennessee.  It then switches back again and Tennessee is more likely to make it to the Final 4, Finals, and win it all than Michigan State.  So what is going on here?  It’s Duke again.  In order for Michigan State to get to the Final Four, they’ll probably have to beat Duke.

Zion Williamson is really good.  Thus, Duke is really good.

Now here is some more fun stuff:

Most likely double digit seeds to win first round game

(10) Seton Hall over Wofford – 41.25%

(10) Florida over Nevada – 40.23%

(10) Minnesota over Louisville – 32.5%

(11) Arizona State over Buffalo – 32.5% (given they win the play in game)

(11) St. Mary’s over Villanova – 28.35%

(11) Ohio State over Iowa State – 27.84%

(11) Belmont over Maryland – 25.52%

(12) Oregon over Wisconsin – 24.95%

(12) Murray State over Marquette – 24.1%

(12) Liberty over Mississippi State – 21.52%

(14) Georgia State over Houston – 17.6%

(14) Yale over LSU – 17.35%

(13) Northeastern over Kansas – 13.95%

(13) UC Irvine over Kansas State – 13.6%

(13) St. Louis over Virginia Tech – 13.6%

(13) Vermont over Florida State – 12.8%

Biggest toss-up first round games

(10) Iowa over (7) Cincy – 50.38%

(8) Mississippi over (9) Oklahoma – 50.65%

(9) UCF over (8) VCU – 50.69%

(8) Syracuse over (9) Baylor (51.97%)

Most like to make it to the Sweet 16

(1) Duke – 90.67%

(1) Gonzaga – 83.71%

(1) Virginia – 83.6%

(1) North Carolina – 83.34%

(2) Kentucky – 79.82%

(2) Tennessee – 76.61%

(2) Michigan State – 74.27%

(3) Texas Tech – 69.74%

(3) Purdue – 66.27%

(2) Michigan – 64.83% (They are going to have to beat either Nevada or Florida.  Both are tough opponents in for a 2 seed in the second round.)

Most likely double digit seed to make Sweet Sixteen

(10) Florida – 11.53%

(10) Iowa 11.27%

(11) Ohio St – 11.22%

(12) Oregon – 8.15%

(11) Belmont – 7.32%

(10) Seton Hall – 7.02%

Most likely 5 seed or higher to make Final Four

(5) Auburn  – 8.87%

(6) Iowa State – 7.41%

(5) Wisconsin – 4.96%

(7) Nevada – 3.62%

(5) Mississippi State – 3.55%

Most likely double digit seed to make Final Four

(10) Florida – 1.04%

(10) Iowa 1.00%

(11) Ohio St – 0.71%

(10) Seton Hall – 0.033%

Most likely to win the tournament

(1) Duke – 21.07%

(1) Virginia – 15.94%

(1) Gonzaga – 15.78%

(2) Kentucky – 8.16%

(1) North Carolina – 7.96%

(2) Tennessee – 6.74%

(2) Michigan St – 5.4%

(2) Michigan – 3.87%

(3) Purdue – 3.28%

(3) Texas Tech – 2.88%

(5) Auburn – 1.09%

(6) Iowa State – 0.91%

(4) Kansas – 0.86%

 

Cheers.

NCAA Tournament Preview

Well, just like last year, I’m predicting that Loyola Chicago won’t make the Final Four.  But I’ll probably be wrong again somehow…….. Anyway, here are some thoughts about the NCAA tournament from a guy who hasn’t paid attention all year until last week.

Here is how I CURRENTLY rank the tournament teams.  This is based on heavily weighting recent performances of teams.  I’ll have more later, but for now I hope Harrel enjoys these.  Now I have to do “real work”……..

Rankings

Team (Seed)

  1. Gonzaga (1)
  2. Duke (1)
  3. Virginia (1)
  4. Kentucky (2)
  5. North Carolina (1)
  6. Tennessee (2)
  7. Michigan State (2)
  8. Michigan (2)
  9. Purdue (3)
  10. Texas Tech (3)
  11. Nevada (7)
  12. Kansas (4)
  13. Auburn (5)
  14. Iowa St (6)
  15.  Florida St (4)
  16. Wisconsin (5)
  17. Virginia Tech (4)
  18. Houston (3)
  19. Villanova (6)
  20. LSU (3)
  21. Kansas St (4)
  22. Maryland (6)
  23. Mississippi St (5)
  24. Louisville (7)
  25. Buffalo (6)
  26. Marquette (5)
  27. Cincinnati (7)
  28. Syracuse (8)
  29. Iowa (10)
  30. Florida (10)
  31. Utah St (8)
  32. Baylor (9)
  33. Mississippi (8)
  34. Oklahoma (9)
  35. Ohio State (11)
  36. Washington (9)
  37. Oregon (12)
  38. Wofford (7)
  39. UCF (9)
  40. Minnesota (10)
  41. St. John’s (11)
  42. VCU (8)
  43. St. Mary’s (CA) (11)
  44. Arizona St (11)
  45. Seton Hall (10)
  46. Belmont (11)
  47. Temple (11)
  48. New Mexico St (12)
  49. Murray St (12)
  50. Yale (14)
  51. Northeastern (13)
  52. Liberty (12)
  53. Vermont (13)
  54. St. Louis (13)
  55. UC Irvine (13)
  56. Montana (15)
  57. Old Dominion (14)
  58. N Kentucky (14)
  59. Georgia St (14)
  60. Colgate (15)
  61. Bradley (15)
  62. Iona (16)
  63. N Dakota St (16)
  64. Gardner-Webb (16)
  65. Fairleigh Dickinson (16)
  66. Prairie View A&M (16)
  67. NC Central (16)
  68. Abilene Christian (15)

Picks

Round of 32

East

  • Duke
  • UCF
  • Miss St
  • Virginia Tech
  • Maryland
  • LSU
  • Louisville
  • Michigan St

West

  • Gonzaga
  • Syracuse
  • Marquette
  • Florida St
  • Buffalo
  • Texas Tech
  • Nevada
  • Michigan

South

  • Virginia
  • Ole Miss
  • Wisconsin
  • Kansas State
  • Villanova
  • Purdue
  • Cincinnati
  • Tennessee

Midwest

  • UNC
  • Utah St
  • Auburn
  • Kansas
  • Iowa St
  • Houston
  • Wofford
  • Kentucky

Sweet 16

  • Duke
  • Virginia Tech
  • LSU
  • Michigan St
  • Gonzaga
  • Florida St
  • Texas Tech
  • Michigan
  • Virginia
  • Wisconsin
  • Purdue
  • Tennessee
  • UNC
  • Kansas
  • Iowa St
  • Kentucky

Elite 8

  • Duke
  • Michigan St
  • Gonzaga
  • Michigan
  • Virginia
  • Tennessee
  • UNC
  • Kentucky

Final Four

  • Duke
  • Gonzaga
  • Virginia
  • Kentucky

Finals

  • Gonzaga
  • Virginia

Champion

  • Gonzaga

 

 

 

 

Official StatsInTheWild Super Bowl Predictions

Pick: Patriots 27-26

Spread: Rams +2.5

Total: Under 56.5

 

2019 Super Bowl Squares

Unrelated to this post: What time does the Super Bowl start?  5:30pm Central.

Moving on, below is a 2d histogram of frequencies of the last digits of the final score of ever NFL game from 1920 through last year’s Super Bowl.

superbowlsquares2019

If I only use games from 2000 through the 2018 Super Bowl the 2d histogram looks like this.

SuperBowlSquares2019_Recent.png

NFL Playoff Predictions

Here are my picks for the NFL playoffs.  Also, Ravens-Chargers shouldn’t be a first round game.

Wildcard Round

Texans over Colts, 26-22

Chargers over Ravens, 22-21

Cowboys over Seahawks, 21-20

Bears over Eagles, 27-18

Divisional Round

Chiefs over Chargers, 28-25

Patriots over Texans, 24-21

Saints over Cowboys, 30-18

Rams over Bears, 29-22

Conference Championships

Chiefs over Patriots, 29-27

Saints Over Rams, 29-27

Super Bowl

Saints over Chiefs, 30-27

 

 

 

Biggest NFL Spread Changes in Rematches in 2018

The Bears just clinched the NFC North for the first time in, I want to say, 100 years, by beating the Green Bay Packers last weekend at Soldier Field.  Their week 15 meeting was the second time these division rivals have played this season and their first meeting came way back in week 1 when Chicago blew a 20 point lead and they looked well on their way to a 5-11 season, while Aaron Rodgers looked like Superman.  But that was a long time ago and everyone seems to have caught up to the idea that the Bears are good this year and Green Bay is not.  And you can see this in the spreads for the two games.

In the first meeting at Lambeau Field in week 1, the Packers were 6.5 point favorites over the Bears, who covered despite losing in crushing fashion.  14 weeks later and spread for the Bears-Packers game at Soldier Field was Bears -5.5.  That is a shift of 12 points.

Now some of this has to do with home field advantage.  If two teams were essentially equal on a neutral field, you’d expect this difference to be about 6-ish (-3 at home and +3 away).  But 12 seemed rather large to me, and I wondered if that was the largest shift in spreads in a rematch this year.  While it is not, in fact, the largest, it is close.  There were two matchups that had a larger shift in spreads.  Stop reading and try to guess what those match-ups were.

Screen Shot 2018-12-21 at 10.11.58 AM.png

Ok.  You ready now?  The largest difference this year was the Titans and Jaguars.  In September the home Jaguars were favored by 10 over the Titans in week 3.  In week 13, The Titans at home were favored by 5.5, for a 15.5 point swing.  Coming in at number 2 was Atlanta and New Orleans. In their first meeting in week 3, the Falcons were favored by 2.  In week 11, the Saints were favored by 12.5.  The previously mentioned Bears and Packers came in at 3rd largest with a shift of 12.0.

Screen Shot 2018-12-21 at 12.01.37 PM.png

The only other two double digit shifts were Buffalo-NY Jets and Dallas-Philadelphia.  The Bill vs Jets shift happened in only 4 weeks.  In week 10, the Jets were favored by 7, then in week 14 the Bills were favored by 4.5 .  Rounding out the top five was the Cowboys and Eagles.  In week 10, the Eagles were favored by 7 points then by week 14 the Cowboys were favored by 3.5.  Here is the list of all of the shifts of at least 5:

  1. Jacksonville – Tennessee: 15.5
  2. Atlanta – New Orleans:  14.5
  3. Chicago – Green Bay:  12.0
  4. Buffalo – New York Jets: 11.5
  5. Dallas – Philadelphia: 10.5
  6. Kansas City – LA Chargers: 7
  7. Dallas – Washington: 6
  8. Miami – New York: 6
  9. San Francisco – Seattle: 5.5
  10. Baltimore – Cincinnati: 5.5
  11. Cleveland – Pittsburgh: 5.5
  12. LA Chargers – Oakland: 5.0

I’ll follow up on this when the season ends, and I also want to go back and look at past seasons.

Cheers.

 

There is no way NFL teams should care what Warren Sharp thinks

The Ringer published an article today entitled “The NFL’s Analytics Revolution Has Arrived” by Kevin Clark.  The first section of the article is a relatively interesting overview of the state of advanced analytics in the NFL.  But then everything goes down hill.  And where does it start to go down hill?  Right here:

“It is amazing,” Warren Sharp said, “how many teams anonymously follow me on Twitter.” Sharp is an engineer with his own analytics site and has been playing around with football statistics for about 20 years. He is among the top minds in football not working full time for a team.

Ok.  First of all, why does this read as a press release promoting Warren Sharp?  Second, let’s talk for a second about who Warren Sharp is.  You might remember him from this blog post (which was picked up by Slate, the Wall Street Journal, and Huffington Post) about how the “The New England Patriots Prevention of Fumbles is Nearly Impossible”.  It turns out that the analysis was highly flawed, and myself and a colleague detailed the problems with the “analysis” over at Deadspin and Neil Paine over at FiveThirtyEight.com did a great job summarizing the whole kerfuffle.

Sharp then basically claimed that he had been redeemed by the Wells Report, but that was also not true either.  In fact, in 2015 immediately after the league implemented stricter ball handling procedures to prevent potentially deflating footballs, the Patriots still had the lowest fumble rate in the league.  As Mike Lopez explains in Sports Illustrated:

In any case, the 2015 season makes for an excellent out-of-sample test with respect to New England’s fumble tendencies. Although the Patriots have been accused of going crazy lengths to gain a winning edge, it seems safe to assume that any suspect ball routine could not have been a part of the game-day preparation process this season. (The NFL implemented new procedures for inspecting game balls.) As a result, if one initially made the link between the Patriots low fumble rates and deflated footballs, the natural follow-up would be to assume that New England’s fumble rates would revert toward the league average in 2015.

So what happened in 2015?

• The Patriots had the fewest fumbles of any NFL offense.
• The Patriots had the best fumble rate of any NFL offense.
• The Patriots had one of their best fumble rates of the past decade.

Based on only this, it is my opinion that Warren Sharp is really not that great of a statistical analyst.  And look, I make mistakes.  Everyone makes mistakes.  Its basically impossible to do statistics without ever making a mistake.  Humans are human after all.  But what bothers me so much about Sharp is that he just seems to ignore the legitimate criticisms and doubles down.

But wait, there is more! In addition to this, Warren Sharp is a tout.  While The Ringer generously promotes his site, Sharp Football Stats, they don’t seem to mention his other site, Sharp Football Analysis, where Sharp sells football picks to gamblers.  (You can buy a season long membership for the low, low price of $250….)  According to Sharp, his record, shown below, is a 59% winning percentage over 12 years, with a whopping 77% win percentage in Overs (which is somehow different than “Over Leans”).

  Screen Shot 2018-12-20 at 12.23.42 AM

When something seems too good to be true, it usually is.  There is absolutely no way he’s correctly picked 59% of games against the spread over the course of 12 years.  And here’s how you can tell this isn’t real: If he was picking 59% correctly over the course of 12 years, he wouldn’t be selling the picks.  He wouldn’t need to because he’s be extremely wealthy and wouldn’t need your $250 membership fee.  There are a few very good professional gamblers, but you’ve probably never heard of them (Like Bill Benter, for example), and they certainly wouldn’t be selling their picks if their picks were any good because they could be making way more money betting on them (Benter made a BILLION dollars….with a “B”!). So his numbers are probably not the most truthful……

In fact, Game Advisers, which tracks handicappers plays, has Warren Sharp as 16-23-1 for a negative 23.41% ROI.  Not quite the same as what Warren claims.
Screen Shot 2018-12-20 at 12.38.06 AM.png

Also, apparently, he pissed someone off enough for them to start http://sharpfootballanalysistruth.blogspot.com. The blog has exactly one post:

Screen Shot 2018-12-20 at 12.43.23 AM.png

One of the links in that blog post links to an entire thread about how Warren Sharp is a scam. A poster named Dr. H refers to him as a “sleazeball hack”……..his words, not mine.  Screen Shot 2018-12-20 at 12.52.07 AM.png

And finally, a public service announcement from one of the covers.com forums:

Screen Shot 2018-12-20 at 12.52.55 AM.png

So anyway, my point is that Sharp is a tout who does, at best, sloppy statistical analysis.  And yet these major media outlets are touting (see what I did there…?) him as this genius.  He’s not.

Anyway, back to that quote from The Ringer article.  That paragraph continues:

In fact, when you talk to people inside the league, some think he might be the top mind, period. Though he’s been writing on the internet for many years, he said it wasn’t until 2018 that teams started reaching out to him to discuss analytics. He says he’s heard from at least five and has done work as a consultant.

While I haven’t personally asked anyone I know who works for an NFL team, I would bet everything I own that exactly 0% of the data scientists/statisticians working for NFL teams would consider this guy to be the “top mind, period“.  And if I’m wrong about that, I can just take a page out of Warren Sharp’s playbook and lie about my record……..

Cheers.

P.S.  They also mention my old friend Bill Barnwell (who is still blocking me on Twitter) in this article.  I actually enjoy reading Barnwell’s stuff, but he also wrote this article once, which was a really poorly done statistical analysis for Grantland.  You can read all about the shortcomings of that analysis here and here.

P.P.S.  I’ve added this flowchart here in case you are thinking about getting involved with a tout (via @cluelessTroll):Screen Shot 2018-12-20 at 11.24.51 AM.png

Chess Art: Update

In my original post I fixed a few parts of the code (the white bishop was missing…derp) and I made the border lines thicker.  I’ve also found that these look way better when only using the first 40-50 moves or so.  Beyond that they get really boring.  So here are all 12 games and the 3 tie break games using only the first 50 moves (25 white, 25 black):

wcc2018_game12.pgn_50_moveswcc2018_game11.pgn_50_moveswcc2018_game10.pgn_50_moveswcc2018_game9.pgn_50_moveswcc2018_game8.pgn_50_moveswcc2018_game7.pgn_50_moveswcc2018_game6.pgn_50_moveswcc2018_game5.pgn_50_moveswcc2018_game4.pgn_50_moveswcc2018_game3.pgn_50_moveswcc2018_game2.pgn_50_moveswcc2018_game1.pgn_50_moveswcc2018_tb3.pgn_50_moveswcc2018_tb2.pgn_50_moveswcc2018_tb1.pgn_50_moves

All 12 games of the world chess championship as art

In the past, I’ve done some art with famous chess games.  I was doing it all “by hand”.  But I just recently spent some time automating the process.  Thank to the “rchess” package: http://jkunst.com/rchess/#pgn

These are all available for purchase here.

wcc2018_game12.pgnwcc2018_game11.pgnwcc2018_game10.pgnwcc2018_game9.pgnwcc2018_game8.pgnwcc2018_game7.pgnwcc2018_game6.pgnwcc2018_game5.pgnwcc2018_game4.pgnwcc2018_game3.pgnwcc2018_game2.pgnwcc2018_game1.pgn