How Data Science Is Used in Gaming

A small puzzle-game studio creates two tutorials. Several testers finish quickly; others retry repeatedly or leave before the final checkpoint. Should the designers replace the longer version? Does more time mean more fun? Would a completed tutorial prove that someone returns tomorrow? These questions require carefully defined measurements, not guesses about enjoyment.

Data science in gaming analyzes gameplay information to investigate progression, difficulty, performance, personalization and player experience. It can identify patterns for review, but a metric cannot independently prove that a game is entertaining, fair, safe or accessible.

This updated Notes for SHS guide retains useful earlier lessons on player behavior, recommendations, monetization, development testing, cheat detection, multiplayer systems and NPCs. It adds a complete fictional twelve-session puzzle-game comparison, charts, formulas and optional Python. Students need no commercial game, private player information or professional studio account.

What you’ll learn: Explain telemetry and ten game-analytics applications, calculate completion and checkpoint rates, create a progression funnel, compare retries and time, distinguish retention from completion, and report evidence responsibly.

What is data science in gaming?

Game analytics investigates recorded game activity. Game telemetry comprises defined events and measurements from operation. Game design creates rules, progression and challenges; development implements them. Game AI uses different computational decision techniques; machine learning learns patterns from data. These overlap but are not synonymous: a spreadsheet comparison of tutorial completion rates is analytics without AI.

Analysts define questions, validate data, calculate relevant metrics, visualize patterns and present limitations. Developers and designers then investigate potential changes. The Introduction to Data Science explains the broader method.

Common gameplay events and analytical workflow

EventRecorded informationResearch question or caveat
Session start/endTime boundariesDuration does not prove enjoyment
Tutorial startEligible entryRepeat starts complicate totals
Checkpoint reachedProgression milestoneMissing events distort funnels
Retry / failureAttempt or restartA retry can reflect experimentation
Hint requestedHelp actionDoes not prove frustration
Tutorial completedTask finishedNot future retention
Crash / latencyTechnical signalCause requires investigation
Every event needs a consistent definition, time window and collection method.

Use a repeatable workflow: research question → event definitions → lawful and safe collection → cleaning → metrics → visualization → feedback → design review → retesting. Audit duplicate identifiers, clock differences, incomplete events and invalid values. GameAnalytics progression documentation explains structured starts, failures and completions.

Student studying an original geometric puzzle prototype and taking notes
Thoughtful playtesting pairs observable actions with structured event records.
Original editorial image for An Introduction to Game Analytics; not official course artwork

Udemy · Optional course

An Introduction to Game Analytics

Optional introductory course on game analyst roles, common metrics and professional skills.

Ordinary provider URL; no authorized affiliate tracking. Paid training is optional.

Ten applications of data science in gaming

1. Player behavior analysis

Review aggregate sessions, feature use and attempts to find unexplained patterns. Limitation: Long play does not prove satisfaction.

2. Tutorial progression

Count starts, checkpoints, failures and completions to locate possible barriers. Limitation: Missed events distort funnels.

3. Balancing and difficulty

Compare success, retries, character usage, skill and accessibility feedback. Limitation: Win rate cannot establish fairness alone.

4. Testing and A/B comparisons

Compare interface or tutorial alternatives using predefined outcomes and suitable assignment. Limitation: Small nonrandom groups do not prove causes.

5. Personalization

Recommend modes or preferences using rules or learned models. Limitation: Customization does not require machine learning.

6. Matchmaking

Study skill estimates, match history, latency, team composition and queues. Limitation: Game design and networking also matter.

7. Security investigation

Flag anomalous play or transactions for legitimate review. Limitation: Unusual behavior is not proof of cheating.

8. Performance reliability

Review crashes, frame times, error rates and network delays. Limitation: Measurements do not automatically diagnose faults.

9. Responsible monetization

Examine fair value, complaints, transparent purchases and interruption. Limitation: Never pressure minors to spend more.

10. NPC and procedural systems

Evaluate scripted behavior, pathfinding, AI agents and generated content. Limitation: Procedural generation is not necessarily ML.

ApplicationCritical interpretation
Player behavior analysisLong play does not prove satisfaction.
Tutorial progressionMissed events distort funnels.
Balancing and difficultyWin rate cannot establish fairness alone.
Testing and A/B comparisonsSmall nonrandom groups do not prove causes.
PersonalizationCustomization does not require machine learning.
MatchmakingGame design and networking also matter.
Security investigationUnusual behavior is not proof of cheating.
Performance reliabilityMeasurements do not automatically diagnose faults.
Responsible monetizationNever pressure minors to spend more.
NPC and procedural systemsProcedural generation is not necessarily ML.
These are documented types of industry practice, not assertions about private algorithms in named commercial titles.

Game analytics metrics: Define denominators

MetricDefinition
Completion rateCompleted eligible sessions ÷ started eligible sessions
Checkpoint reachCheckpoint-reaching sessions ÷ starts
Checkpoint conversionCompletions after checkpoint ÷ sessions reaching it
Average retriesTotal recorded retries ÷ included sessions
Average durationRecorded seconds ÷ included sessions
Failure rateFailures ÷ defined attempts or sessions
RetentionReturning unique cohort players ÷ eligible cohort
A session need not represent a distinct person; metric windows must be consistent.

Tutorial completion is not Day 1 retention. Retention requires a defined unique-player cohort, date, return window, time zone and follow-up observations. The fictional study below records only one session per imagined tester; it cannot calculate retention.

Signature project: Twelve fictional playtest sessions

Fictional classroom data; no real player information. Tutorial A is standard; Tutorial B uses an alternative arrangement. Six sessions belong to each version, with one session per imaginary tester. This is not a randomized controlled experiment.

Question: How do checkpoint progression, completion, retries, hints and session time differ? Binary flags use 1 for yes and 0 for no. Recorded time includes completed and noncompleting sessions under one assumed measurement window.

SessionVersionCheckpointCompletedSecondsRetriesHints
A01A119510
A02A1110500
A03A1112021
A04A1111010
A05A1015032
A06A1110000
B01B1111521
B02B1018042
B03B1112521
B04B0018052
B05B1113031
B06B0017042
All 12 rows are invented, anonymous and intended only for practice.

Worked game analytics calculations and charts

Checkpoint reach: A = 6 ÷ 6 = 100%; B = 4 ÷ 6 ≈ 66.67%. Completion: A = 5 ÷ 6 ≈ 83.33%; B = 3 ÷ 6 = 50%. Their observed difference is 33.33 percentage points, not a 33.33% relative increase. Combined completion is 8 ÷ 12 ≈ 66.67%.

Progression funnel A: 6 starts → 6 checkpoint visits → 5 completions. Funnel B: 6 → 4 → 3. Checkpoint-to-completion conversion is 5 ÷ 6 ≈ 83.33% for A and 3 ÷ 4 = 75% for B. Compare the same eligible session set.

Fictional funnels A six started six checkpoints five completed; B six started four checkpoints three completed
Figure 1 — Fictional tutorial progression.
Fictional completion rates A 83.33 percent and B 50 percent
Figure 2 — Fictional tutorial completion rates.

Calculate retries, hints and session duration

Retries A: 1 + 0 + 2 + 1 + 3 + 0 = 7; average 7 ÷ 6 ≈ 1.17. Retries B: 2 + 4 + 2 + 5 + 3 + 4 = 20; average 20 ÷ 6 ≈ 3.33. Hint totals are 3 for A and 9 for B, giving averages of 0.50 and 1.50.

Time A: 95 + 105 + 120 + 110 + 150 + 100 = 680 seconds, mean 113.33 s. Time B: 115 + 180 + 125 + 180 + 130 + 170 = 900 seconds, mean 150 s. Completed-only means are 106 s (530 ÷ 5) for A and 123.33 s (370 ÷ 3) for B; they exclude unsuccessful sessions.

Fictional average retries A 1.17 and B 3.33 per session
Figure 3 — Mean retries per session.
Fictional mean duration A 113.33 seconds B 150 seconds
Figure 4 — Longer session time is not automatically better.
MeasureAB
Started sessions66
Checkpoint reached64
Completed53
Checkpoint reach100%66.67%
Completion rate83.33%50%
Checkpoint conversion83.33%75%
Mean retries1.173.33
Mean seconds113.33150.00
Mean hints0.501.50
Descriptive statistics only. The small fictional playtest is not proof of causal effects.

Interpretation: A recorded more completions, fewer retries and shorter sessions in this invented sample. It does not prove greater fun, accessibility, fairness, player skill or future retention. Real testing should examine sample size, allocation, measurement errors, player experience, learning effects, conditions and statistical uncertainty.

Google Sheets and Excel game analytics tutorial

Enter columns A–G: Session, Version, Checkpoint, Completed, Seconds, Retries and Hints. Copy twelve fictional records into rows 2–13. Validate that completion does not exceed checkpoint status for any row.

CalculationVersion A formulaResult
Session count=COUNTIF(B2:B13,"A")6
Reached checkpoint=COUNTIFS(B2:B13,"A",C2:C13,1)6
Completed=SUMIF(B2:B13,"A",D2:D13)5
Completion %=SUMIF(B2:B13,"A",D2:D13)/COUNTIF(B2:B13,"A")83.33%
Average retries=AVERAGEIF(B2:B13,"A",F2:F13)1.17
Average seconds=AVERAGEIF(B2:B13,"A",E2:E13)113.33
Average hints=AVERAGEIF(B2:B13,"A",G2:G13)0.50
Change the criteria from A to B for the alternative version; guard against zero denominators in real datasets.

Overall completion: =SUM(D2:D13)/COUNT(D2:D13) gives 66.67%, provided each row represents one eligible started session. Create separate completion, retries, duration and funnel charts with clear units. See data science tools for students.

Original editorial image for Excel Basics for Data Analysis; not official course artwork

IBM · Coursera · Optional course

Excel Basics for Data Analysis

Optional spreadsheet practice in formulas, cleaning, grouping and charts for the fictional tutorial analysis.

Ordinary provider URL; no authorized affiliate tracking. Paid training is optional.

Optional Python and Pandas analysis

The code below recreates the twelve-session summary. A calculator or spreadsheet remains enough for the primary exercise.

import pandas as pd
sessions = pd.DataFrame({
 "Session": ["A01","A02","A03","A04","A05","A06",
             "B01","B02","B03","B04","B05","B06"],
 "Version": ["A"]*6 + ["B"]*6,
 "Checkpoint": [1,1,1,1,1,1,1,1,1,0,1,0],
 "Completed": [1,1,1,1,0,1,1,0,1,0,1,0],
 "Seconds": [95,105,120,110,150,100,115,180,125,180,130,170],
 "Retries": [1,0,2,1,3,0,2,4,2,5,3,4],
 "Hints": [0,0,1,0,2,0,1,2,1,2,1,2]})
assert (sessions["Completed"] <= sessions["Checkpoint"]).all()
summary = sessions.groupby("Version").agg(
 Sessions=("Session","count"),
 Checkpoints=("Checkpoint","sum"),
 Completions=("Completed","sum"),
 Mean_Seconds=("Seconds","mean"),
 Mean_Retries=("Retries","mean"),
 Mean_Hints=("Hints","mean"))
summary["Completion_Rate"] = summary["Completions"]/summary["Sessions"]*100
summary["Checkpoint_Rate"] = summary["Checkpoints"]/summary["Sessions"]*100
summary["Checkpoint_Conversion"] = summary["Completions"]/summary["Checkpoints"]*100
print(summary.round(2))

The DataFrame stores each observation, groupby summarizes versions and percentage calculations use explicit denominators. Real event data need additional checks for duplicate IDs, ordering, missing records, repeated player visits, negative times and privacy. Read Learning Python in High School.

Tools for game analysis and differences from game AI

ToolUse and constraints
Unity AnalyticsDeveloper-defined events and analysis
Roblox Creator AnalyticsAuthorized game creator dashboards
GameAnalyticsEvent-based progression and funnels
Open Game DataResearch resources for educational games
Excel / Google SheetsSmall tables, formulas and graphs
Python / Pandas / SQLLarger game-event data when appropriate
Access, integrations, permissions and prices differ by service.

NPCs may use scripted rules, finite-state machines, behavior trees or pathfinding. Some agents use machine learning, but not all. Procedural level generation may use code and random rules without being trained on data. Game telemetry and machine learning are different concepts. Unverified claims about Fortnite, PUBG, Call of Duty or other proprietary systems have been removed.

Retention, A/B testing, privacy and player well-being

Player retention refers to a specified cohort of unique people returning during a defined later period. Session duration and completion cannot substitute for a return measure. Roblox documents retention dashboards, but conventions may differ across platforms.

A rigorous A/B experiment needs eligibility rules, a predefined outcome, suitable assignment or randomization, appropriate sample sizes, consistent conditions and uncertainty analysis. Our tiny fictional comparison has no p-value, confidence interval or causal evidence. Feedback and accessibility testing may reveal important issues invisible to metrics.

Security analytics can flag unusual activity, but anomalies are not proof of cheating; review and appeals help address false positives. Technical diagnostics measure errors or latency but do not automatically identify their causes. Monetization research should protect fair value, privacy and age-appropriate spending safeguards instead of encouraging compulsive play or pressure to purchase.

Privacy: Use synthetic or appropriately licensed data, consent and lawful processing where relevant, secure storage and minimum necessary collection. Never solicit player passwords, private chats, precise locations, payment histories or children’s identifiable usage profiles. Unity’s privacy documentation does not provide automatic legal compliance; US COPPA applies where relevant and is not a worldwide law.

Students analyzing a generic gameplay data table and chart in a classroom
Classroom projects can use fictional data without tracking real players.

Six achievable game analytics student projects

Project 1: Tutorial Comparison

Beginner. Analyze this fictional twelve-session study; present rates, retries and uncertainty. Record question, variables, calculations, limitations and safeguards.

Project 2: Game Level Difficulty

Beginner. Make synthetic level starts and completions; compare carefully defined denominators. Record question, variables, calculations, limitations and safeguards.

Project 3: Puzzle Hint Analysis

Beginner. Graph invented hint requests; do not infer a player’s enjoyment from hint counts. Record question, variables, calculations, limitations and safeguards.

Project 4: Error Monitoring

Intermediate. Compare synthetic crash counts by version or device; investigate rather than assume a cause. Record question, variables, calculations, limitations and safeguards.

Project 5: Genre Recommendations

Intermediate. Use invented preferences to demonstrate transparent rule-based suggestions without profiling people. Record question, variables, calculations, limitations and safeguards.

Project 6: Gameplay Funnel

Intermediate. Calculate fictional starts, checkpoints and completions; check event definitions and duplicates. Record question, variables, calculations, limitations and safeguards.

Find related methods in Data Science Projects, Science Fair Research and the Portfolio Guide.

A four-week student learning roadmap

WeekMain focusOutput
1Define events and metricsResearch question
2Analyze twelve rowsVerified spreadsheet
3Visualize and discuss biasFour-chart report
4Present limitations and safeguardsOriginal portfolio write-up
Optional: Pandas, SQL or a simple original game prototype. No paid gaming platform is required.

A student presentation should contain the title, question, fictional dataset, definitions, calculations, charts, results, limitations, ethical safeguards and credible sources. State what the data do not measure.

Knowledge-check questions and answers

  • What is telemetry? Defined gameplay events or technical measurements.
  • Completion versus retention? Finishing a task versus returning later.
  • Checkpoint count for B? Four of six.
  • Overall completion? Eight of twelve, or 66.67%.
  • Percentage-point gap? 33.33 points.
  • Does longer mean more enjoyable? No.
  • Does every NPC use ML? No, rules and behavior trees also work.
  • Why minimize data? To protect players and reduce risk.

Frequently asked questions

How is data science used in gaming?

It examines defined gameplay events for progression, difficulty, balancing, reliability, recommendations and accessibility.

What does a game data analyst do?

They define questions, clean records, calculate metrics, visualize results and report limits.

What is game telemetry?

Logged gameplay events such as sessions, retries, hints, checkpoints, completions or technical errors.

How do developers measure difficulty?

They combine completion and retry measures with player skill, accessibility and feedback.

How does retention differ from completion rate?

Completion means finishing a defined task; retention means returning in a defined later window.

How does A/B testing work?

Compare alternative designs with predefined outcomes, suitable allocation and uncertainty analysis.

Do all NPCs use machine learning?

No. Scripted rules, pathfinding and behavior trees do not necessarily learn from data.

Can students learn game analytics without programming?

Yes. A calculator, spreadsheet and fictional twelve-session table are enough.

Conclusion: Better games require more than numbers

Data science can support game design through event analysis, progression measurement, balancing, testing, technical diagnostics and responsible recommendations. It also supports security investigations and accessibility research. But metrics must be interpreted alongside engineering knowledge, ethical safeguards and feedback from players. Screen time, retention and purchases cannot fully describe enjoyment or well-being.

In our invented tutorial comparison, A recorded more completions, fewer retries and shorter sessions than B. This offers a useful classroom example of formulas and funnels, not evidence that A would be better for all real players. A stronger study would address sample size, group assignment, accessibility, uncertainty and satisfaction.

Your challenge: choose a design question, define suitable events, analyze a fictional dataset and explain what further evidence you would need before recommending a real change.

Official references: Unity Analytics, GameAnalytics progression events, Roblox Analytics, Open Game Data and Pandas. Verified November 2026. Disclosure: the optional courses use provider URLs without authorized affiliate tracking.