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.

  1. (a) Create a two-way table that you could use to explore the relationship between survival and class.

  2. (b) Which variable is the explanatory variable and which is the response variable? Give reasons for your answers.

  3. (c) Find the two marginal distributions. Write a brief summary explaining the major features of these distributions.

  4. (d) Which conditional distribution would you choose to explain the relationship between these two variables? Explain your answer.

    147

  5. (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.