Forum Replies Created
-
AuthorPosts
-
June 19, 2025 at 10:56 pm in reply to: Optional Activity 1- Data Entry and Analysis with R- Lost at Qs 2& 3 #8717
annakayeb
ParticipantHi, so currently in the same boat as you re:interest in R. The answer to Q2 is that males slept more on average and that data can be found in the last line of the t-test, which compares the sleep hours of males and female students. I cannot paste a snip but the line reads as follows:
sample estimates:
mean in group Female mean in group Male
5.166667 6.250000so we can see that males sleep more on average, as the mean in the male group is 6.25 hours vs the mean of 5.167 in the female group.
As for Q3, we see that the correlation using the PSS scores and Sleep Hours is generated as -0.9742207. After some research, here is what I found:
1. “An inverse correlation, or negative correlation, is a relationship between two variables where if the value of one increases, the value of the other decreases”
2. “The value of a correlation coefficient, which ranges from -1 to +1, indicates the strength and direction of a linear relationship between two variables. A value of 0 means no linear relationship, while values closer to -1 or +1 indicate a stronger linear relationship, either negative (inverse) or positive (direct), respectively.”This means that the value of the correlation suggests that there is a strong relationship between stress and sleep, and the sign of the correlation coefficient (negative) suggests that the relationship is inversely proportional.
Hope this helps!
-
AuthorPosts

I am very greatful for this opportunity to have done the course online. It was very meaningful to go through…
Due to the interactivity of the MOOC, we are currently redeveloping content for download. We will share this when it…
Greetings I would love to get a downloadable form of the material please. Either version would be appreciated
I have just finished and i am thrilled and thankful for the opportunity not only to achieve another excellent certificate…
Sounds great, thank you!