diff --git a/README.html b/README.html index afc9e14..19ccbc8 100644 --- a/README.html +++ b/README.html @@ -958,9 +958,6 @@ the rows which only contain integers and which sum to n. (★★★)

  • Compute bootstrapped 95% confidence intervals for the mean of a 1D array X (i.e., resample the elements of an array with replacement N times, compute the mean of each sample, and then compute percentiles over the means). (★★★)

    -
  • - -
     # Author: Jessica B. Hamrick
     
    @@ -971,7 +968,8 @@ the mean of each sample, and then compute percentiles over the means). (★★
     confint = np.percentile(means, [2.5, 97.5])
     print(confint)
     
    -
    + + diff --git a/README.rst b/README.rst index 27969f4..d5ef71a 100644 --- a/README.rst +++ b/README.rst @@ -1118,13 +1118,13 @@ Thanks to Michiaki Ariga, there is now a (i.e., resample the elements of an array with replacement N times, compute the mean of each sample, and then compute percentiles over the means). (★★★) - .. code-block:: python + .. code-block:: python - # Author: Jessica B. Hamrick + # Author: Jessica B. Hamrick - X = np.random.randn(100) # random 1D array - N = 1000 # number of bootstrap samples - idx = np.random.randint(0, X.size, (N, X.size)) - means = X[idx].mean(axis=1) - confint = np.percentile(means, [2.5, 97.5]) - print(confint) + X = np.random.randn(100) # random 1D array + N = 1000 # number of bootstrap samples + idx = np.random.randint(0, X.size, (N, X.size)) + means = X[idx].mean(axis=1) + confint = np.percentile(means, [2.5, 97.5]) + print(confint)