These are the average perceived academic stress levels at UT
Now let’s observe those scores by gender
Let’s also observe the smoothed probability distribution function of Perceived Academic Stress by Gender.
However, we need to run a test to confirm whether these differences are statistically significant. These are the hypotheses for the t-test below used to study this relationship:
t.test(test$PAS_mean[test$gender == "Male"], test$PAS_mean[test$gender == "Female"])
##
## Welch Two Sample t-test
##
## data: test$PAS_mean[test$gender == "Male"] and test$PAS_mean[test$gender == "Female"]
## t = -1.8816, df = 78.733, p-value = 0.06359
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
## -0.256104260 0.007205816
## sample estimates:
## mean of x mean of y
## 3.126068 3.250518
With this result, we can reject the null hypothesis that the PAS mean score is equal between Male and Female respondents with a 90% confidence level and a 0.0063 probability of a Type I error.