Skip to content

Commit bb548d1

Browse files
committed
Round histogram limits more nicely
1 parent 5b4bbac commit bb548d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/inference.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,9 @@ Sampling distribution of the sample proportion for sample size 40.
328328
```{code-cell} ipython3
329329
:tags: [remove-cell]
330330
331-
glue("sample_proportion_center", round(sample_estimates["sample_proportion"].mean(), 1))
332-
glue("sample_proportion_min", round(sample_estimates["sample_proportion"].min(), 1))
333-
glue("sample_proportion_max", round(sample_estimates["sample_proportion"].max(), 1))
331+
glue("sample_proportion_center", round(sample_estimates["sample_proportion"].mean(), 2))
332+
glue("sample_proportion_min", round(sample_estimates["sample_proportion"].quantile(0.004), 2))
333+
glue("sample_proportion_max", round(sample_estimates["sample_proportion"].quantile(0.9997), 2))
334334
```
335335

336336
```{index} sampling distribution; shape

0 commit comments

Comments
 (0)