
10:00
Which pair of plots would have the greatest chi-squared distance between them? (consider one of them the “observed” and the other the “expected”)
This question recalls the introduction of a new summary statistic in the notes: the chi-squared. It is used to measure the distance between two distributions of categorical variables.
The pair with the highest statistic is D and F!
The important mathematical intuition to have here is that the statistic adds together every squared normalized difference, so one very large difference can inflate the statistic.

\[ \frac{(1-1)^2}{1} + \frac{(10 - 1)^2}{1} + \frac{(1 - 10)^2}{10} \\ 0 + 81 + \frac{81}{10} = 89.1 \]

\[ \frac{(3-5)^2}{5} + \frac{(4-4)^2}{4} + \frac{(5-3)^2}{3} \\ \frac{4}{5} + 0 + \frac{4}{3} = 2.13 \]
We will be collecting data from this class right now! Sit tight and wait for everyone to get a warmup sheet.
Which of the two names belongs to the shape on the left?
00:15
Write down an equation for the null hypothesis that corresponds to the notion the link between names and shapes is arbitrary.
\[\hat{p}_k = \frac{\textrm{Number who chose "Kiki"}}{\textrm{Total number of people}}\]
Note: you could also simply \(n_k\), the number of people who chose “Kiki”.
Our technique: simulate data from a world in which the null is true, then calculate the test statistic on the simulated data.
Which simulation method(s) align with the null hypothesis and our data collection process of simulating from a world where the null is true?
Make a box with two cards, one that says “Kiki”, the other that says “Bouba”. Draw out n cards (the number of people who filled out the poll) with replacement, then compute \(\hat{p}_k\).
Make a box with two cards, one that says “Kiki”, the other that says “Bouba”. Draw n cards without replacement, then compute \(\hat{p}_k\).
Make a box with n cards, half of which say “KiKi”, the other half of which say “Bouba”. Draw n cards with replacement and calculate \(\hat{p}_k\).
Make a box with n cards, half of which say “KiKi”, the other half of which say “Bouba”. Draw n cards without replacement and calculate \(\hat{p}_k\).
Take a fair coin and assign Heads to “Kiki” and Tails to “Bouba”. Flip the coin n times and calculate \(\hat{p}_k\).
A, C, and E all work.
Make a box with two cards, one that says “Kiki”, the other that says “Bouba”. Draw out n cards (the number of people who filled out the poll) with replacement, then compute \(\hat{p}_k\).
Make a box with two cards, one that says “Kiki”, the other that says “Bouba”. Draw n cards without replacement, then compute \(\hat{p}_k\).
Make a box with n cards, half of which say “Kiki”, the other half of which say “Bouba”. Draw n cards with replacement and calculate \(\hat{p}_k\).
Make a box with n cards, half of which say “Kiki”, the other half of which say “Bouba”. Draw n cards without replacement and calculate \(\hat{p}_k\).
Take a fair coin and assign Heads to “Kiki” and Tails to “Bouba”. Flip the coin n times and calculate \(\hat{p}_k\).
Let’s now use infer to do the simulation!
What is the proper interpretation of the p-value?
01:00
05:00
30:00
