The observed count is the actual number of observations in a sample that belong to a category.
The expected count is the frequency that would be expected in a cell, on average, if the variables are independent. Minitab calculates the expected counts as the product of the row and column totals, divided by the total number of observations.
You can compare the observed values and the expected values for each cell in the output table. In these results, the observed cell count is the first number in each cell and the expected count is the second number in each cell.
If two variables are associated, then the distribution of observations for one variable will differ depending on the category of the second variable. If two variables are independent, then the distribution of observations for one variable will be similar for all categories of the second variable. In this example, from column 1, row 2 of the table, the observed count is 76, and the expected count is 60.78. The observed count seems to be much larger than would be expected if the variables were independent.
1st shift | 2nd shift | 3rd shift | All | |
---|---|---|---|---|
1 | 48 | 47 | 48 | 143 |
56.08 | 46.97 | 39.96 | ||
2 | 76 | 47 | 32 | 155 |
60.78 | 50.91 | 43.31 | ||
3 | 36 | 40 | 34 | 110 |
43.14 | 36.13 | 30.74 | ||
All | 160 | 134 | 114 | 408 |
Use the table percentages to understand how the counts are distributed between the categories.
In these results, the cell count is the first number in each cell. Then the row percentages, column percentages, and total percentages are in order as the next numbers in the cell. You can select one or more of these percentages to display.
1st shift | 2nd shift | 3rd shift | All | |
---|---|---|---|---|
1 | 48 | 47 | 48 | 143 |
33.57 | 32.87 | 33.57 | 100.00 | |
30.00 | 35.07 | 42.11 | 35.05 | |
11.76 | 11.52 | 11.76 | 35.05 | |
2 | 76 | 47 | 32 | 155 |
49.03 | 30.32 | 20.65 | 100.00 | |
47.50 | 35.07 | 28.07 | 37.99 | |
18.63 | 11.52 | 7.84 | 37.99 | |
3 | 36 | 40 | 34 | 110 |
32.73 | 36.36 | 30.91 | 100.00 | |
22.50 | 29.85 | 29.82 | 26.96 | |
8.82 | 9.80 | 8.33 | 26.96 | |
All | 160 | 134 | 114 | 408 |
39.22 | 32.84 | 27.94 | 100.00 | |
100.00 | 100.00 | 100.00 | 100.00 | |
39.22 | 32.84 | 27.94 | 100.00 |
The expected count is the frequency that would be expected in a cell, on average, if the variables are independent. Minitab calculates the expected counts as the product of the row and column totals, divided by the total number of observations.
You can compare the observed values and the expected values in the output table.
1st shift | 2nd shift | 3rd shift | All | |
---|---|---|---|---|
1 | 48 | 47 | 48 | 143 |
56.08 | 46.97 | 39.96 | ||
-8.078 | 0.034 | 8.044 | ||
2 | 76 | 47 | 32 | 155 |
60.78 | 50.91 | 43.31 | ||
15.216 | -3.907 | -11.309 | ||
3 | 36 | 40 | 34 | 110 |
43.14 | 36.13 | 30.74 | ||
-7.137 | 3.873 | 3.265 | ||
All | 160 | 134 | 114 | 408 |
The standardized residuals are the raw residuals (or the difference between the observed counts and expected counts), divided by the square root of the expected counts.
You can compare the standardized residuals in the output table to see which category of variables have the largest difference between the expected counts and the actual counts relative to sample size, and seem to be dependent. For example, you can assess the standardized residuals in the output table to see the association between machine and shift for producing defects.
1st shift | 2nd shift | 3rd shift | All | |
---|---|---|---|---|
1 | 48 | 47 | 48 | 143 |
56.08 | 46.97 | 39.96 | ||
-1.0788 | 0.0050 | 1.2726 | ||
2 | 76 | 47 | 32 | 155 |
60.78 | 50.91 | 43.31 | ||
1.9516 | -0.5476 | -1.7184 | ||
3 | 36 | 40 | 34 | 110 |
43.14 | 36.13 | 30.74 | ||
-1.0867 | 0.6443 | 0.5889 | ||
All | 160 | 134 | 114 | 408 |
The adjusted residuals are the raw residuals (or the difference between the observed counts and expected counts) divided by an estimate of the standard error. Use adjusted residuals to account for the variation due to the sample size.
You can compare the adjusted residuals in the output table to see which categories have the largest difference between the expected counts and the actual counts relative to sample size. For example, you can see which machine or shift has the largest difference between the expected number of defectives and the actual number of defectives.
1st shift | 2nd shift | 3rd shift | All | |
---|---|---|---|---|
1 | 48 | 47 | 48 | 143 |
56.08 | 46.97 | 39.96 | ||
-1.7169 | 0.0076 | 1.8602 | ||
2 | 76 | 47 | 32 | 155 |
60.78 | 50.91 | 43.31 | ||
3.1788 | -0.8485 | -2.5707 | ||
3 | 36 | 40 | 34 | 110 |
43.14 | 36.13 | 30.74 | ||
-1.6309 | 0.9199 | 0.8117 | ||
All | 160 | 134 | 114 | 408 |
Minitab displays each cell's contribution to the chi-square statistic, which quantifies how much of the total chi-square statistic is attributable to each cell's divergence.
Minitab calculates each cell's contribution to the chi-square statistic as the square of the difference between the observed and expected values for a cell, divided by the expected value for that cell. The chi-square statistic is the sum of these values for all cells.
In these results, the sum of the chi-square from each cell is the Pearson chi-square statistic which is 11.788. The largest contributions are from Machine 2, on the 1st and 3rd shift. The smallest contributions are from the 2nd shift, on Machines 1 and 2.
1st shift | 2nd shift | 3rd shift | All | |
---|---|---|---|---|
1 | 48 | 47 | 48 | 143 |
56.08 | 46.97 | 39.96 | ||
1.1637 | 0.0000 | 1.6195 | ||
2 | 76 | 47 | 32 | 155 |
60.78 | 50.91 | 43.31 | ||
3.8088 | 0.2998 | 2.9530 | ||
3 | 36 | 40 | 34 | 110 |
43.14 | 36.13 | 30.74 | ||
1.1809 | 0.4151 | 0.3468 | ||
All | 160 | 134 | 114 | 408 |