Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
436 changes: 330 additions & 106 deletions examples/generalized_linear_models/GLM-robust.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/generalized_linear_models/GLM-robust.myst.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ import xarray as xr
RANDOM_SEED = 8927
rng = np.random.default_rng(RANDOM_SEED)
%config InlineBackend.figure_format = 'retina'
az.style.use("arviz-darkgrid")
az.style.use("arviz-variat")
```

Create some toy data but also add some outliers.
Expand Down Expand Up @@ -104,7 +104,7 @@ A version of this same notebook using Bambi is available at {doc}`bambi's docs <

```{code-cell} ipython3
with pm.Model() as model:
xdata = pm.ConstantData("x", x_out, dims="obs_id")
xdata = pm.Data("x", x_out, dims="obs_id")

# define priors
intercept = pm.Normal("intercept", mu=0, sigma=1)
Expand Down Expand Up @@ -159,7 +159,7 @@ Below is a PyMC model, with the `likelihood` term following a `StudentT` distrib

```{code-cell} ipython3
with pm.Model() as robust_model:
xdata = pm.ConstantData("x", x_out, dims="obs_id")
xdata = pm.Data("x", x_out, dims="obs_id")

# define priors
intercept = pm.Normal("intercept", mu=0, sigma=1)
Expand Down
Loading