Inspiration
The FIFA World Cup 2026 will be historic—the first with 48 teams across 3 host nations. We wanted to go beyond simple predictions: create an interactive experience where users can explore data, simulate matches, and test their football knowledge, all powered by 150+ years of international football history.
What it does
The Ultimate Predictor combines data science with interactivity:
- 🏆 Tournament Simulator: Monte Carlo simulations (10,000 runs) predict champion probabilities
- ⚔️ Head-to-Head Predictor: Select any two teams and simulate their match outcome
- 🎯 Final Simulator: Interactive dropdown to simulate World Cup finals between any nations
- 🧠 Football Trivia: Test your knowledge with dynamically generated questions from real historical data
- 📊 Visual Analytics: Elo evolution, goal timelines, dark horse analysis, and Golden Boot predictions
How we built it
We leveraged Hex's unique capabilities:
- Reactive cells: Dropdowns and buttons trigger instant recalculations without page reloads
- Input components:
dropdown,button, andtext_inputelements create seamless interactivity - State management: Global dictionaries persist user selections across cell executions
- Plotly integration: Interactive charts with hover data, animations, and custom styling
- Markdown rendering: Dynamic text outputs that update based on simulation results
Data pipeline: 47,000+ matches → Elo rating engine → Poisson goal modeling → Monte Carlo simulations → Interactive visualizations
Challenges we ran into
- Hex state persistence: Button clicks don't persist state between executions—solved using global dictionaries to track previous click counts
- Cell execution order: Interactive features required splitting logic into multiple reactive blocks
- Trivia randomization: Ensuring questions regenerate only on user action, not on every cell run
- Performance: Optimizing 10,000 tournament simulations to run in seconds
Accomplishments that we're proud of
- ✅ Built a fully interactive data app, not just a static notebook
- ✅ Created 4 different simulators (tournament, match, final, trivia) in one cohesive experience
- ✅ Achieved real-time interactivity using Hex's reactive architecture
- ✅ Combined rigorous statistical modeling (Elo + Poisson + Monte Carlo) with engaging UX
- ✅ Made complex predictions accessible through intuitive dropdowns and visualizations
What we learned
- Hex transforms notebooks from static reports into interactive applications
- State management in reactive environments requires creative solutions
- The power of combining statistical rigor with user engagement—predictions become more meaningful when users can explore and interact
- How to design data apps that tell a story while letting users write their own
What's next for The Ultimate Predictor - FIFA World Cup 2026
- 🔮 Live updates: Integrate real-time match results as the tournament progresses
- 🤖 ML enhancement: Add player-level features for more granular predictions
- 🌐 Multi-language support: Spanish, French, Portuguese versions
- 📱 Public deployment: Share as a Hex app for fans worldwide to explore
- 🏟️ Bracket challenge: Let users create and compare their own tournament predictions against our model
¿Quieres que ajuste algo? Por ejemplo, ¿más técnico, más casual, o enfatizar alguna feature específica?
Built With
- hex
- python
Log in or sign up for Devpost to join the conversation.