In: Math
Suppose now that you open the lollipops to find out that you have 9 red, 6 green, 10 orange, and 15 blue. Test the null hypothesis that the colors of the lollipops occur with equal frequency. What is the Chi Square value?
> chisq.test(c(9,6,10,15))
Chi-squared test for given probabilities
data: c(9, 6, 10, 15)
X-squared = 4.2, df = 3, p-value = 0.2407
For a handwritten solution please check attachment