Skip to content

Commit 31bfb64

Browse files
committed
reorder some cells
1 parent 1da897e commit 31bfb64

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

examples/howto/hypothesis_testing.ipynb

Lines changed: 32 additions & 32 deletions
Large diffs are not rendered by default.

examples/howto/hypothesis_testing.myst.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,17 @@ p_mu_greater_0 = np.mean(mu_samples > 0)
115115
p_mu_greater_0
116116
```
117117

118-
It could also be that we have some kind of minimum meaningful threshold that we care about. For example, we might care about whether the mean is greater than 0.1. We can compute this in the same way.
118+
We can also include such information in a visual plot using `az.plot_posterior`.
119119

120120
```{code-cell} ipython3
121-
p_mu_greater = np.mean(mu_samples > 0.1)
122-
p_mu_greater
121+
az.plot_posterior(idata, var_names=["mu"], ref_val=0, hdi_prob="hide", figsize=(14, 3));
123122
```
124123

125-
We can also include such information in a visual plot using `az.plot_posterior`.
124+
It could also be that we have some kind of minimum meaningful threshold that we care about. For example, we might care about whether the mean is greater than 0.1. We can compute this in the same way.
126125

127126
```{code-cell} ipython3
128-
az.plot_posterior(idata, var_names=["mu"], ref_val=0, hdi_prob="hide", figsize=(14, 3));
127+
p_mu_greater = np.mean(mu_samples > 0.1)
128+
p_mu_greater
129129
```
130130

131131
### Highest Density Intervals (HDIs)

0 commit comments

Comments
 (0)