This is just a placeholder for the user's method of bootstrapping the median and its confidence intervals. Returns an arbitrary median and confidence interval packed into a tuple.
(n)
| 194 | |
| 195 | |
| 196 | def fake_bootstrapper(n): |
| 197 | """ |
| 198 | This is just a placeholder for the user's method of |
| 199 | bootstrapping the median and its confidence intervals. |
| 200 | |
| 201 | Returns an arbitrary median and confidence interval packed into a tuple. |
| 202 | """ |
| 203 | if n == 1: |
| 204 | med = 0.1 |
| 205 | ci = (-0.25, 0.25) |
| 206 | else: |
| 207 | med = 0.2 |
| 208 | ci = (-0.35, 0.50) |
| 209 | return med, ci |
| 210 | |
| 211 | inc = 0.1 |
| 212 | e1 = np.random.normal(0, 1, size=500) |
no outgoing calls
no test coverage detected
searching dependent graphs…