Artificial intelligence · lesson 3 of 4
Logistic scores, thresholds and confusion matrices
A logistic model maps a real score through σ(z)=1/(1+exp(−z)). Interpreting a score as a reliable probability requires calibration assessment.
Learn the ideas
Prerequisites: Probability, ratios and model evaluation.
Score
A logistic model maps a real score through σ(z)=1/(1+exp(−z)). Interpreting a score as a reliable probability requires calibration assessment.
Threshold
A binary decision compares a score with a stated threshold. Changing the threshold can trade false positives against false negatives.
Metrics
Precision is TP/(TP+FP); recall is TP/(TP+FN). A zero denominator requires explicit handling rather than silent division.
F1
F1=2TP/(2TP+FP+FN) where defined. It summarizes a tradeoff but does not incorporate every application-specific cost.
Worked examples
Find σ(0) for the logistic sigmoid.
1/(1+exp(0))=1/2.
0.5
With TP=12 and FP=3, find precision.
12/(12+3)=0.8.
0.8
Check your understanding
8 questionsDecimals or fractions are accepted for numeric answers. Proofs and written responses use sample answers and require human marking. This is practice, not a protected examination.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.