Difference between revisions of "Manuals/calci/SUMXMY2"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''SUMXMY2'''(ArrayX, ArrayY) where, '''ArrayX''' - represents the first array of values. '''ArrayY''' - r...")
 
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
<div style="font-size:30px">'''SUMXMY2(x,y)'''</div><br/>
 +
*<math> x </math> and <math> y </math>  are the array of values.
  
'''SUMXMY2'''(ArrayX, ArrayY)
+
==Description==
 +
*This function gives the  sum of squares of differences of corresponding values in <math> x </math> and  <math> y </math>.
 +
*In <math> SUMXMY2(x,y)</math>, <math>x </math> is the first array of real values and <math> y </math>  is the second array of real values.
 +
*It is  mostly common term in statistical calculations.
 +
*This  function is defined by: <math> SUMXMY2= \sum (x-y)^2 </math>.
 +
*The arguments can be be either numbers or names, array,constants or references that contain numbers.
 +
*Suppose the array contains text,logical values or empty cells, like that values are not considered.
 +
*This function will give the result as error when
 +
    1. Any one of the argument is non-numeric or not a real number.
 +
    2. The arguments containing the error values or text that cannot be translated in to numbers.
 +
    3. <math>x</math> and <math>y</math> are having different number of values.
  
where,
+
==Examples==
  
'''ArrayX''' - represents the first array of values.
+
{| class="wikitable"
 
+
|+Spreadsheet
'''ArrayY''' - represents the second array of values.
+
|-
 
+
! !! A !! B !! C !! D!! E
</div>
+
|-
----
+
! 1
<div id="1SpaceContent" class="zcontent" align="left">
+
| 80.16 || 78.42 || 65.21 || 12 || 10
 
+
|-
It returns the sum of differences of corresponding values in two arrays.
+
! 2
 
+
| 65.9 || 59.80 || 45.12 || 15 ||17
'''Formula''' :-
+
|-
 
+
! 3
SUMXMY2 = Σ (x - y )<sup>2</sup>
+
| 0  || 9  || 18  || 27 || 36
 
+
|-
</div>
+
!4
----
+
| 8 || 18 || 29 || 37 || 45
<div id="7SpaceContent" class="zcontent" align="left">
+
|}
 
 
If ArrayX and ArrayY have different number of values, SUMXMY2 returns the #ERROR.
 
 
 
</div>
 
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
 
 
SUMXMY2
 
 
 
</div></div>
 
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
 
 
Lets see an example in (Column3, Row1)
 
 
 
<nowiki>=SUMXMY2(R1C1:R7C1,R1C2: R7C2)</nowiki>
 
 
 
SUMXMY2 returns 259.
 
 
 
Consider an another example
 
  
<nowiki>=SUMXMY2(R1C1:R7C1,R1C2: R6C2)</nowiki>
+
#=SUMXMY2(A1:C1, A2:C2) = 953.660099999
 +
#=SUMXMY2(A3:E3,A4:E4) = 447
 +
#=SUMXMY2([10,13,17,19,23],[7,9,19,31,37]) = 369
  
SUMXMY2 returns the #ERROR.
+
==Related Videos==
  
</div>
+
{{#ev:youtube|rwsX1KVhEnU|280|center|SUMPRODUCT}}
----
 
<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"
+
==See Also==
|- class="even"
+
*[[Manuals/calci/SUMX2PY2 | SUMX2PY2]]
| class=" " |
+
*[[Manuals/calci/SUMX2MY2 | SUMX2MY2 ]]
| class="      " | Column1
+
*[[Manuals/calci/SUMPRODUCT  | SUMPRODUCT ]]
| class="  " | Column2
 
| class="  " | Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class=" " | 15
 
| class="                                    sshl_f " | 1
 
| class="sshl_f" | 259
 
|
 
|- class="even"
 
| class=" " | Row2
 
| class=" " | 8
 
| class=" " | 2
 
| class="      SelectTD ChangeBGColor SelectTD" |
 
<div id="2Space_Handle" class="zhandles" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="2Space_Copy" class="zhandles" title="Click and Drag over to AutoFill other cells."></div><div id="2Space_Drag" class="zhandles" title="Click and Drag to Move/Copy Area.">[[Image:copy-cube.gif]]  </div>
 
|
 
|- class="odd"
 
| Row3
 
| class=" " | 5
 
| class=" " | 3
 
|
 
|
 
|- class="even"
 
| Row4
 
| class=" " | 1
 
| class=" " | 4
 
|
 
|
 
|- class="odd"
 
| class=" " | Row5
 
| class=" " | 8
 
| class=" " | 5
 
|
 
|
 
|- class="even"
 
| class="sshl_f" | Row6
 
| class=" " | 7
 
| class=" " | 6
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| class="sshl_f" | Row7
 
| class=" " | 5
 
| class=" " | 7
 
|
 
|
 
|}
 
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
==References==
----
+
*[http://www.techonthenet.com/excel/formulas/sumxmy2.php  Sum of the Squares of the differences]

Latest revision as of 14:49, 27 January 2017

SUMXMY2(x,y)


  • and are the array of values.

Description

  • This function gives the sum of squares of differences of corresponding values in and .
  • In , is the first array of real values and is the second array of real values.
  • It is mostly common term in statistical calculations.
  • This function is defined by: .
  • The arguments can be be either numbers or names, array,constants or references that contain numbers.
  • Suppose the array contains text,logical values or empty cells, like that values are not considered.
  • This function will give the result as error when
    1. Any one of the argument is non-numeric or not a real number. 
    2. The arguments containing the error values or text that cannot be translated in to numbers.
    3.  and  are having different number of values.

Examples

Spreadsheet
A B C D E
1 80.16 78.42 65.21 12 10
2 65.9 59.80 45.12 15 17
3 0 9 18 27 36
4 8 18 29 37 45
  1. =SUMXMY2(A1:C1, A2:C2) = 953.660099999
  2. =SUMXMY2(A3:E3,A4:E4) = 447
  3. =SUMXMY2([10,13,17,19,23],[7,9,19,31,37]) = 369

Related Videos

SUMPRODUCT

See Also

References