<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="m11112">

  <name>Variance Sum Law I</name>

  <metadata>
  <md:version>2.4</md:version>
  <md:created>2003/04/05</md:created>
  <md:revised>2003/07/11 13:43:33.875 GMT-5</md:revised>
  <md:authorlist>
    <md:author id="dmlane">
      <md:firstname>David</md:firstname>
      
      <md:surname>Lane</md:surname>
      <md:email>lane@rice.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="dmlane">
      <md:firstname>David</md:firstname>
      
      <md:surname>Lane</md:surname>
      <md:email>lane@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="emaloney">
      <md:firstname>Erin</md:firstname>
      
      <md:surname>Maloney</md:surname>
      <md:email>emaloney@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="meyer">
      <md:firstname>Eileen</md:firstname>
      
      <md:surname>Meyer</md:surname>
      <md:email>meyer@rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  

  <md:abstract/>
</metadata>


  <content>
    <para id="para1">
As you will see in later sections, there are many occasions on which it 
is important to know the variance of the sum of two variables. Consider 
the following situation: (a) you have two populations, (b) you sample one 
number from each population, (c) you add the two numbers together. The 
question is, "What is the variance of this sum." For example, suppose the 
two populations are the populations of 8-year old males and 8-year females 
in Houston Texas and that the variable of interest is memory span. You repeat 
the following steps thousands of times: (1) sample one male and one female, 
(2) measure the memory span of each, and (3) sum the two memory spans. After 
you have done this thousands of times, you compute the variance of the sum. 
It turns out that the variance of this sum can be computed according to the following formula:

<m:math display="block">
<m:apply>
<m:eq/>
  <m:apply>
  <m:power/>
    <m:ci>
      <m:msub>
        <m:mi>σ</m:mi>
        <m:mi>sum</m:mi>
      </m:msub>
    </m:ci>
    <m:cn>2</m:cn>
  </m:apply>
  <m:apply>
  <m:plus/>
    <m:apply>
    <m:power/>
      <m:ci>
        <m:msub>
          <m:mi>σ</m:mi>
          <m:mi>M</m:mi>
        </m:msub>
      </m:ci>
      <m:cn>2</m:cn>
    </m:apply>
    <m:apply>
    <m:power/>
      <m:ci>
        <m:msub>
          <m:mi>σ</m:mi>
          <m:mi>F</m:mi>
        </m:msub>
      </m:ci>
      <m:cn>2</m:cn>
    </m:apply>
  </m:apply>
</m:apply>
</m:math>

 
where the first term is the variance of the sum, the second term 
is the variance of the males and the third term is the variance 
of the females. Therefore, if the variances on the memory span 
test for the males and females respectively were <m:math><m:cn>0.9</m:cn></m:math>
 and <m:math><m:cn>0.8</m:cn></m:math>, then the variance of the sum would be 
<m:math><m:cn>1.70</m:cn></m:math>. 
</para>
 
<para id="para2">
The formula for the variance 
of the difference between the two variables (memory span in this example) 
is shown below. Notice that expression for the difference is the same as the 
formula for the sum.

<m:math display="block">
<m:apply>
<m:eq/>
  <m:apply>
  <m:power/>
    <m:ci>
      <m:msub>
        <m:mi>σ</m:mi>
        <m:mi>difference</m:mi>
      </m:msub>
    </m:ci>
    <m:cn>2</m:cn>
  </m:apply>
  <m:apply>
  <m:plus/>
    <m:apply>
    <m:power/>
      <m:ci>
        <m:msub>
          <m:mi>σ</m:mi>
          <m:mi>M</m:mi>
        </m:msub>
      </m:ci>
      <m:cn>2</m:cn>
    </m:apply>
    <m:apply>
    <m:power/>
      <m:ci>
        <m:msub>
          <m:mi>σ</m:mi>
          <m:mi>F</m:mi>
        </m:msub>
      </m:ci>
      <m:cn>2</m:cn>
    </m:apply>
  </m:apply>
</m:apply>
</m:math>

More generally, the variance sum law can be written as follows:

<m:math display="block">
<m:apply>
<m:eq/>
  <m:apply>
  <m:power/>
    <m:ci>
      <m:msub>
        <m:mi>σ</m:mi>
          <m:mrow><m:mi>X</m:mi><m:mo>±</m:mo><m:mi>Y</m:mi></m:mrow>
      </m:msub>
    </m:ci>
    <m:cn>2</m:cn>
  </m:apply>
  <m:apply>
  <m:plus/>
    <m:apply>
    <m:power/>
      <m:ci>
        <m:msub>
          <m:mi>σ</m:mi>
          <m:mi>M</m:mi>
        </m:msub>
      </m:ci>
      <m:cn>2</m:cn>
    </m:apply>
    <m:apply>
    <m:power/>
      <m:ci>
        <m:msub>
          <m:mi>σ</m:mi>
          <m:mi>F</m:mi>
        </m:msub>
      </m:ci>
      <m:cn>2</m:cn>
    </m:apply>
  </m:apply>
</m:apply>
</m:math>

which is read "The variance of <m:math><m:ci>X</m:ci></m:math> 
plus or minus <m:math><m:ci>Y</m:ci></m:math> is equal the 
variance of <m:math><m:ci>X</m:ci></m:math> plus the variance of 
<m:math><m:ci>Y</m:ci></m:math>."
<note>
The formulas for the sum and difference of variables given above 
only apply when the variables are independent.
</note>
In this example, we have thousands of randomly-paired scores. 
Since the scores are paired randomly, there is no relationship 
between memory span of one member of the pair and the memory span 
of the other. Therefore the two scores are independent. Contrast 
this situation with one in which thousands of people are sampled 
and two measures (such as verbal and quantitative SAT) are taken 
from each. In this case, there would be a relationship between the 
two variables since higher scores on the verbal SAT are associated 
with higher scores on the quantitative SAT (although there are many 
examples of people who score high on one test and low on the other). 
Thus the two variables are not independent and the variance of the 
total SAT score would not be the sum of the variance of the verbal 
SAT and the quantitative SAT. The general form of the variance sum 
law is presented in a <cnxn document="m11098" strength="9">section</cnxn>
in the chapter on correlation.

    </para>   
  </content>
  
</document>
