Difference between revisions of "Manuals/calci/DEVSQ"

From ZCubes Wiki
Jump to navigation Jump to search
 
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="font-size:30px">'''DEVSQ(n1,n2...)'''</div><br/>
+
<div style="font-size:30px">'''DEVSQ()'''</div><br/>
*where <math>n1,n2..</math> are any real numbers.
+
*Parameters are any set of real numbers.
 +
**DEVSQ(), returns the sum of squares of deviations.
  
 
==Description==
 
==Description==
*This function gives the sum of squares of deviation of a given set of numbers.
+
 
*This function will calculate with following steps :
+
*This function gives the sum of Squares of Deviation of a given set of numbers.
#Find the mean .
+
*The steps to calculate:
 +
#Find the mean.
 
#Find the deviation of each value. For that, subtract all numbers with its mean value.
 
#Find the deviation of each value. For that, subtract all numbers with its mean value.
#Square each deviation values and find its sum.
+
#Square each Deviation Values and find its sum.
*<math>DEVSQ=\sum(xi-\bar{x})^2</math> where <math>xi<math> is the every observation and <math>\bar{x}</math> is the Arithmetic Mean.
+
:<math>DEVSQ=\sum(x_i-\bar{x})^2</math> where <math>x_i</math> is the every observation and <math>\bar{x}</math> 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 references that contain numbers.
 
arrays or cell references 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.
+
*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 be converted to numbers.
 +
 
 +
==ZOS==
 +
 
 +
*The syntax is to calculate DEVSQ in ZOS is <math>DEVSQ()</math>.
 +
**Parameters are any set of real numbers.
 +
*For e.g.,DEVSQ(1.5..7.5..0.3)
 +
{{#ev:youtube|wsr8HO-ByJk|280|center|Average}}
  
 
==Examples==
 
==Examples==
  
 
*DEVSQ(50,52, 54, 56, 58, 60)
 
*DEVSQ(50,52, 54, 56, 58, 60)
*step1:Mean=50+52+ 54+ 56+ 58+ 60/6=330/6=55
+
'''Steps'''
*step2:deviation=|50-55|,|52-55|,|54-55|,|56-55|,|58-55|,|60-55|=5,3,1,1,3,5
+
#Mean = <math>\frac{50+52+ 54+ 56+ 58+ 60}{6} = \frac{330}{6} = 55</math>
*step 3:5^2,3^2,1^2,1^2,3^2,5^2=25+9+1+1+9+25=70
+
#Deviation =<math> |50-55|,|52-55|,|54-55|,|56-55|,|58-55|,|60-55| = 5,3,1,1,3,5</math>
*DEVSQ(5,-10,13,-7,9)=404
+
#Squares of Deviation = <math>5^2,3^2,1^2,1^2,3^2,5^2 = 25+9+1+1+9+25 = 70</math>
*DEVSQ(1.2,6.4,8.3,5.7,10)=44.068
+
*DEVSQ(5,-10,13,-7,9) = 404
 +
*DEVSQ(1.2,6.4,8.3,5.7,10) = 44.068
 +
 
 +
==Related Videos==
 +
 
 +
{{#ev:youtube|Erd98rj97hI|280|center|Sum of Squared Deviation}}
  
 
==See Also==
 
==See Also==
*[[Manuals/calci/AVEDEV  | AVEDEV ]]
+
 
*[[Manuals/calci/STDEV  | STDEV ]]
+
*[[Manuals/calci/AVEDEV  | AVEDEV]]
 +
*[[Manuals/calci/STDEV  | STDEV]]
  
 
==References==
 
==References==
[http://en.wikipedia.org/wiki/Absolute_value| Absolute_value]
+
 
 +
[http://en.wikipedia.org/wiki/Squared_deviations  Squared Deviations]
 +
 
 +
 
 +
 
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 
 +
*[[ Z3 |   Z3 home ]]

Latest revision as of 16:55, 7 August 2018

DEVSQ()


  • Parameters are any set of real numbers.
    • DEVSQ(), returns the sum of squares of deviations.

Description

  • This function gives the sum of Squares of Deviation of a given set of numbers.
  • The steps to calculate:
  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.
where is the every observation and 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 references 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 be converted to numbers.

ZOS

  • The syntax is to calculate DEVSQ in ZOS is .
    • Parameters are any set of real numbers.
  • For e.g.,DEVSQ(1.5..7.5..0.3)
Average

Examples

  • DEVSQ(50,52, 54, 56, 58, 60)

Steps

  1. Mean =
  2. Deviation =
  3. Squares of Deviation =
  • DEVSQ(5,-10,13,-7,9) = 404
  • DEVSQ(1.2,6.4,8.3,5.7,10) = 44.068

Related Videos

Sum of Squared Deviation

See Also

References

Squared Deviations