Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Jun 21, 2024
1 parent b7f26ac commit cd8f129
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/resample/jackknife.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,9 @@ def variance(
>>> from resample.jackknife import variance
>>> import numpy as np
>>> x = np.arange(10)
>>> round(variance(np.mean, x), 1)
0.9
>>> v = variance(np.mean, x)
>>> f"{v:.1f}"
'0.9'
"""
# formula is (n - 1) / n * sum((fj - mean(fj)) ** 2)
Expand Down

0 comments on commit cd8f129

Please sign in to comment.