ArticleslgStudy

science

Query likelihood model

Query likelihood model is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Query likelihood model rather than just read about it. In short: The query likelihood model is a language model used in information retrieval. A language model is constructed for each document in the collection.

Key takeaways

  • Query likelihood model belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Query likelihood model to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Query likelihood model from memory before moving on to harder problems.

Reference excerpt

The query likelihood model is a language model used in information retrieval. A language model is constructed for each document in the collection. It is then possible to rank each document by the probability of specific documents given a query. This is interpreted as being the likelihood of a document being relevant given a query.

Calculating the likelihood Using Bayes' rule, the probability P {\displaystyle P} of a document d {\displaystyle d} , given a query q {\displaystyle q} can be written as follows:

P ( d | q ) = P ( q | d ) P ( d ) P ( q ) {\displaystyle P(d|q)={\frac {P(q|d)P(d)}{P(q)}}}

Since the probability of the query P ( q ) {\displaystyle P(q)} is the same for all documents, this can be ignored. Further, it is typical to assume that the probability of documents is uniform. Thus, P ( d ) {\displaystyle P(d)} is also ignored.

P ( d | q ) ∝ P ( q | d ) {\displaystyle P(d|q)\propto P(q|d)}

Documents are then ranked by the probability that a query is observed as a random sample from the document model. The multinomial unigram language model is commonly used to achieve this. We have:

P ( q | M d ) = K q ∏ t ∈ V P ( t | M d ) t f t , q {\displaystyle P(q|M_{d})=K_{q}\prod _{t\in V}P(t|M_{d})^{tf_{t,q}}} ,where the multinomial coefficient is K q = L q ! / ( t f t 1 , q ! t f t 2 , q ! . . . t f t N , q ! ) {\displaystyle K_{q}=L_{q}!/(tf_{t1,q}!tf_{t2,q}!...tf_{tN,q}!)} for query q {\displaystyle q} , and L q = ∑ 1 ≤ i ≤ N t f t i , q {\displaystyle L_{q}=\sum _{1\leq i\leq N}tf_{t_{i},q}} is the length of query q {\displaystyle q} given the term frequencies t f {\displaystyle tf} in the query vocabulary N {\displaystyle N} . In practice the multinomial coefficient is usually removed from the calculation. The reason is that it is a constant for a given bag of words (such as all the words from a specific document d {\displaystyle d} ). The language model M d {\displaystyle M_{d}} should be the true language model calculated from the distribution of words underlying each retrieved document. In practice this language model is unknown, so it is usually approximated by considering each term (unigram) from the retrieved document together with its probability of appearance. So P ( t | M d ) {\displaystyle P(t|M_{d})} is the probability of term t {\displaystyle t} being generated by the language model M d {\displaystyle M_{d}} of document d {\displaystyle d} . This probability is multiplied for all terms from query q {\displaystyle q} to get a rank for document d {\displaystyle d} in the interval [ 0 , 1 ] {\displaystyle [0,1]} . The calculation is repeated for all documents to create a ranking of all documents in the document collection.

References

Worked examples

Example 1 — a first encounter with Query likelihood model

Start with the simplest possible case. Write down what Query likelihood model claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Query likelihood model before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Query likelihood model ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Query likelihood model

In research
Query likelihood model appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Query likelihood model in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Query likelihood model is common in secondary-school and first-year university syllabi. It links to neighbouring topics Information retrieval techniques, Library and information science stubs, so understanding it makes those chapters shorter.
In everyday life
Look for Query likelihood model outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Query likelihood model in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Query likelihood model means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Query likelihood model out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Query likelihood model in simple terms?

The query likelihood model is a language model used in information retrieval. A language model is constructed for each document in the collection.

Why does Query likelihood model matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Query likelihood model?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Query likelihood model.

Tags

  • Information retrieval techniques
  • Library and information science stubs

Keep exploring