Skip to main content
POST
/
quantlib
/
ml
/
validation
/
stability
Population Stability Index (PSI)
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/ml/validation/stability \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "expected": [
    0.12,
    0.23,
    0.34,
    0.45,
    0.56,
    0.67,
    0.78,
    0.89
  ],
  "actual": [
    0.15,
    0.25,
    0.32,
    0.48,
    0.54,
    0.69,
    0.75,
    0.91
  ],
  "n_bins": 10
}
'
{
  "success": true,
  "data": {
    "psi": 0.087,
    "csi": 0.092
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
expected
number[]
required

Expected distribution (development sample)

Example:
[
0.12,
0.23,
0.34,
0.45,
0.56,
0.67,
0.78,
0.89
]
actual
number[]
required

Actual distribution (current sample)

Example:
[
0.15,
0.25,
0.32,
0.48,
0.54,
0.69,
0.75,
0.91
]
n_bins
integer
default:10

Number of bins for discretization

Example:

10

Response

Stability metrics

success
boolean
Example:

true

data
object