Skip to the content
How to use this manual: In the lab, copy the blank working table (the one with only headings) at the start of each experiment's Calculation and fill it in yourself from the given data. The Calculation section then shows the completed table and the substitution so you can check your work.

List of Practical Experiments (Official Syllabus)

  1. Fitting of straight line by the method of least squares.
  2. Fitting of parabola by the method of least squares.
  3. Fitting of exponential curve of two types by the method of least squares.
  4. Fitting of power curve by the method of least squares.
  5. Computation of correlation coefficient and regression lines for ungrouped data.
  6. Computation of correlation coefficient for bivariate frequency distribution.
  7. Computation of correlation coefficient and forming regression lines for grouped data.
  8. Computation of partial and multiple correlation coefficients.
  9. Computation of Yule's coefficient of association and colligation.

Experiment 1 — Fitting a Straight Line

1. Problem

Fit a straight line \(Y = a + bX\) by the method of least squares to:

x01234
y11.83.34.56.3

2. Aim

To fit a straight line to bivariate data by the method of least squares.

3. Formula

\[ b = \frac{n\sum xy - \sum x\sum y}{n\sum x^2 - (\sum x)^2}, \qquad a = \bar y - b\bar x \]

Applying it:

  1. Form the columns \(x, y, xy, x^2\) and total them.
  2. Compute the slope \(b\) and intercept \(a\) from the least-squares formulas.

4. Calculation

Blank working table (fill in xy and x², then total):

xyxyx²
01
11.8
23.3
34.5
46.3
Σ

\(n = 5\); \(\sum x = 10,\ \sum y = 16.9,\ \sum xy = 47.1,\ \sum x^2 = 30\).

\(b = \dfrac{5(47.1) - (10)(16.9)}{5(30) - 10^2} = \dfrac{235.5 - 169}{150 - 100} = \dfrac{66.5}{50} = 1.33\).

\(a = \dfrac{16.9}{5} - 1.33(2) = 3.38 - 2.66 = 0.72\).

5. Result

The fitted least-squares line is \(Y = 0.72 + 1.33\,X\).

Experiment 2 — Fitting a Parabola

1. Problem

Fit a second-degree parabola \(Y = a + bX + cX^2\) by the method of least squares to:

x12345
y25101726

2. Aim

To fit a second-degree polynomial (parabola) to data by the method of least squares.

3. Formula

\[ \sum y = na + b\sum x + c\sum x^2 \] \[ \sum xy = a\sum x + b\sum x^2 + c\sum x^3 \] \[ \sum x^2 y = a\sum x^2 + b\sum x^3 + c\sum x^4 \]

Applying it:

  1. Form the sums \(\sum x, \sum x^2, \sum x^3, \sum x^4, \sum y, \sum xy, \sum x^2 y\).
  2. Write the three normal equations and solve for \(a, b, c\).

4. Calculation

Blank working table (fill in the product columns and total):

xyx²x³x⁴xyx²y
12
25
310
417
526
Σ60

\(\sum x = 15,\ \sum x^2 = 55,\ \sum x^3 = 225,\ \sum x^4 = 979,\ \sum y = 60,\ \sum xy = 240,\ \sum x^2 y = 1034\).

Normal equations:

Solving gives \(a = 1,\ b = 0,\ c = 1\) (the equations are satisfied exactly: \(5+55 = 60\), \(15+225 = 240\), \(55+979 = 1034\)).

5. Result

The fitted parabola is \(Y = 1 + X^2\) — an exact fit, since the data were generated by \(1 + X^2\).

Experiment 3 — Fitting Exponential Curves

1. Problem

Fit (Type I) \(Y = a\,b^X\) and (Type II) \(Y = a\,e^{bX}\) by least squares to:

x12345
y392781243

2. Aim

To fit exponential curves by linearising them with logarithms and applying least squares.

3. Formula

\[ B = \frac{n\sum x\log y - \sum x\sum \log y}{n\sum x^2 - (\sum x)^2}, \qquad A = \overline{\log y} - B\bar x \]

Applying it:

  1. Type I: take \(\log_{10} y\); then \(\log y = \log a + (\log b)\,X\) is linear in \(X\).
  2. Fit the line: slope \(B = \log b\), intercept \(A = \log a\); recover \(a = 10^{A},\ b = 10^{B}\).
  3. Type II: the same data give \(b = \ln(\text{growth factor})\) directly, since \(a\,e^{bX}\) with \(a = 1\).

4. Calculation

Blank working table (fill in log y and x·log y, then total):

xylog yx · log yx²
131
294
3279
48116
524325
Σ55

\(\log y\): 0.477, 0.954, 1.431, 1.908, 2.386; \(\sum \log y = 7.157\); \(\sum x = 15\), \(\sum x^2 = 55\).

\(\sum x\log y = 1(0.477) + 2(0.954) + 3(1.431) + 4(1.908) + 5(2.386) = 26.24\).

\(B = \dfrac{5(26.24) - 15(7.157)}{5(55) - 15^2} = \dfrac{131.2 - 107.36}{50} = 0.477\), so \(b = 10^{0.477} = 3\).

\(A = \dfrac{7.157}{5} - 0.477(3) = 1.431 - 1.431 = 0\), so \(a = 10^{0} = 1\).

Type II: \(b = \ln 3 = 1.0986\), \(a = 1\).

5. Result

Type I: \(Y = 1 \cdot 3^{X} = 3^{X}\). Type II: \(Y = e^{1.0986\,X}\) (the same curve written with base \(e\)).

Experiment 4 — Fitting a Power Curve

1. Problem

Fit a power curve \(Y = a\,X^{b}\) by least squares to:

x1234
y21654128

2. Aim

To fit a power curve by taking logarithms of both variables and applying least squares.

3. Formula

\[ b = \frac{n\sum(\log x)(\log y) - \sum\log x\sum\log y}{n\sum(\log x)^2 - (\sum\log x)^2}, \qquad \log a = \overline{\log y} - b\,\overline{\log x} \]

Applying it:

  1. Take \(\log x\) and \(\log y\); then \(\log y = \log a + b\log x\) is linear.
  2. Fit the line: slope \(b\), intercept \(\log a\); recover \(a = 10^{\log a}\).

4. Calculation

Blank working table (fill in the log columns and products, then total):

xylog xlog y(log x)²log x · log y
12
216
354
4128
Σ

\(\log x\): 0, 0.301, 0.477, 0.602; \(\log y\): 0.301, 1.204, 1.732, 2.107.

\(\sum \log x = 1.380,\ \sum \log y = 5.344,\ \sum(\log x)^2 = 0.681,\ \sum(\log x)(\log y) = 2.458\).

\(b = \dfrac{4(2.458) - (1.380)(5.344)}{4(0.681) - 1.380^2} = \dfrac{9.832 - 7.375}{2.724 - 1.904} = \dfrac{2.457}{0.820} = 3.0\).

\(\log a = \dfrac{5.344}{4} - 3\!\left(\dfrac{1.380}{4}\right) = 1.336 - 1.035 = 0.301\), so \(a = 10^{0.301} = 2\).

5. Result

The fitted power curve is \(Y = 2\,X^{3}\) — an exact fit, since the data were generated by \(2X^3\).

Experiment 5 — Correlation & Regression Lines (Ungrouped)

1. Problem

For the bivariate data below, compute the correlation coefficient and the two regression lines:

x12345
y23546

2. Aim

To compute Karl Pearson's correlation coefficient and the two regression lines for ungrouped data.

3. Formula

\[ r = \frac{n\sum xy - \sum x\sum y}{\sqrt{[n\sum x^2 - (\sum x)^2][n\sum y^2 - (\sum y)^2]}} \] \[ b_{yx} = \frac{n\sum xy - \sum x\sum y}{n\sum x^2 - (\sum x)^2}, \qquad b_{xy} = \frac{n\sum xy - \sum x\sum y}{n\sum y^2 - (\sum y)^2} \]

Applying it:

  1. Form the sums \(\sum x, \sum y, \sum xy, \sum x^2, \sum y^2\).
  2. Compute \(r\) and the regression coefficients \(b_{yx},\ b_{xy}\); check \(r = \sqrt{b_{yx}\,b_{xy}}\).

4. Calculation

Blank working table (fill in the product columns and total):

xyxyx²y²
12
23
35
44
56
Σ

\(n = 5\); \(\sum x = 15,\ \sum y = 20,\ \sum xy = 69,\ \sum x^2 = 55,\ \sum y^2 = 90\).

\(r = \dfrac{5(69) - (15)(20)}{\sqrt{[5(55) - 225][5(90) - 400]}} = \dfrac{345 - 300}{\sqrt{50 \times 50}} = \dfrac{45}{50} = 0.9\).

\(b_{yx} = 45/50 = 0.9\), \(b_{xy} = 45/50 = 0.9\); with \(\bar x = 3,\ \bar y = 4\):

5. Result

\(r = 0.9\) (strong positive correlation). Regression lines: \(Y = 0.9X + 1.3\) and \(X = 0.9Y - 0.6\). Check: \(\sqrt{b_{yx}\,b_{xy}} = \sqrt{0.81} = 0.9 = r\) ✓.

Experiment 6 — Correlation for a Bivariate Frequency Distribution

1. Problem

Bivariate frequency table (X = age in years, Y = weight in kg):

X \ Y40–5050–6060–70Total
20–3025310
30–40110920
40–50051520
Total3202750

Compute the correlation coefficient.

2. Aim

To compute Karl Pearson's correlation coefficient for a bivariate frequency distribution using step deviations.

3. Formula

\[ r = \frac{N\sum fuv - (\sum fu)(\sum fv)}{\sqrt{[N\sum fu^2 - (\sum fu)^2][N\sum fv^2 - (\sum fv)^2]}} \]

Applying it:

  1. Take the class mid-points and step deviations \(u = (x - A)/h_x,\ v = (y - B)/h_y\).
  2. For each cell compute \(fu, fv, fu^2, fv^2, fuv\) and total them.
  3. Substitute into the step-deviation correlation formula.

4. Calculation

Blank working table (mid-points \(x = 25, 35, 45\Rightarrow u=-1,0,1\); \(y = 45, 55, 65\Rightarrow v=-1,0,1\); fill in the product columns and total):

uvffufvfu²fv²fuv
−1−12
−105
−113
0−11
0010
019
1−10
105
1115
Σ50
uvffufvfu²fv²fuv
−1−12−2−2222
−105−50500
−113−3333−3
0−110−1010
001000000
01909090
1−1000000
10550500
11151515151515
Σ501024303014

\(r = \dfrac{50(14) - (10)(24)}{\sqrt{[50(30) - 10^2][50(30) - 24^2]}} = \dfrac{700 - 240}{\sqrt{(1400)(924)}} = \dfrac{460}{1137.4} = 0.40\).

5. Result

\(r = 0.40\) — a moderate positive correlation between age and weight.

Experiment 7 — Correlation & Regression Lines for Grouped Data

1. Problem

For the bivariate frequency table of Experiment 6, compute the means, standard deviations and the two regression lines.

2. Aim

To obtain the regression lines of a bivariate frequency distribution from the correlation coefficient and the marginal standard deviations.

3. Formula

\[ \bar x = A + h_x\frac{\sum fu}{N}, \qquad \sigma_x = h_x\sqrt{\frac{\sum fu^2}{N} - \left(\frac{\sum fu}{N}\right)^2} \] \[ b_{yx} = r\frac{\sigma_y}{\sigma_x}, \qquad b_{xy} = r\frac{\sigma_x}{\sigma_y} \]

Applying it:

  1. From the step-deviation sums (Experiment 6), compute \(\bar x,\ \bar y,\ \sigma_x,\ \sigma_y\).
  2. Compute the regression coefficients \(b_{yx} = r\,\sigma_y/\sigma_x\) and \(b_{xy} = r\,\sigma_x/\sigma_y\).
  3. Write the two regression lines through \((\bar x, \bar y)\).

4. Calculation

Blank working table (fill in each quantity from the Experiment 6 sums):

QuantityValue
\(\bar x\), \(\bar y\)
\(\sigma_x\), \(\sigma_y\)
\(r\)
\(b_{yx}\), \(b_{xy}\)

With \(A = 35,\ B = 55,\ h_x = h_y = 10,\ N = 50\) and the sums \(\sum fu = 10,\ \sum fv = 24,\ \sum fu^2 = 30,\ \sum fv^2 = 30\):

\(\bar x = 35 + 10(10/50) = 37\); \(\bar y = 55 + 10(24/50) = 59.8\).

\(\sigma_x = 10\sqrt{30/50 - (10/50)^2} = 10\sqrt{0.56} = 7.48\); \(\sigma_y = 10\sqrt{30/50 - (24/50)^2} = 10\sqrt{0.3696} = 6.08\).

With \(r = 0.40\): \(b_{yx} = 0.40(6.08/7.48) = 0.33\); \(b_{xy} = 0.40(7.48/6.08) = 0.50\).

5. Result

\(\bar x = 37,\ \bar y = 59.8,\ \sigma_x = 7.48,\ \sigma_y = 6.08,\ r = 0.40\). The regression lines are \(Y - 59.8 = 0.33(X - 37)\) and \(X - 37 = 0.50(Y - 59.8)\).

Experiment 8 — Partial & Multiple Correlation

1. Problem

Given the simple (zero-order) correlations \(r_{12} = 0.8,\ r_{13} = 0.5,\ r_{23} = 0.4\), compute the partial correlations \(r_{12.3},\ r_{13.2}\) and the multiple correlation \(R_{1.23}\).

2. Aim

To compute partial and multiple correlation coefficients from the zero-order correlations.

3. Formula

\[ r_{12.3} = \frac{r_{12} - r_{13}r_{23}}{\sqrt{(1 - r_{13}^2)(1 - r_{23}^2)}}, \qquad R_{1.23}^2 = \frac{r_{12}^2 + r_{13}^2 - 2r_{12}r_{13}r_{23}}{1 - r_{23}^2} \]

Applying it:

  1. Substitute the given correlations into the partial-correlation formula for each pair.
  2. Compute the coefficient of multiple determination \(R_{1.23}^2\) and take its square root.

4. Calculation

Blank working table (fill in each coefficient):

CoefficientValue
\(r_{12.3}\)
\(r_{13.2}\)
\(R_{1.23}\)

\(r_{12.3} = \dfrac{0.8 - (0.5)(0.4)}{\sqrt{(1 - 0.25)(1 - 0.16)}} = \dfrac{0.6}{\sqrt{0.75 \times 0.84}} = \dfrac{0.6}{0.7937} = 0.756\).

\(r_{13.2} = \dfrac{0.5 - (0.8)(0.4)}{\sqrt{(1 - 0.64)(1 - 0.16)}} = \dfrac{0.18}{\sqrt{0.36 \times 0.84}} = \dfrac{0.18}{0.5499} = 0.327\).

\(R_{1.23}^2 = \dfrac{0.64 + 0.25 - 2(0.8)(0.5)(0.4)}{1 - 0.16} = \dfrac{0.89 - 0.32}{0.84} = 0.679\), so \(R_{1.23} = 0.824\).

5. Result

\(r_{12.3} = 0.756,\ r_{13.2} = 0.327,\ R_{1.23} = 0.824\). The two predictors together explain about 67.9 % of the variation in \(X_1\).

Experiment 9 — Yule's Coefficient of Association & Colligation

1. Problem

Distribution by smoking and lung cancer in 200 individuals:

Cancer (B)No Cancer (β)Total
Smoker (A)6040100
Non-smoker (α)2080100
Total80120200

Compute Yule's coefficient of association \(Q\) and the coefficient of colligation \(\omega\).

2. Aim

To measure the association between two attributes using Yule's \(Q\) and the coefficient of colligation.

3. Formula

\[ Q = \frac{(AB)(\alpha\beta) - (A\beta)(\alpha B)}{(AB)(\alpha\beta) + (A\beta)(\alpha B)}, \qquad \omega = \frac{\sqrt{(AB)(\alpha\beta)} - \sqrt{(A\beta)(\alpha B)}}{\sqrt{(AB)(\alpha\beta)} + \sqrt{(A\beta)(\alpha B)}} \]

Applying it:

  1. Read off the four cell frequencies \((AB), (A\beta), (\alpha B), (\alpha\beta)\).
  2. Compute \(Q\) and \(\omega\); verify the relation \(Q = 2\omega/(1 + \omega^2)\).

4. Calculation

Blank working table (fill in the products and coefficients):

QuantityValue
\((AB)(\alpha\beta)\)
\((A\beta)(\alpha B)\)
\(Q\)
\(\omega\)

\((AB) = 60,\ (A\beta) = 40,\ (\alpha B) = 20,\ (\alpha\beta) = 80\); so \((AB)(\alpha\beta) = 4800\) and \((A\beta)(\alpha B) = 800\).

\(Q = \dfrac{4800 - 800}{4800 + 800} = \dfrac{4000}{5600} = 0.714\).

\(\omega = \dfrac{\sqrt{4800} - \sqrt{800}}{\sqrt{4800} + \sqrt{800}} = \dfrac{69.28 - 28.28}{69.28 + 28.28} = \dfrac{41.00}{97.56} = 0.420\).

Check: \(2\omega/(1 + \omega^2) = 0.840/1.176 = 0.714 = Q\) ✓.

5. Result

\(Q = 0.714\) and \(\omega = 0.420\) — a strong positive association between smoking and lung cancer.

Lab Record Format (to be followed for every experiment)

  1. Problem — the data and what is to be found.
  2. Aim — the objective of the experiment.
  3. Formula — the formula(e) used, then the steps that apply them.
  4. Calculation — the completed working table and the substitution of values.
  5. Result — the final value(s) with a brief interpretation.