You work for a bakery and the owner wants to know whether th
Solution
You work for a bakery and the owner wants to know whether the customers like different kinds of cakes better than others. You give a survey to a random sample of 100 customers and compare their preferences for the following cake categories: Chocolate, Lemon, Orange, Strawberry. What type of stastical analysis would tell you whether the customers have preferences for a specific cake flavor or not?
A) Binomial test
B) Correlation
C) regression
D) chi-square
Answer D chi square
chi-square goodness of fit test is applied when you have one categorical variable from a single population. It is used to determine whether sample data are consistent with a hypothesized distribution.
The null hypothesis (H0) specifies the proportion of observations at each level of the categorical variable. The alternative hypothesis (Ha) is that at least one of the specified proportions is not true.
