Skip to content

Commit d01abc8

Browse files
minor polish
1 parent f09bc7a commit d01abc8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/inference.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -922,11 +922,11 @@ this sample and estimate are the only data we can work with.
922922

923923
We now perform steps 1–5 listed above to generate a single bootstrap
924924
sample in Python and calculate a point estimate from that bootstrap sample. We will
925-
continue using the `sample` function of our dataframe,
925+
continue using the `sample` function of our dataframe.
926926
Critically, note that we now
927-
set `frac=1` ("fraction") to indicate that we want to draw as many samples as there are rows in the dataframe
928-
(we could also have set `n=40` but then we would need to manually keep track of how many rows there are).
929-
Since we need to sample with replacement when bootstrapping,
927+
set `frac=1` ("fraction") to indicate that we want to draw as many samples as there are rows in the dataframe.
928+
We could also have set `n=40`, but setting `frac=1` is nice because then we do not have to check how many
929+
rows there are. And since we need to sample with replacement when bootstrapping,
930930
we change the `replace` parameter to `True`.
931931

932932
```{code-cell} ipython3

0 commit comments

Comments
 (0)