Professional Documents
Culture Documents
Use of Statistics in Our Daily Life: Chapter 10 Relationships Between Categorical Variables
Use of Statistics in Our Daily Life: Chapter 10 Relationships Between Categorical Variables
Use of Statistics in Our Daily Life: Chapter 10 Relationships Between Categorical Variables
Goal:
Interpret and carry out hypothesis tests for
independence of variables with data organized in
two-way tables
1 2
3 4
Example 2 Expected Frequencies for Identifying the Hypotheses for Two-
Biology and Business Degrees Way Tables
Find the frequencies expected by chance for all The null hypothesis, H0, states that the
cells in Table 10.3. Then, construct a table variables in the table are independent (there
showing both observed frequencies and
is no relationship between them).
frequencies expected by chance
The alternative hypothesis, Ha, states that
there is a relationship between the two
variables in the table.
5 6
Problem: How to measure the differences between the The larger the χ , the greater the average difference
2
observed frequencies and those expected by chance? between observed and expected frequency in the cells
9 10
differences between the observed and expected values are people, 105 randomly selected people took a vitamin C
small and there is not enough evidence to reject the null pill daily for a period of 10 weeks and the remaining 115
hypothesis at the given level of significance people took a placebo daily for 10 weeks. At the end of
If the calculated value of χ is greater than or equal to the
2
10 weeks, the number of people who got colds was
critical value, then there is enough evidence to reject the null
recorded. Determine whether there is a relationship
hypothesis at the given level of significance
between taking vitamin C and getting colds at 0.01 level.
11 12
Example 6 To Plead or Not to Plead
(p 425)
The two-way table in Table 10.11 shows how a plea of
guilty or not guilty affected the sentence in 1028
randomly selected burglary cases in the San Francisco
area. Test the claim that the sentence (prison or no
prison) is independent of the plea at 0.01 level.
13