Compute both denominators at threshold one half.
Precision uses marked positives
Precision uses TP plus FP in the denominator: 2 + 1 = 3.
TP+FP=2+1=3
Compute precision
Precision is TP over TP plus FP, so it is 2 over 3.
precision=32
Compute recall
Recall uses TP plus FN in the denominator: 2 + 1 = 3, so recall is 2 over 3.
recall=32