2.122 Survival and class on the Titanic. In Exercise 1.27 (page 24), you created a graphical summary of the number of passengers who survived classified by the accommodations that they had on the ship: first, second, or third class. Let’s look at these data with a two-way table.
(a) Create a two-way table that you could use to explore the relationship between survival and class.
(b) Which variable is the explanatory variable and which is the response variable? Give reasons for your answers.
(c) Find the two marginal distributions. Write a brief summary explaining the major features of these distributions.
(d) Which conditional distribution would you choose to explain the relationship between these two variables? Explain your answer.
147
(e) Find the conditional distribution that you chose in part (d) and, write a summary that includes your interpretation of the relationship based on this conditional distribution.