![]() |
VOOZH | about |
The sum of squares means adding the squares of numbers.
Example, for numbers 1, 2, 3, the sum of squares would be 12 + 22 + 33 = 14
Sum of squares represents various things in various fields of mathematics.
| Category | Formula |
|---|---|
| Statistics (dispersion) | |
| Algebra (2 numbers) | a2 + b2 = (a + b)2 ā 2ab |
| First n natural numbers | |
| First n even numbers | |
| First n odd numbers |
Measures how much the data values deviate from the mean.
āni=0 (xi - xĢ)2
- xi: each data value
- : mean of the dataset
- n: number of observations
Used to rewrite the sum of squares in terms of the square of a sum.
Gives the sum of squares of the first n counting numbers.
Used to find the sum of squares of even numbers like 2, 4, 6, ..., 2n.
Used to calculate the sum of squares of odd numbers like 1, 3, 5, ..., (2n ā 1).
Sum of Square Error (SSE) is the difference between the observed value and the predicted value of the deviation of the data set. SSE is also called the SSR or sum of square residuals. The formula to calculate the sum of square error is,
SSE = āni=0 (yi - f(xi))2
- yi is the ith value to be predicted
- f(xi) is the predicted value
- xi is the ith value of the explanatory variable
Sum of Square Error can also be calculated using the formula,
SSE = SST - SSR
- SST is Sum of Squares Total
- SSR is Sum of Squares Regression
Read in Detail
Example 1: Find the sum of the given series: 1 + 22 + 32 +...+ 552.
Solution:
To find the value of 12 + 22 + 32 +...+ 552.
Sum of Squares Formula for n terms
ān2 = 12 + 22 + 32 +...+ n2 = [n(n+1)(2n+1)] / 6
Given, n = 55
Sum of Squares = [55(55+1)(2Ć55+1)] / 6
ā Sum of Squares = (55 Ć 56 Ć 111) / 6
ā Sum of Squares = 56,980ā¬
Thus, the sum of the given series 12 + 22 + 32 +...+ 552 is 56,980ā¬.
Example 2: Find the value of (32 + 82), using the sum of squares formula.
Solution:
Find 32 + 82 using sum of square formula,
Given,
- a = 3
- b = 8
Using sum of square formula,
a2 + b2 = (a + b)2 ā 2ab
ā 32 + 82 = (3 + 8)2 ā 2(3)(8)
ā 32 + 82 = 121 - 2(24)
ā 32 + 82 = 121 ā 48
ā 32 + 82 = 73.
Thus, the value of (32 + 82) is 73.
Example 3: Find the sum of squares of the first 25 even natural numbers.
Solution:
Sum of Squares of first 25 Even Natural Numbers(S) = 22 + 42 + 62 +... + 482+ 502......(1)
Now simplifying eq(1)
S = 22( 12 + 22 + 32 +...+252)
Using Sum Squares Formula for n terms, we have
ān2 = [n(n+1)(2n+1)]/6
Here, n = 25
S= 22( 12 + 22 + 32 +...+252) = 4[25(25+1)(2(25)+1)/6]
ā S = (2/3) Ć (25) Ć (26) Ć (51)
ā S = 22100
Hence, the sum of squares of the first 25 even natural numbers is 22100.
Example 4: A dataset has points 2, 4, 13, 10, 12, and 7. Find the sum of squares for the given data.
Solution:
Given,
We have 6 data points 2, 4, 13, 10, 12, and 7.
Sum of given data points = 2 + 4 + 13 + 10 + 12 + 7 = 48.
Mean of the given data,
Mean, xĢ = (Sum of data value) / (Number of data value)
ā xĢ = 48 / 6
ā xĢ = 8
Now,
āni=0 (xi ā xĢ)2 = (2 ā 8)2 + (4 ā 8)2 + (13 ā 8)2 + (10 ā 8)2 + (12 ā 8)2 + (7 ā 8)2
ā āni=0 (xi ā xĢ)2 = (ā6)2 + (ā4)2 + (5)2 + (2)2 + (4)2 + (ā1)2
ā āni=0 (xi ā xĢ)2 = 36 + 16 + 25 + 4 + 14 + 1
ā āni=0 (xi ā xĢ)2 = 96
Hence, the sum of squares for the given data is 96.
Example 5: Find the sum of the squares of 4, 9, and 11 using the sum of squares formula for three numbers.
Solution:
Given,
- a = 4
- b = 9
- c = 11
Using Sum of Squares Formula,
a2 + b2 + c2 = (a + b +c)2 ā 2ab ā 2bc ā 2ca
ā 42 + 92 + 112 = (4 + 9 + 11)2 ā(2Ć4Ć9) ā (2Ć9Ć11) ā (2Ć11Ć4)
ā 42 + 92 + 112 = 576 ā 72 ā 198 ā 88
ā 42 + 92 + 112 = 218
Hence, the value of (42 + 92 + 112) is 218.
Example 6: Find the sum of squares of the first 10 odd numbers.
Solution:
Sum of Squares of the first 10 odd numbers (S): 12 + 32 + 52 +... +172 + 192
Sum of squares of first "n" Odd Numbers ā(2nā1)2 = [n(2n+1)(2nā1)]/3
Here, n is 10.
S = [10Ć(2Ć10 + 1)(2Ć10 - 1)]/3
ā S = [10 Ć 21 Ć 19]/3
ā S = 10 Ć 7 Ć 19 = 1330
Hence, the value of the sum of squares of the first 10 odd numbers is 1330.