Statistics, correlation and hypothesis tests
Goals
- Interpret Pearson's correlation coefficient and use a regression line for predictions within the data.
- Calculate and interpret Spearman's rank correlation coefficient.
- Carry out a test for independence and a goodness-of-fit test: hypotheses, expected frequencies, degrees of freedom, p-value and conclusion.
- Interpret the result of a -test from the GDC.
Exercises
Exercise 1
For a set of data with , the regression line of on is and .
a) Estimate when .
b) Comment on whether this estimate is reliable.
Exercise 2
Two variables are ranked for four items, giving ranks and . Calculate Spearman's rank correlation coefficient.
Exercise 3
In a contingency table with grand total , a cell is in a row with total and a column with total . Find its expected frequency.
Exercise 4
How many degrees of freedom does a test for independence have for a table with rows and columns?
Exercise 5
A researcher wants to test whether the type of phone a student owns is related to the student's age group. State the null and alternative hypotheses.
Exercise 6
A shop manager expects the same number of customers each weekday. Over a week she counts , , , and customers from Monday to Friday. Test her expectation at the level.
Exercise 7
Two teaching methods are compared. With method A, 45 of 60 students passed; with method B, 30 of 60 passed. Test at the 5\% level whether passing is independent of the method.
Exercise 8
A t-test comparing the mean reaction times of two groups gives a p-value of 0.18. At the 5\% level, what can be concluded?
Exercise 9 Challenge
In a \chi^2 test for independence, one expected frequency is 3.2. Explain the problem and what should be done.
Mini test
15 minutes, without looking back at the lesson. Part I: circle one letter; Part II: write T or F for each statement; Part III: write the answer in the box.
Part I. Multiple choice
Part II. True or false
| a) The judges' rankings tend to be opposite. | T / F |
| b) The association is strong. | T / F |
| c) r_s can be greater than 1. | T / F |
| d) Spearman's coefficient uses ranks. | T / F |
Part III. Short answer
Score: ........ / 10
Hints (only when stuck)
What you need: substitute, then check the strength and the range.
What you need: r_s=1-\dfrac{6\sum d^2}{n(n^2-1)}.
What you need: \dfrac{\text{row total}\times\text{column total}}{\text{grand total}}.
What you need: (r-1)(c-1).
What you need: H_0 for independence says the variables are independent.
What you need: expected frequency \dfrac{200}{5}=40; 4 degrees of freedom.
What you need: a 2\times2 table; expected frequencies 37.5 and 22.5; 1 degree of freedom.
What you need: compare 0.18 with 0.05.
What you need: the condition on expected frequencies.
Self-check
| # | Did it alone | Needed a hint | Not yet |
|---|---|---|---|
| 1 | ☐ | ☐ | ☐ |
| 2 | ☐ | ☐ | ☐ |
| 3 | ☐ | ☐ | ☐ |
| 4 | ☐ | ☐ | ☐ |
| 5 | ☐ | ☐ | ☐ |
| 6 | ☐ | ☐ | ☐ |
| 7 | ☐ | ☐ | ☐ |
| 8 | ☐ | ☐ | ☐ |
| 9 | ☐ | ☐ | ☐ |
Redo the ones you missed after: ☐ 1 day ☐ 3 days ☐ 7 days
Scan for step-by-step solutions