- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Survival analysis chart
michelhubert
Engager
05-19-2015
07:02 AM
I want to display a survival probability chart for churn analysis.
Some background info: http://www.data-miners.com/resources/Customer-Insight-Article.pdf
I have index source with tenureday as field.
I can show a harzard chart (total customers per tenureday)
index=customers| chart count by tenureday
But I want to chart the survival probability.
Therefor I have to calculate a cumulative sum divided by total customers per tenureday.
How?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
michelhubert
Engager
05-19-2015
11:42 PM
I found a way. I don't know if it's the best way:
index=customers | stats count as daycount by tenureday | sort tenureday | accum daycount as cumsum | eventstats sum(daycount) as totalz | eval srv = 1 - (cumsum / totalz) | fields tenureday, srv
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

woodcock
Esteemed Legend
05-19-2015
07:37 AM
I believe this will work:
index=customers | stats count sum(MyFieldName) AS sum BY tenureday | eval calculation=sum/count
