Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 2.73 KB

README.md

File metadata and controls

27 lines (14 loc) · 2.73 KB

NBA Lottery Simulator

Create your own NBA lottery system with this web application.

How to Use

You can visit the applicaton at: https://nba-lottery-simulator.herokuapp.com/

To make a model choose your specs on the left. The first choice is to choose whether the model should be based on the rank of the teams or their wins-loss record. Next, pick a season you’d like to simulate.

If you choose ‘Rank’, a list of the combinations assigned to each team appears in the ‘Team Records’ table. Adjust these to create whatever model you like. You can also click the ‘Preset’ buttons to use the combinations of the newly approved system or the old system it replaces.

With ‘Record’ based systems, a team’s wins determine their combinations according to a mathematical function (a modified logit function for you math nerds). To modify this mathematical function, you change the ‘slope’ and ‘shift’ parameters.

If you look at the shape of the curve, there’s a high end on the left and a low end on the right. The ‘slope’ determines how quickly the curve transitions from high to low. The higher the slope, the steeper the transition.

‘Shift’ moves the graph laterally. As the ‘shift’ goes up, the graph moves right. This means more teams get the highest odds. As the ‘shift’ goes down, the graph moves left and fewer teams reach the flat part of the curve.

Note that changing the ‘slope’ significantly changes the function and typically requires modifying the ‘shift’ in response.

In either model, you can choose how many picks will be selected with the lottery using the ‘Lottery Pick’ spec. For example, if you choose 5, then 5 picks will be selected with the lottery and the worst team could drop all the way to the sixth pick.

The ‘Previous Seasons’ spec allows you to factor in a team’s records over multiple seasons when assigning combinations. If ‘Previous Seasons’ is set to 0 then the lottery will be determined by a single season. If ‘Previous Seasons’ is set to 2 then teams will be ranked by their records over the past three seasons (the current season plus the two previous). Note that if you’re simulating older seasons, a team has to have existed in all three seasons for it to be included in the simulation.

You can see every team’s record and their chance at the first pick in the ‘Team Records’ table. This allows you to get a sense of your system before you simulate it.

When you’re ready, hit the ‘Simulate Your Model’ button. The program will simulate the draft the number of times you choose in the ‘Simulations’ spec and approximate the chance that each team gets each pick. The more simulations you choose, the more accurate the results but the longer it takes to run.