<?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="m11208">

  <name>Mean and Median Simulation</name>

  <metadata>
  <md:version>1.3</md:version>
  <md:created>2003/05/29</md:created>
  <md:revised>2003/07/14 17:39:55.665 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="mjeanes">
      <md:firstname>Matthew</md:firstname>
      
      <md:surname>Jeanes</md:surname>
      <md:email>mjeanes@rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  

  <md:abstract/>
</metadata>

  <content>
    <para id="beginby">
      Begin by answering the questions, even if you have to guess. The
      first time you answer the questions you will not be told whether
      you are correct or not.
    </para>

    <para id="onceyou">
      Once you have answered all the questions, answer them again
      using the simulation to help you. This time you will get
      feedback about each individual answer.
    </para>

    <para id="showsim">
      <cnxn target="genins">Show Simulation</cnxn>
    </para>

    <media type="application/x-java-applet" src="questionbase.questionBase.class">
      <param name="ARCHIVE" value="questionbase.jar"/>
      <param name="width" value="480"/>
      <param name="height" value="430"/>
      <param name="XML" value="balance.xml"/>
      <param name="Background" value="16777164"/>
      <param name="FontSize" value="14"/>
      <param name="EndInfo" value="Please use the simulation to help you discover and understand the answers to the questions."/>
    </media>
    
    <section id="genins">
      <name>General Instructions</name>

      <para id="thisdem">
	This demonstration shows how the relative size of the mean and
	the median depends on the skew of the distribution.
      </para>

      <para id="thedem">
	 The demonstration begins by showing a histogram a symmetric
	 distribution (no skew). The mean and median are both 5.0. The
	 mean is shown on the histogram as a small blue line; the
	 median is shown as a small purple line. The standard
	 deviation is 1.81. A red line extends one sd in each
	 direction from the mean.<emphasis>You can change the values
	 of the data set by "painting" the histogram with the
	 mouse.</emphasis>
      </para>

      <para id="changethe">
	Change the distribution in various ways and note how the skew
	affects whether the mean is bigger than the median or vice
	versa.
      </para>
    </section>

    <section id="stepbystep">
      <name>Step by Step Instructions</name>
      <para id="link">
	<cnxn target="beginby">Show Questions</cnxn>
      </para>
    
      <para id="noticethat">
	Notice that the mean and median are equal and are both
	5. Change the distribution so that it has a positive skew such as the
	one shown below.
      </para>

      <para id="skewa">
	<media type="image/png" src="skewa.png"/>
      </para>

      <para id="checkto">
	Check to see which is bigger, the mean or the median.
      </para>

      <para id="nextmake">
	Next, make up a distribution with a negative skew such as the
	following:
      </para>

      <para id="skewb">
	<media type="image/png" src="skewb.png"/>
      </para>

      <para id="whichis">
	Which is bigger, the mean or the median.
      </para>

      <para id="tryout">
	Try out other variations to confirm the relationship between
	skew and the relative size of the mean and median.
      </para>
      
      <media type="application/x-java-applet" src="balancebasic.mean_balance.class">
	<param name="archive" value="balancebasic.jar"/>
	<param name="width" value="500"/>
	<param name="height" value="250"/>
	<param name="name" value="Median"/>
      </media>
      
    </section>
    <section id="summary">
      <name>Summary</name>
      <para id="summ">
	In general, the mean will be higher than the median when a
	distribution has a positive skew. The mean will be less than
	the median when a distribution has a negative skew. The mean
	and median are equal for symmetric distributions.
      </para>
    </section>
  </content>
  
</document>
