You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Link ar1_turningpts to ar1_bayes and improve exposition (#969)
Redone on top of the numpyro/JAX rewrite of ar1_turningpts (#584).
- Cross-reference ar1_bayes from ar1_turningpts (overview, model setup,
and posterior section) and add a forward {seealso} link back
- Frame the posterior computation as the "conditioning assumption" of
ar1_bayes, apt here since the path starts from an atypical y_0
- Match the AR(1) model introduction to the bulleted style of ar1_bayes
(and write IID rather than i.i.d.)
- Add a Conclusion and interpretation for the original/extended Wecker
figures, tying back to the two sources of uncertainty
Note: N_t is already defined and figures already use MyST captions in
the rewritten lecture, so those earlier fixes are no longer needed.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: lectures/ar1_bayes.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -584,3 +584,7 @@ A simple rule of thumb:
584
584
585
585
- use the conditioning assumption when early observations look transient or the starting point may be atypical;
586
586
- use the stationary assumption when you are confident the process has been running near its long-run behaviour.
587
+
588
+
```{seealso}
589
+
{doc}`ar1_turningpts` builds on the posterior computed here to forecast nonlinear sample-path statistics of an AR(1) process, such as the time until the next turning point.
where the scalars $\rho$ and $\sigma$ satisfy $|\rho| < 1$ and $\sigma > 0$;
79
-
$\{\epsilon_{t+1}\}$ is a sequence of i.i.d. normal random variables with mean $0$ and variance $1$.
82
+
where
83
+
84
+
* the scalars $\rho$ and $\sigma$ satisfy $|\rho| < 1$ and $\sigma > 0$
85
+
* $\{\epsilon_{t+1}\}$ is a sequence of IID normal random variables with mean $0$ and variance $1$.
80
86
81
87
The initial condition $y_{0}$ is a known number.
82
88
@@ -447,7 +453,11 @@ $$
447
453
448
454
The next code cells use `numpyro` to compute the time $t$ posterior distribution of $\rho, \sigma$.
449
455
450
-
Note that in defining the likelihood function, we choose to condition on the initial value $y_0$.
456
+
We construct this posterior just as in {doc}`ar1_bayes`, to which we refer for a detailed discussion.
457
+
458
+
As there, in defining the likelihood function we condition on the initial value $y_0$.
459
+
460
+
This is the **conditioning assumption** of {doc}`ar1_bayes`, and it is the appropriate choice here because our initial path starts from an atypical value $y_0 = 10$.
Apart from the top-left panel, which repeats the initial path and coverage intervals, each panel shows the predictive distribution of one sample path statistic.
680
+
681
+
These are computed by simulating many future paths with the parameters held fixed at their true values.
682
+
683
+
The distributions therefore reflect only the uncertainty that comes from future shocks.
684
+
669
685
## Extended Wecker Method
670
686
671
687
Now we apply our "extended" Wecker method based on predictive densities of $y$ defined by
The panels show the same statistics, but now each future path is simulated with parameters drawn from the posterior.
755
+
756
+
These distributions therefore combine two sources of uncertainty: randomness in future shocks and our uncertainty about $(\rho, \sigma)$.
757
+
738
758
## Comparison
739
759
740
760
Finally, we plot both the original Wecker method and the extended method with parameter values drawn from the posterior together to compare the differences that emerge from pretending to know parameter values when they are actually uncertain.
The two sets of predictive distributions reveal the cost of pretending that we know the parameters.
778
+
779
+
The extended Wecker method draws $(\rho, \sigma)$ from their posterior each time it simulates a future path.
780
+
781
+
It therefore layers parameter uncertainty on top of the shock uncertainty already present in the original method.
782
+
783
+
As a result, its predictive distributions are more dispersed than those computed with the parameters fixed at their true values.
784
+
785
+
## Conclusion
786
+
787
+
This lecture combined two tools to forecast nonlinear functions of the future path of an AR(1) process.
788
+
789
+
Wecker's simulation method let us approximate predictive distributions of sample path statistics, such as the time until the next turning point.
790
+
791
+
A Bayesian posterior over $(\rho, \sigma)$, computed as in {doc}`ar1_bayes`, let us also account for our uncertainty about the parameters that govern the process.
792
+
793
+
Putting these together, the extended Wecker method produces predictive distributions that reflect both sources of uncertainty identified at the outset.
794
+
795
+
Ignoring parameter uncertainty, as the original Wecker method does, yields tighter distributions that overstate how much we really know about these future statistics.
0 commit comments