Is the F-score invariant to confusion matrix transposition?
In other words, if actual values are substituted with predicted values and vice-versa, would the F-score stay the same?
Is the F-score invariant to confusion matrix transposition?
In other words, if actual values are substituted with predicted values and vice-versa, would the F-score stay the same?
This is the case exactly for $\beta=1$, i.e., for the $F1$ score, but not for general $F\beta$ scores.
To see this, use the following formulation of the $F\beta$ score:
$$ F\beta = \frac{(1+\beta^2)\cdot TP}{(1+\beta^2)\cdot TP + \beta^2\cdot FN+ FP}. $$
Transposing your confusion matrix will leave $TP$ (and $TN$) unchanged, and exchange $FP$ and $FN$. Thus, $F\beta$ will remain unchanged for all possible $FN$ and $FP$ values exactly for $\beta=1$.