From 65b4ac2d906375e950d9b27d55c031157e015558 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Sat, 18 Jul 2026 17:54:05 +1000 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=94=84=20resync=20likelihood=5Fratio?= =?UTF-8?q?=5Fprocess.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../state/likelihood_ratio_process.md.yml | 6 +++++ lectures/likelihood_ratio_process.md | 27 ++++++++++++++++--- 2 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 .translate/state/likelihood_ratio_process.md.yml diff --git a/.translate/state/likelihood_ratio_process.md.yml b/.translate/state/likelihood_ratio_process.md.yml new file mode 100644 index 00000000..6b7b4c7a --- /dev/null +++ b/.translate/state/likelihood_ratio_process.md.yml @@ -0,0 +1,6 @@ +source-sha: a8966965b2649d470ea144150ca5fd5d520b5345 +synced-at: "2026-07-18" +model: claude-sonnet-5 +mode: RESYNC +section-count: 10 +tool-version: 0.17.0 diff --git a/lectures/likelihood_ratio_process.md b/lectures/likelihood_ratio_process.md index c3f3f3bb..97c9751f 100644 --- a/lectures/likelihood_ratio_process.md +++ b/lectures/likelihood_ratio_process.md @@ -9,6 +9,26 @@ kernelspec: display_name: Python 3 (ipykernel) language: python name: python3 +translation: + title: 似然比过程 + headings: + Overview: 概述 + Likelihood Ratio Process: 似然比过程 + Nature permanently draws from density g: 当自然永久从密度g中抽取时 + Peculiar property: 特殊性质 + Nature permanently draws from density f: 自然永久从密度f中抽样 + Likelihood ratio test: 似然比检验 + Likelihood ratio test::A third distribution $h$: 第三个分布 $h$ + Likelihood ratio test::A helpful formula: 一个有用的公式 + Hypothesis testing and classification: 假设检验和分类 + Hypothesis testing and classification::Model selection mistake probability: 模型选择错误概率 + Hypothesis testing and classification::Classification: 分类 + Hypothesis testing and classification::Error probability and divergence measures: 误差概率和散度度量 + Markov chains: 马尔可夫链 + Markov chains::KL divergence rate: KL散度率 + Markov chains::Simulations: 模拟 + Related lectures: 相关讲座 + Exercises: 练习 --- (likelihood_ratio_process)= @@ -1223,7 +1243,7 @@ plt.show() 显然,$e^{-C(f,g)T}$是误差率的上界。 -在`{doc}`divergence_measures`中,我们还研究了**Jensen-Shannon散度**作为分布之间的对称距离度量。 +在{doc}`divergence_measures`中,我们还研究了**Jensen-Shannon散度**作为分布之间的对称距离度量。 我们可以使用Jensen-Shannon散度来测量分布$f$和$g$之间的距离,并计算它与模型选择错误概率的协方差。 @@ -1622,7 +1642,7 @@ markov_results = analyze_markov_chains(P_f, P_g) 似然过程在贝叶斯学习中扮演重要角色,正如在{doc}`likelihood_bayes`中所描述的,并在{doc}`odu`中得到应用。 -似然比过程是Lawrence Blume和David Easley回答他们提出的问题"如果你那么聪明,为什么不富有?" {cite}`blume2006if`的核心,这是讲座{doc}`likelihood_ratio_process_2`的主题。 +似然比过程是Lawrence Blume和David Easley回答他们提出的问题"如果你那么聪明,为什么不富有?" {cite}`Blume_Easley2006`的核心,这是讲座{doc}`likelihood_ratio_process_2`的主题。 似然比过程也出现在{doc}`advanced:additive_functionals`中,其中包含了另一个关于上述似然比过程**特殊性质**的说明。 @@ -1754,5 +1774,4 @@ $$ 因此通过类似的推理 $L_t \to 0$ 几乎必然成立。 ```{solution-end} -``` - +``` \ No newline at end of file From 1fad9da87dad90e60de8d4dc34aaa24ca8b3d0b5 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Sat, 18 Jul 2026 20:30:59 +1000 Subject: [PATCH 2/5] Add missing 'import matplotlib as mpl' for the i18n font config The resync kept the CJK font-configuration block but dropped the mpl import it depends on - a NameError at execution that non-strict builds swallow. Found sweeping the wave for the pattern behind zh-cn#97's December fixes. Co-Authored-By: Claude Fable 5 --- lectures/likelihood_ratio_process.md | 1 + 1 file changed, 1 insertion(+) diff --git a/lectures/likelihood_ratio_process.md b/lectures/likelihood_ratio_process.md index 97c9751f..1c0a0cd3 100644 --- a/lectures/likelihood_ratio_process.md +++ b/lectures/likelihood_ratio_process.md @@ -73,6 +73,7 @@ translation: ```{code-cell} ipython3 import matplotlib.pyplot as plt FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf" +import matplotlib as mpl mpl.font_manager.fontManager.addfont(FONTPATH) plt.rcParams['font.family'] = ['Source Han Serif SC'] From 57e8f75a8b93ae88b9b2c1bf0c03e39c47aefd36 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Sun, 19 Jul 2026 14:04:20 +1000 Subject: [PATCH 3/5] Restore trailing newline (engine issue tracked in QuantEcon/action-translation#116) Co-Authored-By: Claude Fable 5 --- lectures/likelihood_ratio_process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/likelihood_ratio_process.md b/lectures/likelihood_ratio_process.md index 1c0a0cd3..c9a9f798 100644 --- a/lectures/likelihood_ratio_process.md +++ b/lectures/likelihood_ratio_process.md @@ -1775,4 +1775,4 @@ $$ 因此通过类似的推理 $L_t \to 0$ 几乎必然成立。 ```{solution-end} -``` \ No newline at end of file +``` From 5a14694914e8d5623a8b4469571fcbc5ee529eb7 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Sun, 19 Jul 2026 14:35:07 +1000 Subject: [PATCH 4/5] Add missing bibtex key Blume_Easley2006 to fix dangling citation The resync of likelihood_ratio_process.md pulled in a {cite}`Blume_Easley2006` reference from upstream, but the shared quant-econ.bib was not synced, so the strict build (-W) failed on "could not find bibtex key". Entry copied verbatim from QuantEcon/lecture-python.myst. Co-Authored-By: Claude Fable 5 --- lectures/_static/quant-econ.bib | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lectures/_static/quant-econ.bib b/lectures/_static/quant-econ.bib index 0fd46856..8c66aa22 100644 --- a/lectures/_static/quant-econ.bib +++ b/lectures/_static/quant-econ.bib @@ -2645,3 +2645,14 @@ @article{fischer2024improving journal={arXiv preprint arXiv:2410.16076}, year={2024} } + +@article{Blume_Easley2006, + author = {Blume, Lawrence and Easley, David}, + title = {If You're So Smart, Why Aren't You Rich? {B}elief Selection in Complete and Incomplete Markets}, + journal = {Econometrica}, + volume = {74}, + number = {4}, + pages = {929--966}, + year = {2006} +} + From b13aaab34042acb925c499642573cc2da1ef3021 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Sun, 19 Jul 2026 15:26:30 +1000 Subject: [PATCH 5/5] Align quant-econ.bib to canonical union to avoid EOF merge conflicts All four bibtex keys the wave needs (Lucas_Prescott_1971, Blume_Easley2006, MaCurdy1982, Meghir2004) are now present identically across the affected branches so the resync PRs merge without append-at-EOF conflicts. Entries copied verbatim from QuantEcon/lecture-python.myst. Co-Authored-By: Claude Fable 5 --- lectures/_static/quant-econ.bib | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/lectures/_static/quant-econ.bib b/lectures/_static/quant-econ.bib index 8c66aa22..7c481edf 100644 --- a/lectures/_static/quant-econ.bib +++ b/lectures/_static/quant-econ.bib @@ -2646,6 +2646,17 @@ @article{fischer2024improving year={2024} } +@article{Lucas_Prescott_1971, + author = {Lucas, Robert E., Jr. and Prescott, Edward C.}, + title = {Investment under Uncertainty}, + journal = {Econometrica}, + volume = {39}, + number = {5}, + pages = {659--681}, + year = {1971} +} + + @article{Blume_Easley2006, author = {Blume, Lawrence and Easley, David}, title = {If You're So Smart, Why Aren't You Rich? {B}elief Selection in Complete and Incomplete Markets}, @@ -2656,3 +2667,25 @@ @article{Blume_Easley2006 year = {2006} } +@article{MaCurdy1982, + title={The use of time series processes to model the error structure of earnings in a longitudinal data analysis}, + author={MaCurdy, Thomas E.}, + journal={Journal of Econometrics}, + volume={18}, + number={1}, + pages={83--114}, + year={1982}, + publisher={Elsevier} +} + +@article{Meghir2004, + title={Income variance dynamics and heterogeneity}, + author={Meghir, Costas and Pistaferri, Luigi}, + journal={Econometrica}, + volume={72}, + number={1}, + pages={1--32}, + year={2004}, + publisher={Wiley Online Library} +} +