Question: 1. How do goodness-of-fit tests and the tests of independence differ in obtaining expected values?
2. I bought Doritos tortilla chips and Snickers candy bars to have data for problems. I bought regular M&Ms. In a 1.69-ounce package I got 9 blues, 11 oranges, 17 greens, 8 yellows, 5 browns, and 7 reds. At the time I bought the package, Mars, Inc., the manufacturer, claimed that the population breakdown is 24 percent blue, 20 percent orange, 16 percent green, 13.3 percent yellow, 13.3 percent brown, and 13.3 percent red. Use a chi square test to evaluate Mars's claim.