Repository navigation
Commit 1f15346
Make the posterior-concentration argument visible and concrete (#917)
* Make the posterior-concentration argument visible and concrete
Two fixes to the "Why the posterior concentrates" section of prob_meaning:
- The opening referred to "the patterns above", but those plots lived
inside the pm_ex3 solution dropdown (collapsed by default). Move the
mean/std figure out of the solution into this always-visible section
and reword the opening so it stands on its own.
- The section gave the generic beta mean/variance in terms of (alpha,
beta) — which are the *prior* parameters, so it actually displayed the
prior's moments, not the posterior's. Substitute the posterior
parameters (alpha+k, beta+n-k) and take the limit explicitly: the mean
-> 0.4 since k/n -> 0.4, and the variance ~ theta(1-theta)/n -> 0. Now
the stated convergence is shown, not merely asserted.
Verified with jupytext export + headless execution.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
* Add pointer, ground the analysis section, box-and-whisker coverage plot
- Add a one-line pointer from the pm_ex3 part-f solution to the
"Why the posterior concentrates" section.
- Open that section with a back-reference to the solution of Exercise 3
("In the solution to pm_ex3 we watched ..."), since the concentration
it discusses is shown in a solution box that is collapsed by default.
- Introduce the coverage-interval plot with a lead-in sentence (it
previously followed the mean/std figure with none).
- Replace the 5th/95th-quantile scatter with a box-and-whisker plot
(median, IQR, 5-95% whiskers) built from the analytical posterior
quantiles, with the true theta marked.
Verified with jupytext export + headless execution.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>1 parent 398a404 commit 1f15346
1 file changed
Lines changed: 57 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
| 554 | + | |
555 | 555 | | |
556 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
557 | 598 | | |
558 | 599 | | |
559 | 600 | | |
| |||
578 | 619 | | |
579 | 620 | | |
580 | 621 | | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
| 622 | + | |
587 | 623 | | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
| 624 | + | |
603 | 625 | | |
604 | 626 | | |
605 | | - | |
606 | | - | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
607 | 633 | | |
608 | 634 | | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
616 | 639 | | |
617 | | - | |
618 | | - | |
619 | | - | |
| 640 | + | |
| 641 | + | |
620 | 642 | | |
621 | 643 | | |
622 | 644 | | |
| |||
0 commit comments