diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..ffcf400 Binary files /dev/null and b/.DS_Store differ diff --git a/mini-project/.Rhistory b/mini-project/.Rhistory new file mode 100644 index 0000000..e69de29 diff --git a/mini-project/Hoa_Ly_Idea1.html b/mini-project/Hoa_Ly_Idea1.html new file mode 100644 index 0000000..a9c1fc9 --- /dev/null +++ b/mini-project/Hoa_Ly_Idea1.html @@ -0,0 +1,36 @@ +Hoa Ly - DATA 400 Spring 2026.md +

Hoa Ly - DATA 400 Spring 2026

+

Idea 1

+

As the world continues to develop, mental health has become one of the most pressing concerns in modern society. Mental health directly affects daily life, social relationships, and an individual’s work performance. According to previous research, there are many factors that influence a person’s mental health, including living environment, family upbringing, and peer relationships. Among these factors, in an era of rapid technological advancement, social media has emerged as an important element that can impact an individual’s mental health. Therefore, in this mini project, we aim to examine how social media influences mental health.

+

Research question

+

How does social media affect mental heatlh ?

+

Data

+

For this mini project, I will be using a dataset from Kaggle since I could not find any dataset from any other mental health organization.(Dataset)

+

Model

+

This project will use a Multiple Linear Regression model and a Random Forest model.

+

Implications for stakeholders

+ +

Ethical, Legal, Societal Implications

+

I cannot really think of anything for now.
+Will need to meet with you so we can discuss this.

+ + \ No newline at end of file diff --git a/mini-project/Hoa_Ly_Idea1.md b/mini-project/Hoa_Ly_Idea1.md new file mode 100644 index 0000000..a9c1fc9 --- /dev/null +++ b/mini-project/Hoa_Ly_Idea1.md @@ -0,0 +1,36 @@ +Hoa Ly - DATA 400 Spring 2026.md +

Hoa Ly - DATA 400 Spring 2026

+

Idea 1

+

As the world continues to develop, mental health has become one of the most pressing concerns in modern society. Mental health directly affects daily life, social relationships, and an individual’s work performance. According to previous research, there are many factors that influence a person’s mental health, including living environment, family upbringing, and peer relationships. Among these factors, in an era of rapid technological advancement, social media has emerged as an important element that can impact an individual’s mental health. Therefore, in this mini project, we aim to examine how social media influences mental health.

+

Research question

+

How does social media affect mental heatlh ?

+

Data

+

For this mini project, I will be using a dataset from Kaggle since I could not find any dataset from any other mental health organization.(Dataset)

+

Model

+

This project will use a Multiple Linear Regression model and a Random Forest model.

+

Implications for stakeholders

+ +

Ethical, Legal, Societal Implications

+

I cannot really think of anything for now.
+Will need to meet with you so we can discuss this.

+ + \ No newline at end of file diff --git a/mini-project/Hoa_Ly_Idea2.html b/mini-project/Hoa_Ly_Idea2.html new file mode 100644 index 0000000..b58c58b --- /dev/null +++ b/mini-project/Hoa_Ly_Idea2.html @@ -0,0 +1,32 @@ +Hoa Ly - DATA 400 Spring 2026.md +

Hoa Ly - DATA 400 Spring 2026

+

Idea 2

+

Sentimental analysis of comments on Reddit

+

Research question

+

How can we predict a person’s mental health based on what they say on the internet ?

+

Data

+

For this idea, I will be scraping data from Reddit.

+

Model

+

I plan to use Twitter-roberta-based-sentiment model for the project.

+

Implications for stakeholders

+ +

Ethical, Legal, Societal Implications

+ + + \ No newline at end of file diff --git a/mini-project/Hoa_Ly_Idea2.md b/mini-project/Hoa_Ly_Idea2.md new file mode 100644 index 0000000..b14307e --- /dev/null +++ b/mini-project/Hoa_Ly_Idea2.md @@ -0,0 +1,22 @@ +# Hoa Ly - DATA 400 Spring 2026 +## Idea 2 +Sentimental analysis of comments on Reddit +## Research question +**How can we predict a person's mental health based on what they say on the internet ?** +## Data +For this idea, I will be scraping data from Reddit. +## Model +I plan to use Twitter-roberta-based-sentiment model for the project. +## Implications for stakeholders +- **Mental health professionals** + - Could help identify early warning signs of depression, anxiety, or distress. + - Could help researchers understand large-scale mental health trends. + - However, online language is not always honest and representative. +- **Internet user** + - Early detection tools could encourage people to seek help. + - Awareness of mental health language patterns may reduce stigma. + +## Ethical, Legal, Societal Implications +- I dont think there is anything unethical about the data for this project, since people should be expecting what they posted online be viewed or even stored by other people. As well as the legal aspect of the project, there is nothing illegal either. + + diff --git a/mini-project/presentation.Rmd b/mini-project/presentation.Rmd new file mode 100644 index 0000000..31099da --- /dev/null +++ b/mini-project/presentation.Rmd @@ -0,0 +1,225 @@ +--- +title: "How does Social Media relate to Mental Health" +author: "Hoa Ly" +institute: "Dickinson College" +date: "`r Sys.Date()`" +output: + xaringan::moon_reader: + lib_dir: libs + nature: + highlightStyle: github + highlightLines: true + countIncrementalSlides: false +--- + +```{r setup, include=FALSE} +knitr::opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE) + +library(xaringanthemer) +library(tidyverse) +``` +class:center, middle +#Research Question + +Can social media behaviors predict mental health symptoms? + +--- + + +
+#Data Overview + +- This project use dataset from Kaggle. +- Dataset consists of: + - Age + - Gender + - Relationship status + - Occupation + - Social media behavior patterns + - Mental health self-report measures of 481 participants. + +
+--- + + +
+#Target Variable + +**Mental Health Score** + +Average of: +- Depressed mood +- Worries +- Sleep issues +- Difficulty concentrating +- Interest fluctuation + +**Higher score = worse symptoms** + +
+--- +#Modeling Approach + +Data cleaning and processing + +80/20 Train-Test split + +5-fold cross validation + +**Model used:** + +1.Multiple Linear Regression + +2.Random Forest Regressor + +**Evaluation metrics:** +- R^2 + +- MAE + +- RMSE +--- +#Model performance + +**Multiple Linear Regression** + +- Test R^2: 0.402 + +- MAE: 0.647 + +- RMSE: 0.794 + +- CV Mean R²: ~ 0.33 + +**Random Forest Regression** + +- Test R²: 0.405 + +- MAE: 0.643 + +- RMSE: 0.792 + +- CV Mean R²: ~ 0.378 + +--- +#Most important predictors +```{r dev='svg'} +importance_data <- tibble( + feature = c( + "Age", + "Distracted by Social Media", + "Social Comparison", + "Restless Without Social Media", + "Validation Seeking" + ), + importance = c(0.195, 0.177, 0.144, 0.098, 0.056) +) + +importance_data <- importance_data %>% + mutate(feature = fct_reorder(feature, importance)) + +ggplot(importance_data, aes(x = importance, y = feature)) + + geom_col() + + labs( + x = "Feature Importance (Random Forest)", + y = NULL, + title = "Top Predictors of Mental Health Score" + ) + + theme_minimal(base_size = 20) + + theme( + plot.title = element_text(size = 16), + axis.title.x = element_text(size = 14) +) +``` +--- +#Key Findings + + +
+ +
+"HOW social media is used matters more than HOW MUCH it is used." +
+ +- Compulsive use patterns are strong predictors + +- Social comparison strongly associated with worse outcomes + +- Platform choice was not among strongest predictors +
+--- +#Interpratation + + +
+Worse mental health scores are associated with: + +- Using social media in a distracting way + +- Frequently comparing oneself to others + +- Seeking validation through likes/comments + +- Feeling restless without checking apps + +Time spent alone was not the strongest driver. +
+--- +#Implications for Stakeholders + + + +
+**Students** + +- Focus on reducing comparison and validation cycles + +**Universities** + +- Promote digital well-being education + +**Social Media Platforms** + +- Reconsider design features that amplify comparison + +**Mental Health Professionals** + +- Ask about usage behaviors, not just screen time +
+--- +#Conclusion + + + + +
+- Social media behaviors moderately predict mental health symptoms + +- Behavioral patterns matter more than platform choice + +- Compulsive and comparison-driven usage show strongest associations +
\ No newline at end of file diff --git a/mini-project/presentation.html b/mini-project/presentation.html new file mode 100644 index 0000000..85e5d2f --- /dev/null +++ b/mini-project/presentation.html @@ -0,0 +1,346 @@ + + + + How does Social Media relate to Mental Health + + + + + + + + + + + + + + + + + + diff --git a/presentations/test_slides.Rmd b/presentations/test_slides.Rmd new file mode 100644 index 0000000..610e87b --- /dev/null +++ b/presentations/test_slides.Rmd @@ -0,0 +1,18 @@ +--- +title: "Presentation Ninja" +subtitle: "⚔
with xaringan" +author: "Hoa Ly" +institute: "Dickinson College" +date: "`r Sys.Date()`" +output: + xaringan::moon_reader: + lib_dir: libs + nature: + highlightStyle: github + highlightLines: true + countIncrementalSlides: false +--- + +#This is my first slide + +This is a very short sentence. \ No newline at end of file diff --git a/presentations/test_slides.html b/presentations/test_slides.html new file mode 100644 index 0000000..d1c6272 --- /dev/null +++ b/presentations/test_slides.html @@ -0,0 +1,173 @@ + + + + Presentation Ninja + + + + + + + + + + + + + + + + + +