Survival time of heart patients
Suppose you're given the following dataset showing survival information for a group of patients with heart disease. A preview of the data is below:
As shown, the dataset contains the following attributes:
- survival - how long the patient survived (in days)
- censors - whether or not the patient is still alive (0 indicates they are alive, 1 indicates they have passed away
- age - the age of the patient (in years)
Using this data, visualize the survival time (for patients who have passed away) and try fitting the data against an exponential probability distribution using the Maximum Likelihood Method. Assess the goodness of fit of the distribution.
This is of course an example of a more open-ended question, so note that while there isn't a single correct approach, interviewers would be most interested in your thought process/reasoning here.
Subscribe to premium account to see the solution.Get premium now