![]() |
Prev | Next | statistic |
density_id
for the corresponding entry in the
data
or
prior
table.
In an abuse of notation,
we write @(@
\eta[d]
@)@, @(@
\nu[d]
@)@
for the offset and degrees corresponding to the same entry in the
data or prior table.
uniform
,
the log-density function for values @(@
D(y, \mu, \delta, d)
@)@,
and for differences @(@
D(z, y, \mu, \delta, d)
@)@,
are both defined by @(@
D = 0
@)@.
gaussian
,
the log-density functions for values @(@
D(y, \mu, \delta, d)
@)@,
and for differences @(@
D(z, y, \mu, \delta, d)
@)@,
are defined by
@[@
D
=
- \log \left( \delta \sqrt{2 \pi} \right) - \frac{1}{2} R^2
@]@
where @(@
D
@)@ and @(@
R
@)@ have the same arguments;
see Weighted Residual Function, R
.
cen_gaussian
,
the log-density function is not defined for differences.
The log-density function for values @(@
y > 0
@)@
is the same as for the gaussian
case.
The log-density function for the values @(@
y \leq 0
@)@,
is defined by
@[@
D(y, \mu, \delta, d)
=
\log ( \R{erfc}[ \mu / ( \delta \sqrt{2} ) ] ) - \log(2)
@]@
where @(@
\R{erfc}
@)@ is the complementary error function;
see the Gaussian case for the
censored density
where the censoring value is @(@
c = 0
@)@.
log_gaussian
,
the log-density function for values is
@[@
D(y, \mu, \delta, d)
=
- \log \left[ \delta \sqrt{2 \pi} \right]
- \frac{1}{2} R(y, \mu, \delta, d)^2
@]@
The log-density function for differences is
@[@
D(z, y, \mu, \delta, d)
=
- \log \left( \delta \sqrt{2 \pi} \right)
- \frac{1}{2} R(z, y, \mu, \delta, d)^2
@]@
cen_log_gaussian
,
the log-density function is not defined for differences.
The log-density function for values @(@
y > 0
@)@
is the same as for the log_gaussian
case.
The log-density function for the values @(@
y \leq 0
@)@,
is defined by
@[@
D(y, \mu, \delta, d)
=
\log ( \R{erfc}[ ( \mu - \eta ) / ( \delta \sqrt{2} ) ] ) - \log(2)
@]@
where we the arguments to @(@
\delta
@)@ are the same as
in the log Gaussian case
and @(@
\R{erfc}
@)@ is the complementary error function;
see the Gaussian case for the
censored density
where the censoring value is @(@
c = \eta
@)@.
laplace
,
the log-density functions for values @(@
D(y, \mu, \delta, d)
@)@,
and for differences @(@
D(z, y, \mu, \delta, d)
@)@,
are defined by
@[@
D
=
- \log \left( \delta \sqrt{2} \right) - \sqrt{2} | R |
@]@
where @(@
D
@)@ and @(@
R
@)@ have the same arguments.
cen_laplace
,
the log-density function is not defined for differences.
The log-density function for values @(@
y > 0
@)@
is the same as for the laplace
case.
The log-density function for the values @(@
y \leq 0
@)@,
is defined by
@[@
D(y, \mu, \delta, d)
=
- \mu \sqrt{2} / \delta - \log(2)
@]@
where @(@
\R{erfc}
@)@ is the complementary error function;
see the Gaussian case for the
censored density
where the censoring value is @(@
c = 0
@)@.
log_laplace
,
the log-density function for values is
@[@
D(y, \mu, \delta, d)
=
- \log \left[ \delta \sqrt{2} \right]
- \sqrt{2} \left| R(y, \mu, \delta, d) \right|
@]@
The log-density function for differences is
@[@
D(z, y, \mu, \delta, d)
=
- \log \left( \delta \sqrt{2} \right)
- \sqrt{2} \left| R(z, y, \mu, \delta, d) \right|
@]@
cen_log_laplace
,
the log-density function is not defined for differences.
The log-density function for values @(@
y > 0
@)@
is the same as for the log_laplace
case.
The log-density function for the values @(@
y \leq 0
@)@,
is defined by
@[@
D(y, \mu, \delta, d)
=
- ( \mu - \eta ) \sqrt{2} / \delta - \log(2)
@]@
where we the arguments to @(@
\delta
@)@ are the same as
in the log Laplace case.
See the Laplace case for the
censored density
where the censoring value is @(@
c = \eta
@)@.
students
,
the log-density functions for values @(@
D(y, \mu, \delta, d)
@)@,
and for differences @(@
D(z, y, \mu, \delta, d)
@)@,
are defined by
@[@
D
=
\log \left(
\frac{ \Gamma( ( \nu + 1 ) / 2 ) }{ \sqrt{ \nu \pi } \Gamma( \nu / 2 ) }
\right)
-
\frac{\nu + 1}{2} \log \left( 1 + R^2 / ( \nu - 2 ) \right)
@]@
where @(@
D
@)@ and @(@
R
@)@ have the same arguments
and we have abbreviated @(@
\nu[d]
@)@ using just @(@
\nu
@)@.
log_students
,
the log-density functions for values @(@
D(y, \mu, \delta, d)
@)@,
and for differences @(@
D(z, y, \mu, \delta, d)
@)@,
are defined by
@[@
D
=
\log \left(
\frac{ \Gamma( ( \nu + 1 ) / 2 ) }{ \sqrt{ \nu \pi } \Gamma( \nu / 2 ) }
\right)
-
\frac{\nu + 1}{2} \log \left( 1 + R^2 / ( \nu - 2 ) \right)
@]@
where @(@
D
@)@ and @(@
R
@)@ have the same arguments.