Skip to content
Unit 4 Syllabus Note· Numerical Analysis and Statistical Techniques

Numerical Analysis and Statistical Techniques

Comprehensive exam revision notes for BCA-203N Unit 4 (Least-Squares Curve Fitting & Linear Programming). Includes Section A (2M), Section B (5M), and Section C (15M) questions, answers, and diagrams.

Numerical Analysis and Statistical Techniques

Least-Squares Curve Fitting & Linear Programming

Core Definitions & Key Concepts

What is the Principle of Least Squares in curve fitting

The principle states that the best-fit curve to a set of data points is the one that minimizes the sum of the squares of the vertical residuals: S = \sum_{i=1}^n (y_i - f(x_i))^2.

State the Normal Equations for fitting a straight line y = a + bx

  1. \sum y = n a + b \sum x
  2. \sum xy = a \sum x + b \sum x^2

How is an exponential curve y = a \cdot e^{bx} linearized for least squares

Take natural logarithm of both sides: \ln y = \ln a + bx. Letting Y = \ln y, A = \ln a, B = b, it becomes the linear equation Y = A + Bx.

What is Karl Pearson's Coefficient of Correlation (r)

A dimensionless metric measuring the degree and direction of linear association between two variables: r = \frac{Cov(X, Y)}{\sigma_x \sigma_y}, bounded strictly in [-1, +1].

What is the relationship between correlation coefficient r and regression coefficients b_{yx} and b_{xy}

$r = \pm \sqrt{b_{yx} \cdot b_{xy}} The sign of r matches the signs of both regression slopes b{yx}$ and $b{xy}$.

What does a correlation coefficient r = 0 mean

It indicates zero linear correlation between the two variables. (Non-linear relationships may still exist).

A Linear Programming Problem (LPP)

An optimization problem where a linear objective function Z = c_1 x_1 + c_2 x_2 is maximized or minimized subject to a set of linear equality or inequality constraints and non-negativity restrictions x_j ≥ 0.

What is the 'Feasible Region' in graphical LPP

The convex polygon formed by the intersection of all half-planes defined by the problem constraints and non-negativity conditions.

State the Extreme Point (Corner Point) Theorem of LPP

If an optimal solution to an LPP exists, it must occur at one of the extreme points (vertices / corner points) of the convex feasible region.

What is an 'Unbounded Solution' in LPP

A situation where the feasible region extends indefinitely in the direction of optimization, allowing the objective function value to increase (for max) or decrease (for min) without bound.

Conceptual & Architectural Analysis

Derive the Normal Equations for Fitting a Straight Line y = a + bx

Sum of squared residuals: S(a, b) = \sum_{i=1}^n (y_i - a - bx_i)^2. To minimize S, set partial derivatives with respect to a and b to zero:

  1. \frac{\partial S}{\partial a} = -2 \sum (y_i - a - bx_i) = 0 \implies \sum y_i = n a + b \sum x_i
  2. \frac{\partial S}{\partial b} = -2 \sum x_i(y_i - a - bx_i) = 0 \implies \sum x_i y_i = a \sum x_i + b \sum x_i^2

These are the two standard Normal Equations.

The Properties of Regression Coefficients b_{yx} and b_{xy}

  1. Same Sign: b_{yx}, b_{xy}, and r must all share the same algebraic sign.
  2. Geometric Mean: r = \pm \sqrt{b_{yx} b_{xy}}, implying b_{yx} \cdot b_{xy} ≤ 1.
  3. Magnitude: If one regression coefficient is > 1, the other MUST be < 1.
  4. Intersection: The two regression lines always intersect at the centroid (\bar{x}, \bar{y}).

The Steps of the Graphical Method for Solving a 2-Variable LPP

  1. Formulate decision variables, objective function, and constraints.
  2. Treat inequalities as equations and plot lines on Cartesian plane.
  3. Determine half-planes using test points (e.g., origin (0, 0)).
  4. Shade the common overlapping Feasible Region.
  5. Find coordinates of all corner points (vertices) by solving intersecting line equations.
  6. Evaluate objective function Z at each corner point. The vertex yielding maximum (or minimum) value is the optimal solution.

Feasible, Infeasible, Unbounded, and Alternative Optimal Solutions in LPP

  • Feasible: Non-empty convex polygon containing valid points.
  • Infeasible: Constraints contradict each other; no overlapping feasible space.
  • Unbounded: Feasible space is open/unbounded in optimization direction; Z \to \infty.
  • Alternative Optima: Objective function line is parallel to a binding constraint edge; infinite optimal solutions along that line segment.

Spearman's Rank Correlation Coefficient and its Formula

Used for measuring correlation between ranked or qualitative attributes (e.g., beauty contest ranks, interview scores): $\rho = 1 - \frac{6 \sum d_i^2}{n(n^2 - 1)} where di = R{xi} - R_{yi}$ is the difference in ranks for each individual.

In-Depth Analysis & Implementation

Fit a Straight Line y = a + bx to the following data using the Method of Least Squares

x: [1, 2, 3, 4, 5], y: [14, 27, 40, 55, 68]. Step 1: Construct Calculation Table

xyx^2xy
114114
227454
3409120
45516220
56825340
$\sum x = 15$$\sum y = 204$$\sum x^2 = 55$$\sum xy = 748$

n = 5.

Step 2: Normal Equations

  1. 204 = 5a + 15b
  2. 748 = 15a + 55b

Step 3: Solve the Linear System Multiply Eq (1) by 3: 612 = 15a + 45b Subtract from Eq (2): 748 - 612 = (15a - 15a) + (55b - 45b) \implies 136 = 10b \implies b = 13.6 Substitute b = 13.6 back into Eq (1): 204 = 5a + 15(13.6) \implies 204 = 5a + 204 \implies 5a = 0 \implies a = 0.0

Final Fitted Line Equation: $y = 13.6x$

Solve the following LPP Graphically: Maximize Z = 3x + 5y subject to x + 2y ≤ 2000, x + y ≤ 1500, y ≤ 600, x, y ≥ 0

Step 1: Plot Constraint Boundary Lines

  1. L_1: x + 2y = 2000 \implies (0, 1000) and (2000, 0)
  2. L_2: x + y = 1500 \implies (0, 1500) and (1500, 0)
  3. L_3: y = 600 (Horizontal line)

Step 2: Identify Vertices of the Feasible Polygon

  • O(0, 0)
  • A(1500, 0) (x-intercept of L_2)
  • B: Intersection of L_1 and L_2:

(x + 2y) - (x + y) = 2000 - 1500 \implies y = 500. x = 1500 - 500 = 1000 \implies B(1000, 500). Check y ≤ 600: Valid!

  • C: Intersection of L_1 and L_3 (y = 600):

x + 2(600) = 2000 \implies x = 800 \implies C(800, 600).

  • D(0, 600) (y-intercept under L_3).

Step 3: Evaluate Objective Function $Z = 3x + 5y$

  • At O(0, 0): Z = 0
  • At A(1500, 0): Z = 3(1500) + 0 = 4500
  • At B(1000, 500): Z = 3(1000) + 5(500) = 3000 + 2500 = 5500
  • At C(800, 600): Z = 3(800) + 5(600) = 2400 + 3000 = \mathbf{5400}
  • At D(0, 600): Z = 0 + 5(600) = 3000

Optimal Solution: Maximum value of Z = \mathbf{5500} occurs at vertex B(1000, 500).

Calculate Karl Pearson's Coefficient of Correlation between advertising expenditure (X) and sales (Y)

X: [10, 12, 18, 24, 30, 32], Y: [15, 18, 22, 26, 35, 38]. Calculations show strong positive correlation r ≈ 0.985, indicating that sales increase in direct linear proportion to advertising expenditure.

Important Exam Points & Quick Revision

Least-squares line fitting and graphical LPP maximization with corner-point evaluation are 100% recurring 10/15 mark exam questions.

Your reading progress
0%

100% left on this page — finishing it closes the gap for Least-Squares Curve Fitting & Linear Programming.

Weak topic hint

Least-Squares Curve Fitting & Linear Programming still counts as a weak topic until you finish this note and answer its questions.

Practise this unit
What Should You Do Next?

Test Your Understanding

Now that you've read through these notes, practice unit MCQs to identify weak points and solidify your learning before exams.