Difference between revisions of "Manuals/calci/DEVSQ"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> <font size="3"><font face="Times New Roman">'''DEVSQ''' (n1, n2…...)</font></font> <font size="3"><font face="Ti...")
 
 
(27 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
<div style="font-size:30px">'''DEVSQ()'''</div><br/>
 +
*Parameters are any set of real numbers.
 +
**DEVSQ(), returns the sum of squares of deviations.
  
<font size="3"><font face="Times New Roman">'''DEVSQ''' (n1, n2…...)</font></font>
+
==Description==
  
<font size="3"><font face="Times New Roman">Where n1, n2 ...   are the arguments </font></font>
+
*This function gives the sum of Squares of Deviation of a given set of numbers.
 +
*The steps to calculate:
 +
#Find the mean.
 +
#Find the deviation of each value. For that, subtract all numbers with its mean value.
 +
#Square each Deviation Values and find its sum.
 +
:<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,
 +
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.
  
<font size="3" face="Times New Roman"> </font>
+
==ZOS==
  
</div>
+
*The syntax is to calculate DEVSQ in ZOS is <math>DEVSQ()</math>.
----
+
**Parameters are any set of real numbers.
<div id="1SpaceContent" class="zcontent" align="left">
+
*For e.g.,DEVSQ(1.5..7.5..0.3)
 +
{{#ev:youtube|wsr8HO-ByJk|280|center|Average}}
  
<font size="3"><font face="Times New Roman">This function calculates the sum of the squares of deviations of data points from their sample mean.</font></font>
+
==Examples==
  
<font size="3" face="Times New Roman"> </font>
+
*DEVSQ(50,52, 54, 56, 58, 60)
 +
'''Steps'''
 +
#Mean = <math>\frac{50+52+ 54+ 56+ 58+ 60}{6} = \frac{330}{6} = 55</math>
 +
#Deviation =<math> |50-55|,|52-55|,|54-55|,|56-55|,|58-55|,|60-55| = 5,3,1,1,3,5</math>
 +
#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(5,-10,13,-7,9) = 404
 +
*DEVSQ(1.2,6.4,8.3,5.7,10) = 44.068
  
</div>
+
==Related Videos==
----
 
<div id="7SpaceContent" class="zcontent" align="left">
 
  
<font size="3">·</font>        <font size="3"><font face="Times New Roman">Arguments can be numbers, names, arrays, or references. </font></font>
+
{{#ev:youtube|Erd98rj97hI|280|center|Sum of Squared Deviation}}
  
<font size="3">·</font>        <font size="3"><font face="Times New Roman">Logical values and text representations of numbers are calculated. </font></font>
+
==See Also==
  
<font size="3">·</font>        <font size="3"><font face="Times New Roman">When an array contains text, logical values, or empty cells, those values are ignored. </font></font>
+
*[[Manuals/calci/AVEDEV  | AVEDEV]]
 +
*[[Manuals/calci/STDEV  | STDEV]]
  
<font size="3"><font face="Times New Roman"></font></font>
+
==References==
  
<font size="3"><font face="Times New Roman"><font size="3"> </font></font></font>
+
[http://en.wikipedia.org/wiki/Squared_deviations  Squared Deviations]
  
<font face="Times New Roman">Formula:-</font>
 
  
·        <font face="Times New Roman">The equation to calculate the sum of squared deviations is: </font>
 
  
<center><font face="Times New Roman"></font>''''''</center>
+
*[[Z_API_Functions | List of Main Z Functions]]
  
'''<font face="Times New Roman"> </font>'''
+
*[[ Z3 Z3 home ]]
 
 
</div>
 
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
 
 
DEVSQ
 
 
 
</div></div>
 
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
 
 
Let’s see an example
 
 
 
DEVSQ (n1, n2…..)
 
 
 
B
 
 
 
5
 
 
 
7
 
 
 
6
 
 
 
9
 
 
 
10
 
 
 
2
 
 
 
<nowiki>=DEVSQ (B2:B7) is 41.5</nowiki>
 
 
 
</div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Remarks </div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
<div id="2SpaceContent" class="zcontent" align="left">
 
 
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
| class="    " |
 
| class="  " | Column1
 
| class="      " | Column2
 
| class="  " | Column3
 
| class="   " | Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class="sshl_f " | 5
 
| class="sshl_f" | 41.5
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f" | 7
 
| class="SelectTD" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="odd"
 
| Row3
 
| class="sshl_f" | 6
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| Row4
 
| class="sshl_f" | 9
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="odd"
 
| class=" " | Row5
 
| class="sshl_f" | 10
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| class="sshl_f" | Row6
 
| class="sshl_f " | 2
 
| class="sshl_f  " |
 
| class="sshl_f  " |
 
| class="sshl_f" |
 
|- class="odd"
 
| class="sshl_f" | Row7
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|}
 
 
 
<div align="left">[[Image:calci1.gif]]</div></div>
 
----
 

Latest revision as of 15: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