Chi-Squared Test

Hello all ! i have 20 of A and 20 of B, i spend 4 of 20 from A and 17 out of 20 B, i have calculate null hypothesis and alternative hypothesis and statistical results as below can someone make me correct and clear on this issue?
data <- c(4,17) #

ho: c1=c2

ha: c1!=c2!

Chi-squared test for given probabilities

data: data
X-squared = 8.0476, df = 1, p-value = 0.004556

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.