variance
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
variance [2025/03/24 08:16] – hkimscil | variance [2025/03/24 08:22] (current) – hkimscil | ||
---|---|---|---|
Line 155: | Line 155: | ||
$$s^2 = \displaystyle \frac{SS}{df}$$ | $$s^2 = \displaystyle \frac{SS}{df}$$ | ||
- | 위에서 샘플의 분산으로 모집단의 분산을 추정할 때 n-1을 쓴다고 하였지만, | + | 위에서 샘플의 분산으로 모집단의 분산을 추정할 때 n-1을 쓴다고 하였지만, |
+ | $$\sigma^2 = \displaystyle \frac{SS}{N-1} = \displaystyle \frac{SS}{df}$$ | ||
+ | |||
+ | 아래는 R에서 보는 간단한 예이다. | ||
< | < | ||
- | > ajoust | + | > a <- rnorm2(100000000, |
- | > a <- ajoust | + | |
> a.mean <- mean(a) | > a.mean <- mean(a) | ||
> ss <- sum((a-a.mean)^2) | > ss <- sum((a-a.mean)^2) |
variance.1742771780.txt.gz · Last modified: 2025/03/24 08:16 by hkimscil