Data Analysis on Safe Usage of Screen Time

Posted on Mar 9, 2020
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

Motivation

There are a lot of concerns about the impact of smartphones on the mental and physical wellbeings of youth. Being the first to grow up with smartphones and social media, the young generation is bearing the unknown disadvantages while taking advantage of technological and data advancement. Personally, as a mother to two young kids, I find myself constantly trying to figure out whether to give my kids screen time, how long they should spend in front of a screen, and what kind of screen time they should have.

Data

The Youth Risk Behavior Surveillance System (YRBSS) is a nationwide survey conducted by the Centers for Disease Control and Prevention since 1991 every two years. It tracks a lot of youth risk behaviors, including computer time, among high school students. The survey reports the percentage of students who answered yes to each question among all the students who answered that question. It also gives percentages for subgroups like genders and grades.

Data analysis

In YRBSS, the description of the question about computer use is as follows: "played video or computer games or used a computer for 3 or more hours per day counting time spent on things such as Xbox, PlayStation, an iPad or other tablet, a smartphone, texting, YouTube, Instagram, Facebook, or other social media, for something that was not school work, on an average school day". This question will be referred to as "computer use". The map below shows the percentage of students who responded yes to "computer use" across the US in 2017 (the most recent year with data available).

Data Analysis on Safe Usage of Screen Time

The boxplot below shows the percentages of "computer use" among students in different grades with different genders in 2017. We can see that higher grade students spend less time on the computer while female students spend slightly more time than male students.

Data Analysis on Safe Usage of Screen Time

Grade and Gender

This question has been asked in the survey since 2009. There has been a significant increase in computer use among all grades and both genders.

Data Analysis on Safe Usage of Screen Time

Girls

It's particularly interesting that female students were using much less computer time than male students in 2009, but their computer usage rapidly increased from 2009 to 2013. At the same time, we also see an increase in unhappiness among girls.

Obesity

The obesity rate also went up at the same time.

Cyber-Bullying

While bullying among female students increased, bullying among male students dropped.

Sleep Time

While students are sleeping less in general, the trend started after 2013. So there is an offset in time between the growth in "computer use" and decrease of sleep time.

We make scatter plots of "computer use" versus these behaviors, and fit a linear correlation.

It's clear that:

  • More "computer use" may make girls feel unhappier, no significant effect on boys.
  • More "computer use" may increase the obesity rate.
  • Increase "computer use" may be linked with increasing bullying among girls, and less bullying among boys.
  • More "computer use" may not be directly linked to the decrease in sleep time.

But correlation doesn't mean causality. If we plot unhappiness versus alcohol use, there is a strong correlation as well.

Apparently, we can't conclude female students are feeling sadder because they are drinking less alcohol (can we?).

Shiny App

The shiny app I built has data from the entire survey. Users can use the interactive app to explore the data set by themselves. The source code is written in R and can be found at my GitHub page.

About Author

Ting Yan

Ting Yan is a Data Science fellow at NYC Data Science Academy. She holds a Ph.D. in Astrophysics with a solid background in mathematics developing analytical models on diverse subjects. She has excellent programming skills with applications on...
View all posts by Ting Yan >

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI