199
Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions Introduction to Information Retrieval http://informationretrieval.org IIR 11: Probabilistic Information Retrieval Hinrich Sch¨ utze Center for Information and Language Processing, University of Munich 2011-05-23 Sch¨ utze: Probabilistic Information Retrieval 1 / 51

Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

  • Upload
    others

  • View
    16

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Introduction to Information Retrievalhttp://informationretrieval.org

IIR 11: Probabilistic Information Retrieval

Hinrich Schutze

Center for Information and Language Processing, University of Munich

2011-05-23

Schutze: Probabilistic Information Retrieval 1 / 51

Page 2: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Overview

1 Recap

2 Probabilistic Approach to IR

3 Basic Probability Theory

4 Probability Ranking Principle

5 Appraisal&Extensions

Schutze: Probabilistic Information Retrieval 2 / 51

Page 3: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Outline

1 Recap

2 Probabilistic Approach to IR

3 Basic Probability Theory

4 Probability Ranking Principle

5 Appraisal&Extensions

Schutze: Probabilistic Information Retrieval 3 / 51

Page 4: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Relevance feedback: Basic idea

The user issues a (short, simple) query.

The search engine returns a set of documents.

User marks some docs as relevant, some as nonrelevant.

Search engine computes a new representation of theinformation need – should be better than the initial query.

Search engine runs new query and returns new results.

New results have (hopefully) better recall.

Schutze: Probabilistic Information Retrieval 4 / 51

Page 5: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Rocchio illustrated

x

x

x

x

xx

Schutze: Probabilistic Information Retrieval 5 / 51

Page 6: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Rocchio illustrated

x

x

x

x

xx

~µR

Schutze: Probabilistic Information Retrieval 5 / 51

Page 7: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Rocchio illustrated

x

x

x

x

xx

~µR

Schutze: Probabilistic Information Retrieval 5 / 51

Page 8: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Rocchio illustrated

x

x

x

x

xx

~µNR

Schutze: Probabilistic Information Retrieval 5 / 51

Page 9: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Rocchio illustrated

x

x

x

x

xx

~µR

~µNR

Schutze: Probabilistic Information Retrieval 5 / 51

Page 10: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Rocchio illustrated

x

x

x

x

xx

~µR

~µNR

~µR − ~µNR

Schutze: Probabilistic Information Retrieval 5 / 51

Page 11: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Rocchio illustrated

x

x

x

x

xx

~µR

~µNR

~µR − ~µNR

Schutze: Probabilistic Information Retrieval 5 / 51

Page 12: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Rocchio illustrated

x

x

x

x

xx

~µR

~µNR

~µR − ~µNR~qopt

Schutze: Probabilistic Information Retrieval 5 / 51

Page 13: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Rocchio illustrated

x

x

x

x

xx

~µR

~µNR

~µR − ~µNR~qopt

Schutze: Probabilistic Information Retrieval 5 / 51

Page 14: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Rocchio illustrated

x

x

x

x

xx~qopt

Schutze: Probabilistic Information Retrieval 5 / 51

Page 15: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Types of query expansion

Manual thesaurus (maintained by editors, e.g., PubMed)

Automatically derived thesaurus (e.g., based on co-occurrencestatistics)

Query-equivalence based on query log mining (common on theweb as in the “palm” example)

Schutze: Probabilistic Information Retrieval 6 / 51

Page 16: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Query expansion at search engines

Main source of query expansion at search engines: query logs

Example 1: After issuing the query [herbs], users frequentlysearch for [herbal remedies].

→ “herbal remedies” is potential expansion of “herb”.

Example 2: Users searching for [flower pix] frequently click onthe URL photobucket.com/flower. Users searching for [flowerclipart] frequently click on the same URL.

→ “flower clipart” and “flower pix” are potential expansions ofeach other.

Schutze: Probabilistic Information Retrieval 7 / 51

Page 17: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Take-away today

Probabilistically grounded approach to IR

Probability Ranking Principle

Models: BIM, BM25

Assumptions these models make

Schutze: Probabilistic Information Retrieval 8 / 51

Page 18: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Outline

1 Recap

2 Probabilistic Approach to IR

3 Basic Probability Theory

4 Probability Ranking Principle

5 Appraisal&Extensions

Schutze: Probabilistic Information Retrieval 9 / 51

Page 19: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Relevance feedback from last lecture

Schutze: Probabilistic Information Retrieval 10 / 51

Page 20: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Relevance feedback from last lecture

Previous lecture: in relevance feedback, the user marksdocuments as relevant/nonrelevant

Schutze: Probabilistic Information Retrieval 10 / 51

Page 21: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Relevance feedback from last lecture

Previous lecture: in relevance feedback, the user marksdocuments as relevant/nonrelevant

Given some known relevant and nonrelevant documents, wecompute weights for non-query terms that indicate how likelythey will occur in relevant documents

Schutze: Probabilistic Information Retrieval 10 / 51

Page 22: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Relevance feedback from last lecture

Previous lecture: in relevance feedback, the user marksdocuments as relevant/nonrelevant

Given some known relevant and nonrelevant documents, wecompute weights for non-query terms that indicate how likelythey will occur in relevant documents

Today: develop a probabilistic approach for relevancefeedback and also a general probabilistic model for IR

Schutze: Probabilistic Information Retrieval 10 / 51

Page 23: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic Approach to Retrieval

Schutze: Probabilistic Information Retrieval 11 / 51

Page 24: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic Approach to Retrieval

Given a user information need (represented as a query) and acollection of documents (transformed into documentrepresentations), a system must determine how well thedocuments satisfy the query

Schutze: Probabilistic Information Retrieval 11 / 51

Page 25: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic Approach to Retrieval

Given a user information need (represented as a query) and acollection of documents (transformed into documentrepresentations), a system must determine how well thedocuments satisfy the query

An IR system has an uncertain understanding of the userquery, and makes an uncertain guess of whether a documentsatisfies the query

Schutze: Probabilistic Information Retrieval 11 / 51

Page 26: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic Approach to Retrieval

Given a user information need (represented as a query) and acollection of documents (transformed into documentrepresentations), a system must determine how well thedocuments satisfy the query

An IR system has an uncertain understanding of the userquery, and makes an uncertain guess of whether a documentsatisfies the query

Probability theory provides a principled foundation for suchreasoning under uncertainty

Schutze: Probabilistic Information Retrieval 11 / 51

Page 27: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic Approach to Retrieval

Given a user information need (represented as a query) and acollection of documents (transformed into documentrepresentations), a system must determine how well thedocuments satisfy the query

An IR system has an uncertain understanding of the userquery, and makes an uncertain guess of whether a documentsatisfies the query

Probability theory provides a principled foundation for suchreasoning under uncertainty

Probabilistic models exploit this foundation to estimate howlikely it is that a document is relevant to a query

Schutze: Probabilistic Information Retrieval 11 / 51

Page 28: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic IR Models at a Glance

Schutze: Probabilistic Information Retrieval 12 / 51

Page 29: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic IR Models at a Glance

Classical probabilistic retrieval model

Schutze: Probabilistic Information Retrieval 12 / 51

Page 30: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic IR Models at a Glance

Classical probabilistic retrieval modelProbability ranking principle

Schutze: Probabilistic Information Retrieval 12 / 51

Page 31: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic IR Models at a Glance

Classical probabilistic retrieval modelProbability ranking principle

Binary Independence Model, BestMatch25 (Okapi)

Schutze: Probabilistic Information Retrieval 12 / 51

Page 32: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic IR Models at a Glance

Classical probabilistic retrieval modelProbability ranking principle

Binary Independence Model, BestMatch25 (Okapi)

Bayesian networks for text retrieval

Schutze: Probabilistic Information Retrieval 12 / 51

Page 33: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic IR Models at a Glance

Classical probabilistic retrieval modelProbability ranking principle

Binary Independence Model, BestMatch25 (Okapi)

Bayesian networks for text retrieval

Language model approach to IR

Schutze: Probabilistic Information Retrieval 12 / 51

Page 34: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic IR Models at a Glance

Classical probabilistic retrieval modelProbability ranking principle

Binary Independence Model, BestMatch25 (Okapi)

Bayesian networks for text retrieval

Language model approach to IR

Important recent work, will be covered in the next lecture

Schutze: Probabilistic Information Retrieval 12 / 51

Page 35: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic IR Models at a Glance

Classical probabilistic retrieval modelProbability ranking principle

Binary Independence Model, BestMatch25 (Okapi)

Bayesian networks for text retrieval

Language model approach to IR

Important recent work, will be covered in the next lecture

Probabilistic methods are one of the oldest but also one of thecurrently hottest topics in IR

Schutze: Probabilistic Information Retrieval 12 / 51

Page 36: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise: Probabilistic model vs. other models

Schutze: Probabilistic Information Retrieval 13 / 51

Page 37: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise: Probabilistic model vs. other models

Boolean model

Schutze: Probabilistic Information Retrieval 13 / 51

Page 38: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise: Probabilistic model vs. other models

Boolean model

Probabilistic models support ranking and thus are better thanthe simple Boolean model.

Schutze: Probabilistic Information Retrieval 13 / 51

Page 39: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise: Probabilistic model vs. other models

Boolean model

Probabilistic models support ranking and thus are better thanthe simple Boolean model.

Vector space model

Schutze: Probabilistic Information Retrieval 13 / 51

Page 40: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise: Probabilistic model vs. other models

Boolean model

Probabilistic models support ranking and thus are better thanthe simple Boolean model.

Vector space model

The vector space model is also a formally defined model thatsupports ranking.

Schutze: Probabilistic Information Retrieval 13 / 51

Page 41: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise: Probabilistic model vs. other models

Boolean model

Probabilistic models support ranking and thus are better thanthe simple Boolean model.

Vector space model

The vector space model is also a formally defined model thatsupports ranking.Why would we want to look for an alternative to the vectorspace model?

Schutze: Probabilistic Information Retrieval 13 / 51

Page 42: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic vs. vector space model

Schutze: Probabilistic Information Retrieval 14 / 51

Page 43: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic vs. vector space model

Vector space model: rank documents according to similarityto query.

Schutze: Probabilistic Information Retrieval 14 / 51

Page 44: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic vs. vector space model

Vector space model: rank documents according to similarityto query.

The notion of similarity does not translate directly into anassessment of “is the document a good document to give tothe user or not?”

Schutze: Probabilistic Information Retrieval 14 / 51

Page 45: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic vs. vector space model

Vector space model: rank documents according to similarityto query.

The notion of similarity does not translate directly into anassessment of “is the document a good document to give tothe user or not?”

The most similar document can be highly relevant orcompletely nonrelevant.

Schutze: Probabilistic Information Retrieval 14 / 51

Page 46: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probabilistic vs. vector space model

Vector space model: rank documents according to similarityto query.

The notion of similarity does not translate directly into anassessment of “is the document a good document to give tothe user or not?”

The most similar document can be highly relevant orcompletely nonrelevant.

Probability theory is arguably a cleaner formalization of whatwe really want an IR system to do: give relevant documentsto the user.

Schutze: Probabilistic Information Retrieval 14 / 51

Page 47: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Outline

1 Recap

2 Probabilistic Approach to IR

3 Basic Probability Theory

4 Probability Ranking Principle

5 Appraisal&Extensions

Schutze: Probabilistic Information Retrieval 15 / 51

Page 48: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Basic Probability Theory

Schutze: Probabilistic Information Retrieval 16 / 51

Page 49: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Basic Probability Theory

For events A and B

Schutze: Probabilistic Information Retrieval 16 / 51

Page 50: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Basic Probability Theory

For events A and BJoint probability P(A ∩ B) of both events occurring

Schutze: Probabilistic Information Retrieval 16 / 51

Page 51: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Basic Probability Theory

For events A and BJoint probability P(A ∩ B) of both events occurringConditional probability P(A|B) of event A occurring given thatevent B has occurred

Schutze: Probabilistic Information Retrieval 16 / 51

Page 52: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Basic Probability Theory

For events A and BJoint probability P(A ∩ B) of both events occurringConditional probability P(A|B) of event A occurring given thatevent B has occurred

Chain rule gives fundamental relationship between joint andconditional probabilities:

P(AB) = P(A ∩ B) = P(A|B)P(B) = P(B |A)P(A)

Schutze: Probabilistic Information Retrieval 16 / 51

Page 53: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Basic Probability Theory

For events A and BJoint probability P(A ∩ B) of both events occurringConditional probability P(A|B) of event A occurring given thatevent B has occurred

Chain rule gives fundamental relationship between joint andconditional probabilities:

P(AB) = P(A ∩ B) = P(A|B)P(B) = P(B |A)P(A)

Similarly for the complement of an event P(A):

P(AB) = P(B |A)P(A)

Schutze: Probabilistic Information Retrieval 16 / 51

Page 54: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Basic Probability Theory

For events A and BJoint probability P(A ∩ B) of both events occurringConditional probability P(A|B) of event A occurring given thatevent B has occurred

Chain rule gives fundamental relationship between joint andconditional probabilities:

P(AB) = P(A ∩ B) = P(A|B)P(B) = P(B |A)P(A)

Similarly for the complement of an event P(A):

P(AB) = P(B |A)P(A)

Partition rule: if B can be divided into an exhaustive set ofdisjoint subcases, then P(B) is the sum of the probabilities ofthe subcases. A special case of this rule gives:

P(B) = P(AB) + P(AB)

Schutze: Probabilistic Information Retrieval 16 / 51

Page 55: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Basic Probability Theory

Schutze: Probabilistic Information Retrieval 17 / 51

Page 56: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Basic Probability Theory

Bayes’ Rule for inverting conditional probabilities:

P(A|B) =P(B |A)P(A)

P(B)=

[

P(B |A)∑

X∈{A,A} P(B |X )P(X )

]

P(A)

Schutze: Probabilistic Information Retrieval 17 / 51

Page 57: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Basic Probability Theory

Bayes’ Rule for inverting conditional probabilities:

P(A|B) =P(B |A)P(A)

P(B)=

[

P(B |A)∑

X∈{A,A} P(B |X )P(X )

]

P(A)

Can be thought of as a way of updating probabilities:

Schutze: Probabilistic Information Retrieval 17 / 51

Page 58: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Basic Probability Theory

Bayes’ Rule for inverting conditional probabilities:

P(A|B) =P(B |A)P(A)

P(B)=

[

P(B |A)∑

X∈{A,A} P(B |X )P(X )

]

P(A)

Can be thought of as a way of updating probabilities:

Start off with prior probability P(A) (initial estimate of howlikely event A is in the absence of any other information)

Schutze: Probabilistic Information Retrieval 17 / 51

Page 59: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Basic Probability Theory

Bayes’ Rule for inverting conditional probabilities:

P(A|B) =P(B |A)P(A)

P(B)=

[

P(B |A)∑

X∈{A,A} P(B |X )P(X )

]

P(A)

Can be thought of as a way of updating probabilities:

Start off with prior probability P(A) (initial estimate of howlikely event A is in the absence of any other information)

Derive a posterior probability P(A|B) after having seen theevidence B , based on the likelihood of B occurring in the twocases that A does or does not hold

Schutze: Probabilistic Information Retrieval 17 / 51

Page 60: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Basic Probability Theory

Bayes’ Rule for inverting conditional probabilities:

P(A|B) =P(B |A)P(A)

P(B)=

[

P(B |A)∑

X∈{A,A} P(B |X )P(X )

]

P(A)

Can be thought of as a way of updating probabilities:

Start off with prior probability P(A) (initial estimate of howlikely event A is in the absence of any other information)

Derive a posterior probability P(A|B) after having seen theevidence B , based on the likelihood of B occurring in the twocases that A does or does not hold

Odds of an event provide a kind of multiplier for how probabilitieschange:

Odds: O(A) =P(A)

P(A)=

P(A)

1− P(A)

Schutze: Probabilistic Information Retrieval 17 / 51

Page 61: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Outline

1 Recap

2 Probabilistic Approach to IR

3 Basic Probability Theory

4 Probability Ranking Principle

5 Appraisal&Extensions

Schutze: Probabilistic Information Retrieval 18 / 51

Page 62: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

The Document Ranking Problem

Schutze: Probabilistic Information Retrieval 19 / 51

Page 63: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

The Document Ranking Problem

Ranked retrieval setup: given a collection of documents, theuser issues a query, and an ordered list of documents isreturned

Schutze: Probabilistic Information Retrieval 19 / 51

Page 64: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

The Document Ranking Problem

Ranked retrieval setup: given a collection of documents, theuser issues a query, and an ordered list of documents isreturned

Assume binary notion of relevance: Rd,q is a randomdichotomous variable, such that

Schutze: Probabilistic Information Retrieval 19 / 51

Page 65: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

The Document Ranking Problem

Ranked retrieval setup: given a collection of documents, theuser issues a query, and an ordered list of documents isreturned

Assume binary notion of relevance: Rd,q is a randomdichotomous variable, such that

Rd,q = 1 if document d is relevant w.r.t query q

Schutze: Probabilistic Information Retrieval 19 / 51

Page 66: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

The Document Ranking Problem

Ranked retrieval setup: given a collection of documents, theuser issues a query, and an ordered list of documents isreturned

Assume binary notion of relevance: Rd,q is a randomdichotomous variable, such that

Rd,q = 1 if document d is relevant w.r.t query q

Rd,q = 0 otherwise

Schutze: Probabilistic Information Retrieval 19 / 51

Page 67: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

The Document Ranking Problem

Ranked retrieval setup: given a collection of documents, theuser issues a query, and an ordered list of documents isreturned

Assume binary notion of relevance: Rd,q is a randomdichotomous variable, such that

Rd,q = 1 if document d is relevant w.r.t query q

Rd,q = 0 otherwise

Probabilistic ranking orders documents decreasingly by theirestimated probability of relevance w.r.t. query: P(R = 1|d , q)

Schutze: Probabilistic Information Retrieval 19 / 51

Page 68: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

The Document Ranking Problem

Ranked retrieval setup: given a collection of documents, theuser issues a query, and an ordered list of documents isreturned

Assume binary notion of relevance: Rd,q is a randomdichotomous variable, such that

Rd,q = 1 if document d is relevant w.r.t query q

Rd,q = 0 otherwise

Probabilistic ranking orders documents decreasingly by theirestimated probability of relevance w.r.t. query: P(R = 1|d , q)

Assume that the relevance of each document is independentof the relevance of other documents

Schutze: Probabilistic Information Retrieval 19 / 51

Page 69: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability Ranking Principle (PRP)

Schutze: Probabilistic Information Retrieval 20 / 51

Page 70: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability Ranking Principle (PRP)

PRP in brief

Schutze: Probabilistic Information Retrieval 20 / 51

Page 71: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability Ranking Principle (PRP)

PRP in brief

If the retrieved documents (w.r.t a query) are rankeddecreasingly on their probability of relevance, then theeffectiveness of the system will be the best that is obtainable

Schutze: Probabilistic Information Retrieval 20 / 51

Page 72: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability Ranking Principle (PRP)

PRP in brief

If the retrieved documents (w.r.t a query) are rankeddecreasingly on their probability of relevance, then theeffectiveness of the system will be the best that is obtainable

PRP in full

Schutze: Probabilistic Information Retrieval 20 / 51

Page 73: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability Ranking Principle (PRP)

PRP in brief

If the retrieved documents (w.r.t a query) are rankeddecreasingly on their probability of relevance, then theeffectiveness of the system will be the best that is obtainable

PRP in full

If [the IR] system’s response to each [query] is a ranking of thedocuments [...] in order of decreasing probability of relevanceto the [query], where the probabilities are estimated asaccurately as possible on the basis of whatever data have beenmade available to the system for this purpose, the overalleffectiveness of the system to its user will be the best that isobtainable on the basis of those data

Schutze: Probabilistic Information Retrieval 20 / 51

Page 74: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model (BIM)

Schutze: Probabilistic Information Retrieval 21 / 51

Page 75: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model (BIM)

Traditionally used with the PRP

Assumptions:

Schutze: Probabilistic Information Retrieval 21 / 51

Page 76: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model (BIM)

Traditionally used with the PRP

Assumptions:

‘Binary’ (equivalent to Boolean): documents and queriesrepresented as binary term incidence vectors

Schutze: Probabilistic Information Retrieval 21 / 51

Page 77: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model (BIM)

Traditionally used with the PRP

Assumptions:

‘Binary’ (equivalent to Boolean): documents and queriesrepresented as binary term incidence vectors

E.g., document d represented by vector ~x = (x1, . . . , xM),where xt = 1 if term t occurs in d and xt = 0 otherwise

Schutze: Probabilistic Information Retrieval 21 / 51

Page 78: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model (BIM)

Traditionally used with the PRP

Assumptions:

‘Binary’ (equivalent to Boolean): documents and queriesrepresented as binary term incidence vectors

E.g., document d represented by vector ~x = (x1, . . . , xM),where xt = 1 if term t occurs in d and xt = 0 otherwiseDifferent documents may have the same vector representation

Schutze: Probabilistic Information Retrieval 21 / 51

Page 79: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model (BIM)

Traditionally used with the PRP

Assumptions:

‘Binary’ (equivalent to Boolean): documents and queriesrepresented as binary term incidence vectors

E.g., document d represented by vector ~x = (x1, . . . , xM),where xt = 1 if term t occurs in d and xt = 0 otherwiseDifferent documents may have the same vector representation

‘Independence’: no association between terms (not true, butpractically works - ‘naive’ assumption of Naive Bayes models)

Schutze: Probabilistic Information Retrieval 21 / 51

Page 80: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary incidence matrix

Anthony Julius The Hamlet Othello Macbeth . . .and Caesar Tempest

CleopatraAnthony 1 1 0 0 0 1Brutus 1 1 0 1 0 0Caesar 1 1 0 1 1 1Calpurnia 0 1 0 0 0 0Cleopatra 1 0 0 0 0 0mercy 1 0 1 1 1 1worser 1 0 1 1 1 0. . .

Each document is represented as a binary vector ∈ {0, 1}|V |.

Schutze: Probabilistic Information Retrieval 22 / 51

Page 81: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model

Schutze: Probabilistic Information Retrieval 23 / 51

Page 82: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model

To make a probabilistic retrieval strategy precise, need to estimatehow terms in documents contribute to relevance

Find measurable statistics (term frequency, documentfrequency, document length) that affect judgments aboutdocument relevance

Schutze: Probabilistic Information Retrieval 23 / 51

Page 83: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model

To make a probabilistic retrieval strategy precise, need to estimatehow terms in documents contribute to relevance

Find measurable statistics (term frequency, documentfrequency, document length) that affect judgments aboutdocument relevance

Combine these statistics to estimate the probability P(R |d , q)of document relevance

Schutze: Probabilistic Information Retrieval 23 / 51

Page 84: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model

To make a probabilistic retrieval strategy precise, need to estimatehow terms in documents contribute to relevance

Find measurable statistics (term frequency, documentfrequency, document length) that affect judgments aboutdocument relevance

Combine these statistics to estimate the probability P(R |d , q)of document relevance

Next: how exactly we can do this

Schutze: Probabilistic Information Retrieval 23 / 51

Page 85: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model

Schutze: Probabilistic Information Retrieval 24 / 51

Page 86: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model

P(R |d , q) is modeled using term incidence vectors as P(R |~x , ~q)

P(R = 1|~x , ~q) =P(~x |R = 1, ~q)P(R = 1|~q)

P(~x |~q)

P(R = 0|~x , ~q) =P(~x |R = 0, ~q)P(R = 0|~q)

P(~x |~q)

P(~x |R = 1, ~q) and P(~x |R = 0, ~q): probability that if arelevant or nonrelevant document is retrieved, then thatdocument’s representation is ~x

Schutze: Probabilistic Information Retrieval 24 / 51

Page 87: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model

P(R |d , q) is modeled using term incidence vectors as P(R |~x , ~q)

P(R = 1|~x , ~q) =P(~x |R = 1, ~q)P(R = 1|~q)

P(~x |~q)

P(R = 0|~x , ~q) =P(~x |R = 0, ~q)P(R = 0|~q)

P(~x |~q)

P(~x |R = 1, ~q) and P(~x |R = 0, ~q): probability that if arelevant or nonrelevant document is retrieved, then thatdocument’s representation is ~x

Use statistics about the document collection to estimate theseprobabilities

Schutze: Probabilistic Information Retrieval 24 / 51

Page 88: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model

P(R |d , q) is modeled using term incidence vectors as P(R |~x , ~q)

P(R = 1|~x , ~q) =P(~x |R = 1, ~q)P(R = 1|~q)

P(~x |~q)

P(R = 0|~x , ~q) =P(~x |R = 0, ~q)P(R = 0|~q)

P(~x |~q)

Schutze: Probabilistic Information Retrieval 25 / 51

Page 89: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model

P(R |d , q) is modeled using term incidence vectors as P(R |~x , ~q)

P(R = 1|~x , ~q) =P(~x |R = 1, ~q)P(R = 1|~q)

P(~x |~q)

P(R = 0|~x , ~q) =P(~x |R = 0, ~q)P(R = 0|~q)

P(~x |~q)

P(R = 1|~q) and P(R = 0|~q): prior probability of retrieving arelevant or nonrelevant document for a query ~q

Schutze: Probabilistic Information Retrieval 25 / 51

Page 90: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model

P(R |d , q) is modeled using term incidence vectors as P(R |~x , ~q)

P(R = 1|~x , ~q) =P(~x |R = 1, ~q)P(R = 1|~q)

P(~x |~q)

P(R = 0|~x , ~q) =P(~x |R = 0, ~q)P(R = 0|~q)

P(~x |~q)

P(R = 1|~q) and P(R = 0|~q): prior probability of retrieving arelevant or nonrelevant document for a query ~q

Estimate P(R = 1|~q) and P(R = 0|~q) from percentage ofrelevant documents in the collection

Schutze: Probabilistic Information Retrieval 25 / 51

Page 91: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model

P(R |d , q) is modeled using term incidence vectors as P(R |~x , ~q)

P(R = 1|~x , ~q) =P(~x |R = 1, ~q)P(R = 1|~q)

P(~x |~q)

P(R = 0|~x , ~q) =P(~x |R = 0, ~q)P(R = 0|~q)

P(~x |~q)

P(R = 1|~q) and P(R = 0|~q): prior probability of retrieving arelevant or nonrelevant document for a query ~q

Estimate P(R = 1|~q) and P(R = 0|~q) from percentage ofrelevant documents in the collection

Since a document is either relevant or nonrelevant to a query,we must have that:

Schutze: Probabilistic Information Retrieval 25 / 51

Page 92: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Binary Independence Model

P(R |d , q) is modeled using term incidence vectors as P(R |~x , ~q)

P(R = 1|~x , ~q) =P(~x |R = 1, ~q)P(R = 1|~q)

P(~x |~q)

P(R = 0|~x , ~q) =P(~x |R = 0, ~q)P(R = 0|~q)

P(~x |~q)

P(R = 1|~q) and P(R = 0|~q): prior probability of retrieving arelevant or nonrelevant document for a query ~q

Estimate P(R = 1|~q) and P(R = 0|~q) from percentage ofrelevant documents in the collection

Since a document is either relevant or nonrelevant to a query,we must have that:

P(R = 1|~x , ~q) + P(R = 0|~x , ~q) = 1

Schutze: Probabilistic Information Retrieval 25 / 51

Page 93: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms (1)

Schutze: Probabilistic Information Retrieval 26 / 51

Page 94: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms (1)

Given a query q, ranking documents by P(R = 1|d , q) ismodeled under BIM as ranking them by P(R = 1|~x , ~q)

Easier: rank documents by their odds of relevance (gives sameranking)

O(R |~x, ~q) =P(R = 1|~x , ~q)

P(R = 0|~x , ~q)=

P(R=1|~q)P(~x |R=1,~q)P(~x |~q)

P(R=0|~q)P(~x |R=0,~q)P(~x |~q)

=P(R = 1|~q)

P(R = 0|~q)·P(~x |R = 1, ~q)

P(~x |R = 0, ~q)

P(R=1|~q)P(R=0|~q) is a constant for a given query - can be ignored

Schutze: Probabilistic Information Retrieval 26 / 51

Page 95: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms (2)

Schutze: Probabilistic Information Retrieval 27 / 51

Page 96: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms (2)

It is at this point that we make the Naive Bayes conditionalindependence assumption that the presence or absence of a word ina document is independent of the presence or absence of any otherword (given the query):

P(~x |R = 1, ~q)

P(~x |R = 0, ~q)=

M∏

t=1

P(xt |R = 1, ~q)

P(xt |R = 0, ~q)

So:

O(R |~x , ~q) = O(R |~q) ·

M∏

t=1

P(xt |R = 1, ~q)

P(xt |R = 0, ~q)

Schutze: Probabilistic Information Retrieval 27 / 51

Page 97: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise

Schutze: Probabilistic Information Retrieval 28 / 51

Page 98: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise

Naive Bayes conditional independence assumption: the presence orabsence of a word in a document is independent of the presence orabsence of any other word (given the query).

Schutze: Probabilistic Information Retrieval 28 / 51

Page 99: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise

Naive Bayes conditional independence assumption: the presence orabsence of a word in a document is independent of the presence orabsence of any other word (given the query).Why is this wrong? Good example?

Schutze: Probabilistic Information Retrieval 28 / 51

Page 100: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise

Naive Bayes conditional independence assumption: the presence orabsence of a word in a document is independent of the presence orabsence of any other word (given the query).Why is this wrong? Good example?PRP assumes that the relevance of each document is independentof the relevance of other documents.

Schutze: Probabilistic Information Retrieval 28 / 51

Page 101: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise

Naive Bayes conditional independence assumption: the presence orabsence of a word in a document is independent of the presence orabsence of any other word (given the query).Why is this wrong? Good example?PRP assumes that the relevance of each document is independentof the relevance of other documents.Why is this wrong? Good example?

Schutze: Probabilistic Information Retrieval 28 / 51

Page 102: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms (3)

Schutze: Probabilistic Information Retrieval 29 / 51

Page 103: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms (3)

Since each xt is either 0 or 1, we can separate the terms:

Schutze: Probabilistic Information Retrieval 29 / 51

Page 104: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms (3)

Since each xt is either 0 or 1, we can separate the terms:

O(R |~x , ~q) = O(R |~q)·∏

t:xt=1

P(xt = 1|R = 1, ~q)

P(xt = 1|R = 0, ~q)·∏

t:xt=0

P(xt = 0|R = 1, ~q)

P(xt = 0|R = 0, ~q)

Schutze: Probabilistic Information Retrieval 29 / 51

Page 105: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms (4)

Schutze: Probabilistic Information Retrieval 30 / 51

Page 106: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms (4)

Let pt = P(xt = 1|R = 1, ~q) be the probability of a termappearing in relevant document

Schutze: Probabilistic Information Retrieval 30 / 51

Page 107: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms (4)

Let pt = P(xt = 1|R = 1, ~q) be the probability of a termappearing in relevant document

Schutze: Probabilistic Information Retrieval 30 / 51

Page 108: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms (4)

Let pt = P(xt = 1|R = 1, ~q) be the probability of a termappearing in relevant document

Let ut = P(xt = 1|R = 0, ~q) be the probability of a termappearing in a nonrelevant document

Schutze: Probabilistic Information Retrieval 30 / 51

Page 109: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms (4)

Let pt = P(xt = 1|R = 1, ~q) be the probability of a termappearing in relevant document

Let ut = P(xt = 1|R = 0, ~q) be the probability of a termappearing in a nonrelevant document

Schutze: Probabilistic Information Retrieval 30 / 51

Page 110: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms (4)

Let pt = P(xt = 1|R = 1, ~q) be the probability of a termappearing in relevant document

Let ut = P(xt = 1|R = 0, ~q) be the probability of a termappearing in a nonrelevant document

Can be displayed as contingency table:

document relevant (R = 1) nonrelevant (R = 0)

Term present xt = 1 pt utTerm absent xt = 0 1− pt 1− ut

Schutze: Probabilistic Information Retrieval 30 / 51

Page 111: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms

Schutze: Probabilistic Information Retrieval 31 / 51

Page 112: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms

Additional simplifying assumption: terms not occurring in thequery are equally likely to occur in relevant and nonrelevantdocuments

If qt = 0, then pt = ut

Now we need only to consider terms in the products that appear inthe query:

O(R |~x , ~q) = O(R |~q) ·∏

t:xt=qt=1

pt

ut·

t:xt=0,qt=1

1− pt

1− ut

Schutze: Probabilistic Information Retrieval 31 / 51

Page 113: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms

Additional simplifying assumption: terms not occurring in thequery are equally likely to occur in relevant and nonrelevantdocuments

If qt = 0, then pt = ut

Now we need only to consider terms in the products that appear inthe query:

O(R |~x , ~q) = O(R |~q) ·∏

t:xt=qt=1

pt

ut·

t:xt=0,qt=1

1− pt

1− ut

The left product is over query terms found in the documentand the right product is over query terms not found in thedocument

Schutze: Probabilistic Information Retrieval 31 / 51

Page 114: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms

Schutze: Probabilistic Information Retrieval 32 / 51

Page 115: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms

Including the query terms found in the document into the rightproduct, but simultaneously dividing by them in the left product,gives:

O(R |~x , ~q) = O(R |~q) ·∏

t:xt=qt=1

pt(1− ut)

ut(1− pt)·∏

t:qt=1

1− pt

1− ut

The left product is still over query terms found in thedocument, but the right product is now over all query terms,hence constant for a particular query and can be ignored.

Schutze: Probabilistic Information Retrieval 32 / 51

Page 116: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms

Including the query terms found in the document into the rightproduct, but simultaneously dividing by them in the left product,gives:

O(R |~x , ~q) = O(R |~q) ·∏

t:xt=qt=1

pt(1− ut)

ut(1− pt)·∏

t:qt=1

1− pt

1− ut

The left product is still over query terms found in thedocument, but the right product is now over all query terms,hence constant for a particular query and can be ignored.

→ The only quantity that needs to be estimated to rankdocuments w.r.t a query is the left product

Schutze: Probabilistic Information Retrieval 32 / 51

Page 117: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms

Including the query terms found in the document into the rightproduct, but simultaneously dividing by them in the left product,gives:

O(R |~x , ~q) = O(R |~q) ·∏

t:xt=qt=1

pt(1− ut)

ut(1− pt)·∏

t:qt=1

1− pt

1− ut

The left product is still over query terms found in thedocument, but the right product is now over all query terms,hence constant for a particular query and can be ignored.

→ The only quantity that needs to be estimated to rankdocuments w.r.t a query is the left product

Hence the Retrieval Status Value (RSV) in this model:

RSVd = log∏

t:xt=qt=1

pt(1 − ut)

ut(1 − pt)=

t:xt=qt=1

logpt(1− ut)

ut(1− pt)

Schutze: Probabilistic Information Retrieval 32 / 51

Page 118: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms

Schutze: Probabilistic Information Retrieval 33 / 51

Page 119: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms

Equivalent: rank documents using the log odds ratios for the termsin the query ct :

ct = logpt(1− ut)

ut(1− pt)= log

pt

(1− pt)− log

ut

1− ut

The odds ratio is the ratio of two odds: (i) the odds of theterm appearing if the document is relevant (pt/(1 − pt)), and(ii) the odds of the term appearing if the document isnonrelevant (ut/(1 − ut))

Schutze: Probabilistic Information Retrieval 33 / 51

Page 120: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms

Equivalent: rank documents using the log odds ratios for the termsin the query ct :

ct = logpt(1− ut)

ut(1− pt)= log

pt

(1− pt)− log

ut

1− ut

The odds ratio is the ratio of two odds: (i) the odds of theterm appearing if the document is relevant (pt/(1 − pt)), and(ii) the odds of the term appearing if the document isnonrelevant (ut/(1 − ut))

ct = 0: term has equal odds of appearing in relevant andnonrelevant docs

Schutze: Probabilistic Information Retrieval 33 / 51

Page 121: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms

Equivalent: rank documents using the log odds ratios for the termsin the query ct :

ct = logpt(1− ut)

ut(1− pt)= log

pt

(1− pt)− log

ut

1− ut

The odds ratio is the ratio of two odds: (i) the odds of theterm appearing if the document is relevant (pt/(1 − pt)), and(ii) the odds of the term appearing if the document isnonrelevant (ut/(1 − ut))

ct = 0: term has equal odds of appearing in relevant andnonrelevant docs

ct positive: higher odds to appear in relevant documents

Schutze: Probabilistic Information Retrieval 33 / 51

Page 122: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Deriving a Ranking Function for Query Terms

Equivalent: rank documents using the log odds ratios for the termsin the query ct :

ct = logpt(1− ut)

ut(1− pt)= log

pt

(1− pt)− log

ut

1− ut

The odds ratio is the ratio of two odds: (i) the odds of theterm appearing if the document is relevant (pt/(1 − pt)), and(ii) the odds of the term appearing if the document isnonrelevant (ut/(1 − ut))

ct = 0: term has equal odds of appearing in relevant andnonrelevant docs

ct positive: higher odds to appear in relevant documents

ct negative: higher odds to appear in nonrelevant documents

Schutze: Probabilistic Information Retrieval 33 / 51

Page 123: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Term weight ct in BIM

Schutze: Probabilistic Information Retrieval 34 / 51

Page 124: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Term weight ct in BIM

ct = log pt(1−pt )

− log ut1−ut

functions as a term weight.

Schutze: Probabilistic Information Retrieval 34 / 51

Page 125: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Term weight ct in BIM

ct = log pt(1−pt )

− log ut1−ut

functions as a term weight.

Retrieval status value for document d : RSVd =∑

xt=qt=1 ct .

Schutze: Probabilistic Information Retrieval 34 / 51

Page 126: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Term weight ct in BIM

ct = log pt(1−pt )

− log ut1−ut

functions as a term weight.

Retrieval status value for document d : RSVd =∑

xt=qt=1 ct .

So BIM and vector space model are identical on anoperational level . . .

Schutze: Probabilistic Information Retrieval 34 / 51

Page 127: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Term weight ct in BIM

ct = log pt(1−pt )

− log ut1−ut

functions as a term weight.

Retrieval status value for document d : RSVd =∑

xt=qt=1 ct .

So BIM and vector space model are identical on anoperational level . . .

. . . except that the term weights are different.

Schutze: Probabilistic Information Retrieval 34 / 51

Page 128: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Term weight ct in BIM

ct = log pt(1−pt )

− log ut1−ut

functions as a term weight.

Retrieval status value for document d : RSVd =∑

xt=qt=1 ct .

So BIM and vector space model are identical on anoperational level . . .

. . . except that the term weights are different.

In particular: we can use the same data structures (invertedindex etc) for the two models.

Schutze: Probabilistic Information Retrieval 34 / 51

Page 129: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

How to compute probability estimates

Schutze: Probabilistic Information Retrieval 35 / 51

Page 130: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

How to compute probability estimates

For each term t in a query, estimate ct in the whole collectionusing a contingency table of counts of documents in the collection,where dft is the number of documents that contain term t:

documents relevant nonrelevant Total

Term present xt = 1 s dft − s dft

Term absent xt = 0 S − s (N − dft)− (S − s) N − dft

Total S N − S N

pt = s/S

ut = (dft − s)/(N − S)

ct = K (N,df t ,S , s) = logs/(S − s)

(dft − s)/((N − dft)− (S − s))

Schutze: Probabilistic Information Retrieval 35 / 51

Page 131: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Avoiding zeros

Schutze: Probabilistic Information Retrieval 36 / 51

Page 132: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Avoiding zeros

If any of the counts is a zero, then the term weight is notwell-defined.

Schutze: Probabilistic Information Retrieval 36 / 51

Page 133: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Avoiding zeros

If any of the counts is a zero, then the term weight is notwell-defined.

Maximum likelihood estimates do not work for rare events.

Schutze: Probabilistic Information Retrieval 36 / 51

Page 134: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Avoiding zeros

If any of the counts is a zero, then the term weight is notwell-defined.

Maximum likelihood estimates do not work for rare events.

To avoid zeros: add 0.5 to each count (expected likelihoodestimation = ELE)

Schutze: Probabilistic Information Retrieval 36 / 51

Page 135: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Avoiding zeros

If any of the counts is a zero, then the term weight is notwell-defined.

Maximum likelihood estimates do not work for rare events.

To avoid zeros: add 0.5 to each count (expected likelihoodestimation = ELE)

For example, use S − s + 0.5 in formula for S − s

Schutze: Probabilistic Information Retrieval 36 / 51

Page 136: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise

Schutze: Probabilistic Information Retrieval 37 / 51

Page 137: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise

Query: Obama health plan

Doc1: Obama rejects allegations about his own bad

health

Doc2: The plan is to visit Obama

Doc3: Obama raises concerns with US health plan

reforms

Schutze: Probabilistic Information Retrieval 37 / 51

Page 138: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise

Query: Obama health plan

Doc1: Obama rejects allegations about his own bad

health

Doc2: The plan is to visit Obama

Doc3: Obama raises concerns with US health plan

reforms

Estimate the probability that the above documents are relevant tothe query. Use a contingency table. These are the only threedocuments in the collection

Schutze: Probabilistic Information Retrieval 37 / 51

Page 139: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Simplifying assumption

Schutze: Probabilistic Information Retrieval 38 / 51

Page 140: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Simplifying assumption

Assuming that relevant documents are a very smallpercentage of the collection, approximate statistics fornonrelevant documents by statistics from the whole collection

Schutze: Probabilistic Information Retrieval 38 / 51

Page 141: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Simplifying assumption

Assuming that relevant documents are a very smallpercentage of the collection, approximate statistics fornonrelevant documents by statistics from the whole collection

Hence, ut (the probability of term occurrence in nonrelevantdocuments for a query) is dft/N and

log[(1− ut)/ut ] = log[(N − dft)/dft ] ≈ logN/df t

Schutze: Probabilistic Information Retrieval 38 / 51

Page 142: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Simplifying assumption

Assuming that relevant documents are a very smallpercentage of the collection, approximate statistics fornonrelevant documents by statistics from the whole collection

Hence, ut (the probability of term occurrence in nonrelevantdocuments for a query) is dft/N and

log[(1− ut)/ut ] = log[(N − dft)/dft ] ≈ logN/df t

This should look familiar to you . . .

Schutze: Probabilistic Information Retrieval 38 / 51

Page 143: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Simplifying assumption

Assuming that relevant documents are a very smallpercentage of the collection, approximate statistics fornonrelevant documents by statistics from the whole collection

Hence, ut (the probability of term occurrence in nonrelevantdocuments for a query) is dft/N and

log[(1− ut)/ut ] = log[(N − dft)/dft ] ≈ logN/df t

This should look familiar to you . . .

The above approximation cannot easily be extended torelevant documents

Schutze: Probabilistic Information Retrieval 38 / 51

Page 144: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability estimates in relevance feedback

Schutze: Probabilistic Information Retrieval 39 / 51

Page 145: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability estimates in relevance feedback

Statistics of relevant documents (pt) in relevance feedbackcan be estimated using maximum likelihood estimation or ELE(add 0.5).

Schutze: Probabilistic Information Retrieval 39 / 51

Page 146: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability estimates in relevance feedback

Statistics of relevant documents (pt) in relevance feedbackcan be estimated using maximum likelihood estimation or ELE(add 0.5).

Use the frequency of term occurrence in known relevantdocuments.

Schutze: Probabilistic Information Retrieval 39 / 51

Page 147: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability estimates in relevance feedback

Statistics of relevant documents (pt) in relevance feedbackcan be estimated using maximum likelihood estimation or ELE(add 0.5).

Use the frequency of term occurrence in known relevantdocuments.

This is the basis of probabilistic approaches to relevancefeedback weighting in a feedback loop

Schutze: Probabilistic Information Retrieval 39 / 51

Page 148: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability estimates in relevance feedback

Statistics of relevant documents (pt) in relevance feedbackcan be estimated using maximum likelihood estimation or ELE(add 0.5).

Use the frequency of term occurrence in known relevantdocuments.

This is the basis of probabilistic approaches to relevancefeedback weighting in a feedback loop

The exercise we just did was a probabilistic relevance feedbackexercise since we were assuming the availability of relevancejudgments.

Schutze: Probabilistic Information Retrieval 39 / 51

Page 149: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability estimates in adhoc retrieval

Schutze: Probabilistic Information Retrieval 40 / 51

Page 150: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability estimates in adhoc retrieval

Ad-hoc retrieval: no user-supplied relevance judgmentsavailable

Schutze: Probabilistic Information Retrieval 40 / 51

Page 151: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability estimates in adhoc retrieval

Ad-hoc retrieval: no user-supplied relevance judgmentsavailable

In this case: assume that pt is constant over all terms xt inthe query and that pt = 0.5

Schutze: Probabilistic Information Retrieval 40 / 51

Page 152: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability estimates in adhoc retrieval

Ad-hoc retrieval: no user-supplied relevance judgmentsavailable

In this case: assume that pt is constant over all terms xt inthe query and that pt = 0.5

Each term is equally likely to occur in a relevant document,and so the pt and (1− pt) factors cancel out in the expressionfor RSV

Schutze: Probabilistic Information Retrieval 40 / 51

Page 153: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability estimates in adhoc retrieval

Ad-hoc retrieval: no user-supplied relevance judgmentsavailable

In this case: assume that pt is constant over all terms xt inthe query and that pt = 0.5

Each term is equally likely to occur in a relevant document,and so the pt and (1− pt) factors cancel out in the expressionfor RSV

Weak estimate, but doesn’t disagree violently withexpectation that query terms appear in many but not allrelevant documents

Schutze: Probabilistic Information Retrieval 40 / 51

Page 154: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability estimates in adhoc retrieval

Ad-hoc retrieval: no user-supplied relevance judgmentsavailable

In this case: assume that pt is constant over all terms xt inthe query and that pt = 0.5

Each term is equally likely to occur in a relevant document,and so the pt and (1− pt) factors cancel out in the expressionfor RSV

Weak estimate, but doesn’t disagree violently withexpectation that query terms appear in many but not allrelevant documents

Combining this method with the earlier approximation for ut ,the document ranking is determined simply by which queryterms occur in documents scaled by their idf weighting

Schutze: Probabilistic Information Retrieval 40 / 51

Page 155: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Probability estimates in adhoc retrieval

Ad-hoc retrieval: no user-supplied relevance judgmentsavailable

In this case: assume that pt is constant over all terms xt inthe query and that pt = 0.5

Each term is equally likely to occur in a relevant document,and so the pt and (1− pt) factors cancel out in the expressionfor RSV

Weak estimate, but doesn’t disagree violently withexpectation that query terms appear in many but not allrelevant documents

Combining this method with the earlier approximation for ut ,the document ranking is determined simply by which queryterms occur in documents scaled by their idf weighting

For short documents (titles or abstracts) in one-pass retrievalsituations, this estimate can be quite satisfactory

Schutze: Probabilistic Information Retrieval 40 / 51

Page 156: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Outline

1 Recap

2 Probabilistic Approach to IR

3 Basic Probability Theory

4 Probability Ranking Principle

5 Appraisal&Extensions

Schutze: Probabilistic Information Retrieval 41 / 51

Page 157: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

History and summary of assumptions

Schutze: Probabilistic Information Retrieval 42 / 51

Page 158: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

History and summary of assumptions

Among the oldest formal models in IR

Schutze: Probabilistic Information Retrieval 42 / 51

Page 159: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

History and summary of assumptions

Among the oldest formal models in IR

Maron & Kuhns, 1960: Since an IR system cannot predict withcertainty which document is relevant, we should deal withprobabilities

Schutze: Probabilistic Information Retrieval 42 / 51

Page 160: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

History and summary of assumptions

Among the oldest formal models in IR

Maron & Kuhns, 1960: Since an IR system cannot predict withcertainty which document is relevant, we should deal withprobabilities

Assumptions for getting reasonable approximations of theneeded probabilities (in the BIM):

Schutze: Probabilistic Information Retrieval 42 / 51

Page 161: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

History and summary of assumptions

Among the oldest formal models in IR

Maron & Kuhns, 1960: Since an IR system cannot predict withcertainty which document is relevant, we should deal withprobabilities

Assumptions for getting reasonable approximations of theneeded probabilities (in the BIM):

Boolean representation of documents/queries/relevance

Schutze: Probabilistic Information Retrieval 42 / 51

Page 162: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

History and summary of assumptions

Among the oldest formal models in IR

Maron & Kuhns, 1960: Since an IR system cannot predict withcertainty which document is relevant, we should deal withprobabilities

Assumptions for getting reasonable approximations of theneeded probabilities (in the BIM):

Boolean representation of documents/queries/relevanceTerm independence

Schutze: Probabilistic Information Retrieval 42 / 51

Page 163: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

History and summary of assumptions

Among the oldest formal models in IR

Maron & Kuhns, 1960: Since an IR system cannot predict withcertainty which document is relevant, we should deal withprobabilities

Assumptions for getting reasonable approximations of theneeded probabilities (in the BIM):

Boolean representation of documents/queries/relevanceTerm independenceOut-of-query terms do not affect retrieval

Schutze: Probabilistic Information Retrieval 42 / 51

Page 164: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

History and summary of assumptions

Among the oldest formal models in IR

Maron & Kuhns, 1960: Since an IR system cannot predict withcertainty which document is relevant, we should deal withprobabilities

Assumptions for getting reasonable approximations of theneeded probabilities (in the BIM):

Boolean representation of documents/queries/relevanceTerm independenceOut-of-query terms do not affect retrievalDocument relevance values are independent

Schutze: Probabilistic Information Retrieval 42 / 51

Page 165: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

How different are vector space and BIM?

Schutze: Probabilistic Information Retrieval 43 / 51

Page 166: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

How different are vector space and BIM?

They are not that different.

Schutze: Probabilistic Information Retrieval 43 / 51

Page 167: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

How different are vector space and BIM?

They are not that different.

In either case you build an information retrieval scheme in theexact same way.

Schutze: Probabilistic Information Retrieval 43 / 51

Page 168: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

How different are vector space and BIM?

They are not that different.

In either case you build an information retrieval scheme in theexact same way.

For probabilistic IR, at the end, you score queries not bycosine similarity and tf-idf in a vector space, but by a slightlydifferent formula motivated by probability theory.

Schutze: Probabilistic Information Retrieval 43 / 51

Page 169: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

How different are vector space and BIM?

They are not that different.

In either case you build an information retrieval scheme in theexact same way.

For probabilistic IR, at the end, you score queries not bycosine similarity and tf-idf in a vector space, but by a slightlydifferent formula motivated by probability theory.

Next: how to add term frequency and length normalization tothe probabilistic model.

Schutze: Probabilistic Information Retrieval 43 / 51

Page 170: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25: Overview

Schutze: Probabilistic Information Retrieval 44 / 51

Page 171: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25: Overview

Okapi BM25 is a probabilistic model that incorporates termfrequency (i.e., it’s nonbinary) and length normalization.

Schutze: Probabilistic Information Retrieval 44 / 51

Page 172: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25: Overview

Okapi BM25 is a probabilistic model that incorporates termfrequency (i.e., it’s nonbinary) and length normalization.

BIM was originally designed for short catalog records of fairlyconsistent length, and it works reasonably in these contexts

Schutze: Probabilistic Information Retrieval 44 / 51

Page 173: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25: Overview

Okapi BM25 is a probabilistic model that incorporates termfrequency (i.e., it’s nonbinary) and length normalization.

BIM was originally designed for short catalog records of fairlyconsistent length, and it works reasonably in these contexts

For modern full-text search collections, a model should payattention to term frequency and document length

Schutze: Probabilistic Information Retrieval 44 / 51

Page 174: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25: Overview

Okapi BM25 is a probabilistic model that incorporates termfrequency (i.e., it’s nonbinary) and length normalization.

BIM was originally designed for short catalog records of fairlyconsistent length, and it works reasonably in these contexts

For modern full-text search collections, a model should payattention to term frequency and document length

BestMatch25 (a.k.a BM25 or Okapi) is sensitive to thesequantities

Schutze: Probabilistic Information Retrieval 44 / 51

Page 175: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25: Overview

Okapi BM25 is a probabilistic model that incorporates termfrequency (i.e., it’s nonbinary) and length normalization.

BIM was originally designed for short catalog records of fairlyconsistent length, and it works reasonably in these contexts

For modern full-text search collections, a model should payattention to term frequency and document length

BestMatch25 (a.k.a BM25 or Okapi) is sensitive to thesequantities

BM25 is one of the most widely used and robust retrievalmodels

Schutze: Probabilistic Information Retrieval 44 / 51

Page 176: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25: Starting point

Schutze: Probabilistic Information Retrieval 45 / 51

Page 177: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25: Starting point

The simplest score for document d is just idf weighting of thequery terms present in the document:

Schutze: Probabilistic Information Retrieval 45 / 51

Page 178: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25: Starting point

The simplest score for document d is just idf weighting of thequery terms present in the document:

Schutze: Probabilistic Information Retrieval 45 / 51

Page 179: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25: Starting point

The simplest score for document d is just idf weighting of thequery terms present in the document:

RSVd =∑

t∈q

logN

dft

Schutze: Probabilistic Information Retrieval 45 / 51

Page 180: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25 basic weighting

Schutze: Probabilistic Information Retrieval 46 / 51

Page 181: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25 basic weighting

Improve idf term [log N/df] by factoring in term frequencyand document length.

RSVd =∑

t∈q

log

[

N

dft

]

·(k1 + 1)tf td

k1((1− b) + b × (Ld/Lave)) + tftd

Schutze: Probabilistic Information Retrieval 46 / 51

Page 182: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25 basic weighting

Improve idf term [log N/df] by factoring in term frequencyand document length.

RSVd =∑

t∈q

log

[

N

dft

]

·(k1 + 1)tf td

k1((1− b) + b × (Ld/Lave)) + tftd

tftd : term frequency in document d

Schutze: Probabilistic Information Retrieval 46 / 51

Page 183: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25 basic weighting

Improve idf term [log N/df] by factoring in term frequencyand document length.

RSVd =∑

t∈q

log

[

N

dft

]

·(k1 + 1)tf td

k1((1− b) + b × (Ld/Lave)) + tftd

tftd : term frequency in document d

Ld (Lave): length of document d (average document length inthe whole collection)

Schutze: Probabilistic Information Retrieval 46 / 51

Page 184: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25 basic weighting

Improve idf term [log N/df] by factoring in term frequencyand document length.

RSVd =∑

t∈q

log

[

N

dft

]

·(k1 + 1)tf td

k1((1− b) + b × (Ld/Lave)) + tftd

tftd : term frequency in document d

Ld (Lave): length of document d (average document length inthe whole collection)

k1: tuning parameter controlling the document termfrequency scaling

Schutze: Probabilistic Information Retrieval 46 / 51

Page 185: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25 basic weighting

Improve idf term [log N/df] by factoring in term frequencyand document length.

RSVd =∑

t∈q

log

[

N

dft

]

·(k1 + 1)tf td

k1((1− b) + b × (Ld/Lave)) + tftd

tftd : term frequency in document d

Ld (Lave): length of document d (average document length inthe whole collection)

k1: tuning parameter controlling the document termfrequency scaling

b: tuning parameter controlling the scaling by documentlength

Schutze: Probabilistic Information Retrieval 46 / 51

Page 186: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise

Schutze: Probabilistic Information Retrieval 47 / 51

Page 187: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Exercise

Interpret BM25 weighting formula for k1 = 0

Interpret BM25 weighting formula for k1 = 1 and b = 0

Interpret BM25 weighting formula for k1 7→ ∞ and b = 0

Interpret BM25 weighting formula for k1 7→ ∞ and b = 1

Schutze: Probabilistic Information Retrieval 47 / 51

Page 188: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25 weighting for long queries

Schutze: Probabilistic Information Retrieval 48 / 51

Page 189: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25 weighting for long queries

For long queries, use similar weighting for query terms

RSVd =∑

t∈q

[

logN

dft

]

·(k1 + 1)tf td

k1((1 − b) + b × (Ld/Lave)) + tf td·(k3 + 1)tf tqk3 + tftq

Schutze: Probabilistic Information Retrieval 48 / 51

Page 190: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25 weighting for long queries

For long queries, use similar weighting for query terms

RSVd =∑

t∈q

[

logN

dft

]

·(k1 + 1)tf td

k1((1 − b) + b × (Ld/Lave)) + tf td·(k3 + 1)tf tqk3 + tftq

tftq : term frequency in the query q

Schutze: Probabilistic Information Retrieval 48 / 51

Page 191: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25 weighting for long queries

For long queries, use similar weighting for query terms

RSVd =∑

t∈q

[

logN

dft

]

·(k1 + 1)tf td

k1((1 − b) + b × (Ld/Lave)) + tf td·(k3 + 1)tf tqk3 + tftq

tftq : term frequency in the query q

k3: tuning parameter controlling term frequency scaling of thequery

Schutze: Probabilistic Information Retrieval 48 / 51

Page 192: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25 weighting for long queries

For long queries, use similar weighting for query terms

RSVd =∑

t∈q

[

logN

dft

]

·(k1 + 1)tf td

k1((1 − b) + b × (Ld/Lave)) + tf td·(k3 + 1)tf tqk3 + tftq

tftq : term frequency in the query q

k3: tuning parameter controlling term frequency scaling of thequery

No length normalization of queries (because retrieval is beingdone with respect to a single fixed query)

Schutze: Probabilistic Information Retrieval 48 / 51

Page 193: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Okapi BM25 weighting for long queries

For long queries, use similar weighting for query terms

RSVd =∑

t∈q

[

logN

dft

]

·(k1 + 1)tf td

k1((1 − b) + b × (Ld/Lave)) + tf td·(k3 + 1)tf tqk3 + tftq

tftq : term frequency in the query q

k3: tuning parameter controlling term frequency scaling of thequery

No length normalization of queries (because retrieval is beingdone with respect to a single fixed query)

The above tuning parameters should ideally be set to optimizeperformance on a development test collection. In the absenceof such optimization, experiments have shown reasonablevalues are to set k1 and k3 to a value between 1.2 and 2 andb = 0.75

Schutze: Probabilistic Information Retrieval 48 / 51

Page 194: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Which ranking model should I use?

Schutze: Probabilistic Information Retrieval 49 / 51

Page 195: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Which ranking model should I use?

I want something basic and simple → use vector space withtf-idf weighting.

Schutze: Probabilistic Information Retrieval 49 / 51

Page 196: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Which ranking model should I use?

I want something basic and simple → use vector space withtf-idf weighting.

I want to use a state-of-the-art ranking model with excellentperformance → use language models or BM25 with tunedparameters

Schutze: Probabilistic Information Retrieval 49 / 51

Page 197: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Which ranking model should I use?

I want something basic and simple → use vector space withtf-idf weighting.

I want to use a state-of-the-art ranking model with excellentperformance → use language models or BM25 with tunedparameters

In between: BM25 or language models with no or just onetuned parameter

Schutze: Probabilistic Information Retrieval 49 / 51

Page 198: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Take-away today

Probabilistically grounded approach to IR

Probability Ranking Principle

Models: BIM, BM25

Assumptions these models make

Schutze: Probabilistic Information Retrieval 50 / 51

Page 199: Introduction to Information Retrieval ` `%%%`#`&12 ...hs/teach/14s/ir/pdf/11prob.pdf · Probabilistic Approach to Retrieval Given a user information need (represented as a query)

Recap Probabilistic Approach to IR Basic Probability Theory Probability Ranking Principle Appraisal&Extensions

Resources

Chapter 11 of IIR

Resources at http://cislmu.org

Schutze: Probabilistic Information Retrieval 51 / 51