Null Hypothesis (H0) There is no association between student nationality and scholarship status.
Alternative Hypothesis (H1) There is an association between student nationality and scholarship status.
library(readxl)
## Warning: package 'readxl' was built under R version 4.6.1
A5Q2 <- read_excel("A5Q2.xlsx")
obs <- table(A5Q2$nationality,A5Q2$scholarship_awarded)
obs
##
## 0 1
## Domestic 39 111
## International 118 32
result <- chisq.test(obs)
result
##
## Pearson's Chi-squared test with Yates' continuity correction
##
## data: obs
## X-squared = 81.297, df = 1, p-value < 2.2e-16
Since the p-value (< 2.2 × 10^-16) is less than the significance level of 0.05, we reject the null hypothesis.
There is sufficient evidence to conclude that there is a significant association between student nationality and scholarship status.