mandms | R Documentation |
A bag of the candy M and M's has many different colors. Each large production batch is blended to the ratios given in this data set. The batches are thoroughly mixed and then the individual packages are filled by weight using high-speed equipment, not by count.
data(mandms)
A data frame with 5 observations on the following 6 variables.
percentage of blue
percentage of brown
percentage of green
percentage of orange
percentage of red
percentage of yellow
This data is attributed to an email sent by Masterfoods USA, A Mars, Incoporated Company. This email was archived at the Math Forum, http://www.mathforum.org (now off-line).
data(mandms) bagfull = c(15,34,7,19,29,24) names(bagfull) = c("blue","brown","green","orange","red","yellow") prop = function(x) x/sum(x) chisq.test(bagfull,p = prop(mandms["milk chocolate",])) chisq.test(bagfull,p = prop(mandms["Peanut",]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.