Preview

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

SELECT
Entity.{{entity_data:id_column}},
Entity.'Marker'

--> Repeat sampling
FROM
(
SELECT
{{entity_data:id_column}},
Marker
StartDate,
EndDate
FROM (
SELECT
{{entity_data:id_column}},
MIN({{entity_data:date_column}}) as StartDate,
MAX({{entity_data:date_column}}) as EndDate
FROM {{entity_data}}
--> All users, no filter
WHERE
1 = 1
AND
Entity.`group` = 'A'
GROUP BY {{entity_data:id_column}}
) UserDates

-->making sure there is enough data
CROSS JOIN
{{prediction_frequency}} as Repeat
ON
Repeat.'Marker' >= UserDates.StartDate
AND
Repeat.'Marker' < (UserDates.EndDate + INTERVAL {{Horizon}} DAYS)

Start your 30 day free trial

Turn your data into smart ML based predictions in days

No credit card required,
no data prep needed .

Retention 

87.2%

↑22%

Traditional

With Pecan

Customer retention 

Marketing

Customer Success

What is the likelihood of a customer who

made a purchase in the last

30

days to

buy again within

180

days?

Enter your work email

If you plan to connect a business database, your work email is required.

Start free trial

Already have an account? Sign in

By continuing, you agree with Pecan’s Terms of Service and Privacy Policy
Copyright © 2023 Pecan.ai