Data set: M&M candies
Link to the data set
The full data set in csv format is at:
Background on the data set

This data set was collected in the summer of 2008. Every M & M candy from three Medium Size bags of M & Ms was measured. One bag was of plain M & Ms, (14.0 oz. or 396.9 g), one bag was of peanut M & Ms (also 14.0 oz. or 396.9 g), and one bag was of peanut butter M & Ms (12.7 oz. or 360 g). As summarized in the table below, the data set has four variables: type, color, diameter, and mass.

The variable diameter refers to the shortest distance from side to side at the candy's widest height when it is placed flat on the table with the "m" facing up. Put otherwise, when the candy is placed in that position, imagine taking horizontal cross-sections of the candy. They will be roughly elliptical. The diameter of the candy is the length of the minor axis of the largest such cross-sectional ellipse (which will generally be the cross-section at half the total height). As you might expect, this axis can be somewhat difficult to determine and was no doubt a source of measurement error, but this definition of diameter does correspond fairly well to the way that an M & M fits into a caliper.

Diameters were measured with a General Tools Ultratech Fraction+ Digital Fractional Caliper (claimed accurate up to plus or minus 0.02mm), and masses were measured with a MyWeigh Durascale 50 (claimed accurate up to plus or minus 0.01 g). The candies were measured in the order given in the data set, which although not entirely random was not intentionally systematic in any way (other than by type).

Variables in the data set
The variables in the data set are as follows:
typepeanut, peanut butter, or plaintype of M&M
colorblue, brown, green, orange, red, or yellowcolor of the candy
diametermillimetersdiameter of the candy
massgramsmass of the candy
Projects using this data set
63comparing M&M masses by type
40comparing masses of brown and orange plain M&Ms
68comparing the proportion of blue Plain and Peanut Butter M&Ms
77confidence interval for the difference in mean mass between Plain and Peanut Butter M&Ms
69confidence interval for the difference in proportions of orange Peanut and Peanut Butter M&Ms
75confidence interval for the mean of Plain M&M mass
67confidence interval for the proportion of green Plain M&Ms
76hypothesis test comparing mean masses of Peanut Butter and Plain M&Ms
20inference for a model of Peanut M&M mass and diameter
56investigating dependence of plain M&M mass on color
51predicting M&M mass from diameter for any type and color of M&M
27regression diagnostics for a peanut M&Ms mass and diameter model
13relating mass to diameter in peanut M&Ms
74testing the mean of plain M&M masses
66testing the proportion of green Plain M&Ms