File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -922,11 +922,11 @@ this sample and estimate are the only data we can work with.
922
922
923
923
We now perform steps 1&ndash ; 5 listed above to generate a single bootstrap
924
924
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.
926
926
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,
930
930
we change the ` replace ` parameter to ` True ` .
931
931
932
932
``` {code-cell} ipython3
You can’t perform that action at this time.
0 commit comments