# M&M Math

Difficulty | |

Time Required | Very Short (≤ 1 day) |

Prerequisites | None |

Material Availability | Readily available |

Cost | Very Low (under $20) |

Safety | No issues |

## Abstract

It has been said that, "Life is like a box of chocolates—you never know what you're going to get" (Forrest Gump in Forrest Gump, 1994). In this science project you can test the "Forrest Gump Chaos Theory" by using M&M's®, which are much cheaper than a box of chocolates. What if life is more like a bag of M&M's? Find out in this science project if some things in life are predictable by using the awesome power of statistics.## Objective

Do a simple statistical analysis of the frequency of colors of M&M's in a bag.

## Credits

Sara Agee, Ph.D., Science Buddies

Teisha Rowland, Ph.D., Science Buddies

This science project is based on this exercise:

- Turns, J. (n.d.).
*Project 1: M&M's Exercise.*Dept. of Engineering, University of Washington. Retrieved March 6, 2013, from http://courses.washington.edu/~stats315/newpage1.htm

M&M's® is a registered trademark of Mars, Inc.

## Cite This Page

### MLA Style

*Science Buddies*. Science Buddies, 19 Feb. 2015. Web. 1 Sep. 2015 <http://www.sciencebuddies.org/science-fair-projects/project_ideas/Math_p021.shtml?from=ParentsBoyScouts>

### APA Style

*M&M Math.*Retrieved September 1, 2015 from http://www.sciencebuddies.org/science-fair-projects/project_ideas/Math_p021.shtml?from=ParentsBoyScouts

## Share your story with Science Buddies!

I Did This Project! Please log in and let us know how things went.Last edit date: 2015-02-19

## Introduction

"Life is like a box of chocolates—you never know what you're going to get" (Forrest Gump in *Forrest Gump*, 1994).

The "Forrest Gump Chaos Theory" states that in a population of chocolate product (i.e., a box of chocolates) the frequency of a specific outcome (i.e., picking a caramel filled, creme filled, nougat filled, etc., chocolate candy) is unknown and hence unpredictable. I beg to differ! An alternative **hypothesis** is that the frequency of these outcomes can be modeled and predicted by using simple *statistical analysis* (i.e., math). This may sound complicated, but this science project will make this hypothesis easy to understand and test for yourself.

To get started, we will need to first talk about statistics. **Statistics** are facts or data based on a set of **numerical information**. The set of information is often about a certain group, such as a group of people. The statistics are used as a numerical way to describe that group, which is also called a **population** in statistics terms. For example, think about your class (a population made up of a group of students). Some numerical information you could collect about your class would be the number of boys and girls, the height of each student, or the weight of each student. You could then take this numerical information and use it to draw certain conclusions about your class, such as the percentage of students who are female, the average height, or the average weight. These facts would be statistics about your class, the population you are studying.

Sometimes statistics can be unpredictable, meaning that they do not have any kind of pattern. In other words, the numerical information they are based on appears to be *random*. However, many statistics do reveal patterns and can be used to make *models*, form hypotheses, and make **predictions** about certain things. For example, if you figured out the average height of the students in your class, that statistic could help you predict the heights of students in another class at your school that is in the same grade as yours.

What if you wanted to know how many students in your class are over four feet tall? How could you use statistics to investigate and explain this? You could count how many students are over four feet tall in your class and compare this to the total class size. In statistics, how often a certain **event** happens, such as a student being over four feet tall, is referred to as the **frequency** of that event. As shown in this example, frequency can be measured by counting the numbers of different types within a group (like the numbers of each different type of chocolate in a box of chocolates). In this mathematics science project, you will determine the frequency of different colored M&M's in a package of M&M candies (M&M's are much cheaper than a box of chocolates). The six colors of M&M's candies are shown in Figure 1.

What do you think the most common M&M color will be in a package of M&M's? Will your statistics show a pattern? How will different types of graphs help reveal the patterns and allow you to make different comparisons? Is the "Forrest Gump Chaos Theory" credible, or can you predict what M&M color(s) you are most likely to pick?

## Terms and Concepts

- Hypothesis
- Statistics
- Numerical information
- Population
- Prediction
- Event
- Frequency

### Questions

- What is statistics? How is it used to explain something?
- How is frequency related to an event?
- Which color do you think will be the most common one in a package of M&M's?

## Bibliography

Do further research by visiting the following websites, which give information about statistics, frequency, and different areas of math to help review math skills:

*Kids.Net.Au*. (n.d.).*Statistics*. Retrieved March 6, 2013, from http://encyclopedia.kids.net.au/page/st/Statistics*MathIsFun.com*. (n.d.).*Relative Frequency*. Retrieved March 6, 2013, from http://www.mathsisfun.com/data/relative-frequency.html*Coolmath4kids.com*. (n.d.).*Coolmath4kids.com*. Coolmath.com, Inc. Retrieved March 6, 2013, from http://www.coolmath4kids.com/

You can print out graph paper for this science project from this website:

- MacLeod, K. (n.d.).
*Free Online Graph Paper / Grid Paper PDFs*.*Incompetech.com*. Retrieved March 6, 2013, from http://www.incompetech.com/beta/plainGraphPaper/

For help creating graphs, try this website:

- National Center for Education Statistics, (n.d.).
*Create a Graph*. Retrieved June 2, 2009, from http://nces.ed.gov/nceskids/createagraph/

This science project is based on this exercise:

- Turns, J. (n.d.).
*Project 1: M&M's Exercise.*Dept. of Engineering, University of Washington. Retrieved March 6, 2013, from http://courses.washington.edu/~stats315/newpage1.htm

## News Feed on This Topic

*Note:*A computerized matching algorithm suggests the above articles. It's not as smart as you are, and it may occasionally give humorous, ridiculous, or even annoying results! Learn more about the News Feed

## Materials and Equipment

- Standard-size packages of plain M&M's (at least 5, each holding 47.9 g)
- Optional: Plain graph paper, polar graph paper, and colored pencils or markers. Both types of graph paper are freely available at
*Incompetech*. - Lab notebook

## Share your story with Science Buddies!

I Did This Project! Please log in and let us know how things went.## Experimental Procedure

- In this experiment you will be counting the numbers of different colors of M&M's to calculate the frequencies of the different colors. To do this, first make a data table like Table 1 below in your lab notebook to keep track of your data.

Candy Color | Package | Total | Average | Percentage | ||||

1 | 2 | 3 | 4 | 5 | ||||

Brown | ||||||||

Blue | ||||||||

Green | ||||||||

Yellow | ||||||||

Orange | ||||||||

Red | ||||||||

Whole Bag |

**Table 1.**In your lab notebook, make a data table like this one to record the number of M&M's of each color in each package.

- Open the first package of M&M's. Count the number of M&M's of each color and write the numbers in your data table. Do not eat the M&M's before you count them!
- Repeat step 2 for each package of M&M's.
- You should sample at least five packages, but you can do as many as your parents will let you open. The more samples you take, the better your data will be. However, too many samples and you might get a tummy ache!

- Calculate the total number of M&M's in each package.
- Do this by adding down each column.
- For each package, write the answer in the "Whole Bag" box in the bottom row of your data table.

- For each candy color, calculate the total number in all of the packages combined. Also calculate the total number of M&M's in all of the packages combined.
- Do this by adding across each row.
- Write the answers in the "Total" column of your data table.

- Calculate the average number of each candy color per package. Also calculate the average number of candies per package.
- Do this by dividing the total numbers you calculated in step 5 by the number of packages (which should be 5 or more).
- Write the answers in the "Average" column in your data table.

- Calculate the percentage of each colored M&M per package using the average data.
- Do this calculation by dividing the average number of each color (calculated in step 6) by the average number of M&M's in the whole bag and then multiplying your answer by 100.
- For example, if there are an average of 5 red M&M's in each bag and an average of 50 M&M's in a whole bag, you will divide 5 by 50 (which equals 0.10) and then multiply by 100 (which gives 10%).

- Write the answers in the "Percentage" column in your data table.
*Note:*If you do this same calculation with your whole bag data, you should get 100%.

- Do this calculation by dividing the average number of each color (calculated in step 6) by the average number of M&M's in the whole bag and then multiplying your answer by 100.
- Make a bar graph using the data from the "Average" column of your data table. It will tell you the frequency of each color of M&M in the package. It is useful for comparing the frequencies of each individual color to each of the other individual colors.
- You can make this graph by hand or use a website like Create a Graph to make the graph on the computer and print it.
- To make the bar graph, label the y-axis (the vertical axis going up and down) with a scale representing the average numbers of M&M's. The smallest number of the scale (minimum) will be zero and the largest number of the scale (maximum) will be set just above the largest average number of M&M's in any color.
- For example, if the largest average number of M&M's counted was 25 brown M&M's, then make the scale on the y-axis go up to 30.

- On the x-axis of the bar graph (the horizontal axis going left and right), make a bar for each color. Make the bar go up to the number on the y-axis that corresponds to the average number of M&M's counted for that color.
- You may want to order the bars on your bar graph from smallest to largest.
- Label each bar with the correct color (and, if possible, color in the bar with the matching color too).

- Label the bar graph with a title, such as "Average Number of Each M&M Color in a Package."

- Looking at your data in the bar graph, try to answer the following questions:
- In the average package of M&M's, which color are most of the M&M's (highest frequency)?
- Which color is the rarest (lowest frequency)?
- Do any of the colors have the same frequencies?
- Do you see any other trends in your data in the bar graph?

- Now you are ready to make your second graph, the pie graph, using the data from the "Percentage" column of your data table. It will tell you which portion of the whole bag is of each color. It is useful for comparing the relative proportion of each individual color to the whole population.
- You can make this graph by hand or use a website like Create a Graph to make the graph on the computer and print it.
- Using polar graph paper, make a pie graph where each slice colored in is equal to the percentage of one of the colors.
- For example, if blue M&M's are 15% of a bag, and if your polar graph paper has a slice marked for every 5 units, then color in three of these slices for the blue M&M's.
- Label each slice with the correct color (and, if possible, use a matching color for each section). You can even write the percent data inside each slice.
- Make a title for your graph, such as "Percentage of Each M&M Color in a Package."

- Looking at your data in the pie graph, try to answer the following questions:
- What is the percentage of each color of M&M in the package?
- Does any color make up more than half of a package? What about more than a third of the package?

- Looking at your data table and graphs, do you think you can predict what color(s) M&M you are most likely to pick from a package? If so, what color(s) is it?

## Share your story with Science Buddies!

I Did This Project! Please log in and let us know how things went.## Variations

- You could try this science project with other types of M&M candies, such as peanut or pretzel M&M candies instead of plain M&M candies. Is there much variation in the colors that different types of M&M candies have?
- To really test the "Forrest Gump Chaos Theory" you could invest a bit more cash, and talk your parents into springing for 10 boxes of chocolates. For those investigators on a tight budget, you can do a similar statistical experiment with almost any other product that comes packaged with a mixture of colors, shapes, sizes or types. Here are more ideas: Skittles, jellybeans, a bag of chips, marbles, Pokemon cards, etc. Can you accurately predict what you are most likely to pick from one of these packages?
- You can use the same kind of statistical analysis for more advanced comparisons: the number of different languages spoken by students in your school, the different types of pets owned by different people, car ownership of families at your school, number of seeds sprouting per seed packet, how tall people are at your school, how many girls and boys in each class or grade, etc. Figure out how best to use statistics to describe different parts of the world around you.
- Another more advanced way to look at frequencies is to look at a distribution of frequencies to see how much variation there is in your data set. You can do this by making a different kind of graph, called a
*histogram*, for each color from each package. Do some background research on histograms to figure out how to make one. On the x-axis (horizontal axis) you can separate the colors from each package by their frequency. For example, you could divide the x-axis into 0 to 5 candies, 6 to 11 candies, 12 to 17 candies, etc. On the y-axis (vertical axis) keep track of the number of packages used. For example, if you are making a histogram on green M&M's and one package has 3 green M&M's, two packages have 10 green M&M's, a fourth package has 8 green M&M's, and a fifth package has 4 green M&M's, on your histogram you would put two packages in the 0 to 5 candies category, and three packages in the 6 to 11 candies category. For each color, what is the most common amount of candies to find in a package?

## Share your story with Science Buddies!

I Did This Project! Please log in and let us know how things went.## Ask an Expert

The Ask an Expert Forum is intended to be a place where students can go to find answers to science questions that they have been unable to find using other resources. If you have specific questions about your science fair project or science fair, our team of volunteer scientists can help. Our Experts won't do the work for you, but they will make suggestions, offer guidance, and help you troubleshoot.Ask an Expert

## Related Links

## If you like this project, you might enjoy exploring these related careers:

### Statistician

Statisticians use the power of math and probability theory to answer questions that affect the lives of millions of people. They tell educators which teaching method works best, tell policy-makers what levels of pesticides are acceptable in fresh fruit, tell doctors which treatment works best, and tell builders which type of paint is the most durable. They are employed in virtually every type of industry imaginable, from engineering, manufacturing, and medicine to animal science, food production, transportation, and education. Everybody needs a statistician! Read more### Actuary

Life is full of risks to both people and property. Actuaries predict the chances that future negative events will occur in a person's life, and then think of ways to reduce those chances, or reduce the impact of those negative events. Actuaries help bring peace of mind to both families and to businesses. Read more### Math Teacher

Math teachers love mathematics and understand it well, but much more than that, they enjoy sharing their enthusiasm for the language of numbers with students. They use a variety of tools and techniques to help students grasp abstract concepts and show them that math describes the world around them. By helping students conquer fears and anxieties about math, teachers can open up many science and technology career possibilities for students. Teachers make a difference that lasts a lifetime! Read more## News Feed on This Topic

*Note:*A computerized matching algorithm suggests the above articles. It's not as smart as you are, and it may occasionally give humorous, ridiculous, or even annoying results! Learn more about the News Feed

## Looking for more science fun?

Try one of our science activities for quick, anytime science explorations. The perfect thing to liven up a rainy day, school vacation, or moment of boredom.

Find an Activity