Sample Data: Titanic Survival

Classify whether a passenger on board the maiden voyage of the RMS Titanic in 1912 survived given their age, sex and class

This data set contains the survival status of 1309 passengers aboard the maiden voyage of the RMS Titanic in 1912 (the ships crew are not included), along with the passengers age, sex and class (which serves as a proxy for economic status). 70% of the data was selected (using stratified sampling) for the training set.

Examples

Basic Examples

Retrieve the resource:

In[1]:=
ResourceObject["Sample Data: Titanic Survival"]
Out[1]=

Retrieve the a sample of the data:

In[2]:=
RandomSample[ResourceData["Sample Data: Titanic Survival"], 10]
Out[2]=

Analysis

Train a classifier:

In[3]:=
classifier = 
 Classify[ResourceData["Sample Data: Titanic Survival", 
   "TrainingData"]]
Out[3]=

Obtain general information about the classifier:

In[4]:=
ClassifierInformation[classifier]
Out[4]=

Visualize the accuracy of the classifier on the test dataset:

In[5]:=
ClassifierMeasurements[classifier, 
 ResourceData["Sample Data: Titanic Survival", 
  "TestData"], "ConfusionMatrixPlot"]
Out[5]=

Wolfram Research, "Sample Data: Titanic Survival" from the Wolfram Data Repository (2018) 

Data Resource History

Source Metadata

Data Downloads

Publisher Information