From a family pack skittles, some of the colours of different skittles are counted:
- 41 green,
- 48 purple
- 100 red
- 63 yellow.
Now I want to test if the probabilty of green is equal to the probability of purple; H0: P(green) = P(purple).
- How do I test this is R?
- Do I use a chi square test?