Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Sports Betting Data Engineering Challenge

Overview

You are a data engineer at a gaming platform that needs to analyze betting data and create dashboards. This is a simple challenge to test your SQL skills and dashboard creation abilities.

Challenge Duration

Estimated Time: 2 hours

What You Need to Do

1. SQL Queries

Write SQL queries to answer these questions using the provided data:

  1. Total betting volume by sport
  2. Win rate by bet type (moneyline, spread, over/under)
  3. Top 5 users by total betting volume
  4. Daily betting volume trend
  5. Average stake by user risk level

2. Dashboard Creation

Create a simple dashboard with these visualizations:

  1. Bar chart: Betting volume by sport
  2. Pie chart: Win rate by bet type
  3. Line chart: Daily betting volume
  4. Table: Top users by volume
  5. Summary metrics: Total volume, total bets, average stake

3. Analysis & Recommendations

Write a brief analysis answering:

  1. Which sport has the highest betting volume?
  2. Which bet type has the best win rate?
  3. What insights can you draw about user behavior?
  4. What recommendations would you make to improve the platform?

Getting Started

Step 1: Setup Environment

# Install required packages
pip install -r requirements.txt

Step 2: Load Data

# This creates a SQLite database with your data
python setup_data.py

What setup_data.py does:

  • Loads CSV files from data/raw/ folder
  • Creates a SQLite database called betting_data.db
  • Shows you sample data to understand the structure

Step 3: Explore Data

After running setup_data.py, you'll see:

  • Sample betting data
  • Sample user data
  • Sample game data
  • Database file created: betting_data.db

Step 4: Complete Your Work

  1. Write SQL queries in queries.sql
  2. Create dashboard using dashboard_template.py
  3. Write analysis in analysis_template.md

Step 5: Run Dashboard (Optional)

# To see your dashboard in action
python run_dashboard.py

Data Files

  • betting_data.csv - Bet transactions
  • user_data.csv - User information
  • game_data.csv - Game results

Database Tables

After running setup_data.py, you'll have these tables:

  • bets - All betting transactions
  • users - User profiles and preferences
  • games - Game results and scores

Evaluation Criteria

  • SQL Skills: Correct and efficient queries
  • Dashboard Quality: Clear, informative visualizations
  • Analysis: Insightful observations and recommendations
  • Code Quality: Clean, well-documented code

Submission

  1. queries.sql - Your SQL queries
  2. dashboard.py - Your dashboard code
  3. analysis.md - Your written analysis
  4. Screenshots of your dashboard

Good luck! 🏈⚽🏀

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages