nba-monte-carlo
Monte Carlo simulation of the NBA season, leveraging dbt, duckdb and evidence.dev
File Explorer
Download Latest Version (.zip)- devcontainer.json
- Dockerfile.dev-container
- deploy_on_netlify.yml
- manual_build.yml
- pr_to_master.yml
- scheduled_run.yml
- settings.json
- nba_elo.csv
- nba_results.csv
- nba_schedule.csv
- nba_team_ratings.csv
- xf_series_to_seed.csv
- nfl_schedule.csv
- nfl_team_ratings.csv
- .sources
- config.toml
- .gitignore
- nba_pipeline.py
- nfl_pipeline.py
- catalog.json
- index.html
- manifest.json
- .profile.json
- custom-formatting.json
- extensions.json
- .gitkeep
- GithubStarCount.svelte
- slider.svelte
- how_it_works.md
- index.md
- index.md
- [nba_games].md
- index.md
- [nba_teams].md
- index.md
- advanced.md
- historical_matchups.md
- index.md
- today.md
- [nfl_teams].md
- index.md
- index.md
- predictions.md
- +layout.svelte
- app.css
- index.md
- elo_latest.sql
- future_games.sql
- game_trend.sql
- most_recent_games.sql
- past_games.sql
- past_games_summary.sql
- past_games_summary_by_team.sql
- playoff_odds.sql
- playoff_odds_by_team_by_wins.sql
- records_table.sql
- reg_season.sql
- season_summary.sql
- seed_details.sql
- standings.sql
- summary_by_team.sql
- team_matchups.sql
- thru_date.sql
- tournament_results.sql
- tournament_seeding.sql
- tournament_standings.sql
- wins_details.sql
- wins_seed_scatter.sql
- all_teams.sql
- elo_latest.sql
- future_games.sql
- game_trend.sql
- most_recent_games.sql
- past_games.sql
- past_games_summary.sql
- past_games_summary_by_team.sql
- reg_season.sql
- season_summary.sql
- seed_details.sql
- standings.sql
- summary_by_team.sql
- thru_date.sql
- wins_seed_bar.sql
- src_nba_elo_history.sql
- src_nba_elo_rollforward.sql
- src_nba_latest_elo.sql
- src_nba_latest_results.sql
- src_nba_ratings.sql
- src_nba_results_by_team.sql
- src_nba_results_log.sql
- src_nba_season_teams.sql
- src_nba_seasons.sql
- src_nba_team_matchups.sql
- src_nba_team_stats.sql
- src_nba_teams.sql
- src_playoff_summary.sql
- src_reg_season_actuals_enriched.sql
- src_reg_season_end.sql
- src_reg_season_predictions.sql
- src_reg_season_summary.sql
- src_season_summary.sql
- src_tournament_end.sql
- src_nfl_elo_rollforward.sql
- src_nfl_latest_elo.sql
- src_nfl_latest_results.sql
- src_nfl_playoff_summary.sql
- src_nfl_ratings.sql
- src_nfl_reg_season_end.sql
- src_nfl_reg_season_predictions.sql
- src_nfl_reg_season_summary.sql
- src_nfl_schedules.sql
- src_nfl_season_summary.sql
- src_nfl_teams.sql
- connection.yaml
- .gitignore
- .npmrc
- evidence.config.yaml
- evidence.plugins.yaml
- package-lock.json
- package.json
- README.md
- tailwind.config.js
- nba_notebook.malloynb
- nba_summary.malloy
- reg_season_end.parquet
- .gitkeep
- __init__.cpython-311.pyc
- .gitkeep
- __init__.py
- calcs.sql
- playoff_summary.sql
- reg_season_actuals_enriched.sql
- reg_season_end.sql
- reg_season_predictions.sql
- reg_season_summary.sql
- season_summary.sql
- tournament_end.sql
- nba_elo_rollforward.cpython-311.pyc
- nba_elo_rollforward.py
- nba_latest_elo.sql
- nba_latest_results.sql
- nba_post_season_schedule.sql
- nba_random_num_gen.sql
- nba_ratings.sql
- nba_reg_season_actuals.sql
- nba_reg_season_schedule.sql
- nba_results_by_team.sql
- nba_results_log.sql
- nba_schedules.sql
- nba_teams.sql
- nba_vegas_wins.sql
- nba_xf_series_to_seed.sql
- prep_nba_results.sql
- prep_nba_schedule.sql
- nba_results.sql
- nba_schedule.sql
- nba_team_ratings.sql
- xf_series_to_seed.sql
- playin_sim_r1.sql
- playin_sim_r1_end.sql
- playin_sim_r2.sql
- playin_sim_r2_end.sql
- initialize_seeding.sql
- playoff_sim_r1.sql
- playoff_sim_r2.sql
- playoff_sim_r3.sql
- playoff_sim_r4.sql
- reg_season_simulator.sql
- .gitkeep
- .gitkeep
- .gitkeep
- config.yaml
- schema.yaml
- calcs.sql
- tests.sql
- nba_team_stats.sql
- nba_tiebreakers_optimized.py
- playoff_summary.sql
- reg_season_actuals_enriched.sql
- reg_season_end.sql
- reg_season_predictions.sql
- reg_season_summary.sql
- season_summary.sql
- team_matchups.sql
- tournament_end.sql
- nba_elo_history.sql
- nba_elo_rollforward.py
- nba_latest_elo.sql
- nba_latest_results.sql
- nba_post_season_schedule.sql
- nba_random_num_gen.sql
- nba_ratings.sql
- nba_reg_season_actuals.sql
- nba_reg_season_schedule.sql
- nba_results_by_team.sql
- nba_results_log.sql
- nba_schedules.sql
- nba_season_teams.sql
- nba_seasons.sql
- nba_teams.sql
- nba_vegas_wins.sql
- nba_xf_series_to_seed.sql
- nba_raw_results.sql
- nba_raw_schedule.sql
- nba_raw_team_ratings.sql
- nba_raw_xf_series_to_seed.sql
- playin_sim_r1.sql
- playin_sim_r1_end.sql
- playin_sim_r2.sql
- playin_sim_r2_end.sql
- initialize_seeding.sql
- playoff_sim_r1.sql
- playoff_sim_r2.sql
- playoff_sim_r3.sql
- playoff_sim_r4.sql
- reg_season_simulator.sql
- nfl_playoff_summary.sql
- nfl_reg_season_predictions.sql
- nfl_reg_season_summary.sql
- nfl_season_summary.sql
- nfl_tiebreakers_optimized.py
- nfl_elo_rollforward.py
- nfl_latest_elo.sql
- nfl_latest_playoff_results.sql
- nfl_latest_results.sql
- nfl_random_num_gen.sql
- nfl_ratings.sql
- nfl_reg_season_actuals.sql
- nfl_schedules.sql
- nfl_teams.sql
- nfl_vegas_wins.sql
- nfl_raw_results.sql
- nfl_raw_schedule.sql
- nfl_raw_team_ratings.sql
- nfl_initialize_seeding.sql
- nfl_playoff_sim_r1.sql
- nfl_playoff_sim_r2.sql
- nfl_playoff_sim_r3.sql
- nfl_playoff_sim_r4.sql
- nfl_reseed.sql
- nfl_reg_season_end.sql
- nfl_reg_season_simulator.sql
- .gitkeep
- _nba_docs.yml
- _nfl_docs.yml
- _sources.yml
- assert_nfl_tiebreakers_properly_broken.sql
- .gitignore
- .gitkeep
- dbt_project.yml
- package-lock.yml
- packages.yml
- profiles.yml
- load_season_summary.py
- setup_env.sh
- .gitattributes
- .gitignore
- .python-version
- AGENTS.md
- Dockerfile
- LICENSE
- Makefile
- pyproject.toml
- README.md
- uv.lock
π Installation Guide
git clone https://github.com/matsonj/nba-monte-carlo
Downloads the entire project code from GitHub to your computer.
cd nba-monte-carlo
Moves into the project folder you just downloaded.
2. Official Install Script
Easy Recommended- APT (Debian/Ubuntu κ³μ΄) Built into Debian/Ubuntu-based Linux distributions.
sudo apt-get install python3.9 python3-pip python3.9-venv
Installs directly from the APT package repository (Debian/Ubuntu-based).
Pulled directly from this repo's README.
3. Docker
Easy- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
make docker-build docker-run-evidence
Compiles the code based on the generated build configuration to produce an executable.
make docker-build
Compiles the code based on the generated build configuration to produce an executable.
make docker-run-evidence
Compiles the code based on the generated build configuration to produce an executable.
docker-build:
Type this command into your terminal and run it.
docker build -t mdsbox .
Builds a runnable image based on the Dockerfile.
Pulled directly from this repo's README.
4. Node.js
Easycd evidence
This project's files live in a subfolder, so move into it first.
npm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
5. Python
Easysudo apt-get install python3.9 python3-pip python3.9-venv
Installs directly from the APT package repository (Debian/Ubuntu-based).
Pulled directly from this repo's README.
6. Make
Medium- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make build run
Compiles the code based on the generated build configuration to produce an executable.
make docker-build docker-run-evidence
Compiles the code based on the generated build configuration to produce an executable.
make docker-build
Compiles the code based on the generated build configuration to produce an executable.
make docker-run-evidence
Compiles the code based on the generated build configuration to produce an executable.
Pulled directly from this repo's README.
