From 7782cd6758134b034b865ec33d148a2c93fee024 Mon Sep 17 00:00:00 2001 From: Jason Huynh <79772606+jasxnhuynh@users.noreply.github.com> Date: Thu, 21 Mar 2024 15:36:00 -0700 Subject: [PATCH] Changed introduction, added df.head(), and made formatting consistent. --- README.md | 50 ++++++++++++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index d7576eb..36ca9a9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# LoL-lane-analysis +# The Winning Edge: A Comprehensive Analysis of Roles in League of Legends By Jason Huynh (jah037@ucsd.edu) and Jonathan Yi (j8yi@ucsd.edu) @@ -8,11 +8,9 @@ Final Project for DSC80. ## Introduction -Welcome to Summoner’s Rift! Since its release in 2009, League of Legends (LoL) has taken the gaming world by storm, becoming the #1 multiplayer online battle arena (MOBA) game in the world. Being a competitive game, players constantly strive to gain an edge to secure victory. As such, a question arises, what is the best way to obtain this goal? +Welcome to Summoner’s Rift! Since its release in 2009, League of Legends (LoL) has taken the gaming world by storm, becoming the #1 multiplayer online battle arena (MOBA) game in the world. At its core, LoL pits two teams, each comprising five players, in a strategic battle to destroy the opposing team's Nexus. Players select one of five roles*: top, jungle, middle, adc, or support. In such a highly competitive game, players are constantly seeking ways to gain an upper hand, with the choice of role often being a critical factor in securing a win. Our data analysis aims to answer the question: "which role consistently carries their team to victory?" -In League of Legends, two teams, each with five players, clash to destroy the opposing team's Nexus. Players select one of five roles*: top, jungle, middle, adc, or support. Our data analysis aims to answer the question: "which role consistently carries their team to victory?" - -*For ease of reference, the jungle, mid, and support roles will be abbreviated to jng, mid, and sup respectively. As well, we will be using the term 'role' and 'position' interchangebly. +*The jungle, mid, and support roles will be abbreviated to jng, mid, and sup respectively. As well, the words 'role' and 'position' will be used interchangebly. --- @@ -26,11 +24,17 @@ Then, we implemented the calculation and incorporation of the KDA (Kill-Death-As Lastly, we standardized our dataset's statistics. Employing the z-score formula Z = (X - µ) / σ, we transformed the data into z-scores for each game. To ensure accuracy, we created a custom function and applied it using the .transform(z-score) method after grouping by 'gameid'. -Below are the initial five rows of our dataframe, showcasing the standardized statistics. +Below are the initial five rows of our dataframe, showcasing the standardized statistics and omitting unnecessary columns for visualization purposes. -*add df here* +| | gameid | position | KDA | totalgold | total cs | damagetochampions | +|---:|:----------------------|:-----------|-----------:|------------:|-----------:|--------------------:| +| 0 | ESPORTSTMNT06_2753012 | top | 1.45409 | -0.181853 | 1.05976 | -0.546755 | +| 1 | ESPORTSTMNT06_2753012 | jng | -0.552391 | -0.511447 | -0.661093 | -0.825695 | +| 2 | ESPORTSTMNT06_2753012 | mid | 0.45085 | -0.334314 | 0.615204 | -0.105894 | +| 3 | ESPORTSTMNT06_2753012 | adc | 2.02737 | -0.255967 | 0.851821 | 0.412173 | +| 4 | ESPORTSTMNT06_2753012 | sup | 0.0208899 | -0.670381 | -1.65058 | -0.844755 | ---- +### Univariate Analysis For our univariate analysis, we aimed to explore how various in-game statistics' z-scores distribute across different player roles. To begin, we grouped the data by the 'position' column, which represents the role each player assumes in the game. We chose not to include the 'team' values, as they do not relate to the positions. @@ -70,7 +74,7 @@ Upon analyzing the graphs, several insights emerged. The middle and adc roles co In summary, our analysis suggests that the middle and adc roles tend to have a more substantial impact on the game across various statistics, while top, support, and jungle roles exhibit more diverse and sometimes less impactful performances. ---- +### Bivariate Analysis In our bivariate analysis, we aimed to explore the relationship between different statistics and player positions in the dataset. We employed two main visualization techniques: bar charts and box plots. @@ -83,8 +87,6 @@ In our bivariate analysis, we aimed to explore the relationship between differen The bar graph above illustrates each position’s average z-score across all statistics. The x-axis represents the positions, while the y-axis indicates the average z-score. Each bar was color-coded to distinguish between positions, facilitating a visual comparison of z-scores across roles. Through this visualization, we noticed that the adc role had the highest average z-Score for all statistics, whereas support had the lowest average z-Score for all statistics. -Box Plots for KDA and Damage to Champions Across Positions: - In addition to the bar charts, we created box plots to further analyze the distribution of z-scores for two specific statistics: KDA and damage to champions. Two separate box plots were generated—one for KDA and another for damage to champions. The x-axis indicated the player positions, while the y-axis represented the z-score of the respective statistic. The box plots provided insights into the central tendency, spread, and presence of outliers in the z-score distribution for each position, allowing for a more detailed examination of the data compared to the bar charts. -Conclusion: +### Conclusion + +P-value: 0.51 -Because we obtained the p-value of 0.51, which is greater than our defined significance level of 0.05, we fail to reject the null hypothesis. As such, there's insufficient evidence to assert that our model favors the blue team over the red team regarding precision scores. This outcome suggests that our model operates without detectable bias, and any differences in precision between the two groups likely stem from chance. \ No newline at end of file +Because the p-value is greater than the significance level of 0.05, we fail to reject the null hypothesis. As such, there's insufficient evidence to assert that our model favors the blue team over the red team regarding precision scores. This outcome suggests that our model operates without detectable bias, and any differences in precision between the two groups likely stem from chance. \ No newline at end of file