https://github.com/null-none/goalytics
Goalytics is a modern Python library designed for advanced football analytics, focused on calculating and predicting key performance metrics like xG (Expected Goals), xA (Expected Assists), and xT (Expected Threat).
https://github.com/null-none/goalytics
analytics fifa football futsal python xa xg xt
Last synced: 4 months ago
JSON representation
Goalytics is a modern Python library designed for advanced football analytics, focused on calculating and predicting key performance metrics like xG (Expected Goals), xA (Expected Assists), and xT (Expected Threat).
- Host: GitHub
- URL: https://github.com/null-none/goalytics
- Owner: null-none
- License: mit
- Created: 2025-04-28T11:43:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-05T11:28:16.000Z (about 1 year ago)
- Last Synced: 2026-02-13T10:26:14.328Z (4 months ago)
- Topics: analytics, fifa, football, futsal, python, xa, xg, xt
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goalytics
Goalytics is a modern Python library designed for advanced football analytics, focused on calculating and predicting key performance metrics like xG (Expected Goals), xA (Expected Assists), and xT (Expected Threat).
- football
- xG
- xA
- xT
- futsal
- xG
- xA
- xT
### Example
```bash
pip install goalytics
```
```python
from goalytics.football.xG import ExpectedGoals
shots = [
[90, 34],
[80, 30],
[60, 40],
]
xg_model = ExpectedGoals()
match_xg = xg_model.calculate_match_xg(shots)
print(f"Total xG for the match: {match_xg:.2f}")
```