Information Retrieval: Venkatesh Vinayakarao
Information Retrieval: Venkatesh Vinayakarao
Information Retrieval: Venkatesh Vinayakarao
com/
Information Retrieval
Venkatesh Vinayakarao
Term: Aug – Sep, 2019
Chennai Mathematical Institute
But the funny thing was half the time they’d be askin’ me.
“What’s the crowd for, Mac?” they would say. And I’d just
look at them.
If normal things stop happening, if
we lose regularities in life, our
planet could become unlivable!
Time for Action
• At this juncture, it was inevitable that Congress should
be called on for action.
Euler Diagram
Quiz: Conditional Probability
• What is P(A|B2)?
Euler Diagram
Revisiting Probability
• Developers in two companies are distributed as
follows. Compute Joint Probabilities.
Java C Total Java C Total
Company-X 1 17 18 Company-X 0.013 0.227 0.24
Company-Y 37 20 57 Company-Y ?? ?? ??
Total 38 37 75 Total 0.506 ?? ??
• P(Company-Y|Java) = ??
• Is P(Company-Y|Java) == P(Java|Company-Y) ?
Revisiting Probability
• Developers in two companies
Euler Diagram
Reading
Venkatesh Vinayakarao
Agenda
Updating Beliefs using Probability Theory
Role of Beta Distributions
Data None H H H H
Observed
Belief Fair Skewed More Even Even Even
Coin-2 Skewed More… More…
Prior Belief
Belief Updates
Priors
• Priors can be strong or weak
Weak Prior
A few observations sufficient to
New Coin change our belief significantly.
Strong Prior
Coin is lab tested for 1 Million Tosses.
50% H, 50% T observed.
One more observation will not
change our belief significantly.
HyperParameter
• Prior probability (of Heads) could be anything:
• O.5 → Fair Coin
• 0.25 → Skewed towards Tails
• 0.75 → Skewed towards Heads
• 1 → Head is guaranteed!
• 0 → Both sides are Tails.
Belief ≠ observation
Bayes’ Rule
θ𝑧 1 − θ 𝑛−𝑧
z Heads in
N trials
Prior Posterior
beta(a,b) beta(a+z,b+N-z)
d is relevant if
P(R=1|d,q) > P(R=0|d,q)
𝑃 𝑑 𝑅 = 1, 𝑞 𝑃(𝑅 = 1|𝑞)
𝑃 𝑅 = 1 𝑑, 𝑞 =
𝑃(𝑑|𝑞)
Bayes Rule
Quiz
𝑃 𝑑 𝑅 = 1, 𝑞 𝑃(𝑅 = 1|𝑞)
𝑃 𝑅 = 1 𝑑, 𝑞 =
𝑃(𝑑|𝑞)
Bayes Rule
• P(d=Taj|R=1,q) = ?
• P(R=1|q) = ?
• P(d|q) = ?