Difference between revisions of "Manuals/calci/DEVSQ"

From ZCubes Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<div style="font-size:30px">'''DEVSQ(n1,n2)'''</div><br/>
+
<div style="font-size:30px">'''DEVSQ(n1,n2...)'''</div><br/>
*where n1,n2..are any real numbers.
+
*where <math>n1,n2..</math> are any real numbers.
 +
 
 
==Description==
 
==Description==
 
*This function gives the sum of squares of deviation of a given set of numbers.
 
*This function gives the sum of squares of deviation of a given set of numbers.
*This function will calculate the with following steps :
+
*This function will calculate with following steps :
*1. we have to find the mean .
+
#Find the mean .
*2. To find the deviation of each value we have to subtracting all numbers with its mean value.
+
#Find the deviation of each value. For that, subtract all numbers with its mean value.
*3.Then it is squaring each deviation values and finally it is summing up.
+
#Square each deviation values and find its sum.
*DEVSQ=summation (xi-x(bar))^2 where xi is the every observation and x(bar) is the arithmetic mean.
+
*<math>DEVSQ=\sum(xi-\bar{x})^2<math> where xi is the every observation and x(bar) is the arithmetic mean.
 
*Here we have to give more than one arguments and arguments can be either numbers , names,logical values,  
 
*Here we have to give more than one arguments and arguments can be either numbers , names,logical values,  
 
arrays or cell refercences that contain numbers.
 
arrays or cell refercences that contain numbers.

Revision as of 04:49, 21 November 2013

DEVSQ(n1,n2...)


  • where are any real numbers.

Description

  • This function gives the sum of squares of deviation of a given set of numbers.
  • This function will calculate with following steps :
  1. Find the mean .
  2. Find the deviation of each value. For that, subtract all numbers with its mean value.
  3. Square each deviation values and find its sum.
  • <math>DEVSQ=\sum(xi-\bar{x})^2<math> where xi is the every observation and x(bar) is the arithmetic mean.
  • Here we have to give more than one arguments and arguments can be either numbers , names,logical values,

arrays or cell refercences that contain numbers.

  • Also cells with the value of '0' are considered and the arguments contains text, logical values or empty cells are ignored This function will give the result as error,when the text couldn't convert in to numbers.

Examples

  • DEVSQ(50,52, 54, 56, 58, 60)
  • step1:Mean=50+52+ 54+ 56+ 58+ 60/6=330/6=55
  • step2:deviation=|50-55|,|52-55|,|54-55|,|56-55|,|58-55|,|60-55|=5,3,1,1,3,5
  • step 3:5^2,3^2,1^2,1^2,3^2,5^2=25+9+1+1+9+25=70
  • DEVSQ(5,-10,13,-7,9)=404
  • DEVSQ(1.2,6.4,8.3,5.7,10)=44.068

See Also

References

Absolute_value