Solveeit Logo

Question

Question: Variance of first \(n\) natural numbers. A. \(\dfrac{{{n^2} - 1}}{6}\) B. \(\dfrac{{{n^2} + 1}}{...

Variance of first nn natural numbers.
A. n216\dfrac{{{n^2} - 1}}{6}
B. n2+16\dfrac{{{n^2} + 1}}{6}
C. n2112\dfrac{{{n^2} - 1}}{{12}}
D. n2+112\dfrac{{{n^2} + 1}}{{12}}

Explanation

Solution

Here in this problem we have to find the variance of the first nn natural numbers. Here the natural numbers are the numbers which start from 1 and the numbers here are only integers starting from 1. And also we have to know what variance is, the variance is defined as the average of the squared differences from the mean. Variance is a statistical measurement, it measures how far each number varies in the set of observations from the mean.

Complete step-by-step solution:
Suppose given a set of observations x1,x2,x3,.....xn{x_1},{x_2},{x_3},.....{x_n}, then the variance denoted by σ2{\sigma ^2}is given by:
σ2=i=1nxi2n(i=1nxin)2\Rightarrow {\sigma ^2} = \dfrac{{\sum\limits_{i = 1}^n {{x_i}^2} }}{n} - {\left( {\dfrac{{\sum\limits_{i = 1}^n {{x_i}} }}{n}} \right)^2}
Now the first nnnatural numbers are 1,2,3,......n1,2,3,......n
The variance of these first nnnatural numbers is given by:
σ2=n2n(nn)2\Rightarrow {\sigma ^2} = \dfrac{{\sum {{n^2}} }}{n} - {\left( {\dfrac{{\sum n }}{n}} \right)^2}
Here the sum of the first nnnatural numbers is given by:
n=n(n+1)2\Rightarrow \sum n = \dfrac{{n(n + 1)}}{2}
The sum of the squared first nnnatural numbers is given by:
n2=n(n+1)(2n+1)6\Rightarrow \sum {{n^2}} = \dfrac{{n(n + 1)(2n + 1)}}{6}
Now substituting these expressions in the variance expression, which is given below:
σ2=n2n(nn)2\Rightarrow {\sigma ^2} = \dfrac{{\sum {{n^2}} }}{n} - {\left( {\dfrac{{\sum n }}{n}} \right)^2}
σ2=n(n+1)(2n+1)6n(n(n+1)2n)2\Rightarrow {\sigma ^2} = \dfrac{{n(n + 1)(2n + 1)}}{{6n}} - {\left( {\dfrac{{n(n + 1)}}{{2n}}} \right)^2}
σ2=(n+1)(2n+1)6(n+1)24\Rightarrow {\sigma ^2} = \dfrac{{(n + 1)(2n + 1)}}{6} - \dfrac{{{{(n + 1)}^2}}}{4}
σ2=(n+1)(2n+16n+14)\Rightarrow {\sigma ^2} = (n + 1)\left( {\dfrac{{2n + 1}}{6} - \dfrac{{n + 1}}{4}} \right)
On further simplification:
σ2=(n+1)(4n+23n312)\Rightarrow {\sigma ^2} = (n + 1)\left( {\dfrac{{4n + 2 - 3n - 3}}{{12}}} \right)
σ2=(n+1)(n112)\Rightarrow {\sigma ^2} = (n + 1)\left( {\dfrac{{n - 1}}{{12}}} \right)
σ2=(n21)12\Rightarrow {\sigma ^2} = \dfrac{{({n^2} - 1)}}{{12}}
σ2=(n21)12\therefore {\sigma ^2} = \dfrac{{({n^2} - 1)}}{{12}}
The variance of the first nn natural numbers is (n21)12\dfrac{{({n^2} - 1)}}{{12}}

Option C is the correct answer.

Note: Note that the variance is also given by the ratio of the sum of the squares of deviation from the mean to the total no. of observations minus one, which is the same as the variance formula used here which the difference of the ratio of sum of the squares of all observations to the total no. of observations and the whole square of the mean expression.