|
306 | 306 | Compute the sample variance of collection `itr`, with known mean(s) `mean`. |
307 | 307 |
|
308 | 308 | The algorithm returns an estimator of the generative distribution's variance |
309 | | -under the assumption that each entry of `itr` is an IID drawn from that generative |
310 | | -distribution. For arrays, this computation is equivalent to calculating |
| 309 | +under the assumption that each entry of `itr` is a sample drawn from the same |
| 310 | +unknown distribution, with the samples uncorrelated. |
| 311 | +For arrays, this computation is equivalent to calculating |
311 | 312 | `sum((itr .- mean(itr)).^2) / (length(itr) - 1)`. |
312 | 313 | If `corrected` is `true`, then the sum is scaled with `n-1`, |
313 | 314 | whereas the sum is scaled with `n` if `corrected` is |
|
343 | 344 | Compute the sample variance of collection `itr`. |
344 | 345 |
|
345 | 346 | The algorithm returns an estimator of the generative distribution's variance |
346 | | -under the assumption that each entry of `itr` is an IID drawn from that generative |
347 | | -distribution. For arrays, this computation is equivalent to calculating |
| 347 | +under the assumption that each entry of `itr` is a sample drawn from the same |
| 348 | +unknown distribution, with the samples uncorrelated. |
| 349 | +For arrays, this computation is equivalent to calculating |
348 | 350 | `sum((itr .- mean(itr)).^2) / (length(itr) - 1))`. |
349 | 351 | If `corrected` is `true`, then the sum is scaled with `n-1`, |
350 | 352 | whereas the sum is scaled with `n` if `corrected` is |
@@ -418,8 +420,9 @@ stdm(A::AbstractArray, m; corrected::Bool=true) = |
418 | 420 | Compute the sample standard deviation of collection `itr`. |
419 | 421 |
|
420 | 422 | The algorithm returns an estimator of the generative distribution's standard |
421 | | -deviation under the assumption that each entry of `itr` is an IID drawn from that generative |
422 | | -distribution. For arrays, this computation is equivalent to calculating |
| 423 | +deviation under the assumption that each entry of `itr` is a sample drawn from |
| 424 | +the same unknown distribution, with the samples uncorrelated. |
| 425 | +For arrays, this computation is equivalent to calculating |
423 | 426 | `sqrt(sum((itr .- mean(itr)).^2) / (length(itr) - 1))`. |
424 | 427 | If `corrected` is `true`, then the sum is scaled with `n-1`, |
425 | 428 | whereas the sum is scaled with `n` if `corrected` is |
@@ -461,8 +464,9 @@ std(iterable; corrected::Bool=true, mean=nothing) = |
461 | 464 | Compute the sample standard deviation of collection `itr`, with known mean(s) `mean`. |
462 | 465 |
|
463 | 466 | The algorithm returns an estimator of the generative distribution's standard |
464 | | -deviation under the assumption that each entry of `itr` is an IID drawn from that generative |
465 | | -distribution. For arrays, this computation is equivalent to calculating |
| 467 | +deviation under the assumption that each entry of `itr` is a sample drawn from |
| 468 | +the same unknown distribution, with the samples uncorrelated. |
| 469 | +For arrays, this computation is equivalent to calculating |
466 | 470 | `sqrt(sum((itr .- mean(itr)).^2) / (length(itr) - 1))`. |
467 | 471 | If `corrected` is `true`, then the sum is scaled with `n-1`, |
468 | 472 | whereas the sum is scaled with `n` if `corrected` is |
|
0 commit comments