"<src.Dataset.Dataset object at 0x000002836CA9DC60>\n"
"<src.Dataset.Dataset object at 0x000001FC08F5A140>\n"
]
]
}
}
],
],
...
@@ -306,12 +306,14 @@
...
@@ -306,12 +306,14 @@
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"ename": "SyntaxError",
"data": {
"evalue": "unterminated string literal (detected at line 6) (3054853027.py, line 6)",
"text/plain": [
"output_type": "error",
"'\"# SIDE BY SIDE PLOTS \\n# LEFT = LINE Graph distribution of Anxiety Score Related to Group\\n# RIGHT = Stacked Bars comparing the GROUP with = \\n# 1.[Work] - 4 Bars\\n# 2.[Degree] - 5 Bars\\n# 3.[Whyplay ] - 4 Bars (Everything until \"All of them\")'"
"traceback": [
]
"\u001b[1;36m Cell \u001b[1;32mIn[6], line 6\u001b[1;36m\u001b[0m\n\u001b[1;33m # 3.[Whyplay ] - 4 Bars (Everything until \"All of them\")\"\"\"\"\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m unterminated string literal (detected at line 6)\n"
},
]
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
}
],
],
"source": [
"source": [
...
@@ -320,7 +322,7 @@
...
@@ -320,7 +322,7 @@
"# RIGHT = Stacked Bars comparing the GROUP with = \n",
"# RIGHT = Stacked Bars comparing the GROUP with = \n",
"# 1.[Work] - 4 Bars\n",
"# 1.[Work] - 4 Bars\n",
"# 2.[Degree] - 5 Bars\n",
"# 2.[Degree] - 5 Bars\n",
"# 3.[Whyplay ] - 4 Bars (Everything until \"All of them\")\"\"\"\""
"# 3.[Whyplay ] - 4 Bars (Everything until \"All of them\")\"\"\""
]
]
},
},
{
{
...
@@ -332,11 +334,14 @@
...
@@ -332,11 +334,14 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
"####"
" \"\"\"\n",
" \n",
" \n",
" \"\"\""
]
]
},
},
{
{
...
@@ -348,9 +353,20 @@
...
@@ -348,9 +353,20 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 8,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"' 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'"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"source": [
"\"\"\" Horizontal bar chart, one row for every reason for with top width\n",
"\"\"\" 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",
"# Anxiety colored in for the amount of anxiety in that group \n",
...
@@ -366,9 +382,20 @@
...
@@ -366,9 +382,20 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"'#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 '"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"source": [
"\n",
"\n",
"\"\"\"#Overlaying Histogram \n",
"\"\"\"#Overlaying Histogram \n",
...
@@ -403,9 +430,20 @@
...
@@ -403,9 +430,20 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 10,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"'#### 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 Scatter PLot like in the example '"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"source": [
"\"\"\"#### Analyze the countries amounting to Top 7 or 90% of the survey. \n",
"\"\"\"#### Analyze the countries amounting to Top 7 or 90% of the survey. \n",
"\n",
"\n",
...
...
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:
# Anxiety in Computer-Gamers: differences, similiratires and learnings
# Anxiety in Computer-Gamers: differences, similiratires and learnings
# Overview
# Overview
In this project we decided to analyze anxiety in Gamers. We picked the dataset from kaggle because it intersected our personal interests. The data and survey can be found [here](https://www.kaggle.com/datasets/divyansh22/online-gaming-anxiety-data)
In this project we decided to analyze anxiety in Gamers. We picked the dataset from kaggle because it intersected our personal interests. The data and survey can be found [here](https://www.kaggle.com/datasets/divyansh22/online-gaming-anxiety-data)
The data was acquired by a survey published and shared online. This way everyone could participate. For us that also means taking into account that the distribution and answers can be scewed.
The data was acquired by a survey published and shared online. This way everyone could participate. For us that also means taking into account that the distribution and answers can be scewed.
## Motivation -
## Motivation -
%% Cell type:code id: tags:
%% Cell type:code id: tags:
``` python
``` python
fromsrc.DatasetimportDataset
fromsrc.DatasetimportDataset
dataset=Dataset("data\GamingStudy_data.csv")
dataset=Dataset("data\GamingStudy_data.csv")
print(dataset)
print(dataset)
```
```
%% Output
%% Output
<src.Dataset.Dataset object at 0x000002836CA9DC60>
<src.Dataset.Dataset object at 0x000001FC08F5A140>
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:
# Data Exploration
# Data Exploration
Because the data was accumulated in a semi-professional way for a pre-study we had to clean it up and make some changes.
Because the data was accumulated in a semi-professional way for a pre-study we had to clean it up and make some changes.
Some columns could be answered with an open text field. Naturally the answeres in those columns are very diversified and hard to analyze.
Some columns could be answered with an open text field. Naturally the answeres in those columns are very diversified and hard to analyze.
#### Affected Columns
#### Affected Columns
+ Whyplay
+ Whyplay
+ Earnings
+ Earnings
+ League
+ League
In the following we will explain if and how we used these columns.
In the following we will explain if and how we used these columns.
Stuff like deleted columns, general overview of the distribution (men women, games, platform) and problems with it
Stuff like deleted columns, general overview of the distribution (men women, games, platform) and problems with it
%% Cell type:code id: tags:
%% Cell type:code id: tags:
``` python
``` python
"""
"""
4 Plots/Way to shows the distribution of
4 Plots/Way to shows the distribution of
Gender,
Gender,
Platform (where they found the survey)
Platform (where they found the survey)
Games Top 5
Games Top 5
and Console
and Console
"""
"""
```
```
%% Output
%% Output
'\n4 Plots/Way to shows the distribution of \nGender, \nPlatform (where they found the survey)\nGames Top 5 \nand Console\n\n'
'\n4 Plots/Way to shows the distribution of \nGender, \nPlatform (where they found the survey)\nGames Top 5 \nand Console\n\n'
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:
## Explanation of technical terms
## Explanation of technical terms
### SPIN
### SPIN
SPIN stands for Social Phobia Inventory
SPIN stands for Social Phobia Inventory
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
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
1. I am afraid of people in authority.
1. I am afraid of people in authority.
2. I am bothered by blushing in front of people.
2. I am bothered by blushing in front of people.
3. Parties and social events scare me.
3. Parties and social events scare me.
4. I avoid talking to people I don’t know.
4. I avoid talking to people I don’t know.
5. Being criticized scares me a lot.
5. Being criticized scares me a lot.
6. I avoid doing things or speaking to people for fear of embarrassment.
6. I avoid doing things or speaking to people for fear of embarrassment.
7. Sweating in front of people causes me distress.
7. Sweating in front of people causes me distress.
8. I avoid going to parties.
8. I avoid going to parties.
9. I avoid activities in which I am the center of attention.
9. I avoid activities in which I am the center of attention.
10. Talking to strangers scares me.
10. Talking to strangers scares me.
11. I avoid having to give speeches.
11. I avoid having to give speeches.
12. I would do anything to avoid being criticized.
12. I would do anything to avoid being criticized.
13. Heart palpitations bother me when I am around people.
13. Heart palpitations bother me when I am around people.
14. I am afraid of doing things when people might be watching.
14. I am afraid of doing things when people might be watching.
15. Being embarrassed or looking stupid are among my worst fears.
15. Being embarrassed or looking stupid are among my worst fears.
16. I avoid speaking to anyone in authority.
16. I avoid speaking to anyone in authority.
17. Trembling or shaking in front of others is distressing to me.
17. Trembling or shaking in front of others is distressing to me.
### GAD
### GAD
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
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
#### Worries of concern
#### Worries of concern
- Health
- Health
- Finances
- Finances
- Death
- Death
- Family
- Family
- Relationships
- Relationships
- Work
- Work
#### Symptoms
#### Symptoms
- Excessive worry
- Excessive worry
- Restlessness,
- Restlessness,
- Low Concentration
- Low Concentration
- Trouble sleeping
- Trouble sleeping
- Exhaustion / Fatigablity
- Exhaustion / Fatigablity
- Irritability
- Irritability
- Sweating
- Sweating
- Trembling (Muscle contraction)
- Trembling (Muscle contraction)
In the questionnaire the question target these symptoms and worries and summarize them into a score between 0 and 21.
In the questionnaire the question target these symptoms and worries and summarize them into a score between 0 and 21.
### SWL
### SWL
#### Explanation
#### Explanation
The survey has 5 questions. You fill it in yourself (not a psychiatrist).
The survey has 5 questions. You fill it in yourself (not a psychiatrist).
For each question, you choose any integer between 1 (highly disagree) to 7 (highly agree).
For each question, you choose any integer between 1 (highly disagree) to 7 (highly agree).
In general, lower numbers mean you are less satisfied with life in a certain way.
In general, lower numbers mean you are less satisfied with life in a certain way.
This means you can score between 5 (least satisfied) to 35 (most satisfied).
This means you can score between 5 (least satisfied) to 35 (most satisfied).
#### Interpretation
#### Interpretation
The (total) SWL score can be interpreted as:
The (total) SWL score can be interpreted as:
- 31 - 35 Extremely satisfied
- 31 - 35 Extremely satisfied
- 26 - 30 Satisfied
- 26 - 30 Satisfied
- 21 - 25 Slightly satisfied
- 21 - 25 Slightly satisfied
- 20 Neutral
- 20 Neutral
- 15 - 19 Slightly dissatisfied
- 15 - 19 Slightly dissatisfied
- 10 - 14 Dissatisfied
- 10 - 14 Dissatisfied
- 5 - 9 Extremely dissatisfied
- 5 - 9 Extremely dissatisfied
A more detailed interpretation can be found [here](http://labs.psychology.illinois.edu/~ediener/Documents/Understanding%20SWLS%20Scores.pdf).
A more detailed interpretation can be found [here](http://labs.psychology.illinois.edu/~ediener/Documents/Understanding%20SWLS%20Scores.pdf).
Residents of developed nations (e.g. DE) usually score 20-24.
Residents of developed nations (e.g. DE) usually score 20-24.
#### Questions
#### Questions
____ In most ways my life is close to my ideal.<br>
____ In most ways my life is close to my ideal.<br>
____ The conditions of my life are excellent.<br>
____ The conditions of my life are excellent.<br>
____ I am satisfied with my life.<br>
____ I am satisfied with my life.<br>
____ So far I have gotten the important things I want in life.<br>
____ So far I have gotten the important things I want in life.<br>
____ If I could live my life over, I would change almost nothing.<br>
____ If I could live my life over, I would change almost nothing.<br>
---
---
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:
# Analysis
# Analysis
## Preprocessing
## Preprocessing
* Explained new columns and why we did that *
* Explained new columns and why we did that *
Some columns gave the options to write individual responses. Naturally those are not useful in data analysis. In some cases we cleaned the columns and changes the unusual cases to "Other"/"NA"
Some columns gave the options to write individual responses. Naturally those are not useful in data analysis. In some cases we cleaned the columns and changes the unusual cases to "Other"/"NA"
# LEFT = LINE Graph distribution of Anxiety Score Related to Group
# LEFT = LINE Graph distribution of Anxiety Score Related to Group
# RIGHT = Stacked Bars comparing the GROUP with =
# RIGHT = Stacked Bars comparing the GROUP with =
# 1.[Work] - 4 Bars
# 1.[Work] - 4 Bars
# 2.[Degree] - 5 Bars
# 2.[Degree] - 5 Bars
# 3.[Whyplay ] - 4 Bars (Everything until "All of them")
# 3.[Whyplay ] - 4 Bars (Everything until "All of them")
"""
"""
#
#
```
```
%% Output
%% Output
'# SIDE BY SIDE PLOTS \n# LEFT = LINE Graph distribution of Anxiety Score Related to Group\n# RIGHT = Stacked Bars comparing the GROUP with = \n# 1.[Work] - 4 Bars\n# 2.[Degree] - 5 Bars\n# 3.[Whyplay ] - 4 Bars (Everything until "All of them")\n'
'# SIDE BY SIDE PLOTS \n# LEFT = LINE Graph distribution of Anxiety Score Related to Group\n# RIGHT = Stacked Bars comparing the GROUP with = \n# 1.[Work] - 4 Bars\n# 2.[Degree] - 5 Bars\n# 3.[Whyplay ] - 4 Bars (Everything until "All of them")\n'
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:
### Competetive vs Easy Going Players
### Competetive vs Easy Going Players
Explanation
Explanation
%% Cell type:code id: tags:
%% Cell type:code id: tags:
``` python
``` python
"""# SIDE BY SIDE PLOTS
"""# SIDE BY SIDE PLOTS
# LEFT = LINE Graph distribution of Anxiety Score Related to Group
# LEFT = LINE Graph distribution of Anxiety Score Related to Group
# RIGHT = Stacked Bars comparing the GROUP with =
# RIGHT = Stacked Bars comparing the GROUP with =
# 1.[Work] - 4 Bars
# 1.[Work] - 4 Bars
# 2.[Degree] - 5 Bars
# 2.[Degree] - 5 Bars
# 3.[Whyplay ] - 4 Bars (Everything until "All of them")"""
# 3.[Whyplay ] - 4 Bars (Everything until "All of them")"""
```
```
%% Output
%% Output
'# SIDE BY SIDE PLOTS \n# LEFT = LINE Graph distribution of Anxiety Score Related to Group\n# RIGHT = Stacked Bars comparing the GROUP with = \n# 1.[Work] - 4 Bars\n# 2.[Degree] - 5 Bars\n# 3.[Whyplay ] - 4 Bars (Everything until "All of them")'
'# SIDE BY SIDE PLOTS \n# LEFT = LINE Graph distribution of Anxiety Score Related to Group\n# RIGHT = Stacked Bars comparing the GROUP with = \n# 1.[Work] - 4 Bars\n# 2.[Degree] - 5 Bars\n# 3.[Whyplay ] - 4 Bars (Everything until "All of them")'
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:
### Narcissist vs Non-Narcissist
### Narcissist vs Non-Narcissist
%% Cell type:code id: tags:
%% Cell type:code id: tags:
``` python
``` python
""""# SIDE BY SIDE PLOTS
""""# SIDE BY SIDE PLOTS
# LEFT = LINE Graph distribution of Anxiety Score Related to Group
# LEFT = LINE Graph distribution of Anxiety Score Related to Group
# RIGHT = Stacked Bars comparing the GROUP with =
# RIGHT = Stacked Bars comparing the GROUP with =
# 1.[Work] - 4 Bars
# 1.[Work] - 4 Bars
# 2.[Degree] - 5 Bars
# 2.[Degree] - 5 Bars
# 3.[Whyplay ] - 4 Bars (Everything until "All of them")""""
# 3.[Whyplay ] - 4 Bars (Everything until "All of them")"""
```
```
%% Output
%% Output
Cell In[6], line 6
'"# SIDE BY SIDE PLOTS \n# LEFT = LINE Graph distribution of Anxiety Score Related to Group\n# RIGHT = Stacked Bars comparing the GROUP with = \n# 1.[Work] - 4 Bars\n# 2.[Degree] - 5 Bars\n# 3.[Whyplay ] - 4 Bars (Everything until "All of them")'
# 3.[Whyplay ] - 4 Bars (Everything until "All of them")""""
^
SyntaxError: unterminated string literal (detected at line 6)
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:
## Q2 - Correlations between played hours and one's well being.
## Q2 - Correlations between played hours and one's well being.
%% Cell type:code id: tags:
%% Cell type:code id: tags:
``` python
``` python
####
"""
"""
```
```
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:
## Q3 - Effect of the reason for playing on the satisfaction with life
## Q3 - Effect of the reason for playing on the satisfaction with life
%% Cell type:code id: tags:
%% Cell type:code id: tags:
``` python
``` python
""" Horizontal bar chart, one row for every reason for with top width
""" Horizontal bar chart, one row for every reason for with top width
# Anxiety colored in for the amount of anxiety in that group
# Anxiety colored in for the amount of anxiety in that group
"""
"""
```
```
%% Output
' 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 id: tags:
%% Cell type:markdown id: tags:
### Effects of income level, earnings, education on the reason to play
### Effects of income level, earnings, education on the reason to play
%% Cell type:code id: tags:
%% Cell type:code id: tags:
``` python
``` python
"""#Overlaying Histogram
"""#Overlaying Histogram
# Histogram for the income level Y = %, X = low to high
# Histogram for the income level Y = %, X = low to high
# One in Green for the income
# One in Green for the income
# One in Red for the Anxiety for those people """
# One in Red for the Anxiety for those people """
```
```
%% Output
'#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 '
"""#### Analyze the countries amounting to Top 7 or 90% of the survey.
"""#### Analyze the countries amounting to Top 7 or 90% of the survey.
#Q4.MAP PLOT = Most played game per country (Dont do it if its League everywhere. )
#Q4.MAP PLOT = Most played game per country (Dont do it if its League everywhere. )
#Q4 MAP PLOT = Heat Map with redder areas for more Anxiety in the country.
#Q4 MAP PLOT = Heat Map with redder areas for more Anxiety in the country.
#Q1.2 Grouped Bar Chart with the top game next to the "Anxiety Score"
#Q1.2 Grouped Bar Chart with the top game next to the "Anxiety Score"
#2 Scatter PLot like in the example """
#2 Scatter PLot like in the example """
```
```
%% Output
'#### 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 Scatter PLot like in the example '