Skip to content

Commit a722ab3

Browse files
penelopeysmmhauru
andcommitted
Changes per @mhauru's comments
Co-authored-by: Markus Hauru <[email protected]>
1 parent 8b6ae2f commit a722ab3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

_quarto.yml

+3
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,6 @@ using-turing-abstractmcmc: developers/inference/abstractmcmc-turing
202202
using-turing-interface: developers/inference/abstractmcmc-interface
203203
using-turing-variational-inference: developers/inference/variational-inference
204204
using-turing-implementing-samplers: developers/inference/implementing-samplers
205+
dev-transforms-distributions: developers/transforms/distributions
206+
dev-transforms-bijectors: developers/transforms/bijectors
207+
dev-transforms-dynamicppl: developers/transforms/dynamicppl

developers/transforms/bijectors/index.qmd

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ A _bijection_ between two sets ([Wikipedia](https://en.wikipedia.org/wiki/Biject
2828
That is to say, if we have two sets $X$ and $Y$, then a bijection maps each element of $X$ to a unique element of $Y$.
2929
To return to our univariate example, where we transformed $x$ to $y$ using $y = \exp(x)$, the exponentiation function is a bijection because every value of $x$ maps to one unique value of $y$.
3030
The input set (the domain) is $(-\infty, \infty)$, and the output set (the codomain) is $(0, \infty)$.
31+
(Here, $(a, b)$ denotes the open interval from $a$ to $b$ but excluding $a$ and $b$ themselves.)
3132

3233
Since bijections are a one-to-one mapping between elements, we can also reverse the direction of this mapping to create an inverse function.
3334
In the case of $y = \exp(x)$, the inverse function is $x = \log(y)$.
@@ -45,8 +46,8 @@ For example, taking the inverse function $\log(y)$ from above, its derivative is
4546
However, we specified that the bijection $y = \exp(x)$ maps values of $x \in (-\infty, \infty)$ to $y \in (0, \infty)$, so the point $y = 0$ is not within the domain of the inverse function.
4647
:::
4748

48-
Specifically, one of the primary purposes of Bijectors.jl is used to construct _bijections which map constrained distributions to unconstrained ones_.
49-
For example, the log-normal distribution which we saw above is constrained: its _support_, i.e. the range over which $p(x) > 0$, is $(0, \infty)$.
49+
Specifically, one of the primary purposes of Bijectors.jl is to construct _bijections which map constrained distributions to unconstrained ones_.
50+
For example, the log-normal distribution which we saw in [the previous page]({{< meta dev-transforms-distributions >}}) is constrained: its _support_, i.e. the range over which $p(x) > 0$, is $(0, \infty)$.
5051
However, we can transform that to an unconstrained distribution (the normal distribution) using the transformation $y = \log(x)$.
5152

5253
::: {.callout-note}

0 commit comments

Comments
 (0)