Skip to content

Commit 7a07abd

Browse files
committed
Merge branch 'master' into issue/873-embeddedLaplace
2 parents 6b5a35f + d6ca711 commit 7a07abd

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

src/quarto-config

src/reference-manual/blocks.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ supplied to the program at run time, they must be declared in the
296296
`data` block, like the variables `mu_mu` and
297297
`sigma_mu`.
298298

299-
This program declares two modeled parameters, `mu` and
299+
This program declares two modeled parameters, `mu_y` and
300300
`tau_y`. These are the location and precision used in the normal
301301
model of the values in `y`. The heart of the model will be
302302
sampling the values of these parameters from their posterior

src/stan-users-guide/gaussian-processes.qmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ and
9898
$$
9999
K_2(x \mid \sigma)_{i, j}
100100
=
101-
\delta_{i, j} \sigma^2,
101+
\delta_{i, j} \sigma^2.
102102
$$
103103

104104
The addition of $\sigma^2$ on the diagonal is important
@@ -124,7 +124,7 @@ if an input vector $x$ is translated by a vector $\epsilon$ to $x +
124124
$K(x \mid \theta) = K(x + \epsilon \mid \theta)$.
125125

126126
The summation involved is just the squared Euclidean distance between
127-
$x_i$ and $x_j$ (i.e., the $L_2$ norm of their difference, $x_i -
127+
$x_i$ and $x_j$ (i.e., the squared $L_2$ norm of their difference, $x_i -
128128
x_j$). This results in support for smooth functions in the process.
129129
The amount of variation in the function is controlled by the free
130130
hyperparameters $\alpha$, $\rho$, and $\sigma$.
@@ -234,9 +234,9 @@ A more efficient implementation of the simulation model can be
234234
coded in Stan by relocating, rescaling and rotating an isotropic standard
235235
normal variate. Suppose $\eta$ is an an isotropic standard normal variate
236236
$$
237-
\eta \sim \textsf{normal}(\textbf{0}, \textbf{1}),
237+
\eta \sim \textsf{normal}(\textbf{0}, \textrm{I}),
238238
$$
239-
where $\textbf{0}$ is an $N$-vector of 0 values and $\textbf{1}$ is the $N
239+
where $\textbf{0}$ is an $N$-vector of 0 values and $\textrm{I}$ is the $N
240240
\times N$ identity matrix. Let $L$ be the Cholesky decomposition of
241241
$K(x \mid \theta)$, i.e., the lower-triangular matrix $L$ such that $LL^{\top} =
242242
K(x \mid \theta)$. Then the transformed variable $\mu + L\eta$ has the intended
@@ -686,7 +686,7 @@ If we have high-frequency covariates in our fixed effects, we may wish to
686686
further regularize the GP away from high-frequency functions, which means we'll
687687
need to penalize smaller length-scales. Luckily, we have a useful way of
688688
thinking about how length-scale affects the frequency of the functions
689-
supported the GP. If we were to repeatedly draw from a zero-mean GP with a
689+
supported by the GP. If we were to repeatedly draw from a zero-mean GP with a
690690
length-scale of $\rho$ in a fixed-domain $[0,T]$, we would get a distribution
691691
for the number of times each draw of the GP crossed the zero axis. The
692692
expectation of this random variable, the number of zero crossings, is $T / \pi

src/stan-users-guide/regression.qmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@ In a Bayesian setting, a proper prior on each of the $\beta$ is enough
540540
to identify the model. Unfortunately, this can lead to inefficiency
541541
during sampling as the model is still only weakly identified through
542542
the prior---there is a very simple example of the difference in
543-
the discussion of collinearity in @collinearity.section.
543+
the discussion of collinearity in the
544+
[collinearity section](problematic-posteriors.qmd#collinearity.section).
544545

545546
An alternative identification strategy that allows a symmetric prior
546547
is to enforce a sum-to-zero constraint on the varying effects, i.e.,

src/stan-users-guide/time-series.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ A halfway point would be to vectorize just `err`.
463463

464464
MA and ARMA models are not identifiable if the roots of the
465465
characteristic polynomial for the MA part lie inside the unit circle,
466-
so it's necessary to add the following constraint^[This subsection is a lightly edited comment of Jonathan Gilligan's on GitHub; see \url{https://github.com/stan-dev/stan/issues/1617\#issuecomment-160249142}]
466+
so it's necessary to add the following constraint^[This subsection is a lightly edited comment of Jonathan Gilligan's on GitHub; see [https://github.com/stan-dev/stan/issues/1617\#issuecomment-160249142](https://github.com/stan-dev/stan/issues/1617\#issuecomment-160249142).]
467467

468468
```stan
469469
real<lower=-1, upper=1> theta;

0 commit comments

Comments
 (0)