Spencer Solomon
All work

RetiredPersonal, 2026

Slick Bets: an NBA prediction model

My first Claude Code project: an NBA prediction app that picked 71.5% of game winners over 648 games, tracked live.

All Predictions Slick Bets, 2025-26 season
GamePickHome win %Away win %Predicted spread
DAL @ BOSBOS70.7%29.3%BOS -15.6
MIA @ CHACHA58.3%41.7%CHA -5.0
POR @ HOUHOU59.5%40.5%HOU -6.0
NYK @ DENNYK42.6%57.4%NYK -7.2
NOP @ PHXPHX57.6%42.4%PHX -4.5
LAC @ SASSAS59.1%40.9%SAS -5.7
IND @ LALLAL63.8%36.2%LAL -9.6
My role
I directed AI coding tools through every part of it, made the calls on the model and the product, and reviewed everything before it shipped.
Timeline
I built it over about ten weeks, and it ran live through the end of the 2025-26 NBA season.
Outcome
A small group of friends used it, and I never promoted it. I never tracked betting profit, so I make no claims about beating the books.
Built with
  • Python
  • Streamlit
  • SQLite
  • Fly.io
  • GitHub Actions
  • AI coding tools
71.5%
of game winners picked correctly, tracked live
648
games predicted, each locked in before tip-off
840
combinations of settings backtested on 900+ games
<10
points median miss on the predicted spread

Retired. It ran live through the 2025-26 NBA season, and it’s dormant now.

The problem

I wanted to know if I could build a model that predicts NBA games well enough to trust. I also wanted to see if it could find bets where the sportsbooks’ odds were off.

I also wanted to learn how to build software with AI coding tools. This was my first real project with it.

What I built

Slick Bets is a web app that predicts every NBA game, every day.

  • Today’s games: the model’s pick, win probability, predicted point spread and total, and a confidence level, with live scores.
  • Game details: what moved the prediction (injuries, rest, home court), plus the model’s “fair” odds next to real sportsbook lines.
  • Model accuracy: how the picks have actually done, overall and by confidence level, over any date range.
  • Team ratings: a power ranking of all 30 teams.

Under the hood, every team has an Elo rating, a score that rises and falls with each result. Bigger wins move it more. Each team has separate offense and defense ratings, and they combine into a predicted score for both teams.

Current Elo Rankings

#TeamNameElovs AvgTier
1NYKNew York Knicks1632+132Championship
2SASSan Antonio Spurs1624+124Championship
3OKCOklahoma City Thunder1606+106Championship
4BOSBoston Celtics1568+68Contender
5DETDetroit Pistons1564+64Contender
6CHACharlotte Hornets1560+60Contender
7DENDenver Nuggets1546+46Playoff
8HOUHouston Rockets1536+36Playoff
9TORToronto Raptors1535+35Playoff
10CLECleveland Cavaliers1535+35Playoff
11LALLos Angeles Lakers1525+25Playoff
The Team Ratings page ranks all 30 teams by Elo and sorts them into tiers.

The model then adjusts for three things:

  • Injuries, weighted by how much the missing player matters.
  • Rest, with a penalty for the second night of back-to-back games.
  • Home court, sized to each team’s own home record.

Game Details

  • POR @ HOU HOU on B2B (-35 Elo)
  • NYK @ DEN DEN on B2B (-35 Elo)
  • NOP @ PHX PHX on B2B (-35 Elo), NOP on B2B (-35 Elo)
  • LAC @ SAS SAS on B2B (-35 Elo)
  • IND @ LAL LAL on B2B (-35 Elo)
  • Loaded odds from 3 sportsbooks
GamePickHome fair oddsAway fair oddsHome restAway rest
DAL @ BOSBOS-241+2411d0d B2B
MIA @ CHACHA-139+1391d0d B2B
POR @ HOUHOU-146+1460d B2B1d
NYK @ DENNYK+134-1340d B2B1d
NOP @ PHXPHX-135+1350d B2B1d
LAC @ SASSAS-144+1440d B2B1d
IND @ LALLAL-176+1760d B2B1d
Game Details lists every adjustment behind the day’s picks, like a team on the second night of a back-to-back, above the full table of predictions and fair odds.

It runs itself. Every morning a scheduled job pulls yesterday’s results, updates the ratings, checks injuries and odds, and makes the day’s picks. Every code change runs the tests and deploys on its own.

Stack, for the curious: Python and Streamlit for the app, SQLite for data, hosted on Fly.io, with GitHub Actions for tests and deploys. Game and odds data come from BallDontLie, with ESPN and The Odds API as backups.

How I built it

I directed AI coding tools through every part of it, over about ten weeks. I set the goals, made the calls on the model and the product, and reviewed everything before it shipped. My rule was preview, approve, then push.

Three decisions shaped it:

I cut the betting features. The app started as a “value finder” that compared the model’s odds to sportsbook odds, sized bets, and tracked a bankroll. The value picks weren’t right. There are also too many ways to chase value (spreads, moneylines, player props) to do any of them well at once. So I narrowed it to one thing the model could do well, picking winners, and planned to build out from there.

I tuned the model with data, not instinct. I had the AI build a backtest that replays the season. I ran 840 combinations of settings against more than 900 games. Then I chose settings that were slightly less accurate at picking winners but better at predicting the margin. I also added tests that fail the build if accuracy drops below a set bar.

I learned production by running into it. I’d never deployed an app before. Along the way I hit everything:

  • the daily job couldn’t see its passwords
  • the server ran out of memory
  • duplicate games showed up
  • data providers went down

Each one became a fix and a written rule in the project’s instructions file, so the AI wouldn’t repeat the mistake.

Outcome

Overall Accuracy

648
Games analyzed
463/648
Correct picks
71.5%
Pick accuracy
11.9
Avg spread error
9.9
Median spread error
The app’s own Model Accuracy page, which tracked every locked-in pick.
  • 71.5% of winners picked correctly (463 of 648 games), tracked live from mid-season through the end of 2025-26. Every prediction was locked in before tip-off. The median spread miss was under 10 points.
  • I retuned the model in early March using that season’s games, so only the picks after that point are fully forward-looking.
  • It only measures win/loss picks. I never tracked betting profit, so I make no claims about beating the books.
  • A small group of friends used it. I never promoted it.

What I learned

Shipping is its own skill. The model was the fun part. Hosting, scheduling, data outages and memory limits were where most of the learning happened, and I wouldn’t have learned them without putting it live.

Cutting scope was the right call. A focused predictor that worked beat a betting tool that didn’t.

If I picked it back up, I’d fix the interface first. It shows a lot of numbers but doesn’t tell you what to do with them.