Can a passenger list
predict who survived?
The training data includes each passenger’s class, age and survival outcome. In the test data, the outcome is missing. Your job is to predict it for every passenger.
A first approach
Try predicting that first-class passengers survived and everyone else did not. The rule already misses passenger 003 in the table. Try adding age, then compare both rules on records you set aside.
| ID | Class | Predicted | Actual |
|---|---|---|---|
| 001 | Third | Died | Died |
| 002 | First | Survived | Survived |
| 003 | Third | Died | Survived |
PassengerId,Survived
892,0These rows come from the training data. In the submission example, 892 is a test passenger and 0 is the rule’s prediction.
How do you know the rule works?
Two of the three predictions are correct. That tells you about these rows only. Split the training set, use one part to develop a rule, and check its accuracy on the other. Keep the IDs of the passengers you missed.



