Skip to content
DeepForgeby svx
All problems
EasyStatisticsst-150

AUC to d

Problem

Convert the probit of an AUC (z = Phi^-1(AUC)) to a standardized mean difference with d = sqrt(2) * z. Return 0.0 when z is zero.

Hint

The ROC curve implies d = sqrt(2) times the probit.

Test cases

case 1
in: [0]
expected: 0
case 2
in: [1]
expected: 1.4142135623730951
case 3
in: [-0.5]
expected: -0.7071067811865476
case 4
in: [1.645]
expected: 2.3263813101037414
case 5
in: [2]
expected: 2.8284271247461903
Starter codePython
def auc_to_d(z_auc):
    # Your code here
    pass

5 test cases · run your code against them in the editor