P = #relevant-documents-returned / #documents-returned R = #relevant-documents-returned / #relevant-documents-in-collectionThe F-measure (F) is then the harmonic mean of precision and recall and it is defined as:
F = (2PR)/(P+R)It should be noted that improving recall together with precision is often an antagonistic goal.