A rookie steps up to the free-throw line. Write skill(made, shots, guess_weight): the chance they make their next free throw, after making made of their shots so far. Before seeing a single shot you’d guess 50%, and that guess is worth guess_weight shots of evidence.
A rookie makes their first two free throws: 2 of 2. Before any shot you’d have guessed 50%, and that guess is worth 2 shots of evidence. Is this a 100% shooter? Take more shots and watch the tally.
what chance should skill() give the next shot? that’s for you to work out
skill(made, shots, guess_weight)| made | free throws made | e.g. 7 |
| shots | free throws taken | e.g. 10 |
| guess_weight | how many shots your 50% guess is worth | e.g. 0 |
| returns | the chance they make the next one | |