DeLong test (compare two AUCs) / 两条 ROC 的 AUC 比较(DeLong)
delong_auc_compareDeLong test (compare two AUCs) / 两条 ROC 的 AUC 比较(DeLong) | USE WHEN: compare two ROC AUCs from the same subjects and test whether the difference is significant | ALIASES: DeLong, 两个AUC比较, 哪个指标更好, AUC差异, compare AUC, 曲线下面积比较 | RETURNS: 两 AUC 及差值 P 值
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"labels": [
0,
1,
0,
1,
1,
0
],
"scores1": [
0.1,
0.9,
0.2,
0.8,
0.7,
0.3
],
"scores2": [
0.2,
0.7,
0.3,
0.6,
0.8,
0.4
]
},
"name": "delong_auc_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labels | Yes | 真实标签 0/1,长度 = scores1 = scores2。两个类别各至少 2 例,否则 400(AUC 方差无定义)。 | |
| scores1 | Yes | 指标 1 的风险分数(一维数值数组,可为任意实数)。与 scores2、labels 三者等长;AUC 只看排序不看绝对尺度。 | |
| scores2 | Yes | 指标 2 的风险分数(一维数值数组)。与 scores1 等长。返回两个 AUC 及其差值是否显著(相关 ROC 的 DeLong 检验)。 |