Technology Exercise 4: Inferences When Variables Are Related

M&M Colors (Question 1)

Finding the claimed proportions

  1. Go to the M&M website at
  2. Click on About M&Ms
  3. Choose Products
  4. Choose Peanut M&Ms
  5. The claimed percentages are given, but the web page is not accessible, so if you're color blind, have your partner look at the page and send a note to M&M Mars letting them know that their page isn't accessible.

Calculating the Test Statistic

Minitab doesn't do a chi-square goodness of fit test. You should do this part by hand.

Set up a table something like this. This table should be part of your Word output.

  Red Orange Yellow Green Blue Brown Total
Claimed Percent             100%
(Obs - Exp)             0
(Obs - Exp)2             -----

Multiply the claimed percent by the total number of observed M&Ms to find the expected M&Ms for each color. The test statistic is the sum of the last row.

Finding the P-Value

Your test statistic has a χ2 distribution with df = # of categories - 1. It is a right tail test, so the p-value is the area to the right of the test statistic.

  1. Choose Calc / Probability Distributions / Chi-Square
  2. The Cumulative Probability is the area to the left of the value, so check it and we'll adjust to find the area on the right later. Do NOT change the non-centrality parameter. Leave it at 0.
  3. Enter the degrees of freedom
  4. Click the Input constant box
  5. Enter your test statistic for the constant.

The number that Minitab gives you will be the area to the left of the test statistic, but you need the area to the right. Make the appropriate adjustment.

Creating a similar graph to Tech project 3

Follow the instructions question 3 on technology project 3 except make these changes.

Entering the Data into Minitab

Seatbelt Safety (Question 2)

Start a new worksheet for this problem.

  1. Label columns as year, seatbelt, and fatality
  2. Gather the information for 1985 through 2002 from the June 2003 Safety Belt Usage in Illinois. This information is from the Illinois Department of Transportation and is at The data is in a chart, so you'll have to read the percents from the top of the bars. The data is from 1985 to 2003, but the fatality data in the next part only goes to 2002.
  3. Gather the information for 1985 through 2002 from the Illinois 2002 Toll of Motor Vehicles Crashes page from the National Highway Traffic Safety Administration at There is a table toward the bottom of the page that is titled "Fatalities and Fatality Rate per 100 Million VMT". You want the Total Fatality Rate column. Be sure you use the "Fatality Rate" column and not the "Fatalities" column. There is information for 1982 through 2002, but the seatbelt site only contains information from 1985 on.

Making the Fitted Line Plot

  1. Choose Stat / Regression / Fitted Line Plot
  2. The response variable is fatality
  3. The predictor variable is seatbelt
  4. Go into Storage and turn on the residuals
  5. Click OK

The Fitted Line plot also contains the regression equation and the value of r2, the percent of the variation that can be explained by the regression model. The output in the session window on Minitab gives much of the same information including an ANOVA table that contains the F test statistic and the p-value that can be used for checking correlation.

Checking for Significant Linear Correlation

While the p-value can be found from the ANOVA table, it doesn't give the value of r, the correlation coefficient.

  1. Choose Stat / Basic Statistics / Correlation
  2. The two variables are seatbelt and fatality (order doesn't matter)
  3. Click OK

The output gives you the correlation coefficient first and the p-value second. The null hypothesis is that there is no significant linear correlation.

Checking Residuals for Normality

One of the assumptions in regression is that the residuals (the differences between the estimated value and the actual value) have a normal distribution. If you turned on the storage of residuals during the fitted line plot part, then you should have a new variable called RESI1 that contain the residuals.

  1. Choose Stat / Basic Statistics / Normality Test (or choose Graph / Probability Plot / Single)
  2. The variable is RESI1
  3. Click OK

Give the Regression Equation

If you determined that there was significant linear correlation (positive or negative) by rejecting the null hypothesis of no significant linear correlation, then you should use the regression equation given by the computer. This was found when you did the fitted line plot. Your equation should look something like "fatality rate = 3.03814 - 0.0230872 seatbelt" (probably not that exactly).

If, however, you decided that there was no signficant linear correlation because you retained the null hypothesis of the correlation test, then you should use the mean of y (y-bar) for the estimated equation. Your equation should be something like "fatality rate = ####" where #### is the numerical value of the mean of the fatality variable. You'll have to do descriptive statistics to find out what that is.

Removing the Outlier

There was one year that had a really low seatbelt usage rate. Copy your data into another worksheet and remove that row (that way you'll still have the original data should you need to come back to it).

  1. Highlight all of the data including the variable names. Choose Edit / Copy or hit control-C.
  2. Choose File / New / New Worksheet
  3. Click in the label cell for C1 and choose Edit / Paste or press control-V.
  4. Highlight the row to be deleted by clicking on the row number to the left of the data.
  5. Press del (or right click and choose delete row).

Start this process at the part that says "Making a fitted line plot".

There are a couple of ways to tell which is the better model. You can look at the p-values (smaller means more significant results), the correlation coefficients (bigger means more correlation), or the value of r2. Some of these might be the same, in which case you'll have to look at something else.

Comment on which model is a better predictor of fatality rates in Illinois.