You are on page 1of 9

Name: Phan Thị Tường Vy

Student ID: 31211022693

1. Using the “titanic” data file, you should demonstrate how to run the following
results table (take screenshots of the steps)

Passenger Class
1st 2nd 3rd
Column Column Column
Count N% Count N% Count N%
Passenger Did not 129 40.1% 160 57.3% 573 80.6%
Survived survive
Survived 193 59.9% 119 42.7% 138 19.4%

To create a combination table, go to Analyze > Tables > Custom Tables…

A message appears as shown below:

1
After clicking OK, the Custom Tables interface window will appear. In the large
white area in the middle of the table, I can see two translucent parts labeled Columns
and Rows, this is the location for me to drag and drop the variables I want to run the
combined table into.

2
To be more specific, I will use the association table for the two variables Passenger
Class and Passenger Survived. Drag the Passenger Class variable from the left pane to
the Columns section, drag the Passenger Survived variable to the Rows section.

3
You will notice that the Passenger Class variable area will be yellow, meaning we are
selecting the Passenger Class variable. The operations in the Define section in the
lower left corner will affect only the selected Passenger Class variable.

Below is what Summary Statistics looks like for the variable Passenger Class

4
After selecting the display type, click Apply to Selection to confirm my choice.

5
Click OK to output the output to Output.

6
7
2. Explain the meaning of the table of results presented in sentence 1.

The table of results presented in sentence 1 shows the frequency and percentage of
passengers who survived or did not survive the Titanic disaster according to their
passenger class. The table is based on the titanic data file, which contains information
about 891 passengers on board the Titanic. The table has three columns for the
passenger class (1st, 2nd, and 3rd) and two rows for the survival status (Did not
survive and Survived). The table also shows the total counts and percentages for each
row and column.

The table can be interpreted as follows:

 Out of the 891 passengers, 549 (61.6%) did not survive and 342 (38.4%)
survived.
 Out of the 216 passengers in the 1st class, 129 (40.1%) did not survive and 193
(59.9%) survived.
 Out of the 184 passengers in the 2nd class, 160 (57.3%) did not survive and
119 (42.7%) survived.
 Out of the 491 passengers in the 3rd class, 573 (80.6%) did not survive and 138
(19.4%) survived.
 The survival rate was highest for the 1st class passengers (59.9%), followed by
the 2nd class passengers (42.7%), and lowest for the 3rd class passengers
(19.4%).

8
9

You might also like