Skip to content
LQM Registry / statistical

Descriptive Statistics

Auditable descriptive statistics for a numeric series, including dispersion and interpolated percentiles.

Model keylq.statistics.descriptive
Version1.0.0
Runtimephp-native
Model contract

Inputs are explicit.

{
    "type": "object",
    "required": [
        "values"
    ],
    "properties": {
        "values": {
            "type": "array",
            "items": {
                "type": "number"
            },
            "minItems": 1
        }
    }
}
Output contract

Outputs are explicit.

{
    "type": "object",
    "properties": {
        "count": {
            "type": "integer"
        },
        "sum": {
            "type": "number"
        },
        "min": {
            "type": "number"
        },
        "max": {
            "type": "number"
        },
        "mean": {
            "type": "number"
        },
        "median": {
            "type": "number"
        },
        "variance": {
            "type": "number"
        },
        "standard_deviation": {
            "type": "number"
        },
        "p25": {
            "type": "number"
        },
        "p75": {
            "type": "number"
        }
    }
}
Default parameters
{
    "variance_mode": "population"
}
Example input
{
    "values": [
        12.5,
        15.199999999999999289457264239899814128875732421875,
        14.800000000000000710542735760100185871124267578125,
        19.10000000000000142108547152020037174224853515625,
        17.60000000000000142108547152020037174224853515625,
        13.9000000000000003552713678800500929355621337890625
    ]
}
Capabilities
cpudeterministicgoverned