Skip to content

AndrewspWhite/Mobile-Video-Game-SQL-Project

Repository files navigation

MOBILE VIDEO GAME RETENTION STUDY

We were given four tables in order to analyze various outcomes of a mobile video game over the course of one year. Our primary interest was to explore spending habits in relation to a 30-day retention cycle. To conduct this study, we asked the following questions using SQL:

  1. What was the 30-day retention cycle over the course of one year?
  2. What was the average amount of money spent per player, based on whether they were retained or not retained.
  3. Are players who win more retained more?


QUESTION 1) THE 30 DAY RETENTION CYCLE

For each individual day of the year we calculated the following:

  • the day of the year a player joined
  • the total number of players who joined on a given day
  • of the number of players who joined, how many were retained
  • the fractional retention; calculating what percentage of players who joined on a given day were retained after 30 days of joining.

These calculations were then displayed in a table and a graph:

TABLE 1.

day num_joined num_retained fractional_retention
1 113 78 0.69
2 131 95 0.73
3 141 97 0.69


ANALYSIS

The graphs below shows that over the course of one year the 30-day retention cycle was strong, with an average daily retention rate of 71.1% when calculated for days where 30-day retention was not limited by there being less than 30 days to the end of the 365 day macro cycle.



GRAPH 1

GRAPH 2



QUESTION 2) SPENDING HABITS OF PLAYERS BASED ON RETENTION



The player retained vs. non-retained was analyzed with both total amount spent and the average spent. Comparing the two graphs there is a very noticeable observation. The total spent by retained players is $10,862,381 more than non-retained players but the average spent by retained players is $402 less than non-retained players. It was clear that the possibility of retained players spending more was almost certain, given that 65.3% of total players were retained, but the curiosity lies within the average spent of each group. This occurrence could have to do with play time reduction from in-game purchases; meaning purchased items that can help players complete the objectives of the game before the 30 day mark could be an explanation as to why players were not retained but still spent more on average.



GRAPH




A DEEPER LOOK INTO SPENDING

The Total Spent Per Day graph can be described as almost being a negative sloping function. The graphs begins by slowly curving downward then consistently decreases as days go by. When looking at the negative slop there is very little evidence to prove why this is happening especially knowing total players joined per day remains consistent at an average of 121. By focusing on the first 50 days the total spent results in $14,174,185, which is 30% of the total spent of 47,892,189. This can further prove the the previous assumption of non-retained players spending more on average. The players used in-game purchases to speed up the play time of the game and could be a result of them not being playing for a longer period of time and thus, not being retained.

GRAPH



Question 3) Are players who win more, retained more?


WinPct

PROCESS

This chart was created through several SQL Queries. The first of which found the total amount of wins each player had received by joining player_info table with the matches_info table, and summing over wins (delegated as a $1$) for each player. Another query was made that found the total amount of games played for each player, using the same two tables, but this time summing over the total amount of matches (independent of whether they were considered a win or loss) for each player - giving us the total amount of games played. These two queries (and resulting tables) were joined (through a subquery) and the total_wins was divided by the total_games to gives us the win_pct for each player. Finally, this information was joined with our previous player retention tables, to determine whether each player was retained or not. These win_pct per player were then averaged over each Retention Status ('Retained' or 'Non-Retained').

ANALYSIS

You would generally be led to believe that players who win more, would be more likely to continue playing the game and be 'retained' vs players who constantly lose and get fed up and quit the game. This chart clearly shows the contrary as both 'Retained' and 'Non-Retained' groups have an average winning percentage of ~50%. This could in part be due to the fact that players who are winning extensively when they first play the game (within 30 days of joining) actually get bored of the game and decide to quit it. This may be balancing the players who lose the game and quit preemptively. The company in question may want to consider 'Skill-Based-Matchmaking' so that newer players are going to be playing newer players as well. This may balancing players and giving more insensitive for players to continue playing, although further analysis would have to be conducted to confirm this idea.

About

An SQL group project where we calculated and dervived insights from the 30 day retention cycle of a mobile video game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published