where P(R) is the a priori probability of relevance (in other words, how likely any document is to be relevant), and P(D) acts as a normalizing constant. Given this, we can express our decision rule in the following way: classify a document as relevant if P(D|R)P(R) > P(D|NR)P(NR). This is the same as classifying a document as relevant if: