For the following problems, find the expected frequencies of each cell in the table, perform a chi-square test for independence, and comment on the relationship between the variables. Assume the variables are independent.
a. The contingency table shows the results of a random sample of college professors and the years of teaching at the university level.
Gender
|
< 1 Year
|
1 - 3 Years
|
4 - 7 Years
|
8 - 15 Years
|
Over 15 Years
|
Male
|
35
|
47
|
58
|
135
|
150
|
Female
|
53
|
68
|
128
|
97
|
54
|
b. The contingency table shows the results of a random sample of individuals by gender and gas mileage of vehicle owned.
Gender
|
1 - 15 MPG
|
16 - 21 MPG
|
22 - 28 MPG
|
29 - 35 MPG
|
Over 35 MPG
|
Male
|
13
|
86
|
118
|
87
|
24
|
Female
|
11
|
45
|
68
|
134
|
128
|