Table of Contents
1. Introduction
Statistics is the science of collecting, organising, analysing, presenting, and interpreting numerical data. It helps in understanding patterns, drawing conclusions, and making predictions about various real-world phenomena.
Applications of Statistics
- Medicine: Doctors and physicians use statistics to track a baby’s development and to test the effectiveness of treatments.
- Industry: Companies use statistical quality control to test products and ensure consistent quality without testing every single item.
- Business: Retailers use statistics to track inventory, sales trends, and stock requirements.
1.1 Types of Data
Data in statistics is broadly classified as follows:
| Category | Description |
|---|---|
| Ungrouped Data | Raw, individual data not arranged into any class or category. Also called raw data. |
| Grouped Data | Data arranged into groups/classes, summarised through a frequency distribution table. |
| Discrete Data | Data that can take only specific, countable values (e.g., number of children). |
| Continuous Data | Data that can take any value within a range (e.g., height, weight, time). |
Note: Grouped data is further sub-divided into discrete and continuous data based on the nature of the variable.
2. Graphical Representation of Statistical Data
Representing data pictorially (through graphs, diagrams, and charts) makes comparison and interpretation of data convenient.
2.1 Histogram
A histogram is drawn from a frequency table with equal class intervals plotted on the X-axis. For each class interval, a rectangle is drawn whose height equals the frequency of that class, and adjacent rectangles share common boundaries (no gaps between bars).
Construction Steps
- Take the class intervals along the X-axis on a suitable scale.
- Take the frequencies along the Y-axis on a suitable scale.
- Draw rectangles with class intervals as the base and corresponding frequencies as the height.
- Adjacent rectangles are drawn touching each other (no gaps), since the class intervals are continuous.
2.2 Frequency Polygon
A frequency polygon is a line graph obtained by joining the midpoints of the tops of the rectangles of a histogram. It can be constructed in two ways:
(a) By Using a Histogram
- Construct a histogram for the given frequency distribution.
- Mark the midpoint of the top of each rectangle.
- Join these midpoints using straight line segments, in order.
- Join the midpoint of the first rectangle to the midpoint of the (imagined) preceding class interval on the X-axis.
- Join the midpoint of the last rectangle to the midpoint of the (imagined) succeeding class interval on the X-axis.
(b) Without Using a Histogram
- If the data are grouped into class intervals, first find each class mark; for discrete ungrouped data, use the observed values.
- Plot the class marks (or observed values for discrete data) on the X-axis and the corresponding frequencies on the Y-axis, i.e. plot points \((x_i,f_i)\).
- Join all the plotted points using straight line segments.
- For grouped data, join the ends to the midpoints of the class intervals immediately before the first class and after the last class.
Note: If marks/values cannot be negative and cannot exceed a maximum limit (e.g. marks between 0 and 100), the polygon is closed off at the axis using half the class width instead of extending to an impossible interval.
2.3 Pie Diagram (Pie Chart)
A pie diagram represents data (usually given in percentages) as sectors of a circle. Since a circle has 360°, and 100% of data corresponds to 360°, each 1% of data corresponds to 3.6°.
\[ \text{Degree}=\frac{360^\circ}{100}\times\text{Percent} \]
Equivalently, 1% of the population = 3.6° of the circle.
3. Measures of Central Tendency
A measure of central tendency is a single value that attempts to describe a data set by identifying the central position within it. The three main measures are: Mean, Median, and Mode.
3.1 Mean (Arithmetic Mean)
The mean is the average value of a data set, denoted by \(\bar x\).
Mean for Ungrouped Data
\[ \bar x=\frac{x_1+x_2+\cdots+x_n}{n}=\frac1n\sum x_i \]
Shortcut Method: \(\bar x=A+\frac1n\sum d_i\), where \(A=\text{assumed mean}\), \(d_i=x_i-A\)
Mean for Grouped Data
If \(x_1,x_2,\ldots,x_n\) have corresponding frequencies \(f_1,f_2,\ldots,f_n\):
\[ \begin{aligned} \text{Direct Method:}\quad&\bar x=\frac{\sum f_i x_i}{\sum f_i}\\ \text{Assumed Mean Method:}\quad&\bar x=A+\frac{\sum f_i d_i}{\sum f_i},\quad d_i=x_i-A\\ \text{Step Deviation Method:}\quad&\bar x=A+\frac{\sum f_i u_i}{\sum f_i}\times h,\quad u_i=\frac{x_i-A}{h} \end{aligned} \]
Note: \(A\) = assumed mean, \(h\) = class size. The step deviation method is preferred for uniform class intervals as it simplifies calculation.
Other Means
Weighted Mean:
\[ \text{Weighted Mean}=\frac{w_1x_1+w_2x_2+\cdots+w_nx_n}{w_1+w_2+\cdots+w_n}=\frac{\sum w_i x_i}{\sum w_i} \]
where \(w_i\geq0\) and \(\sum w_i>0\).
Geometric Mean (GM): For \(n\) observations \(x_1,x_2,\ldots,x_n\)
\[ G=(x_1\cdot x_2\cdots x_n)^{1/n}\quad\Rightarrow\quad\log G=\frac1n\sum\log x_i \]
For grouped data: \(G=\operatorname{antilog}\bigl[\frac1N\sum f_i\log x_i\bigr]\), where \(N=\sum f_i\), for \(x_i>0\).
Harmonic Mean (HM): The reciprocal of the arithmetic mean of the reciprocals of the observations.
\[ \text{Ungrouped: }\mathrm{HM}=\frac{n}{\sum(1/x_i)}\qquad\text{Grouped: }\mathrm{HM}=\frac{\sum f_i}{\sum(f_i/x_i)} \]
for positive observations \(x_i>0\).
Properties of Mean
- Mean uses every item in the data set, but is affected by extreme values.
- It need not be an element of the collection, nor need it be an integer even if all elements are integers.
- The sum of deviations of individual observations from the mean is always zero: \(\sum(x_i-\bar x)=0\).
- The sum of squares of deviations of the values about the mean is minimum.
- Mean is affected by change (shifting) of origin and scale.
3.2 Mode
The mode is the value that occurs most frequently in a data set. A data set may have one mode, more than one mode, or no mode at all.
\[ \text{Mode}=l+\left[\frac{f_1-f_0}{2f_1-f_0-f_2}\right]\times h \]
where \(l\) = lower boundary of the modal class (after converting inclusive classes to continuous classes, if necessary), \(f_0\) = frequency of the class preceding the modal class, \(f_1\) = frequency of the modal class, \(f_2\) = frequency of the class succeeding the modal class, \(h\) = class size.
Properties of Mode
- The mode is not unduly affected by extreme (very high or very low) values.
- The mode is not based on all observations in a data set.
- The mode can be found graphically from a histogram.
- The mode can be calculated in an open-ended distribution if the modal class and its neighbouring classes have known class boundaries.
- The mode can be found even with unequal class widths, provided the modal class and its neighbouring classes have the same width.
3.3 Median
The median is the middle value of the data when arranged in ascending or descending order.
Median for Individual (Ungrouped) Data
- Arrange the data in ascending or descending order.
- If \(n\) is odd: Median = value of the \([\frac{n+1}{2}]\)th item.
- If \(n\) is even: Median = \(\frac12\) [ value of \((n/2)\)th item + value of \((n/2+1)\)th item ].
Median for Grouped (Continuous) Data
\[ \text{Median}=l+\left[\frac{N/2-C}{f}\right]\times h \]
where \(l\) = lower limit of the median class, \(N=\sum f_i\), \(C\) = cumulative frequency of the class preceding the median class, \(f\) = frequency of the median class, \(h\) = class size.
Note: If class intervals are given in inclusive form, convert them to exclusive (continuous) form first, and use the lower limit of the converted (true) class interval.
Properties of Median
- There is a unique median for each data set.
- It is generally less affected by extreme values than the mean, making it valuable when such values occur.
- The sum of absolute deviations from the median is no greater than that from any other value.
3.4 Symmetric and Skewed Distributions
A distribution is symmetric if frequencies are symmetrically distributed about the centre. A distribution with a longer tail on one side is called skewed.
In a moderately skewed distribution, the distance between the mean and the mode is approximately three times the distance between the mean and the median. This gives the Empirical Relation:
\[ \text{Mean}-\text{Mode}=3(\text{Mean}-\text{Median})\quad\Rightarrow\quad\text{Mode}=3\,\text{Median}-2\,\text{Mean} \]
4. Measures of Dispersion
Dispersion measures the degree to which numerical data tend to spread out about an average value. The main measures of dispersion are: Range, Mean Deviation, and Standard Deviation.
4.1 Range
Range is the difference between the two extreme observations of a distribution. It is not a measure of central tendency and is widely used in quality control.
\[ \text{Range}=X_{\max}-X_{\min}\qquad\text{Coefficient of Range}=\frac{X_{\max}-X_{\min}}{X_{\max}+X_{\min}} \]
provided \(X_{\max}+X_{\min}\ne0\).
Related Measures
Inter-quartile range = \(Q_3-Q_1\) | Percentile range = \(P_{90}-P_{10}\)
\[ \text{Quartile Deviation (Q.D.)}=\frac{Q_3-Q_1}{2}\qquad\text{Coefficient of Q.D.}=\frac{Q_3-Q_1}{Q_3+Q_1} \]
provided \(Q_3+Q_1\ne0\).
4.2 Mean Deviation (M.D.)
The Mean Deviation is the arithmetic mean of the absolute deviations of individual values from a measure of central tendency (mean or median). Also called the average deviation.
\[ \begin{aligned} \text{About Mean (ungrouped): }&\mathrm{M.D.}(\bar x)=\frac{\sum|x_i-\bar x|}{n}\qquad\text{About Mean (grouped): }\mathrm{M.D.}(\bar x)=\frac{\sum f_i|x_i-\bar x|}{\sum f_i}\\ \text{About Median (ungrouped): }&\mathrm{M.D.}(M)=\frac{\sum|x_i-M|}{n}\qquad\text{About Median (grouped): }\mathrm{M.D.}(M)=\frac{\sum f_i|x_i-M|}{\sum f_i} \end{aligned} \]
4.3 Standard Deviation (σ)
Standard deviation is the square root of the arithmetic mean of the squares of deviations of the values from their mean. It is denoted by \(\sigma\) (sigma). A low \(\sigma\) means data are clustered around the mean; a high \(\sigma\) means data are more spread out.
\[ \begin{aligned} \text{Individual Series: }&\sigma=\sqrt{\frac{\sum_{i=1}^{n}(x_i-\bar x)^2}{n}}\\ \text{Continuous Series: }&\sigma=\sqrt{\frac{\sum f_i(x_i-\bar x)^2}{N}},\quad N=\sum f_i \end{aligned} \]
Shortcut (Assumed-Mean) Method
\[ \text{Individual Series: }\sigma=\sqrt{\frac{\sum d^2}{N}-\left(\frac{\sum d}{N}\right)^2}\qquad\text{Continuous Series: }\sigma=\sqrt{\frac{\sum fd^2}{N}-\left(\frac{\sum fd}{N}\right)^2} \]
where \(d=x-A\) (deviation from assumed mean \(A\)).
Relations with other dispersion measures (for approximately normal distributions):
\[ \sigma\approx\frac{3}{2}\,\text{(Quartile Deviation)}\qquad\sigma\approx\frac54\,\text{(Mean Deviation)} \]
Properties of Standard Deviation
- It cannot be negative.
- It is independent of change of origin.
- It is dependent on change of scale.
- It is never less than the mean deviation from the mean.
Coefficient of S.D. = \(\sigma/\bar x\) (used to compare dispersion of two distributions), when \(\bar x\ne0\) (normally for positive ratio-scale data).
Combined Standard Deviation of Two Series
If two series of sizes \(n_1,n_2\) have means \(\bar x_1,\bar x_2\) and standard deviations \(\sigma_1,\sigma_2\), and combined mean \(\bar x=(n_1\bar x_1+n_2\bar x_2)/(n_1+n_2)\), then:
\[ \sigma=\sqrt{\frac{n_1\sigma_1^2+n_2\sigma_2^2}{n_1+n_2}+\frac{n_1n_2(\bar x_1-\bar x_2)^2}{(n_1+n_2)^2}} \]
Equivalently, \(\sigma=\sqrt{\frac{n_1(\sigma_1^2+d_1^2)+n_2(\sigma_2^2+d_2^2)}{n_1+n_2}}\), where \(d_1=\bar x_1-\bar x\), \(d_2=\bar x_2-\bar x\)
4.4 Variance
Variance is the average of the squared deviations from the mean — it is simply the square of the standard deviation, \(\operatorname{Var}(X)=\sigma^2\).
Properties of Variance
- \(\operatorname{Var}(X+C)=\operatorname{Var}(X)\), where \(C\) is a constant.
- \(\operatorname{Var}(CX)=C^2\operatorname{Var}(X)\), where \(C\) is a constant.
- \(\operatorname{Var}(aX+b)=a^2\operatorname{Var}(X)\), where \(a,b\) are constants.
- If \(X_1,X_2,\ldots,X_n\) are \(n\) independent random variables, \(\operatorname{Var}(X_1+X_2+\cdots+X_n)=\operatorname{Var}(X_1)+\operatorname{Var}(X_2)+\cdots+\operatorname{Var}(X_n)\).
4.5 Coefficient of Variation (C.V.)
The Coefficient of Variation is a standardised, unit-free measure of dispersion, also called relative standard deviation. A lower C.V. indicates less variability and higher stability.
\[ \mathrm{C.V.}=\frac{\sigma}{\bar x}\times100 \]
C.V. is interpreted for positive ratio-scale data with \(\bar x>0\).
5. Correlation
When two variables tend to change together (in the same or opposite direction) across a large number of instances, a relationship called correlation is said to exist between them.
5.1 Covariance
For a bivariate distribution \((x_i,y_i)\), \(i=1,2,\ldots,n\):
\[ \operatorname{Cov}(x,y)=\frac1n\sum(x_i-\bar x)(y_i-\bar y)=\frac1n\sum x_iy_i-\bar x\bar y \]
Note: Covariance is not affected by a change of origin, but it is affected by a change of scale.
5.2 Types of Correlation
- Perfect Correlation — \(r=+1\) or \(r=-1\).
- Positive (Direct) Correlation — as one variable increases, the other also increases.
- Negative (Indirect) Correlation — as one variable increases, the other decreases.
5.3 Karl Pearson’s Coefficient of Correlation
\[ r(x,y)=\frac{\operatorname{Cov}(x,y)}{\sigma_x\sigma_y},\qquad \sigma_x>0,\ \sigma_y>0 \]
\[ r(x,y)=\frac{n\sum x_i y_i-(\sum x_i)(\sum y_i)}{\sqrt{n\sum x_i^2-(\sum x_i)^2}\,\sqrt{n\sum y_i^2-(\sum y_i)^2}} \]
Modified (deviation) formula, with \(d_x=x-\bar x\), \(d_y=y-\bar y\):
\[ r=\frac{\sum d_x\cdot d_y-(\sum d_x\cdot\sum d_y)/n}{\sqrt{\left[\sum d_x^2-\frac{(\sum d_x)^2}{n}\right]\left[\sum d_y^2-\frac{(\sum d_y)^2}{n}\right]}} \]
5.4 Rank Correlation (Spearman’s Formula)
Used when individuals are ranked (rather than measured numerically) on two characteristics A and B.
\[ \rho=1-\frac{6\sum d^2}{n(n^2-1)}\qquad\text{(for rankings without ties)} \]
where \(\sum d^2\) = sum of squares of the differences of the two ranks, \(n\) = number of pairs of observations.
If some values are repeated (tied ranks), use average ranks and calculate the Pearson correlation of those ranks:
\[ \rho=\frac{\sum_i(R_i-\bar R)(S_i-\bar S)}{\sqrt{\sum_i(R_i-\bar R)^2\sum_i(S_i-\bar S)^2}} \]
where \(R_i,S_i\) are the two sets of average ranks.
Key Results on r
- \(r=1\): perfect positive correlation — every individual has the same rank in both characteristics.
- \(r=-1\): perfect negative correlation — ranks are exactly reversed.
- \(r=0\): no monotonic rank correlation is indicated between the two characteristics.
- We always have \(\sum d_i=\sum R_i-\sum S_i=0\), since both rank totals equal \(\frac{n(n+1)}2\) (also with average tied ranks).
6. Regression
If a relation exists between two variates \(x\) and \(y\), the points of the scatter diagram cluster around a curve called the curve of regression. When this curve is a straight line, it is called linear regression.
6.1 Equations of Lines of Regression
Regression Line of y on x (estimates y for a given x)
\[ y-\bar y=\frac{\operatorname{Cov}(x,y)}{\sigma_x^2}(x-\bar x)\qquad\text{or}\qquad y-\bar y=r\frac{\sigma_y}{\sigma_x}(x-\bar x) \]
Regression Line of x on y (estimates x for a given y)
\[ x-\bar x=\frac{\operatorname{Cov}(x,y)}{\sigma_y^2}(y-\bar y)\qquad\text{or}\qquad x-\bar x=r\frac{\sigma_x}{\sigma_y}(y-\bar y) \]
6.2 Regression Coefficients
\[ b_{yx}\text{ (of y on x)}=r\frac{\sigma_y}{\sigma_x}=\frac{\operatorname{Cov}(x,y)}{\sigma_x^2}\qquad b_{xy}\text{ (of x on y)}=r\frac{\sigma_x}{\sigma_y}=\frac{\operatorname{Cov}(x,y)}{\sigma_y^2} \]
Important Points about bxy and byx
- \(r=\operatorname{sgn}(b_{yx})\sqrt{b_{yx}b_{xy}}\), i.e., the correlation coefficient has the sign of either regression coefficient and magnitude equal to the geometric mean of their product.
- If \(b_{yx}>1\), then \(b_{xy}<1\) (one regression coefficient exceeds unity only if the other is less than unity).
- If correlation between the variables is not perfect, the two regression lines intersect at \((\bar x,\bar y)\).
- \(b_{yx}\) is the slope of the regression line y on x; \(1/b_{xy}\) is the slope of the regression line x on y, for \(b_{xy}\ne0\); when \(b_{xy}=0\), the x-on-y line is vertical.
- \(|b_{yx}|+|b_{xy}|\geq2\sqrt{b_{yx}b_{xy}}=2|r|\), i.e. the arithmetic mean of the magnitudes of the regression coefficients is \(\geq |r|\).
- If both regression lines coincide, the correlation is perfectly linear (\(r=\pm1\)).
- The product of the gradients (slopes) of the two regression lines equals \(\sigma_y^2/\sigma_x^2\), provided \(r\ne0\) (and \(\sigma_x,\sigma_y>0\)).
- If both \(b_{yx}\) and \(b_{xy}\) are positive, \(r\) is positive; if both are negative, \(r\) is negative.
6.3 Angle Between the Two Lines of Regression
If the two regression lines are \(y-\bar y=b_{yx}(x-\bar x)\) and \(x-\bar x=b_{xy}(y-\bar y)\), and \(\theta\) is the angle between them:
\[ \tan\theta=\pm\left[\frac{1-r^2}{r}\right]\cdot\left[\frac{\sigma_x\sigma_y}{\sigma_x^2+\sigma_y^2}\right] \]
Note: If \(r=0\), \(\theta=90^\circ\) — the two regression lines are perpendicular (at right angles). If \(r=\pm1\), \(\theta=0^\circ\) — the two regression lines coincide.
7. Standard Error and Probable Error
The root mean square of the differences between predicted and observed values is called the root-mean-square prediction error:
\[ S_y=\sqrt{\frac{\sum_{i=1}^{n}(y_i-y_{p,i})^2}{n}},\qquad y_p=\text{predicted value} \]
In terms of the correlation coefficient, the standard errors of estimate are:
\[ s_x=\sigma_x\sqrt{1-r^2}\qquad s_y=\sigma_y\sqrt{1-r^2} \]
If \(r\) is the correlation coefficient in a sample of \(n\) pairs of observations:
\[ \text{Standard Error, S.E.}(r)\approx\frac{1-r^2}{\sqrt n}\qquad\text{Probable Error, P.E.}(r)=0.6745\times\text{S.E.}(r) \]
Interpreting r Relative to P.E.
- If \(|r|<\mathrm{P.E.}(r)\): the correlation is not considered significant by this approximate rule.
- If \(|r|>6\times\mathrm{P.E.}(r)\): this approximate rule suggests a statistically significant correlation, not certainty.
- The square of the correlation coefficient (\(r^2\)) is called the Coefficient of Determination.