BG/NBD and Gamma-Gamma customer lifetime value
predictive-analytics_clv-bg-nbdFit BG/NBD purchase frequency and Gamma-Gamma spend models, then return P(alive), expected purchases over a horizon, expected value and undiscounted CLV per customer. Price $0.05 USDC. POST /api/v1/predictive-analytics/clv-bg-nbd. An unpaid call returns the x402 payment terms and does not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customers": "<customers>"
},
"name": "predictive-analytics_clv-bg-nbd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| margin | No | margin, number. Required. | |
| horizon | No | horizon, number. Required. | |
| customers | Yes | customers, array. Required. | |
| minRepeatCustomers | No | minRepeatCustomers, integer, from 1 to 100000. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bgnbd | No | bgnbd. Object. | |
| sources | No | sources. Array. | |
| customers | No | customers. Array. | |
| gammaGamma | No | gammaGamma. Object. | |
| limitations | No | limitations. Array. |