Skip to content

Commit 3545625

Browse files
committed
fix typos spotted by Aki.
1 parent 585823e commit 3545625

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/functions-reference/embedded_laplace.qmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ Which returns an approximation to the log marginal likelihood $p(y \mid \phi)$.
8585

8686
This function takes in the following argumeents.
8787

88-
1. `likelihood_function` - user-specified likelihood whose first argument is the vector of latent Gaussian variables `theta`
89-
2. `likelihood_arguments` - A tuple of the likelihood arguments whose internal members will be passed to the covariance function
88+
1. `likelihood_function` - user-specified log likelihood whose first argument is the vector of latent Gaussian variables `theta`
89+
2. `likelihood_arguments` - A tuple of the log likelihood arguments whose internal members will be passed to the covariance function
9090
3. `theta_init` - an initial guess for the optimization problem that underlies the Laplace approximation,
9191
4. `covariance_function` - Prior covariance function
9292
5. `covariance_arguments` A tuple of the arguments whose internal members will be passed to the the covariance function
@@ -96,7 +96,7 @@ passed to `likelihood_function`.
9696

9797
Below we go over each argument in more detail.
9898

99-
## Specifying the likelihood function {#laplace-likelihood_spec}
99+
## Specifying the log likelihood function {#laplace-likelihood_spec}
100100

101101
The first step to use the embedded Laplace approximation is to write down a
102102
function in the `functions` block which returns the log joint likelihood
@@ -185,13 +185,13 @@ The tuple after `covariance_function` contains the arguments that get passed
185185
to `covariance_function`. For instance, if a user defined covariance function
186186
uses two vectors
187187
```stan
188-
real cov_fun(vector theta, real b, matrix Z)
188+
matrix cov_fun(real b, matrix Z)
189189
```
190190
the call to the Laplace marginal would include the covariance function and
191191
a tuple holding the covariance function arguments.
192192

193193
```stan
194-
real val = laplace_marginal(likelihood_fun, (a, X), cov_fun, (b, Z), ...);
194+
real val = laplace_marginal(likelihood_fun, (a, X), theta_init, cov_fun, (b, Z), ...);
195195
```
196196

197197
## Control parameters

0 commit comments

Comments
 (0)