A popular candy consists of a chocolate piece wrapped in a colored candy shell. Students obtained and opened many bags of candy to determine if the candy manufacturer produced all colors equally or if they made more of certain colors. In total, the students observed 500 candy pieces, consisting of 5 colors. The numbers in each category were: 108 candy pieces were orange, 110 candy pieces were green, 106 candy pieces were red, 90 candy pieces were brown, and 86 candy pieces were yellow. Assume their sample was representative of the production rates of colors from the manufacturer. Based on a proportional model, the expected probability for each color category is 0.20. Construct an observed data vector and an expected probability vector in R for this dataset. Perform a chi-squared test on these vectors. What is the p-value of this chi-square test? (report p-value to 3 significant digits, example = 0.999)
A popular candy consists of a chocolate piece wrapped in a colored candy shell. Students obtained and opened many bags of candy to determine if the candy manufacturer produced all colors equally or if they made more of certain colors. In total, the students observed 500 candy pieces, consisting of 5 colors. The numbers in each category were: 108 candy pieces were orange, 110 candy pieces were green, 106 candy pieces were red, 90 candy pieces were brown, and 86 candy pieces were yellow. Assume their sample was representative of the production rates of colors from the manufacturer. Based on a proportional model, the expected probability for each color category is 0.20. Construct an observed data vector and an expected probability vector in R for this dataset. Perform a chi-squared test on these vectors. What is the p-value of this chi-square test? (report p-value to 3 significant digits, example = 0.999)
A First Course in Probability (10th Edition)
10th Edition
ISBN:9780134753119
Author:Sheldon Ross
Publisher:Sheldon Ross
Chapter1: Combinatorial Analysis
Section: Chapter Questions
Problem 1.1P: a. How many different 7-place license plates are possible if the first 2 places are for letters and...
Related questions
Question
100%
26.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
Recommended textbooks for you
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON