From 8528f43f3d530899bbdcb5d6fa346d0741a6787e Mon Sep 17 00:00:00 2001 From: HoaVLy04 Date: Fri, 23 Jan 2026 16:08:28 -0500 Subject: [PATCH 1/4] Hoa_Ly_Test_Slide --- presentations/test_slides.Rmd | 18 ++++ presentations/test_slides.html | 173 +++++++++++++++++++++++++++++++++ 2 files changed, 191 insertions(+) create mode 100644 presentations/test_slides.Rmd create mode 100644 presentations/test_slides.html 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 + + + + + + + + + + + + + + + + + + From a241eb8360ab0a737b5c48fc24d3f3c3244e2a4a Mon Sep 17 00:00:00 2001 From: HoaVLy04 Date: Fri, 30 Jan 2026 12:39:46 -0500 Subject: [PATCH 2/4] Hoa_Ly_Idea_1 --- .DS_Store | Bin 0 -> 6148 bytes mini-project/Hoa_Ly_Idea1.html | 36 +++++++++++++++++++++++++++++++++ mini-project/Hoa_Ly_Idea1.md | 36 +++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 .DS_Store create mode 100644 mini-project/Hoa_Ly_Idea1.html create mode 100644 mini-project/Hoa_Ly_Idea1.md diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..169e63db258b15a338c3b4f18fead286cdcf4ea9 GIT binary patch literal 6148 zcmeHKK~BR!44j1`MFONAIpzZ#`h!q~2cVv~L6QoJl59lEJzwC$o!9UeUcq?RNR1kh zxFCdV$va-J?QEuMb`8KSpQ;5g2ar$&ofs1$?#ZPC4L%~eP~#jO9^vtT^+ch+=#ssk zpuq+$b$9#NuI=a;vO?`k)``cZs$zqgmu!1fwF z*>17LEp61U37Z;w+ z`e_J<%Ocun3>X7r1`gwNF6aLx|1y(J{y4>E#(**K&lqsCe3dWxQhK)Ty`G%4DfNab sB5{Kl6xyRp04MStISY$%Jr$dAnc@&ps)#?N6YU}p2(iH!_yq<&04xqZ82|tP literal 0 HcmV?d00001 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

+
    +
  • Social Media users: +
      +
    • The findings might help promoting that mindful and intentional social media use help reduce anxiety, depressive symptoms, and sleep disturbances.
    • +
    • Specific social media behaviors (e.g., frequent social comparison, validation-seeking, restlessness when not using social media) are more strongly associated with negative mental health outcomes than overall time spent online.
    • +
    +
  • +
  • Mental Health Professionals: +
      +
    • Predictive patterns identified by the regression and random forest models suggest that certain social media behaviors may serve as indicators of elevated mental health risk.
    • +
    • Clinicians may incorporate discussions of social media habits into screening, assessment, or therapeutic interventions.
    • +
    +
  • +
  • Educational Institutions +
      +
    • Colleges and schools can use these findings to inform digital wellness programs and student support services.
    • +
    • Interventions may be more effective if they focus on reducing harmful engagement patterns rather than encouraging complete disengagement from social media.
    • +
    +
  • +
+

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

+
    +
  • Social Media users: +
      +
    • The findings might help promoting that mindful and intentional social media use help reduce anxiety, depressive symptoms, and sleep disturbances.
    • +
    • Specific social media behaviors (e.g., frequent social comparison, validation-seeking, restlessness when not using social media) are more strongly associated with negative mental health outcomes than overall time spent online.
    • +
    +
  • +
  • Mental Health Professionals: +
      +
    • Predictive patterns identified by the regression and random forest models suggest that certain social media behaviors may serve as indicators of elevated mental health risk.
    • +
    • Clinicians may incorporate discussions of social media habits into screening, assessment, or therapeutic interventions.
    • +
    +
  • +
  • Educational Institutions +
      +
    • Colleges and schools can use these findings to inform digital wellness programs and student support services.
    • +
    • Interventions may be more effective if they focus on reducing harmful engagement patterns rather than encouraging complete disengagement from social media.
    • +
    +
  • +
+

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 From 1d225b6450d7aa252a14ed03d4e954143fd256d4 Mon Sep 17 00:00:00 2001 From: HoaVLy04 Date: Fri, 6 Feb 2026 15:19:22 -0500 Subject: [PATCH 3/4] hoa_ly_idea2 --- .DS_Store | Bin 6148 -> 6148 bytes mini-project/Hoa_Ly_Idea2.html | 32 ++++++++++++++++++++++++++++++++ mini-project/Hoa_Ly_Idea2.md | 22 ++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 mini-project/Hoa_Ly_Idea2.html create mode 100644 mini-project/Hoa_Ly_Idea2.md diff --git a/.DS_Store b/.DS_Store index 169e63db258b15a338c3b4f18fead286cdcf4ea9..ffcf400e326858777715084209ac49ad0ce3e142 100644 GIT binary patch delta 75 zcmZoMXfc=|#>B)qu~2NHo+2aL#DLw4m>3z^Ci5`LaHbR|=OpFl=P+*OVZ6q=nVo~5 d1E_TKN5=2Wlles~IT#rjfQW%%bAZSeW&rCB5@G-V delta 62 zcmZoMXfc=|#>B`mu~2NHo+2ab#DLw5teXv)uCZ=xP-WcA&cV+Cl-(@I{GE9+zlbFV Q0}wDWFfeTn5ZS^E0P}hdKL7v# 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

+
    +
  • 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.
  • +
+ + \ 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. + + From dbf837fc51cf361bfda0a7d6d37a0dec4e154f75 Mon Sep 17 00:00:00 2001 From: HoaVLy04 Date: Thu, 19 Feb 2026 00:16:21 -0500 Subject: [PATCH 4/4] mini-project-submit --- mini-project/.Rhistory | 0 mini-project/presentation.Rmd | 225 +++++++++++++++++++++ mini-project/presentation.html | 346 +++++++++++++++++++++++++++++++++ 3 files changed, 571 insertions(+) create mode 100644 mini-project/.Rhistory create mode 100644 mini-project/presentation.Rmd create mode 100644 mini-project/presentation.html diff --git a/mini-project/.Rhistory b/mini-project/.Rhistory new file mode 100644 index 0000000..e69de29 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 + + + + + + + + + + + + + + + + + +