How to Use Data Science to Analyze Sports Statistics
Two players compete for recognition in the same fictional football team. Player A scored four goals, while Player C scored only two. Is Player A necessarily the more effective attacker? Player A played 450 minutes; Player C played 270 and put six of nine shots on target. Comparing raw totals, percentages and time-adjusted rates produces different answers.
Sports data science helps students turn recorded events into evidence: collect trustworthy data, check definitions, calculate meaningful ratios, visualize comparisons and explain uncertainty. Coaches and researchers can use these techniques to investigate tactics, player development and opportunities, but the statistics cannot reveal every contribution or guarantee future match results.
This internationally relevant guide uses a wholly fictional five-match sample of four football players. You will calculate shooting accuracy, goal conversion, goals per 90 minutes and goal contributions, then build a free Excel or Google Sheets dashboard. We also explain expected goals in football, basketball shooting efficiency, baseball tracking and cricket strike rates, with an optional Python extension.
What you’ll learn: Definitions, legal data sources, formulas, pooled statistics, no-code dashboards, Python, sport-specific metrics, limitations and ethical research.
What Is Sports Analytics?
Sports statistics are recorded numerical observations, such as goals, assists, shots, rebounds or wickets. Sports analytics is the process of asking useful questions, preparing those records and interpreting what they show. Sports data science adds programming, statistical models, reproducible workflows and visualization. Performance analysis considers sporting actions and context, while prediction estimates uncertain future events.
These disciplines overlap, but an event count is not a complete evaluation and a forecast is not a result. For instance, a player with more shots may have played more minutes or occupied a more attacking role. A valuable comparison begins by defining what the statistic measures, the denominator and which circumstances it misses. See Introduction to Data Science for the general methodology.
| Concept | Meaning | Example |
|---|---|---|
| Sports statistics | Numerical record of observed sport events | Shots, goals, rebounds |
| Sports analytics | Questions and methods for interpreting evidence | Compare conversion rates |
| Sports data science | Statistics, programming, preparation, models and visualization applied to sport | Reproducible player dashboard |
| Performance analysis | Sporting actions and context reviewed to support understanding | Shot maps and match video |
| Prediction | Uncertain estimate of a possible future event | Model-based win probability |
Why Data Science Can Help in Sports
Coaches and analysts investigate player development, team tactics, opposition tendencies, recruitment, match strategy, training patterns, historical performance and fan understanding. Aggregate statistics can reveal questions worth reviewing in video, such as whether shots cluster in difficult locations or when a team’s passing changes.
Analysis supports judgment rather than replacing coaching expertise. One high scoring rate does not reveal defensive effort, off-ball runs or leadership. Workload measurements may inform research on training conditions, but cannot reliably diagnose or prevent every injury. For students, a small, transparent exercise is preferable to unsupported claims from commercial dashboards.
Where Do Sports Statistics Come From?
Official competition records report goals, points, wickets and other events under published competition rules. Event datasets add passes, shots, tackles or locations. Video analysts review actions manually or with software. Authorized tracking systems measure position and movement; historical databases enable season comparisons. Weather, venue and surface conditions may provide context.
Wearable and physiological measurements are especially sensitive and should only be used with appropriate consent and safeguards. Two providers may define a shot on target or an assist differently. Licensing matters even when statistics appear publicly online; accessible information is not always freely reusable. Always record the provider, relevant date, event definitions and use conditions.
Traditional Counts, Rates and Advanced Metrics
Counts such as goals, shots or rebounds describe volume. Percentages express a numerator relative to eligible attempts. Rates adjust for exposure, for example goals per 90 minutes or cricket runs per 100 balls. Averages summarize specified observations; model-based metrics estimate quantities such as expected goals. Different measurements answer different questions.
The denominator controls meaning. A player with more playing time has more chances to accumulate events, while a percentage drawn from five shots may fluctuate substantially. Comparing unlike competitions, playing positions or data providers can be misleading unless the analyst checks context and definitions. For broader mathematical foundations see Critical Thinking in Data Science.
| Type | Example | Denominator or logic | Limitation |
|---|---|---|---|
| Count | 4 goals | Number of recorded events | Minutes and opportunities differ |
| Percentage | Shooting accuracy | Shots on target / shots | Definitions and small sample |
| Rate | Goals per 90 | Goals / minutes × 90 | Position and game context |
| Average | Points per match | Points / matches | Opposition and playing time |
| Contextual metric | Possession-adjusted actions | Defined opportunities | Methodology varies |
| Model-based estimate | Expected goals | Probability from shot characteristics | Provider models differ |
Preparing Data Before Calculating
First define a question and unit of observation: a player, player-match, team-match or season. Obtain authorized records and retain their original source. Check duplicates, missing values, units and types. Reject impossible combinations such as shots on target greater than total attempts under the exercise’s definitions, or negative playing minutes. Investigate rather than automatically delete unusually high performances.
Never replace missing minutes with zero as though the player definitely did not participate. Confirm whether shots, goals and assists use consistent provider rules, and document each correction. Then calculate metrics, chart them and consider alternative explanations. The data cleaning guide for students covers these decisions in greater depth.

Build a Football Player Performance Dashboard
Our classroom club has four invented players, A through D, with different playing times across an illustrative five-match observation period. Assume each scored goal came from a recorded attempt in that player’s shot total. There are no real athletes, teams, opponents or match results in this dataset.
The combined 1,260 minutes are player-minutes, not the elapsed time of five football matches; several players can be on the pitch simultaneously. The totals describe these four selected records only. They are not automatically full-team totals.
| Player | Minutes Played | Shots | Shots on Target | Goals | Assists |
|---|---|---|---|---|---|
| A | 450 | 20 | 10 | 4 | 2 |
| B | 360 | 16 | 8 | 3 | 1 |
| C | 270 | 9 | 6 | 2 | 2 |
| D | 180 | 5 | 2 | 1 | 0 |
| Combined | 1,260 | 50 | 26 | 10 | 5 |

1. Calculate Shooting Accuracy
Shooting accuracy = shots on target ÷ total shots × 100. Player A: 10 ÷ 20 × 100 = 50%; B: 8 ÷ 16 = 50%; C: 6 ÷ 9 ≈ 66.67%; and D: 2 ÷ 5 = 40%. Player C has the highest observed on-target share in this fictional sample, but attempted only nine shots.
A small attempt count produces more unstable percentages. Football event providers may use slightly different classification rules, including how blocked attempts are recorded. This exercise follows its own explicit definitions rather than claiming universal agreement among commercial datasets.
2. Calculate Goal Conversion Rate
Goal conversion = goals ÷ total shots × 100. Player A: 4 ÷ 20 = 20%; B: 3 ÷ 16 = 18.75%; C: 2 ÷ 9 ≈ 22.22%; D: 1 ÷ 5 = 20%. Thus Player C also has the highest observed conversion share.
Accuracy and conversion are different measures: a shot on target can be saved, and goals depend on chance difficulty and other conditions. These totals do not record shot location, quality of opposition, foot used, goalkeeper position, match pressure or player role. Calling C the best finisher from nine shots would be unjustified.

3. Calculate Goals per 90 Minutes
Goals per 90 = goals ÷ player-minutes × 90. Player A: 4 ÷ 450 × 90 = 0.80; B: 3 ÷ 360 × 90 = 0.75; C: 2 ÷ 270 × 90 ≈ 0.67; D: 1 ÷ 180 × 90 = 0.50. Player A leads this time-adjusted scoring-rate comparison.
The per-90 calculation allows different exposure times to be discussed on a common scale. It does not imply that A will score 0.80 goals in every future full match, nor that every position should be judged by goals. Substitution patterns, opponents and playing opportunities still matter.

4. Calculate Goal Contributions per 90
For this simplified exercise, a goal contribution is a recorded goal plus an assist. Contributions per 90 = (goals + assists) ÷ minutes × 90. A: (4+2) ÷ 450 × 90 = 1.20; B: (3+1) ÷ 360 × 90 = 1.00; C: (2+2) ÷ 270 × 90 ≈ 1.33; D: (1+0) ÷ 180 × 90 = 0.50.
Player C leads on this observed combined rate, while Player A has more contributions in total. Assists are provider-defined and may omit important chance creation, defensive actions or off-ball movement. These metrics describe selected attacking events, not overall athlete value.

5. Check Pooled Statistics and Denominators
Across the four players, total shots are 50, shots on target 26, goals 10, assists five and minutes 1,260. Pooled shooting accuracy = 26 ÷ 50 × 100 = 52%. Pooled conversion = 10 ÷ 50 × 100 = 20%. Pooled goal contributions per 90 selected-player minutes = 15 ÷ 1,260 × 90 ≈ 1.07.
The pooled goals-per-90 rate is 10 ÷ 1,260 × 90 ≈ 0.71. Do not average four shooting percentages equally: each player’s number of shots differs. Combining total successful shots and total attempts is the appropriate denominator-weighted calculation. These pooled values refer only to the four fictional players, not an entire team.
| Player | Shooting Accuracy | Goal Conversion | Goals / 90 | Goal Contributions / 90 |
|---|---|---|---|---|
| A | 50% | 20% | 0.80 | 1.20 |
| B | 50% | 18.75% | 0.75 | 1.00 |
| C | 66.67% | 22.22% | 0.67 | 1.33 |
| D | 40% | 20% | 0.50 | 0.50 |
Key interpretation: Player A leads total goals and goals per 90. Player C leads observed shooting accuracy, conversion and goal contributions per 90. Neither is unconditionally the best overall player.
Excel or Google Sheets: Build the Dashboard
Create columns A–J: Player, Minutes, Shots, Shots on Target, Goals, Assists, Shooting Accuracy, Goal Conversion, Goals per 90, Contributions per 90. Enter the four records in rows 2–5. In G2 use =IFERROR(D2/C2,"") and in H2 =IFERROR(E2/C2,""). Format G and H as percentages and copy downward.
In I2 enter =IFERROR(E2/B2*90,"") and in J2 =IFERROR((E2+F2)/B2*90,""). Display two decimals. Use row 6 for totals, with SUM in columns B–F. Calculate pooled G6 and H6 from the summed counts, and I6 and J6 using the summed minutes. IFERROR prevents a visible division error but does not explain missing or zero denominators; investigate them in real data.
Create four charts: goals versus assists, shooting accuracy percentages, goals per 90 and goal contributions per 90. Label axes and the fictional source, and avoid combining incompatible units without explanation. Save original records, formulas, chart definitions, limitations and your written interpretation.
| Cell | Formula | Interpretation |
|---|---|---|
| G2 | =IFERROR(D2/C2,"") | Format percentage; copy through G5 |
| H2 | =IFERROR(E2/C2,"") | Format percentage; copy through H5 |
| I2 | =IFERROR(E2/B2*90,"") | Goals per 90, 2 decimals |
| J2 | =IFERROR((E2+F2)/B2*90,"") | Goal contributions per 90 |
| B6:F6 | =SUM(B2:B5) etc. | Combine each source column |
| G6 / H6 | =D6/C6 / =E6/C6 | Pooled percentages |
| I6 / J6 | =E6/B6*90 / =(E6+F6)/B6*90 | Pooled selected-player rates |
Download the tested fictional football analytics Excel workbook. It contains all four records, formula-driven rates, pooled checks and editable sports charts. No paid account or private athlete data is required.
Optional Python and Pandas Extension
Students already familiar with Python can reproduce the spreadsheet using Pandas. The following example creates the same synthetic records, computes percentages and rates, and prints the pooled accuracy. For real datasets, add checks for missing or zero shot counts and minutes before division, and document any exclusions.
import pandas as pd
players = pd.DataFrame({
"Player": ["A", "B", "C", "D"],
"Minutes": [450, 360, 270, 180],
"Shots": [20, 16, 9, 5],
"Shots_On_Target": [10, 8, 6, 2],
"Goals": [4, 3, 2, 1],
"Assists": [2, 1, 2, 0]
})
players["Shooting_Accuracy"] = players["Shots_On_Target"] / players["Shots"] * 100
players["Goal_Conversion"] = players["Goals"] / players["Shots"] * 100
players["Goals_Per_90"] = players["Goals"] / players["Minutes"] * 90
players["Contributions_Per_90"] = (players["Goals"] + players["Assists"]) / players["Minutes"] * 90
print(players.round(2))
pooled_accuracy = players["Shots_On_Target"].sum() / players["Shots"].sum() * 100
print("Pooled shooting accuracy:", pooled_accuracy)
# For real datasets, check zero denominators and missing records first.
To visualize the output, Matplotlib can draw separate labeled bar charts for accuracy or per-90 rates. Review the official Pandas documentation and Matplotlib documentation. The Excel or calculator route remains fully sufficient for the activity.
Traditional Football Statistics and Expected Goals
Possession percentage, pass completion, tackles, interceptions and shot locations describe different aspects of football, but their definitions and opportunities vary. Possession does not by itself establish attacking quality. A defensive player’s low shot count may reflect the position rather than poor performance.
Expected goals (xG) is a model-based estimate of the chance that a particular shot becomes a goal given relevant factors such as angle, distance, body part, assist type and game situation. Some models also incorporate goalkeeper and defender positions or shot execution. An xG value of 0.20 indicates an estimated 20% probability under that model’s assumptions—not one guaranteed goal every five attempts.
xG is not the ratio of on-target shots to all shots, and different providers use different methods. Summed xG measures estimated chance quality rather than actual goals. The StatsBomb expected-goals research explains why additional contextual features matter. The pitch illustration below uses hypothetical numbers, not proprietary StatsBomb outputs.

Basketball: Field Goal Percentage and eFG%
Basketball analysts examine points, rebounds, assists, turnovers, minutes and shooting. Ordinary field goal percentage is made field goals divided by attempts. Effective field goal percentage gives extra weight to made three-pointers because they score one additional point compared with two-pointers.
For a fictional athlete with eight made field goals, 20 attempts and three made three-pointers, FG% = 8 ÷ 20 = 40%. eFG% = (8 + 0.5 × 3) ÷ 20 × 100 = 47.5%. True shooting percentage additionally considers free throws and uses a different formula. See the NBA’s official analytics FAQ for the eFG% definition.
Baseball, Cricket and Other Sports
Baseball batting average is hits divided by at-bats under official scoring rules; on-base percentage includes additional ways to reach base. MLB Statcast also records specialized measures such as exit velocity, launch angle, sprint speed and pitch movement. These depend on tracking systems and require correct definitions. Refer to the MLB Statcast glossary rather than inventing measurements.
In cricket, batting strike rate = runs ÷ balls faced × 100. If a fictional batter scores 45 runs from 30 balls, the batting strike rate is 150 runs per 100 balls. This is different from a bowler’s strike rate. Batting averages, economy rates, wickets and match formats need their own denominators. Athletics, swimming, cycling, volleyball and rugby likewise require sport-specific metrics.

Where Students Can Find Reliable Sports Datasets
The Hudl StatsBomb Open Data repository offers selected football competitions, matches, lineups and event data, plus 360 information for some matches. Follow its licensing and attribution rules; it does not cover every league. Official NBA Stats and Baseball Savant provide other examples of sport-specific information.
Kaggle Datasets hosts user-submitted material, but provenance and rights differ between uploads. Check the actual dataset’s author, date, license and completeness instead of trusting a platform name alone. Synthetic player records such as those in this guide are suitable for offline classroom analysis. Never bypass paid feeds, scrape prohibited sources or copy private team systems.
| Provider | Useful information | Access consideration |
|---|---|---|
| Hudl StatsBomb Open Data | Selected football competitions and event records | Credit terms, specific matches only |
| NBA Stats / Glossary | Basketball box scores and metric definitions | Site use and terms apply |
| Baseball Savant | MLB Statcast searches and tracking metrics | Definitions and download rules apply |
| Kaggle Datasets | User-uploaded sports datasets | Provenance, licensing and errors vary |
| Official sports bodies | Competition records where offered | Check permission and definitions |
| Fictional classroom CSV | Four invented football players | Safe offline practice |
Sports Tracking: Historical Systems and Current Context
The original article referenced SportVU as if it described the NBA’s current tracking system. That is outdated. NBA communications identify SportVU’s leaguewide installation in the 2013–14 season; later official developments include Second Spectrum analytics and the NBA’s Hawk-Eye 3D tracking partnership beginning with 2023–24.
Tracking technology can help study movement and spacing, but recorded coordinates and automated labels may still contain measurement errors. Access is often restricted. Students do not need tracking devices for this tutorial and should not record classmates’ GPS traces or physiological readings.
Can Data Science Predict Match Outcomes?
A forecasting study selects a target such as a match result, defines historical features, establishes a basic baseline and tests models on later contests without using information learned after those matches. Regression, classification and simulation can produce estimates; using future results in training is data leakage.
Model accuracy can change with team tactics, player availability, opponents, weather and random variation. A model must be evaluated across enough appropriate cases and compared with simpler alternatives. A projected 60% win probability is not certainty and is not a forecast of 60% possession or votes. Sports statistics should never be presented as a gambling system.
Limitations: What the Player Dashboard Cannot Tell Us
The dataset lacks playing positions, shot distances, tactical roles, opponent quality, defensive contributions and detailed match context. Nine shots may be too few to estimate stable shooting skill. Players with fewer minutes may face different game situations; selection bias can influence which attempts are recorded.
Correlation is not causation. More goals may accompany more shots without proving that taking any additional shot is useful. Different providers can define assists and shots differently. As with any research, explanations should discuss missing data, measurement uncertainty, sample size and alternative interpretations rather than declare one player objectively best.
Athlete Privacy, Ethics and Student Safety
Keep classroom work fictional or use properly licensed aggregate records. Do not collect or publish classmates’ injury histories, heart-rate traces, biometric data, private videos, GPS coordinates, personal training details or contact information. Even seemingly anonymous small-team records may allow re-identification.
Wearables and workload research can be sensitive. Performance figures alone cannot diagnose or prevent injury; professional health and safeguarding decisions need appropriately qualified expertise. Record permissions, minimize personal data, provide fair interpretation and avoid profiling, harassment or unauthorized surveillance. The same precautions apply to science fair research.
Six Safe Sports Analytics Projects
Students can calculate football shooting conversion, basketball eFG%, cricket batting strike rate, fictional team points and goal difference, or create a data visualization from licensed aggregate records. A final research report can compare selected rates while discussing playing time, differences in roles and sample size.
All six projects can begin with paper or a spreadsheet. Use the table to choose a question, define required variables and create an appropriate labeled output. Store screenshots and conclusions with data definitions. The high school data science project collection provides general research support.
| Student project | Research question | Data / tool | Safeguard |
|---|---|---|---|
| Football shooting | Which player has higher conversion? | Fictional shots and goals / Sheets | No real player grading |
| Basketball eFG% | How do threes affect eFG%? | Invented field goals / calculator | Label assumptions |
| Cricket strike rate | What are runs per 100 balls? | Invented runs and balls / Sheets | Define batting context |
| Football team trends | How do match points change? | Fictional match scores / spreadsheet | Avoid betting |
| Sports graphics | Which chart communicates rates? | Synthetic counts / chart tool | Show denominators |
| Performance report | Which interpretation is justified? | Same four-player dataset | Discuss missing context |
Four-Week Sports Analytics Learning Roadmap
Week one focuses on understanding event definitions, denominators and sources. Week two practices calculations from the four-player dataset. Week three adds a spreadsheet and four charts. Week four writes a short report with uncertainty, ethical safeguards and a conclusion supported by the evidence.
No club membership or premium sports subscription is needed. Students may use a printed worksheet and calculator if they lack a computer, then try Python later through the beginner programming guide. A good portfolio records the research question, formulas, limitations and corrections; see the data science portfolio guide.
| Week | Focus | Activity | Deliverable |
|---|---|---|---|
| 1 | Metric definitions | Identify counts, rates, source rules | Short glossary |
| 2 | Worked mathematics | Compute accuracy, conversion, per-90 | Checked calculations |
| 3 | Spreadsheet dashboard | Build four clearly labeled charts | Dashboard and workbook |
| 4 | Evidence-based research | Explain roles, samples, ethics | Balanced mini-report |

Conclusion: Analyze the Question, Not Just the Scoreboard
Sports data science turns event counts into more useful evidence through definitions, careful preparation, correct denominators, visualization and interpretation. In our fictional football exercise, Player A leads in total goals and goals per 90, whereas Player C leads in shooting accuracy, goal conversion and observed contributions per 90. Both findings can be true because the metrics measure different things.
Responsible analysts consider playing time, roles, chance quality, opponents, sample size and gaps in the information before making claims. The same logic extends to basketball, baseball and cricket. Predictive models remain uncertain; tracking and wearable data need safeguards. Statistics support coaching decisions and learning but cannot fully characterize athletes.
Use the spreadsheet to check all four players, create the charts and explain one supported finding and one tempting conclusion the data cannot support. Then adapt a calculation to another sport using appropriately licensed or invented records. Reproducible arithmetic and honest limitations are the foundations of credible sports analytics.
Ten Interpretation Questions and Answers
| Project question | Verified answer |
|---|---|
| Who has the most goals? | Player A (4) |
| Highest shooting accuracy? | C (6/9 ≈ 66.67%) |
| Highest goal conversion? | C (2/9 ≈ 22.22%) |
| Most goals per 90? | A (0.80) |
| Most goal contributions per 90? | C (1.33) |
| Why adjust for minutes? | Exposure to match opportunities differs |
| Why does nine shots matter? | Smaller denominators make percentages less stable |
| Why not average four accuracy percentages? | Pooled accuracy requires total on-target shots / all shots |
| What key evidence is absent? | Position, shot difficulty, opponents, tactics, conditions |
| Does the table establish the best overall player? | No; metrics and observation periods are incomplete |
Five Knowledge Checks
- What is A’s shooting accuracy? 50%.
- What is B’s goal conversion? 18.75%.
- How many combined player-minutes? 1,260.
- What is the pooled goal conversion? 20%.
- What is the basketball eFG% in the example? 47.5%.
Frequently Asked Questions
1. What is sports analytics in data science?
Systematic preparation and interpretation of sport records, often with statistics, visualization and computational methods.
2. How can high school students analyze sports statistics?
Use licensed or fictional records, verify denominators and apply spreadsheet formulas before interpreting charts.
3. How is shooting accuracy calculated in football?
Divide shots on target by total recorded shots, then multiply by 100 under consistent classification rules.
4. What is football goal conversion rate?
Goals divided by shots, multiplied by 100; it does not measure every aspect of chance quality.
5. Why do analysts calculate goals per 90 minutes?
It adjusts goal totals for the amount of playing time, while leaving role and opposition context unresolved.
6. What does expected goals mean?
xG estimates the probability that a shot becomes a goal according to a particular model and its features.
7. Can machine learning predict sports results perfectly?
No. Models produce uncertain estimates and should be evaluated against later events and sensible baselines.
8. Can students learn sports analytics without Python?
Yes. The complete football project works with a calculator, Excel or Google Sheets.