Chi-Square Tests
[30/100%]It has been argued that when people are asked to choose a number, say from 1 to 4 or 1 to 10, they tend to choose an "average number" that is in the middle rather than an "extreme number" on either end. To test this theory, a professor did a mock ESP experiment, in which 40 students were asked to guess which one of four cards, numbered 1-4, the professor had chosen randomly. Are the patterns in these data substantial and statistically persuasive?
| Number Guessed | Number of Students |
|---|---|
| 1 | 2 |
| 2 | 13 |
| 3 | 21 |
| 4 | 4 |
In the game Roshambo (rock-scissors-paper), two players simultaneously show a fist (rock), two fingers (scissors), or an open hand (paper). Rock beats scissors, scissors beat paper, and paper beats rock. A researcher played this game against 120 people, recording the initial move of each opponent. Use these data to test the null hypothesis that rock, scissors, and paper are used equally often on the initial move: 27 rock, 54 scissors, and 39 paper. Are the observed differences substantial?
When the Titanic sank in 1912, it was carrying 1,315 passengers: 402 adult females, 805 adult males, and 108 children. Of the 498 passengers who were saved, there were 296 adult females, 146 adult males, and 56 children. In which group was the fraction saved disproportionately large? Disproportionately small? Do these data reject at the level the null hypothesis that a person's chances of being saved did not depend on the group he or she was in?
A statistics professor flipped a fair coin 10 times and asked each of the 24 students to guess whether the flip was a head or tail. Each student then found the longest streak in their guesses; for example, in these data H T H H T H T T T H, the longest streak is 3. The results were:
| Longest | ||
|---|---|---|
| Streak | Number of | |
| Students | True Probability of | |
| a Streak This Long | ||
| 4 | .174 | |
| 3 | 17 | .361 |
| 3 | .465 |
What pattern do you see in these results? Are the deviations from the expected values substantial and statistically persuasive? If so, how would you explain these patterns?
A study of major league baseball (MLB) managers from 1871 through 2007 found that 540 managers played professional baseball before becoming a manager, with the primary positions grouped as follows: pitcher (51), catcher (116), infielder (262), and outfielder (111). Use these data to test the null hypothesis that the respective probabilities are 1/9 pitcher, 1/9 catcher, 4/9 infielder, and 3/9 outfielder. What patterns do you see in your data? Are these patterns substantial and statistically persuasive?
The five positions on a basketball team are shown below. As of 2012, 167 of the 299 head coaches in the NBA played in the NBA. Their playing positions:
| Number | |
|---|---|
| Point guard | 61 |
| Shooting guard | 42 |
| Small forward | 25 |
| Power forward | 21 |
| Center |
Is there substantial and statistically persuasive evidence against the hypothesis that coaches are equally likely to come from each of these five positions?
A study looked at the positions played by the 70 managers in the top five professional soccer leagues during the 2022 season who had played professional soccer:
| Forward | 14 |
|---|---|
| Midfielder | 36 |
| Defense | 20 |
| Goalie | 0 |
Assuming that of all players are forwards, midfielders, 4/11 defenders, and 1/11 goalies, what patterns do you see in your data? Are these patterns substantial and statistically persuasive?
When 100 MIT MBA students were offered these three subscription choices to The Economist, 16 chose the online subscription, none chose the print subscription, and 84 chose the combination subscription:
| 1-year online subscription | |
|---|---|
| 1-year print subscription | |
| 1-year print and online subscription |
When 100 other students were offered just two choices, 68 chose the online subscription and 32 chose the combination subscription:
| 1-year online subscription | |
|---|---|
| 1-year print and online subscription |
Is this observed difference in the online and combination subscription choices between these two offers substantial and statistically persuasive?
A student asked a random sample of 54 of her classmates whether they were nearsighted and whether their grade point average (GPA) was above or below B+:
| Nearsighted | Not Nearsighted | |
|---|---|---|
| GPA B+ | 14 | 15 |
| GPA B+ | 17 | 8 |
Are these data statistically persuasive evidence that nearsightedness and GPA are related?
This student then multiplied all her data by 3 :
| Nearsighted | Not Nearsighted | |
|---|---|---|
| GPA B + | 42 | 45 |
| GPA B + | 51 | 24 |
"I assumed that I originally picked a perfectly random sample, and that if I were to have polled 3 times as many people, my data would have been greater in magnitude, but still distributed on the same normal distribution." Does this procedure make sense to you? How do you think it affected her p -value?
One hundred students were asked this question:
You have a coach ticket for a flight from New York to London. Because the flight was overbooked, randomly selected passengers will be allowed to sit in open first-class seats. You are the first person selected. Would you rather sit next to: (a) Joe Biden; (b) Jill Biden; or (c) Michael Jordan?
Here are the results:
| Joe Biden | Jill Biden | Michael Jordan | |
|---|---|---|---|
| Females | 12 | 25 | 10 |
| Males | 13 | 0 | 40 |
What is the most appropriate null hypothesis?
Are the differences between female and male responses substantial and statistically persuasive?
An online college statistics class asked students to apply a chi-square test to these observed and expected values:
| Observed | 41 | 38 | 20 | 41 | 27 |
|---|---|---|---|---|---|
| Expected | 39 | 37 | 19 | 38 | 26 |
Why is this question flawed?
Seventy-two randomly selected college students were asked to taste three unlabeled chocolate chip cookies and identify the one they liked best: 13 students chose Chips Ahoy; 12 chose Lady Lee, and 47 chose supermarket bakery cookies. Are these differences substantial and statistically persuasive? What is your null hypothesis?
On a full rack of billiard balls, 99 break shots resulted in 54 sunk balls, allocated among the 15 balls as follows:
Dividing the rack into three categories (corner, adjacent, and other), is there a substantial and statistically persuasive relationship between a ball's position in the rack and its likelihood of being sunk on the break?
A Russian statistician named Ladislaus Bortkiewicz investigated whether the number of soldiers killed by horse kicks was randomly distributed among Prussian cavalry corps. He collected data for 122 deaths over a 20 -year period in 12 cavalry corps. Using the Poisson distribution, he calculated the expected number of cases in which a corps would have no deaths in a single year (108.67), the expected number of cases in which a corps would have a single death (66.29), and so on. He compared these expected numbers to the actual number of cases. It has been suggested that the correspondence between the predicted and observed instances is too good to be true. How would you test this?
| Number of Deaths by Kicks | Predicted Instances | Observed Instances |
|---|---|---|
| 0 | 108.67 | 109 |
| 1 | 66.29 | 65 |
| 2 | 20.22 | 22 |
| 3 | 4.11 | 3 |
| 4 | . 63 | 1 |
| 5 | . 08 | 0 |
| 6 | . 01 | 0 |
A study of first drafts of student papers tabulated how frequently letters were used and the frequency with which typographical errors occurred. For example, "Firday" is an i typo and an r typo; "Froday" or "Frday" is an i typo; and "Friuday" is a u typo. The data were grouped according to the row on the keyboard:
| Used | Errors | |
|---|---|---|
| Top row of letters | 14,961 | 27 |
| Second row of letters | 9,324 | 21 |
| Third row of letters | 4,175 | 16 |
| Space bar | 5,881 | 11 |
| 34,341 | 75 |
Calculate the expected number of errors for each of these four categories, assuming that the 75 errors are distributed in accord with the frequency with which letters are used. Are the differences between the expected and actual number of errors substantial and statistically persuasive?
A researcher suspected that a disproportionate number of people might be born in some months (like November, which is 9 months after Valentine's Day). Use the following data on the birth months of
148 college students to test at the level the null hypothesis that all birth months are equally likely:
| January | 7 |
|---|---|
| February | 15 |
| March | 16 |
| April | 6 |
| May | 7 |
| June | 12 |
| July | 8 |
| August | 16 |
| September | 11 |
| October | 12 |
| November | 21 |
| December | 17 |
| Total | 148 |
A university study examined the relationship between a woman's shoe size and whether the woman frequently experienced foot pain. Are the observed differences substantial and statistically persuasive?
| Shoe Size | Number Surveyed | Number with Foot Pain |
|---|---|---|
| 150 | 87 | |
| 130 | 104 | |
| 120 | 101 |
The Mandarin, Cantonese, and Japanese pronunciation of "four" and "death" are almost identical, and many Chinese and Japanese people consider the number 4 to be unlucky. Californians have some say in the last four digits of their telephone numbers, and a study of the last four digits of the telephone numbers of 1984 Chinese and Japanese California restaurants counted the number of times the digits 0-9 appeared. Are the differences among the digits substantial and statistically persuasive?
| Digit | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|---|
| Phones | 960 | 834 | 789 | 725 | 562 | 650 | 726 | 657 | 1332 | 701 |
It has been argued that people may be able to postpone their deaths until after the celebration of an important event. Here are data for Jewish members of Sinai Memorial Chapel in San Francisco who died within 4 weeks of Passover between January 1, 1987, and December 31, 1995. Do these data provide substantial and statistically persuasive support for the theory?
A student observer attended eight different college classes and recorded the number of female and male students in each classroom, and the sex of each student who made a spoken remark, question, or comment directed at the professor. She found that there were 88 females and 107 males in these classes and a total of 276 student exchanges with the professor, of which 138 were made by females and 138 by males. Are these observed differences substantial and statistically persuasive?
A survey conducted by the National Opinion Research Center asked 756 randomly selected Americans if too much or too little money was being spent on "welfare," while a random sample of 761 Americans were asked if too much or too little money was being spent on "assistance to the poor." Are the differences in the results substantial and statistically persuasive?
| "Welfare" | "Assistance to Poor" | |
|---|---|---|
| Too little | 166 | 484 |
| About right | 261 | 167 |
| Too much | 280 | 69 |
| Don't know | 49 | 41 |
In order to see whether women are more successful at single-sex or coeducational colleges, samples of women attending a women's college and a coeducational college were asked, "Do you feel you are successful at your college?" The results were as follows:
| Women's College | Coeducational College | |
|---|---|---|
| Yes | 37 | 30 |
| No | 15 | 13 |
The researcher explained that "A chi-square test was used to see if the results are statistically significant. We assume that a positive answer is a valid measure of true success, so that the null hypothesis is that the probability equals 0.5, because there is a 50 -percent chance of agreeing that either yes, one is successful or no, one is not successful." The observed values were compared to these expected values:
| Women's College | Coeducational College | |
|---|---|---|
| Yes | 26 | 21.5 |
| No | 26 | 21.5 |
Explain why this procedure is not persuasive, and then make an appropriate statistical test.
Eighty-five randomly selected college students were asked if they had a serious romantic relationship in the past 2 years and, if so, to identify the month in which the most recent relationship began.
| Jan | Feb | Mar | Apr | May | Jun | |
|---|---|---|---|---|---|---|
| Observed | 10 | 13 | 7 | 3 | 4 | 4 |
| Jul | Aug | Sep | Oct | Nov | Dec | |
| Observed | 6 | 4 | 6 | 11 | 8 | 9 |
A chi-square test was used to test the null hypothesis that each month is equally likely for the beginning of a romantic relationship. Identify three distinct errors in the conclusion (do not check the math):
The expected value for each month is . The chi-square value is 15.66 and the two-sided p-value is .154. Therefore, the deviations between the observed and expected values are too small to be explained plausibly by random sampling error. The results are statistically substantial because there are more than 5 degrees of freedom.
A professor showed 56 students four playing cards, numbered 1, 2, 3, and 4 ; shuffled them behind his back; and then selected one of the cards. While he looked at the selected card, the students tried to read his mind and wrote down their best guess as to which card was selected. Here are the results:
| Card number | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| Number of students | 10 | 16 | 27 | 3 |
What is wrong with this calculation of the chi-square statistic and why does it matter?
A researcher looked at male and female choices between Coke and Diet Coke and obtained a chi-square value of .0383: "This means that I can reject the null hypothesis that men and women are equally likely to prefer Coke or Diet Coke, since 0.0383 is less than 0.05." What is incorrect about this conclusion?
Two professors looked at the birth months of 76 major league baseball players who committed suicide. They calculated the adjusted number of suicides in each birth month by dividing the number of suicides in that month by the total number of players with that birth month and multiplying by 1,000. For example, there were a total of 638 players with January birth months; so, the adjusted January number is , rounded off to 9. The expected value in each month was 126/12= 10.5 and their calculated chi-square value was
| Actual | Adjusted | Expected | |
|---|---|---|---|
| January | 6 | 9 | 10.5 |
| February | 7 | 13 | 10.5 |
| March | 5 | 8 | 10.5 |
| April | 5 | 10 | 10.5 |
| May | 5 | 9 | 10.5 |
| June | 6 | 11 | 10.5 |
| July | 2 | 3 | 10.5 |
| August | 19 | 29 | 10.5 |
| September | 5 | 8 | 10.5 |
| October | 7 | 11 | 10.5 |
| November | 3 | 5 | 10.5 |
| December | 6 | 10 | 10.5 |
| Total | 76 | 126 | 126 |
What is most serious error with their statistical procedure?
Do you think that their mistake increased or decreased the chisquare value?
How would you calculate the chi-square value?
Explain why the proposed test is wrong and identify the correct test:
I used a chi-square test to look at the relationship between high school graduation rates in California counties and the per capita income in the past 12 months in these counties. Here are my results for the first four counties alphabetically in California:
| Alameda | Alpine | Amador | Butte | |
|---|---|---|---|---|
| Graduation rate | 86 | 91 | 88 | 87 |
| Per capita income ($) | 35,434 | 27,135 | 26,969 | 23,556 |
Graduation rate is the percent of persons age who graduated from high school and per capita income is annual income (in 2012 dollars) for the years 2008 through 2012. The chi-square value is 8.58 and the -value is .0353, which means we would reject the null at the level, but not at the level.
Two researchers collected birthday and deathday data for 120 randomly selected deceased celebrities. These data were divided into three categories: deaths that occurred during the 30 days preceding the birthday; deaths that occurred on the birthday or during the 29 days following the birthday; and deaths on other days. A chi-square statistic was used to test the null hypothesis that a person's deathday is not related to his or her birthday:
| Deathdate | Number Observed | Number Expected |
|---|---|---|
| During 30 days preceding birthday | 13 | 40 |
| On or during 29 days after birthday | 8 | 40 |
| Other | 99 | 40 |
| Total | 120 | 120 |
What fundamental problem do you see with this analysis?
A researcher surveyed 104 of the 1,579 students at a college to see if religious beliefs varied by grade level, suspecting that students who attend college become less religious between their freshman and senior years:
| Believing | Agnostic | Unbelieving | Total | |
|---|---|---|---|---|
| Freshmen | 11 | 7 | 12 | 30 |
| Sophomore | 8 | 9 | 8 | 25 |
| Junior | 17 | 5 | 6 | 28 |
| Senior | 10 | 6 | 5 | 21 |
| Total | 46 | 27 | 31 | 104 |
He did not find a statistically significant relationship, so he "used the sample mean to estimate the population mean;" for example, (1,579/104) . His chi-square value was now 102.29, which is statistically significant at the level. What is the flaw in his procedure?
| Believing | Agnostic | Unbelieving | Total | |
|---|---|---|---|---|
| Freshmen | 167 | 106 | 182 | 455 |
| Sophomore | 121.5 | 137 | 121.5 | 380 |
| Junior | 258 | 76 | 91 | 425 |
| Senior | 152 | 91 | 76 | 319 |
| Total | 698.5 | 410 | 470.5 | 1579 |
For several years, the manufacturer of plain MM's claimed that the overall percentages of the candies of different colors were as follows: brown, red, yellow, blue, green, and orange. A randomly selected 17.6 ounce bag of plain MM's yielded the following data: brown, red, yellow, blue, green, and orange. The researchers used this chi-square statistic:
The p -value was .78. Their conclusion: "The probability of every color matching the null hypothesis was fairly high, and could not be rejected at the level."
What is the correct null hypothesis?
Identify the error in their calculation of the chi-square statistic. Explain logically why their chi-square statistic is wrong. Do not just say, "They should have used this formula." Explain why the correct formula is more sensible than the formula they used.