Β· Economics  Β· 1 min read

Sample Variance

Why do we divide by n-1 when calculating the sample standard deviation?

Why do we divide by n-1 when calculating the sample standard deviation?

For a shorter proof, here are a few things we need to know: x1,x2,x3,⋯ ,xnx_{1}, x_{2},x_{3}, \cdots, x_{n} are independent observations from a population with mean ΞΌ\mu and variance Οƒ2\sigma^{2}. E[xi]=ΞΌ,V(xi)=Οƒ2.E[x_{i}]=\mu, V(x_{i})=\sigma^2. E[xi2]=Οƒ2+ΞΌ2.E[x_{i}^2]=\sigma^{2}+\mu^{2}. V(X)=E[X2]βˆ’E[X]2V(X)=E[X^{2}]-E[X]^{2} E[XΛ‰2]=ΞΌ2+Οƒ2nE \left[ \bar{X}^{2} \right] =\mu^{2} + \frac{\sigma^{2}}{n}

The sample variance is defined as follows: S2=1nβˆ’1βˆ‘i=1n(xiβˆ’XΛ‰)2,S^{2}=\frac{1}{n-1}\sum_{i=1}^{n}(x_{i}-\bar{X})^2, where XΛ‰\bar{X} is the sample mean.

On the right hand side of equation,

βˆ‘i=1n(xiβˆ’XΛ‰)2=x12+x22+x32+β‹―+xnβˆ’12+xn2βˆ’2XΛ‰(x1+x2+x3+β‹―+xnβˆ’1+xn)+nXΛ‰2.\sum_{i=1}^{n}(x_{i}-\bar{X})^{2}= x_{1}^{2} + x_{2}^{2} + x_{3}^{2} + \cdots + x_{n-1}^{2} + x_{n}^{2} -2 \bar{X}(x_{1} + x_{2} + x_{3} + \cdots + x_{n-1} + x_{n}) + n \bar{X}^{2} .

If we take the expectation value on the right hand side,

E[βˆ‘i=1n(xiβˆ’XΛ‰)2]=E[x12]+E[x22]+E[x32]+β‹―+E[xn2]βˆ’2E[XΛ‰β‹…nXΛ‰]+nE[XΛ‰2]=E[x12]+E[x22]+E[x32]+β‹―+E[xn2]βˆ’nE[XΛ‰2]=n(ΞΌ2+Οƒ2)βˆ’n(ΞΌ2+Οƒ2n)=(nβˆ’1)Οƒ2.\begin{align} E \left[ \sum_{i=1}^{n}(x_{i}-\bar{X})^{2} \right] =&E\left[ x_{1}^{2} \right] + E\left[ x_{2}^{2} \right] + E\left[ x_{3}^{2} \right] + \cdots + E\left[ x_{n}^{2} \right] -2 E \left[ \bar{X}\cdot n\bar{X} \right] + nE \left[ \bar{X}^{2} \right]\\ = & E\left[ x_{1}^{2} \right] + E\left[ x_{2}^{2} \right] + E\left[ x_{3}^{2} \right] + \cdots + E\left[ x_{n}^{2} \right] - n E \left[ \bar{X}^{2} \right] \\ \\ = & n(\mu^{2}+ \sigma^{2}) - n(\mu^{2} + \frac{\sigma^{2}}{n}) \\ \\ = & (n-1)\sigma^{2}. \end{align} βˆ΄Οƒ2=1nβˆ’1E[βˆ‘i=1n(xiβˆ’XΛ‰)2]=E[S2].\therefore \sigma^{2} = \frac{1}{n-1}E \left[ \sum_{i=1}^{n}(x_{i}-\bar{X})^{2} \right] = E[S^{2}].
Share:
Back to Blog

Related Posts

View All Posts Β»

μ΄λž€ μ „μŸμ˜ 경제적 κ²°κ³Ό

2μ°¨ μ„Έκ³„λŒ€μ „ 이후 세계 μ§ˆμ„œμ˜ 쒅말과 ν•¨κ»˜, 이제 λͺ¨λ“  κ°•λŒ€κ΅­μ€ 사싀상 λΆˆλŸ‰ κ΅­κ°€κ°€ λ˜μ—ˆλ‹€. λŸ¬μ‹œμ•„λŠ” κ³Όκ±° μ œκ΅­μ„ μž¬κ±΄ν•˜λ € μ‹œλ„ν•˜κ³  μžˆμ§€λ§Œ μ‹€νŒ¨ν•˜κ³  μžˆλ‹€. 쀑ꡭ은 이웃 λ‚˜λΌλ“€μ„ μœ„ν˜‘ν•˜κ³  μ „ μ„Έκ³„μ—μ„œ 곡격적인 λŒ€λ¦¬ μ„Έλ ₯에 μžκΈˆμ„ μ§€μ›ν•˜κ³  μžˆλ‹€. ν•˜μ§€λ§Œ μˆœμˆ˜ν•œ κΈ°ν–‰...

κΈ°νšŒλΉ„μš©μ˜ 이해

κ²½μ œν•™μ„ κ³΅λΆ€ν•˜λ©΄μ„œ λŠλΌλŠ” κ°€μž₯ 큰 즐거움 쀑 ν•˜λ‚˜λŠ” κ²½μ œν•™μ΄ 세상에 μ–Όλ§ˆλ‚˜ 적용 κ°€λŠ₯ν•œμ§€ κΉ¨λ‹«λŠ” 것이닀. κ²½μ œν•™μ˜ κ΅ν›ˆμ€ 돈이 μ˜€κ°€λŠ” μƒν™©μ—λ§Œ μ μš©λ˜λŠ” 것이 μ•„λ‹ˆλ‹€. λͺ¨λ“  μ’…λ₯˜μ˜ μ˜μ‚¬ 결정은 κ²½μ œν•™μ˜ 아이디어λ₯Ό 톡해 이해할 수 μžˆλ‹€. μ΄λŸ¬ν•œ λ°©μ‹μœΌλ‘œ κ²½μ œν•™μ„ μ΄ν•΄ν•˜λ©΄ μžμ‹ μ˜ μ˜μ‚¬ 결정을 κ°œμ„ ν•˜κ³  λͺ©ν‘œλ₯Ό 더 잘 λ‹¬μ„±ν•˜λŠ” 데 도움이 될 수 μžˆλ‹€. 그쀑 ...

맨큐의 κ²½μ œν•™ μ†Œκ°œ μ˜μƒ

EBSμ—μ„œ λ§Œλ“  μœ„λŒ€ν•œ μˆ˜μ—…, Great MindsλΌλŠ” ν”„λ‘œκ·Έλž¨μ˜ ν•˜λ‚˜λ‘œ κ²½μ œν•™ 기본에 κ΄€ν•œ λ‚΄μš©μ„ 짧게 잘 μ†Œκ°œ ν•΄ 놓아 κ³΅μœ ν•΄ λ΄…λ‹ˆλ‹€.