Threshold Explorer

A model gives each of 10 people an estimated probability p̂ of the outcome. Drag the threshold t to turn those probabilities into predictions ŷ, and watch the confusion matrix, ROC point and error rates update.

Data, sorted by p̂

# y
actual
p̂
est. prob.
ŷ
predicted
result
tthreshold
0.50ŷ=1: ŷ=0:

Rule: ŷ = 1 if p̂ ≥ t, otherwise ŷ = 0. Drag the slider or use the arrow keys.

Confusion matrix

Predicted ŷ
ŷ = 1
ŷ = 0
Actual y
y = 1
y = 0
TP0true positive
FN0false negative
FP0false positive
TN0true negative
Actual positives PActual negatives N Predicted positives Predicted negatives

ROC curve

Rates at the current threshold