Skip to content

[action-translation] resync: mccall_fitted_vfi.md#132

Merged
mmcky merged 4 commits into
mainfrom
resync/mccall_fitted_vfi
Jul 19, 2026
Merged

[action-translation] resync: mccall_fitted_vfi.md#132
mmcky merged 4 commits into
mainfrom
resync/mccall_fitted_vfi

Conversation

@mmcky

@mmcky mmcky commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Forward Resync: mccall_fitted_vfi.md

Source: QuantEcon/lecture-python.mystlectures/mccall_fitted_vfi.md
Source commit: 0bfcac8
This PR resyncs the translation to match the current source document.

Reason: The two documents describe entirely different implementations. The English source uses JAX, CRRA utility, a continuous Markov wage process W_t=exp(X_t) with AR(1) X_t, Monte Carlo integration with fixed Z draws, and includes extensive simulation sections (single agent dynamics, cross-sectional analysis, visualization/histograms) plus exercises on c and γ. The Chinese target uses Numba/jitclass, log utility, a lognormal iid wage draw model, different Bellman equations (bell1mcmc/bell2mcmc with scalar d), no simulation sections at all, and different exercises (varying μ of lognormal, and mean-preserving spread with uniform distribution and s). This is essentially a different (likely older) version of the lecture — the target both lacks large portions of source content (JAX code, simulation analysis, correct exercises) and contains substantial unique content (jitclass model, lognormal draws, mean-preserving spread exercise) not present in the source at all.

Changes

Whole-file resync applied. The entire document was resynced in a single pass.


Created by action-translation forward resync

Copilot AI review requested due to automatic review settings July 18, 2026 08:15
@mmcky mmcky added action-translation-sync Auto-created by action-translation resync Forward resync labels Jul 18, 2026
@netlify

netlify Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit 36dad68
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/6a5c131501bb560008aaa601
😎 Deploy Preview https://deploy-preview-132--astonishing-narwhal-a8fc64.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR forward-resyncs the Chinese lecture mccall_fitted_vfi.md to match the current upstream (English) source, replacing the prior (older / different-model) content with the newer JAX-based continuous Markov wage process + fitted value function iteration exposition and added simulation/exercise sections.

Changes:

  • Replaced the lecture’s model/solution/implementation with the upstream JAX + CRRA + continuous Markov wage process version, including Monte Carlo integration and simulation sections.
  • Added translation front-matter metadata (translation:) and updated section structure/headings accordingly.
  • Added translation sync state tracking file under .translate/state/.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
lectures/mccall_fitted_vfi.md Whole-lecture resync to upstream content (JAX implementation, revised model, simulations, updated exercises).
.translate/state/mccall_fitted_vfi.md.yml Records resync metadata (source SHA, date, tool/model info).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +39 to +40
```{include} _admonition/gpu.md
```
Comment on lines +49 to +52
本讲座延续了{doc}`前一讲 <mccall_model_with_separation>`中介绍的带有离职情形的工作搜寻模型。

那一讲将外生的工作离职事件与马尔可夫工资报价过程结合了起来。

Comment thread lectures/mccall_fitted_vfi.md Outdated
## 模型

该模型与我们{doc}`之前学习的 <mccall_model_with_separation>`带有离职情形的McCall模型相同,除了工资分布是连续的
假设读者已经熟悉{doc}`mccall_model_with_sep_markov`的内容,该模型可以概括如下
Comment thread lectures/mccall_fitted_vfi.md Outdated
Comment on lines +114 to +118
与{doc}`mccall_model_with_sep_markov`相比,唯一真正的变化是我们用积分代替了求和。

### 值函数迭代

以及
在{doc}`离散情形 <mccall_model_with_sep_markov>`中,我们最终对贝尔曼算子进行迭代
Comment thread lectures/mccall_fitted_vfi.md Outdated

以下是一个函数,利用求得的解$v_u$来计算我们感兴趣的其余函数:$v_e$,以及延续价值函数$h$。

在将求和替换为积分之后,我们使用与{doc}`离散情形 <mccall_model_with_sep_markov>`中相同的表达式。
Comment on lines +94 to +96
from typing import NamedTuple
from functools import partial
import quantecon as qe
@mmcky mmcky added the action-translation PRs created by QuantEcon/action-translation label Jul 18, 2026
@github-actions

github-actions Bot commented Jul 18, 2026

Copy link
Copy Markdown

@github-actions
github-actions Bot temporarily deployed to pull request July 18, 2026 10:31 Inactive
The resynced file keeps Chinese plot labels but reverted the import
cell to the source's exact form, losing the Source Han Serif setup -
Chinese in figures would render as missing glyphs. Residual #107
class found in the merge review; applied wave-wide.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 18, 2026

Copy link
Copy Markdown

✅ Translation Quality Review

Verdict: PASS | Model: claude-sonnet-5 | Date: 2026-07-18


📝 Translation Quality

Criterion Score
Accuracy 9/10
Fluency 9/10
Terminology 9/10
Formatting 9/10
Overall 9/10

Summary: This is a high-quality, accurate translation of a technically dense document. Mathematical content, code blocks, and MyST formatting are well preserved. Terminology is consistent with the glossary and standard usage. Minor points include an unexplained 'intermediate:' prefix added to some doc cross-references (differing from the source) and a slightly restructured sentence in the Fitting section, plus additional font-setup lines in the imports cell not found in the source. These are minor issues relative to the overall strong fidelity and fluency of the translation. Mathematical notation, LaTeX expressions, and code cells are preserved accurately and completely across the whole document. Technical terminology (贴现因子, 值函数迭代, 保留工资, 蒙特卡洛积分, 横截面, etc.) is applied consistently and matches standard economics/CS Chinese conventions. Code comments within code cells are naturally and accurately translated, maintaining technical precision (e.g., '拆解模型参数', '已就业路径/失业路径'). The translation of nuanced explanatory passages (e.g., explaining fitted VFI steps, unemployment simulation logic) reads fluently and preserves logical flow from the source.

Suggestions:

  • Model section: '假设读者已经熟悉{doc}intermediate:mccall_model_with_sep_markov的内容' — the source uses {doc}mccall_model_with_sep_markov`` without the 'intermediate:' prefix; verify this cross-reference prefix is intentional/consistent with the doc structure, as it appears in multiple places (Model section, Value function iteration section, compute_solution_functions section) and differs from the English source's plain reference.
  • Fitting section: '对于函数近似方案,我们需要考虑两个关键点:一是要能够准确地近似每个$v$,二是要能够有效地融入到上述整个迭代算法中' — this restructures the source sentence 'What's important here is that the function approximation scheme must not only produce a good approximation to each $v$, but also that it combines well with the broader iteration algorithm described above' into a numbered-point style; while accurate in meaning, consider a closer rendering such as '这里重要的是,函数近似方案不仅要能很好地近似每个$v$,还要能与上述更广泛的迭代算法很好地结合' for tighter fidelity to sentence structure.
  • Imports code cell: the translation adds extra font-configuration lines (matplotlib font imports/settings) not present in the English source's import block. This is a content addition beyond translation scope, though likely intentional for CJK rendering support in the notebook.

🔍 Diff Quality

Check Status
Scope Correct
Position Correct
Structure Preserved
Heading-map Correct
Overall 10/10

Summary: The target document has been correctly resynced to match the current source's structure, content, and translation metadata.


This review was generated automatically by action-translation review mode.

These {doc} targets exist only in lecture-python.myst until Phase 2
translates them; qualifying with the intermediate: intersphinx prefix
gives working links now, and a future resync restores local refs once
the targets exist. Program decision recorded 2026-07-18 (Matt).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions
github-actions Bot temporarily deployed to pull request July 18, 2026 11:33 Inactive
@github-actions
github-actions Bot temporarily deployed to pull request July 19, 2026 00:15 Inactive
@mmcky
mmcky merged commit 1e68901 into main Jul 19, 2026
7 checks passed
@mmcky
mmcky deleted the resync/mccall_fitted_vfi branch July 19, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action-translation PRs created by QuantEcon/action-translation action-translation-sync Auto-created by action-translation resync Forward resync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants