Stats help required
Remember the definition of variance?
\[ \text{Var}[X] = E[X-E[X]] \]Isn't this it?
Whoops, it's: \[ \text{Var}[X] = E[(X-E[X])^2] \]
Never really studied stats in my life.
Okay, first of all, what is the mean of the first n natural numbers?
Why are you answering stats questions if you don't know anything about stats?
Well i have studied it but never as a separate subject.
Okay
The mean of first n natural numbers is (n+1)/2
Now we want to find \((n - \mu)^2\) where \(\mu\) is the mean.
What does that get you?
It will get you some other sequence. The variance is the average of that sequence.
Well i know that \[\sigma^2=(n-\mu)^2\]
No.
\[ \sigma^2 = \text{variance} = \text{average} [ (x -\mu)^2] \]
Oh yeah. :/
so first let's just find the sequence \[ (n-\mu)^2 = \left(n-\frac{n+1}{2}\right)^2 = ? \]
Then we can find the average of that sequence.
Okay So Variance is actually the Measure of SD and \[Variance=\frac{[ \sum_{}^{}(X_i-X(mean)]}{n}\]
Umm, that's what I've been trying to say dude.
Haha lol.
yes you got it . just put value of \[\Large \mu\] in the expression and simplify .
^ Wut?
Okay so basically, \[ E[X] = \frac{1}{n}\sum_{i=1}^nx_i \]
\[ E[X] = \mu \]
\[ \text{Var}[X] = \sigma^2 \]
\[ \text{Var}[X] = E[(X-\mu)^2] \]
\[ \text{Var}[X] = E[(X-\mu)^2] = \frac{1}{n}\sum_{i=1}^n(x_i-\mu)^2 \]
\[Variance=\frac{\sum_{i=1}^{n} X_i^2}{n}-(Mean X)^2\]
In this case \(x_i=n\) and we know already \(\mu=(n+1)/2\) So: \[ \text{Var}[X] = \frac{1}{n}\sum_{i=1}^n\left(i-\frac{n+1}{2}\right)^2 \]
How do we know That mean=(n+1)/2
I should have said \(x_i=i\)
You already said that yourself!!!!
Yeah that was understood.
What next?
I have no idea how to help you because I have no idea what you don't get.
\[ \text{Var}[X] = \frac{1}{n}\sum_{i=1}^n\left(i-\frac{n+1}{2}\right)^2 \]Simplify this summation!
lol :P Thanks :D
What will i get after i expand it?
\[ \text{Var}[X] = \frac{1}{n}\sum_{i=1}^n\left(i-\frac{n+1}{2}\right)^2 = \frac{1}{n}\sum_{i=1}^n\left(i^2-i(n+1)+\frac{(n+1)^2}{4} \right) \]
Thanks a lot :)
What about the sigma rules used its confusing me please help @wio @sami-21
Oh my god really?
No not all of them Only the middle one.
\[ \frac{1}{n}\sum_{i=1}^n\left(i^2-i(n+1)+\frac{(n+1)^2}{4} \right) \\ = \frac{1}{n}\sum_{i=1}^ni^2- \frac{1}{n}\sum_{i=1}^ni(n+1)+ \frac{1}{n}\sum_{i=1}^n\frac{(n+1)^2}{4} \\ = \frac{1}{n}\sum_{i=1}^ni^2- \frac{1}{n}(n+1)\sum_{i=1}^ni+ \frac{1}{n}\frac{(n+1)^2}{4}\sum_{i=1}^n1 \]
Join our real-time social learning platform and learn together with your friends!