...

/

Challenge: Sum of Squared Error Calculator

Challenge: Sum of Squared Error Calculator

Implement a Python program to calculate the sum of squared error.

Statement

Complete the calculateSSE function that accepts arrays, A, b, and wA,\ \bold{b},\ \text{and}\ \bold{w} representing a linear system and computes the Sum of Squared Error for the respective system in given w\bold{w}.

Example

A=[123111]w=[11]b=[958] A = \begin{bmatrix} 1 & -2 \\ 3 & 1 \\ 1 & 1 \end{bmatrix} \bold w = \begin{bmatrix} 1\\1 \end{bmatrix} \bold b = \begin{bmatrix} 9\\5\\8 \end{bmatrix} ...