Does going to university in a different country affect your mental health? A Japanese international university surveyed its students in 2018 and published a study the following year that was approved by several ethical and regulatory boards.
The study found that international students have a higher risk of mental health difficulties than the general population, and that social connectedness (belonging to a social group) and acculturative stress (stress associated with joining a new culture) are predictive of depression.
Explore the students
data using PostgreSQL to find out if you would come to a similar conclusion for international students and see if the length of stay is a contributing factor.
Here is a data description of the columns you may find helpful.
Explore and analyze the students data to see how the length of stay (stay) impacts the average mental health diagnostic scores of the international students present in the study.
Field Name | Description |
---|---|
inter_dom |
Types of students (international or domestic) |
japanese_cate |
Japanese language proficiency |
english_cate |
English language proficiency |
academic |
Current academic level (undergraduate or graduate) |
age |
Current age of student |
stay |
Current length of stay in years |
todep |
Total score of depression (PHQ-9 test) |
tosc |
Total score of social connectedness (SCS test) |
toas |
Total score of acculturative stress (ASISS test) |
-- Run this code to view the data in students
SELECT *
FROM students;
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
inter_dom | region | gender | academic | age | age_cate | stay | stay_cate | japanese | japanese_cate | english | english_cate | intimate | religion | suicide | dep | deptype | todep | depsev | tosc | apd | ahome | aph | afear | acs | aguilt | amiscell | toas | partner | friends | parents | relative | profess | phone | doctor | reli | alone | others | internet | partner_bi | friends_bi | parents_bi | relative_bi | professional_bi | phone_bi | doctor_bi | religion_bi | alone_bi | others_bi | internet_bi | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | Inter | SEA | Male | Grad | 24.0 | 4.0 | 5.0 | Long | 3.0 | Average | 5.0 | High | Yes | No | No | No | 0.0 | Min | 34.0 | 23.0 | 9.0 | 11.0 | 8.0 | 11.0 | 2.0 | 27.0 | 91.0 | 5.0 | 5.0 | 6.0 | 3.0 | 2.0 | 1.0 | 4.0 | 1.0 | 3.0 | 4.0 | NaN | Yes | Yes | Yes | No | No | No | No | No | No | No | No | |
1 | Inter | SEA | Male | Grad | 28.0 | 5.0 | 1.0 | Short | 4.0 | High | 4.0 | High | No | No | No | No | 2.0 | Min | 48.0 | 8.0 | 7.0 | 5.0 | 4.0 | 3.0 | 2.0 | 10.0 | 39.0 | 7.0 | 7.0 | 7.0 | 4.0 | 4.0 | 4.0 | 4.0 | 1.0 | 1.0 | 1.0 | NaN | Yes | Yes | Yes | No | No | No | No | No | No | No | No | |
2 | Inter | SEA | Male | Grad | 25.0 | 4.0 | 6.0 | Long | 4.0 | High | 4.0 | High | Yes | Yes | No | No | No | 2.0 | Min | 41.0 | 13.0 | 4.0 | 7.0 | 6.0 | 4.0 | 3.0 | 14.0 | 51.0 | 3.0 | 3.0 | 3.0 | 1.0 | 1.0 | 2.0 | 1.0 | 1.0 | 1.0 | 1.0 | NaN | No | No | No | No | No | No | No | No | No | No | No |
3 | Inter | EA | Female | Grad | 29.0 | 5.0 | 1.0 | Short | 2.0 | Low | 3.0 | Average | No | No | No | No | No | 3.0 | Min | 37.0 | 16.0 | 10.0 | 10.0 | 8.0 | 6.0 | 4.0 | 21.0 | 75.0 | 5.0 | 5.0 | 5.0 | 5.0 | 5.0 | 2.0 | 2.0 | 2.0 | 4.0 | 4.0 | NaN | Yes | Yes | Yes | Yes | Yes | No | No | No | No | No | No |
4 | Inter | EA | Female | Grad | 28.0 | 5.0 | 1.0 | Short | 1.0 | Low | 3.0 | Average | Yes | No | No | No | No | 3.0 | Min | 37.0 | 15.0 | 12.0 | 5.0 | 8.0 | 7.0 | 4.0 | 31.0 | 82.0 | 5.0 | 5.0 | 5.0 | 2.0 | 5.0 | 2.0 | 5.0 | 5.0 | 4.0 | 4.0 | NaN | Yes | Yes | Yes | No | Yes | No | Yes | Yes | No | No | No |
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
281 | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | 128 | 140 | ||||||||||||||||||||||
282 | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | 137 | 131 | ||||||||||||||||||||||
283 | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | 66 | 202 | ||||||||||||||||||||||
284 | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | 61 | 207 | ||||||||||||||||||||||
285 | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | 30 | 238 |
286 rows × 50 columns
Return a table with nine rows and five columns.
The five columns should be aliased as: stay, count_int, average_phq, average_scs, and average_as, in that order.
The average columns should contain the average of the todep (PHQ-9 test), tosc (SCS test), and toas (ASISS test) columns for each length of stay, rounded to two decimal places.
The count_int column should be the number of international students for each length of stay.
Sort the results by the length of stay in descending order.
-- Start coding here...
SELECT stay, COUNT(*) AS count_int, ROUND(AVG(todep), 2) AS average_phq, ROUND(AVG(tosc), 2) AS average_scs, ROUND(AVG(toas), 2) AS average_as
FROM students
WHERE stay >= 1 AND inter_dom = 'Inter'
GROUP BY 1
ORDER BY 1 DESC;
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
stay | count_int | average_phq | average_scs | average_as | |
---|---|---|---|---|---|
0 | 10 | 1 | 13.00 | 32.00 | 50.00 |
1 | 8 | 1 | 10.00 | 44.00 | 65.00 |
2 | 7 | 1 | 4.00 | 48.00 | 45.00 |
3 | 6 | 3 | 6.00 | 38.00 | 58.67 |
4 | 5 | 1 | 0.00 | 34.00 | 91.00 |
5 | 4 | 14 | 8.57 | 33.93 | 87.71 |
6 | 3 | 46 | 9.09 | 37.13 | 78.00 |
7 | 2 | 39 | 8.28 | 37.08 | 77.67 |
8 | 1 | 95 | 7.48 | 38.11 | 72.80 |
Impact of Length of Stay on PHQ-9 Scores (Depression)
High PHQ-9 Scores: The highest PHQ-9 scores are observed for students with a length of stay of 10 years (13.00) and 8 years (10.00). This suggests that students who stay for longer periods may experience higher levels of depression. Low PHQ-9 Scores: Conversely, students with shorter stays, such as 1 year (7.48) and 2 years (8.28), tend to have lower average PHQ-9 scores. This may indicate that shorter stays are associated with lower levels of depression.
Social Connectedness (SCS Scores)
The Social Connectedness Scale (SCS) scores vary across different lengths of stay. Notably, students with a stay of 7 years have the highest SCS scores (48.00), indicating a strong sense of belonging to social groups. On the other hand, students with a stay of 10 years have the lowest SCS scores (32.00), suggesting weaker social connections.
Acculturative Stress (ASISS Scores)
High ASISS Scores: Acculturative stress is highest for students with a stay of 5 years (91.00) and 4 years (87.71). This suggests that students in this mid-range length of stay may experience significant stress related to adapting to a new culture.
Lower ASISS Scores: Students with a stay of 1 year (72.80) and 7 years (45.00) have lower ASISS scores, indicating lower levels of acculturative stress.
Count of International Students
Higher Counts for Short Stays: The count of international students is highest for shorter stays, with 95 students for a stay of 1 year and 46 students for a stay of 3 years. This indicates that a larger number of students tend to stay for shorter periods.
Lower Counts for Longer Stays: The count of students decreases as the length of stay increases, with only 1 student each for stays of 10, 8, 7, and 5 years. This suggests that fewer students opt for longer stays.
Increased Risk of Mental Health Difficulties: The data aligns with the study's conclusion that international students have a higher risk of mental health difficulties, with longer stays potentially exacerbating symptoms of depression.
Social Connectedness: Social connectedness varies significantly with the length of stay. Strong social connections appear to develop at specific intervals (e.g., 7 years), while weaker connections are observed for very long stays (e.g., 10 years).
Acculturative Stress: Acculturative stress is notably higher for students with mid-range stays (4-5 years), indicating that this period may be particularly challenging for adapting to a new culture.
Support Systems: Universities should implement support systems to help international students build strong social connections, especially for those with longer stays.
Mental Health Resources: Providing accessible mental health resources and counseling services can help mitigate the risk of depression among international students.
Cultural Adaptation Programs: Introducing cultural adaptation programs for students in the mid-range stay period (4-5 years) could help reduce acculturative stress and improve overall well-being.