QuantEcon / QuantEcon/lecture-python.myst

prob_meaning: state equivalence of sequential and batch posterior updates

Open Beginner friendly
#880 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TeX
Stars
123
Forks
57
Avg merge
3d 10h
Merged PRs (30d)
11

Description

In lectures/prob_meaning.md, the lecture updates the posterior sequentially (one Bernoulli observation at a time), but the exercise solutions use the binomial likelihood over n draws. The equivalence between these two approaches — that updating n times after each Bernoulli observation gives the same posterior as updating once using a Binomial over n draws — is never stated explicitly.

This follows from Beta-Binomial conjugacy: the posterior depends only on the sufficient statistic (k heads in n flips), not on the order of updating. A brief remark after the n-step posterior derivation would make this connection clear for the reader.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open lectures/prob_meaning.md and read the n-step posterior derivation alongside the exercise solution's binomial likelihood. Add a brief remark explaining that sequential Bernoulli updates and one Binomial update produce the same posterior because the sufficient statistic is the number of heads, regardless of order.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.