Duration distribution

Let us now take a look at how the duration of calls is related to subscription:

%sql select duration,y, count(1) from trainData group by duration,y order by duration,y

The charts show that most of the calls are short and the subscription ratio is proportional to the call duration. The expanded version provides better insight:

Get Scala Machine Learning Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.