diff --git a/Notebook.ipynb b/Notebook.ipynb index 7e60209d236b1091e5690503a3803eb04bf49240..6e4fbbdfc18dedca2e0bca2c9a185f47024a4210 100644 --- a/Notebook.ipynb +++ b/Notebook.ipynb @@ -8,71 +8,153 @@ "\n", "# Overview \n", "\n", - "In this project we decided to analyze anxiety in Gamers. We picked the dataset from kaggle because it intersected our personal interests. \n", + "In this project we decided to analyze anxiety in Gamers. We picked the dataset from kaggle because it intersected our personal interests. The data can be found [here](https://www.kaggle.com/datasets/divyansh22/online-gaming-anxiety-data)\n", "\n", - "The data was acquired by a survey published and shared online. This way everyone could " + "The data was acquired by a survey published and shared online. This way everyone could participate. For us that also means analyzing and di" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "<src.Dataset.Dataset object at 0x000001CA32F35BD0>\n" + ] + } + ], "source": [ - "# Plotting the \"Reference\" Column where the Data is from" + "from src.Dataset import Dataset \n", + "\n", + "dataset = Dataset(\"data\\GamingStudy_data.csv\")\n", + "print(dataset)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ - "# Explanation of technical terms \n", + "# Data Exploration\n", "\n", - "### SPIN \n", "\n", - "### GAD \n", - "s a mental and behavioral, disorder, specifally an anxiety disorder characterized by excessive, uncontrollable and often irrational worry about events or activities. There are specific questionaires you can use to evaluate the disorder. \n", - "#### Worries of concern\n", "\n", - "The worries of concern are \n", - "1. Test \n", - "2. Test\n", - "### SWL" + "Because the data was accumulated in a semi-professional way for a pre-study we had to clean it up and make some changes. \n", + "\n", + "Some columns could be answered with an open text field. Naturally the answeres in those columns are very diversified and hard to analyze. \n", + "+ Example\n", + "+ Example\n", + "+ Example\n", + "\n", + "In the following we will explain if and how we used these columns. \n", + "\n", + "Stuff like deleted columns, general overview of the distribution (men women, games, platform) and problems with it \n", + "\n" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "<src.Dataset.Dataset object at 0x00000285ED26C7C0>\n" - ] - } - ], + "outputs": [], "source": [ - "from src.Dataset import Dataset \n", + "# BAR PLOTS for Gender distribution \n", + "# BAR PLOTS FOR Plattform \n", + "# BAR PLOTS for GAMES\n", "\n", - "dataset = Dataset(\"data\\GamingStudy_data.csv\")\n", - "print(dataset)" + "# DIFFERENT Colored Bars " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ - "# Analysis\n", + "## Explanation of technical terms \n", "\n", - "## Normalizing the Data \n", - "\n" + "### SPIN \n", + "SPIN stands for Social Phobia Inventory \n", + "The SPIN is a standardized set of 17 question. After answering the questionnaire a “SPIN†value is calculated which is effective for screening for and measuring the severity of social anxiety disorder\n", + "1. I am afraid of people in authority.\n", + "2. I am bothered by blushing in front of people.\n", + "3. Parties and social events scare me.\n", + "4. I avoid talking to people I don’t know.\n", + "5. Being criticized scares me a lot.\n", + "6. I avoid doing things or speaking to people for fear of embarrassment.\n", + "7. Sweating in front of people causes me distress.\n", + "8. I avoid going to parties.\n", + "9. I avoid activities in which I am the center of attention.\n", + "10. Talking to strangers scares me.\n", + "11. I avoid having to give speeches.\n", + "12. I would do anything to avoid being criticized.\n", + "13. Heart palpitations bother me when I am around people.\n", + "14. I am afraid of doing things when people might be watching.\n", + "15. Being embarrassed or looking stupid are among my worst fears.\n", + "16. I avoid speaking to anyone in authority.\n", + "17. Trembling or shaking in front of others is distressing to me. \n", + "### GAD \n", + "is a mental and behavioral, disorder, specifally an anxiety disorder characterized by excessive, uncontrollable and often irrational worry about events or activities. There are specific questionaires you can use to evaluate the disorder. In the questionnaire the minimum is 0 and maximum is 21 \n", + "#### Worries of concern\n", + "- Health\n", + "- Finances\n", + "- Death\n", + "- Family\n", + "- Relationships\n", + "- Work\n", + "#### Symptoms \n", + "- Excessive worry\n", + "- Restlessness,\n", + "- Low Concentration\n", + "- Trouble sleeping\n", + "- Exhaustion / Fatigablity\n", + "- Irritability\n", + "- Sweating\n", + "- Trembling (Muscle contraction)\n", + "In the questionnaire the question target these symptoms and worries and summarize them into a score between 0 and 21. \n", + "### SWL\n", + "#### Explanation\n", + "The survey has 5 questions. You fill it in yourself (not a psychiatrist).\n", + "For each question, you choose any integer between 1 (highly disagree) to 7 (highly agree).\n", + "In general, lower numbers mean you are less satisfied with life in a certain way.\n", + "This means you can score between 5 (least satisfied) to 35 (most satisfied).\n", + "#### Interpretation\n", + "The (total) SWL score can be interpreted as:\n", + "\n", + "- 31 - 35 Extremely satisfied\n", + "- 26 - 30 Satisfied\n", + "- 21 - 25 Slightly satisfied\n", + "- 20 Neutral\n", + "- 15 - 19 Slightly dissatisfied\n", + "- 10 - 14 Dissatisfied\n", + "- 5 - 9 Extremely dissatisfied\n", + "\n", + "A more detailed interpretation can be found [here](http://labs.psychology.illinois.edu/~ediener/Documents/Understanding%20SWLS%20Scores.pdf).\n", + "\n", + "Residents of developed nations (e.g. DE) usually score 20-24.\n", + "### Take it yourself\n", + "\n", + "____ In most ways my life is close to my ideal.<br>\n", + "____ The conditions of my life are excellent.<br>\n", + "____ I am satisfied with my life.<br>\n", + "____ So far I have gotten the important things I want in life.<br>\n", + "____ If I could live my life over, I would change almost nothing.<br>\n", + "\n", + "---" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Analysis\n", + "Explained new columns and why we did that (\"Is_narcissist, \"Anxiety_score\")\n", + "## Normalizing the Data \n" ] }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 2, "metadata": {}, "outputs": [ { @@ -92,12 +174,13 @@ "Length: 13464, dtype: float64" ] }, - "execution_count": 3, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ + "# Executing and showing new columns \n", "dataset.get_combined_anxiety_score(dataset.get_dataframe())" ] }, @@ -118,12 +201,13 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ - "# All of this with stacked Bars \n", - "# " + "# SIDE BY SIDE PLOTS \n", + "# LEFT = LINE Graph distribution of Anxiety Score Related to Group\n", + "# RIGHT = Stacked Bars comparing the GROUP with = 1. 2. 3. " ] }, { @@ -139,7 +223,11 @@ "execution_count": null, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "# SIDE BY SIDE PLOTS \n", + "# LEFT = LINE Graph distribution of Anxiety Score Related to Group\n", + "# RIGHT = Stacked Bars comparing the GROUP with = 1. 2. 3. " + ] }, { "cell_type": "markdown", @@ -151,11 +239,13 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ - "# Plot demonstrating the differenc with stacked bars " + "# SIDE BY SIDE PLOTS \n", + "# LEFT = LINE Graph distribution of Anxiety Score Related to Group\n", + "# RIGHT = Stacked Bars comparing the GROUP with = 1. 2. 3. " ] }, { @@ -165,10 +255,101 @@ "### Narcissist vs Non-Narcissist" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# SIDE BY SIDE PLOTS \n", + "# LEFT = LINE Graph distribution of Anxiety Score Related to Group\n", + "# RIGHT = Stacked Bars comparing the GROUP with = 1. 2. 3. " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Q2 - Correlations betweeet played hours and ones well being. " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "####" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Q3 - Effect of the reason for playing on the satisfaction with life " + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [], + "source": [ + "# Horizontal bar chart, one row for every reason for with top width\n", + "# Anxiety colored in for the amount of anxiety in that group \n" + ] + }, { "cell_type": "markdown", "metadata": {}, - "source": [] + "source": [ + "### Effects of income level, earnings, education on the reason to play " + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [], + "source": [ + "#Overlaying Histogram \n", + "\n", + "# Histogram for the income level Y = %, X = low to high \n", + "# One in Green for the income \n", + "# One in Red for the Anxiety for those people " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Q4 - Gamers from different countries " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "1. Do they play different games ? \n", + " 1. Are they reacting differently to those games \n", + "2. Is the amount of educated players similar " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "#### Analyze the countries amounting to Top 7 or 90% of the survey. \n", + "\n", + "\n", + "#Q4. MAP PLOT = Most played game per country (Dont do it if its League everywhere. )\n", + "#Q4 MAP PLOT = Heat Map with redder areas for more Anxiety in the country. \n", + "#Q1.2 Grouped Bar Chart with the top game next to the \"Anxiety Score\"\n", + "\n", + "#2 Grouped Bars with Education per Country IF POSSIBLE grouped with a bar for the anxiety " + ] } ], "metadata": {