I was a post-graduateĀ in Mechanical Engineering when I joined the analytics industry as a fresher.
The only background I had in analytics industry was based on a few courses in Operations Research. I was scared to join the industry, where I knew lesser than a student of statistics in 12th standard. InĀ less than a month, I realized that Analytics industry does not require you to have a masters in statistics or economics, but requires structured thinking with sharp mathematical reflexes. It took me no more than 3 months to build and implement my first logistic regression model. Most of the people in India still use basic analytics tools such as CART, regressions and time series. We still are scared of using complex statistical techniques, such as neural network and survival analysis. Last year, I used survival analysis in one of the analytics projects and realized the power of the tool without getting into the Limbo of statistics behind the tool. This article will help you find if the survival analysis is the right tool for your next project. The article will end with a case study, which we will solve using survival analysis in the next article.
[stextbox id=āsectionā]How is survival analysis different from regression models?[/stextbox]
Regression models have a single output function. In case of a logistic regression, the output is the response function which can only take two values. In any other model, we can define the output function in a single objective function. For instance, if we are building a customer attrition model, which predicts whether a customer will attrite in next 3 months, following is the objective of the logistic model :
f(x) =Ā 0Ā Ā Ā if no attrition in next 3 months
=Ā 1Ā Ā Ā if customer attrited in next 3 months
Say, we want to profile the customers, who are likely to attriteĀ early and restrict the acquisition of such profile customers. Letās assume for simplicity that there are onlyĀ 2 variables : Gender and Tenure. We build a logistic model in Jan ā13 and found that out of 100 Males 30 attriteĀ till Janā13, whereas out of 100 females only 10 attriteĀ till Janā13. My model profiles females as better profile, but because of some reason we did not implement this factor into our acquisition strategy. Now, we stand in Julā13Ā and if we look at the same population as considered in the logisticĀ model,Ā Ā out of 100 Males 35 attriteĀ and out of 100 Females 55 attrite.
The results seem to have swapped.Ā In last 6 months, females saw high attrition, whereas male population seems to be very stable over this period. Now you observe that females had a lower tenure in Janā13Ā as compared to the male population. The possible solution in this case is to take same month tranches/acquisitions to build a model. You now take only customer who was acquired before Janā12. You get a population of 50 Males and 10 Females. However, you have reduced the noise coming from new tranches, you have also reduced the population you are building a model on. How do you address this issue?
Such data for whom the results (attrition in this case) are unknown, are called censored data. We can include this data without compromising on the model accuracy in a survival analysis model. This is because the output or target variable of a survival analysis is a combination of death (attrition in this case) and timeĀ on booksĀ (tenure of customer).
[stextbox id=āsectionā]Applications of survival analysis[/stextbox]
There are four major applications of survival analysis into analytics:
1. Business Planning : Profiling customers who has a higher survival rate and make strategy accordingly.
2. Lifetime Value Prediction : Engage with customers according to their lifetime value
3. Active customers : Predict when the customer will be active for the next time and take interventions accordingly.
4. Campaign evaluation : Monitor effect of campaign on the survival rate of customers.
Ā Ā Following are some industrial specific applications of survival analysis :
ā¢ Banking ā customer lifetime and LTV
ā¢ Insurance ā time to lapsing on policy
ā¢ Mortgages ā time to mortgage redemption
ā¢ Mail Order Catalogue ā time to next purchase
ā¢ Retail ā time till food customer starts purchasing non-food
ā¢ Manufacturing ā lifetime of a machine component
ā¢ Public Sector ā time intervals to critical events
[stextbox id=āsectionā]Case study [/stextbox]
You are the head of the analytics team with an online Retail chain Mazon. You have received a limited number of offers which costs you $200/customer targeted . The offer breaks even if a customer makes a purchase of minimumĀ $20,000 in his entire lifetime. You want to target customers who are likely to make a purchase of $20,000 as early as possible. You have theirĀ relationship card segment (PlatinumĀ cards are expensive and Gold card is cheaper)Ā andĀ their response rate on last campaign they were targeted with. You have been targeting customers with this offer for past 1 year. Now you want to learn from the past response data and target accordingly. You need to find which customer base should you target for this offer.Ā You have data for a similar test campaign in the past, based on which you will have to build the strategy.
You will have to use survival analysis in this case because the dependent variable is the time to respond the campaign. This again contains censored data which are people who did not respond till date. We will solve this case study in the next article where we will lay out a step by step process doing a survival analysis to find profile of customers who respond early.
[stextbox id=āsectionā]End notes [/stextbox]
In the last three years, I have realized that analytics project are not always created by the business. The business itself is constrained by what value they have seen in the past coming from the analytics team. Learning new modelling techniques and learning from nextgen analytics project make usĀ capable of seeing the value beyond what business can see. We will like to know the new techniques you have learnt in recent past and their applications.Ā The objective to start a discussion on survival analysis here is not restricted to only this technique.
Did you find any opportunity in yourĀ line of business where you can implement survival analysis? Did you find this article helpful?Ā Have you worked on other cutting edge modelling techniques in the recent past? Were the results encouraging?Ā Do let us know your thoughts in the comments below.