How llsourcell/sports_betting_with_reinforcement_learning works
This is a small standalone Python implementation of the Gambler’s Problem adapted to sports betting. The runtime initializes a fixed win probability and state tables, repeatedly applies Bellman updates until values converge, then prints the value function. Each update evaluates possible stakes and records the best value and corresponding policy. The README describes running the script, though its example filename differs from the file present in the repository; the graph follows the actual script entry point. Evidence is limited to the README and the single source file.
Main entry points: value_iteration_for_sports.py Convergence loop
Components 7
Other components
- User
- Script entry point
value_iteration_for_sports.py - Betting parameters
value_iteration_for_sports.py - Convergence loop
value_iteration_for_sports.py - Stake evaluator
value_iteration_for_sports.py - Reward, value, policy
value_iteration_for_sports.py - Printed values
value_iteration_for_sports.py
Connections 7
- User → Script entry point: runs script
README.md - Script entry point → Convergence loop: starts
value_iteration_for_sports.py - Convergence loop → Stake evaluator: updates states
value_iteration_for_sports.py - Stake evaluator → Betting parameters: uses probabilities
value_iteration_for_sports.py - Stake evaluator → Reward, value, policy: reads and updates
value_iteration_for_sports.py - Convergence loop → Reward, value, policy: checks convergence
value_iteration_for_sports.py - Convergence loop → Printed values: prints values
value_iteration_for_sports.py