How screen time affects the hours of sleep

Hypothesis

H0: Screen time per day will have no effect on hours slept in a night

H1: Screen time will have a negative relationship with hours slept in a night

Methods

The data set called “Digital Lifestyle Benchmark Dataset” was acquired from the website Kaggle. The dataset includes a lot of variables such as Number of Notifications per Day and Sleep Quality. For this analysis, I wanted to focus on the correlation between Screen Time (hours/day) and Sleep (hours).

To analyze this correlation, I imported the data into R and ran a cor.test to find the correlation data and plotted the data using the ggplot function.

Results

The correlation data acquired from cor.test

t = -42.953, df = 3498, p-value < 2.2e-16

r: -0.5876309

The plot acquired from ggplot function.

Discussion

The results are very significant (p < 2.2e-16), meaning the probability that the correlation between Screen Time and Sleep Hours was caused by chance is very low. Furthermore, the correlation value is -0.5876, showing a negative correlation with a moderately steep slope (implying a moderate correlation relationship). This result shows that as screen time increases in hours, sleep hours tends to decrease.