Monday, July 31, 2023

Chapter 15.5 - Standard Deviation of Continuous Frequency Distribution

In the previous section, we saw some solved examples on variance and standard deviation. In this section, we will see how they are related to continuous frequency distribution.

Calculating variance and standard deviation for continuous frequency distribution

• We know that, when the data is large, we arrange the observations into various groups. It is called continuous frequency distribution.
• We know the method to calculate mean in such cases. Also, in a previous section 15.2, we have seen the method to calculate the following items:
   ♦ Mean deviation about mean for a continuous frequency distribution.
   ♦ Mean deviation about median for a continuous frequency distribution.
• So now we will see the method to calculate the following items:
   ♦ Variance for a continuous frequency distribution.
   ♦ Standard deviation for a continuous frequency distribution.
• The method is similar to what we saw in the solved examples 15.9 and 15.10 of the previous section. There we dealt with discrete values. But here we will be dealing with groups of values. These groups are called class intervals.
• So for each class interval, we choose a value to represent that class interval. Usually we choose the midpoint as the representative value.
• For example, if the class interval is 30-35, then the representative value will be the midpoint, which is:
$\frac{30 + 35}{2}~=~\frac{65}{2}~=~32.5$
• Once the representative value is fixed, the procedure is the same as before.    
• The following solved example will demonstrate the method:

Solved Example 15.12
Find the variance and standard deviation for the following data:


Table15.24

Solution:
1. We are asked to find the variance.
• So our first aim is to find the mean $(\bar{x})$. For that, we want $f_i x_i$.
• For calculating $f_i x_i$, we want $x_i$.
• $x_i$ values are the midpoint values. They are calculated in the third column of the table 15.25 below:

Table 15.25

• $f_i x_i$ is calculated in the column IV. So we can write:
$\bar{x}~=~\frac{\sum{f_i x_i}}{\sum{f_i}}~=~\frac{3100}{50}~=~62$
2. Now we can calculate the variance. For that, we can use columns II, V and VI.
• We have:
$\sigma^2~=~\frac{\sum{f_i (x_i - \bar{x})^2}}{\sum{f_i}}~=~\frac{10050}{50}~=~201$
3. Finally, we can calculate the standard deviation.
$\sigma~=~\sqrt{\sigma^2}~=~\sqrt{201}~=~14.18$


Shortcut method for calculating variance and standard deviation

• In a previous section, we used a shortcut method (step-deviation method) for finding $\bar{x}$.
• If $\bar{x}$ obtained is large, our present calculations of variance will be tedious and lengthy.
• So we need a method to reduce the size of $\bar{x}$. It can be written in 5 steps:

1. In the step-deviation method, we first reduce $x_i$ into $d_i$.
• $d_i = x_i - a$
   ♦ Where 'a' is the assumed mean.
2. Next we reduce $d_i$ to $u_i$.
• $u_i = \frac{d_i}{h}$
   ♦ Where 'h' is the width of class.
3. We can combine the above two results as follows:
$u_i = \frac{x_i - a}{h}$
• From this, we get:
$x_i = a + h u_i$
4. Once we calculate the $u_i$ values, we find $\bar{u}$.
• Using $\bar{u}$, we find $\bar{x}$ using the formula:
$\bar{x} = a + h \bar{u}$
5. Let us use the above results in (3) and (4), to modify variance. It can be done as follows:

$\begin{array}{ll}
{}&{\sigma^2}
& {~=~}& {\frac{1}{\sum{f_i}}\left[\sum{f_i \left[x_i - \bar{x} \right]^2} \right]} &{} \\

{}&{}
& {~=~}& {\frac{1}{\sum{f_i}}\left[\sum{f_i \left[(a + h u_i) - (a + h \bar{u}) \right]^2} \right]~\color{green}{\text{- - - I}}} &{} \\

{}&{}
& {~=~}& {\frac{1}{\sum{f_i}}\left[\sum{f_i \left[a + h u_i - a - h \bar{u} \right]^2} \right]} &{} \\

{}&{}
& {~=~}& {\frac{1}{\sum{f_i}}\left[\sum{f_i \left[h u_i - h \bar{u} \right]^2} \right]} &{} \\

{}&{}
& {~=~}& {\frac{1}{\sum{f_i}}\left[\sum{f_i \left[h( u_i - \bar{u}) \right]^2} \right]} &{} \\

{}&{}
& {~=~}& {\frac{1}{\sum{f_i}}\left[\sum{f_i h^2 ( u_i - \bar{u})^2} \right]} &{} \\

{}&{}
& {~=~}& {\frac{h^2}{\sum{f_i}}\left[\sum{f_i (u_i - \bar{u})^2} \right]} &{} \\

\end{array}$

◼ Remarks:
• Line marked as I:
In this line, we replace $x_i$ and $\bar{x}$ using the results in (3) and (4).


• So now we have three formulas for calculating variance:
(i) $\sigma^2~=~\frac{\sum{f_i (x_i - \bar{x})^2}}{\sum{f_i}}$

(ii) $\sigma^2~=~\left(\frac{1}{\sum{f_i}}\right)^2 \left[\left(\sum{f_i}\right) \left(\sum{f_i x^2 _i} \right)
 - \left(\sum{f_i x_i} \right)^2 \right]$

(iii) $\sigma^2~=~\frac{h^2}{\sum{f_i}}\left[\sum{f_i (u_i - \bar{u})^2} \right]$

Note:
Formula (i) is the basic formula. Formula (iii) is used for the shortcut method. Both (i) and (iii) follow the same pattern.


Let us apply the shortcut method for solved example 15.12 above. It will be our next solved example.

Solved example 15.13
Find the variance and standard deviation for the data in table 15.24 above.
Solution:
1. We are asked to find the variance.
• So our first aim is to find the mean $(\bar{x})$. For that, we want $f_i x_i$.
• For calculating $f_i x_i$, we want $x_i$.
• $x_i$ values are the midpoint values. They are calculated in the third column of the table 15.26 below:

Table 15.26

• Now we reduce the sizes of all $x_i$ values. For that, we consider a middle value as the assumed mean. For our present case, we consider 65 as the assumed mean (a). Then we subtract 'a' from all $x_i$ values. The values obtained after subtraction are denoted as $d_i$. This is calculated in column IV.
• Next, we reduce the size of $d_i$. This is achieved by dividing with a common factor (h). For our present case, 10 is the common factor. It is the class width. The values obtained after division are denoted as $u_i$. This is calculated in column V. 
• Finally, $f_i u_i$ is calculated in the column VI. So we can write:
$\bar{u}~=~\frac{\sum{f_i u_i}}{\sum{f_i}}~=~\frac{-15}{50}~=~-0.3$
2. Now we can calculate ($u_i - \bar{u}$). It is done in column VII.
• Using ($u_i - \bar{u}$), we can calculate $f_i(u_i - \bar{u})^2$. It is done in column VIII.
3. Now we can substitute the values.
• We have:
$\sigma^2~=~\frac{h^2}{\sum{f_i}}\left[\sum{f_i (u_i - \bar{u})^2} \right]~=~\frac{10^2}{50}\left[100.5 \right]~=~201$
4. Finally, we can calculate the standard deviation.
$\sigma~=~\sqrt{\sigma^2}~=~\sqrt{201}~=~14.18$


Link to a few more solved examples is given below:

Exercise 15.2


In the next section, we will see Analysis of frequency distributions.

Previous

Contents

Next

Copyright©2023 Higher secondary mathematics.blogspot.com

Sunday, July 30, 2023

Chapter 15.4 - Solved Examples on Standard Deviation

In the previous section, we saw variance and standard deviation. In this section, we will see some solved examples.

Solved example 15.9
Find the variance and standard deviation of the following data:
6,8,10,12,14,16,18,20,22,24
Solution:
1. We are asked to find the variance.
• So our first aim is to find the mean $(\bar{x})$. For that, we can use the columns I, II  and III of table 15.19 below:

Table 15.19

• Based on those columns, we can write:
$\bar{x}~=~\frac{\sum{f_i x_i}}{\sum{f_i}}~=~\frac{150}{10}~=~15$
2. Now we can calculate the variance. For that, we can use columns II, IV and V of the table.
• We have:
$\sigma^2~=~\frac{\sum{(x_i - \bar{x})^2}}{\sum{f_i}}~=~\frac{330}{10}~=~33$
3. Finally, we can calculate the standard deviation.
$\sigma~=~\sqrt{\sigma^2}~=~\sqrt{33}~=~5.74$

Solved example 15.10
Find the variance and standard deviation of the following data:

Table 15.20

Solution:
1. We are asked to find the variance.
• So our first aim is to find the mean $(\bar{x})$. For that, we can use the columns I, II  and III of table 15.21 below:

Table 15.21

• Based on those columns, we can write:
$\bar{x}~=~\frac{\sum{f_i x_i}}{\sum{f_i}}~=~\frac{420}{30}~=~14$
2. Now we can calculate the variance. For that, we can use columns II, IV and V of the table.
• We have:
$\sigma^2~=~\frac{\sum{f_i (x_i - \bar{x})^2}}{\sum{f_i}}~=~\frac{1374}{30}~=~45.8$
3. Finally, we can calculate the standard deviation.
$\sigma~=~\sqrt{\sigma^2}~=~\sqrt{45.8}~=~6.77$
4. Note:
In this problem, we have to take frequencies also into account. This can be explained using an example. It can be written in 3 steps:
(i) Frequency of the observation 11 is nine.
• That means, the observation 11 occurs nine times.
(ii) So we have to include "$(11 - \bar{x})^2$" nine times.
• Instead of writing nine times, we can directly calculate "$9 \times (11 - \bar{x})^2$"
(iii) So we calculate "$f_i \times (x_i - \bar{x})^2$" in the column V.


Another formula for standard deviation

This can be written in 2 steps:
1. We can derive a new formula for variance as follows:

$\begin{array}{ll}
{}&{\sigma^2}
& {~=~}& {\frac{1}{\sum{f_i}}\left[\sum{f_i \left(x_i - \bar{x} \right)^2} \right]} &{} \\

{}&{}
& {~=~}& {\frac{1}{\sum{f_i}}\left[\sum{f_i \left(x^2 _i + \bar{x}^2 - 2 x_i \bar{x} \right)} \right]} &{} \\

{}&{}
& {~=~}& {\frac{1}{\sum{f_i}}\left[\sum{f_i x^2 _i} + \sum{f_i \bar{x}^2} - \sum{2 f_i x_i \bar{x} } \right]} &{} \\

{}&{}
& {~=~}& {\frac{1}{\sum{f_i}}\left[\sum{f_i x^2 _i} + \bar{x}^2 \sum{f_i } - 2 \bar{x} \sum{f_i x_i } \right]~\color{green}{\text{- - - I}}} &{} \\

{}&{}
& {~=~}& {\frac{1}{\sum{f_i}}\left(\sum{f_i x^2 _i} \right) + \frac{1}{\sum{f_i}} \left(\bar{x}^2 \sum{f_i } \right) - \frac{1}{\sum{f_i}} \left(2 \bar{x} \sum{f_i x_i } \right)} &{} \\

{}&{}
& {~=~}& {\frac{1}{\sum{f_i}}\left(\sum{f_i x^2 _i} \right) + \left(\bar{x}^2 \right) - \left(2 \bar{x}^2 \right)~\color{green}{\text{- - - II}}} &{} \\

{}&{}
& {~=~}& {\frac{1}{\sum{f_i}}\left(\sum{f_i x^2 _i} \right) - \left(\bar{x}^2 \right)} &{} \\

{}&{}
& {~=~}& {\frac{1}{\sum{f_i}}\left(\sum{f_i x^2 _i} \right) - \left[\frac{1}{\sum{f_i}}\left(\sum{f_i x_i} \right) \right]^2 ~\color{green}{\text{- - - III}}} &{} \\

{}&{}
& {~=~}& {\frac{1}{\sum{f_i}}\left(\sum{f_i x^2 _i} \right) - \left[\left(\frac{1}{\sum{f_i}}\right)^2\left(\sum{f_i x_i} \right)^2 \right]} &{} \\

{}&{}
& {~=~}& {\left(\frac{1}{\sum{f_i}}\right)^2 \left[\left(\sum{f_i}\right) \left(\sum{f_i x^2 _i} \right) - \left(\sum{f_i x_i} \right)^2 \right]} &{} \\

\end{array}$

◼ Remarks:
(i) Line marked as I
• $\bar{x}$ is a constant. So we take it outside summations.
(ii) Line marked as II
• In the third term, $\frac{\sum{f_i x_i}}{\sum{f_i}}$ is $\bar{x}$
(iii) Line marked as III
• In this line, we write $\frac{\sum{f_i x_i}}{\sum{f_i}}$ in the place of $\bar{x}$.

2. Once we obtain the formula for variance, we can easily write the formula for standard deviation.

$\sigma~=~\sqrt{\left(\frac{1}{\sum{f_i}}\right)^2 \left[\left(\sum{f_i}\right) \left(\sum{f_i x^2 _i} \right) - \left(\sum{f_i x_i} \right)^2 \right]}$ 

⇒ $\sigma~=~\frac{1}{\sum{f_i}}\sqrt{\left(\sum{f_i}\right) \left(\sum{f_i x^2 _i} \right) - \left(\sum{f_i x_i} \right)^2}$


Solved example 15.11
Find the variance and standard deviation of the following data:

Table15.22

Solution:
1. For calculating variance, we have:
$\sigma^2~=~\left(\frac{1}{\sum{f_i}}\right)^2 \left[\left(\sum{f_i}\right) \left(\sum{f_i x^2 _i} \right) - \left(\sum{f_i x_i} \right)^2 \right]$
2. For calculating standard deviation, we have:
$\sigma~=~\frac{1}{\sum{f_i}}\sqrt{\left(\sum{f_i}\right) \left(\sum{f_i x^2 _i} \right) - \left(\sum{f_i x_i} \right)^2}$
3. For applying the formulas, we need the following items:
(i) $\sum{f_i}$
• This is calculated in column II of table 15.23 below:

Table 15.23

(ii) $\sum{f_i x_i}$
• This is calculated in column III of table 15.23.
(iii) $\sum{f_i (x_i)^2}$
• This is calculated in column V of table 15.23.
4. Substituting the known values in (1), we get:
$\sigma^2~=~\left(\frac{1}{48}\right)^2 \left[\left(48\right) \left(9652 \right) - \left(614 \right)^2 \right]~=~37.456$
5. So we can write:
$\sigma~=~\sqrt{37.456}~=~6.12$


In the next section, we will see variance and standard deviation for continuous frequency distribution.

Previous

Contents

Next

Copyright©2023 Higher secondary mathematics.blogspot.com

Saturday, July 29, 2023

Chapter 15.3 - Standard Deviation

In the previous section, we completed a discussion on mean deviation. In this section, we will see standard deviation.

• In the previous sections,we have studied two items:
   ♦ Mean deviation about Mean.
   ♦ Mean deviation about Median.
• Both have some limitations. Those limitations can be explained in 4 steps:
1. Consider the mean deviation about mean.
• We take the absolute values of the deviations. So the -ve signs are ignored.
• When a result is obtained by ignoring the signs, that result cannot be used for any further algebraic calculations.
2. Consider the mean deviation about median.
• Here also, we take the absolute values of the deviations. So the -ve signs are ignored.
• So this result is also not helpful for any further algebraic calculations.
3. Consider the two sums:
   ♦ Sum of absolute deviations about mean
   ♦ Sum of absolute deviations about median
• For any problem that we consider, the first sum mentioned above, will be greater than the second sum.
• But we divide both sums by the same quantity, which is “total number of observations”. So a confusion arises, as to which sum gives the accurate picture.
4. Consider the two series below:
   ♦ 35, 40, 47, 50, 54, 60, 65, 68, 72, 79
   ♦ 5, 8, 47, 50, 54, 60, 65, 68, 72, 79
• In the first series, the observations are more or less evenly distributed about the median.
• In the second series, the median will not represent the true nature because, two extreme values (5 and 8) are present. In such a series, if we use the deviations about median, we will get inaccurate results.


• Based on the limitations mentioned above, we can write:
An improved method is necessary to measure dispersion.
• Standard deviation is such an improved method, which is widely used in science, engineering, economics, business studies and sociology.


Variance and Standard deviation

This can be explained in 22 steps:
1. Recall that, for calculating mean deviation, we used the absolute values of the deviations. This was necessary to prevent the cancellation between +ve and -ve values.
• By taking the absolute values, we could ensure that only non-negative values come into the calculations.
2. There is another method to ensure the presence of only non-negative values:
Taking squares of the deviations.
3. Consider a series with n observations.
   ♦ Let $x_1, x_2, x_3, x_4,~.~.~.~, x_n$ be those n observations.
   ♦ Let $\bar{x}$ be the mean of those n observations.
• Then the deviations will be:
$(x_1 - \bar{x}), (x_2 - \bar{x}), (x_3 - \bar{x}), (x_4 - \bar{x}),~.~.~.~, (x_n - \bar{x})$
• So the squares of the deviations will be:
$(x_1 - \bar{x})^2, (x_2 - \bar{x})^2, (x_3 - \bar{x})^2, (x_4 - \bar{x})^2,~.~.~.~, (x_n - \bar{x})^2$
4. Now we can write the sum of those squares:
$(x_1 - \bar{x})^2~+~(x_2 - \bar{x})^2~+~(x_3 - \bar{x})^2~+~(x_4 - \bar{x})^2~+~.~.~.~+~ (x_n - \bar{x})^2~=~\sum{(x_i - \bar{x})^2}$
5. Consider the sum in the above step (4).
• No term in the L.H.S can become -ve. This is because, all terms are squares.
• Each term in the L.H.S will be either zero or +ve.
• Then, if the R.H.S is zero, it means that each term in the L.H.S is zero.
6. Suppose that, the R.H.S is zero.
Then we can write:

$\begin{array}{ll}
{\text{(i)}}&{(x_1 - \bar{x})^2}
& {~=~}& {0}
&{} \\

{\Rightarrow}&{x_1 - \bar{x}}
& {~=~}& {0}
&{} \\

{\Rightarrow}&{x_1}
& {~=~}& {\bar{x}}
&{} \\

{\text{(ii)}}&{(x_2 - \bar{x})^2}
& {~=~}& {0}
&{} \\

{\Rightarrow}&{x_2 - \bar{x}}
& {~=~}& {0}
&{} \\

{\Rightarrow}&{x_2}
& {~=~}& {\bar{x}}
&{} \\

{\text{(iii)}}&{(x_3 - \bar{x})^2}
& {~=~}& {0}
&{} \\

{\Rightarrow}&{x_3 - \bar{x}}
& {~=~}& {0}
&{} \\

{\Rightarrow}&{x_3}
& {~=~}& {\bar{x}}
&{} \\

\end{array}$

- - -
- - -
so on . . .

7. Based on the above step (6), we can write:
• If the sum of the squares of the deviations is zero, then each observation will be equal to $\bar{x}$
   ♦ That means, every observation is the same.
   ♦ That means, there is no dispersion.
• So we can write:
If the sum of the squares of the deviations is zero, then the series has no dispersion.
8. Consider again, the result in (4).
• If the deviations are small, then sum of the squares of the deviations will be small.
• If the deviations are small, then the dispersion of the series is said to be small.
• So we can write:
If the sum of the squares of the deviations is small, then the series has small dispersion.
9. Consider again, the result in (4).
• If the deviations are large, then sum of the squares of the deviations will be large.
• If the deviations are large, then the dispersion of the series is said to be large.
• So we can write:
If the sum of the squares of the deviations is large, then the series has large dispersion.
10. Let us compile the results in the above steps (7), (8) and (9):
(i) If the sum of squares is zero, then there is no dispersion.
(ii) If the sum of squares is small, then the dispersion is small.
(iii) If the sum of squares is large, then the dispersion is large.
11. Based on the above step (10), we are tempted to conclude that:
Sum of squares of the deviations is a good measure of dispersion.
• But before making such a conclusion, we will look at some examples.
12. As our first example, let us consider the following series of 6 observations:
5, 15, 25, 35, 45, 55
• The table 15.17 below shows the calculations:

Table 15.17

• We can write:
   ♦ $\bar{x}~=~\frac{\sum{f_i x_i}}{\sum{f_i}}~=~\frac{180}{6}~=~30$
   ♦ $\sum{(x_i - 30)^2~=~1750}$
13. As our second example, let us consider the following series of 31 observations:
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45
• The table 15.18 below shows the calculations:

Table 15.18

• We can write:
   ♦ $\bar{x}~=~\frac{\sum{f_i x_i}}{\sum{f_i}}~=~\frac{930}{31}~=~30$
   ♦ $\sum{(x_i - 30)^2~=~2480}$


Note:
• The sum of all items in the column VI is:
(-15)2 + (15)2 + (-14)2 + (14)2 + (-13)2 + (13)2 + . . . + (-1)2 + (1)2 +
• This can be written as:
2[152 + 142 + 132 + . . .  + (1)2]
• In the above result, the portion inside square brackets is:
Sum of the squares of first n natural numbers, where n = 15.
• We have a formula for calculating that sum (details here):
$\sum\limits_{k\,=\,1}^{k\,=\,n}{k^2}~=~\frac{n(2n + 1) (n+1)}{6}$
• Substituting n = 15, we get:
$\sum\limits_{k\,=\,1}^{k\,=\,15}{k^2}~=~\frac{15(30 + 1) (15+1)}{6}~=~\frac{15 × 31  × 16}{6}~=~1240$
• So the sum in column VI = (2 × 1240) = 2480


14. Comparing the results in steps (12) and (13), and based on the knowledge that we acquired so far, we are forced to write this:
Sum of squares is larger for the second example. So the series in the second example has greater dispersion.
15. However, let us plot both the series on the same graph. It is shown in fig.15.3 below:

Fig.15.3

• The green circles denote the six observations in the first example.
• The red diamonds denote the thirty one observations in the second example.
• We see that:
   ♦ The mean in both cases is 30.
   ♦ The six observations of example 1, are dispersed along a wider length of the number line.
   ♦ The thirty one observations of example 2, are dispersed along a narrower length of the number line.
• So we can write:
Example 2 has a lesser dispersion.
16. It is clear that, what we wrote in step (14) is wrong.
◼ How did it become wrong?
• We can write a brief answer in 3 steps:
(i) In the second example, individual deviations are small.
(ii) But compared to the first example, there are a large number of observations.
(iii) So the sum of squares became larger.
17. We must not use sum of squares to measure dispersion.
• Instead, we must modify it in accordance to the number of observations.
• For applying the modification, we must divide the sum by the number of observations ($\sum{f_i}$).
• When we divide the sum by $\sum{f_i}$, we get this:
   ♦ Mean
   ♦ of the
   ♦ squares
   ♦ of the
   ♦ deviations.
18. This mean is called variance. It is denoted by $\sigma^2$. It is read as sigma square.
• We can write:
$\text{Variance}~(\sigma^2) ~=~ \frac{\sum{(x_i- \bar{x})^2}}{\sum{f_i}}$
19. Let us calculate the variance for our examples:
• The variance of our first example will be:
$\frac{1750}{6}~=~291.67$
• The variance of our second example will be:
$\frac{2480}{31}~=~80$
20. We see that, the second example has a smaller variance.
• Based on this, we can write:
Data in the second example has a smaller dispersion.
21. While dealing with variance, we encounter a difficulty related to units. It can be explained using some examples.
Example 1:
This can be written in 2 steps:
(i) Suppose that the observations in a series, are the heights of students in a class.
(ii) Then we will be using two units:
   ♦ Each observation ($x_i$) will be expressed in cm.
   ♦ The mean ($\bar{x}$) will also be expressed in cm.
   ♦ The variance ($\sigma^2$) will be expressed in cm2
Example 2:
This can be written in 2 steps:
(i) Suppose that the observations in a series, are the weights of fruits from a field.
(ii) Then we will be using two units:
   ♦ Each observation ($x_i$) will be expressed in gm.
   ♦ The mean ($\bar{x}$) will also be expressed in gm.
   ♦ The variance ($\sigma^2$) will be expressed in gm2
22. In order to avoid the usage of a unit and it's square, we take the square root of the variance.
• Remember that, there will be a +ve square root and a -ve square root. We must discard the -ve square root.
• The +ve square root of the variance is called standard deviation. It is denoted by $\sigma$.
• So we can write:
$\sigma~=~\sqrt{\frac{\sum{(x_i- \bar{x})^2}}{\sum{f_i}}}$


In the next section, we will see some solved examples.

Previous

Contents

Next

Copyright©2023 Higher secondary mathematics.blogspot.com