<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook V4.1//EN"  [
<!ENTITY ti89   "<productname>TI-89</productname>"
                        -- Marked up name of the calculator -->
<!ENTITY store  "&rarr;" -- right arrow, used for TI-89 STORE command -->
<!ENTITY cmt    "&copy;" -- used for TI-89 comment marker -->
<!ENTITY intersect "&cap;" -- set intersection -->
<!ENTITY union  "&cup;"  -- set union -->
<!ENTITY home   "<keycap>HOME</keycap>" -- reference to the HOME screen -->
<!ENTITY xbar   "<varname>XBAR</varname>" >
<!ENTITY sum    "SUM" -- Summation sign (capital Sigma) -->
<!ENTITY lambda "LAMBDA" -- Greek lambda -->
]>  

<book id="TI-89MA206">
  <bookinfo>
    <title>The &ti89; Calculator in the
Basic Probability and Statistics Course</title>
    <titleabbrev>The &ti89; in MA206</titleabbrev>
    <authorgroup>
      <author>
        <firstname>Mark</firstname>
        <surname>Wroth</surname>
        <affiliation>
          <orgname>United States Military Academy</orgname>
          <orgdiv>Department of Mathematical Sciences</orgdiv>
          <address><city>West Point</city>, <state>New York</state> <postcode>10996</postcode> <email>&lt;mark.wroth@us.army.mil></email></address>
       </affiliation>
     </author>
   </authorgroup>
     <revhistory>
      <revision>
	<revnumber>13</revnumber>
	<date>1 July 2001</date>
	<revremark>Added minimal reference entries for the
	TI-89-defined functions used in MA206.</revremark>
      </revision>
	  <revision>
	    <revnumber>12</revnumber>
	    <date>23 June 2001</date>
	    <authorinitials>MBW</authorinitials>
	    <revremark>Added chi2int discussion and binomint program
	    and basic documentation.</revremark>
	  </revision>
      <revision>
	<revnumber>11</revnumber>
	<date>20 June 2000</date>
	<authorinitials>MBW</authorinitials>
	<revremark>Additional general discussion.</revremark>
      </revision>
      <revision>
	<revnumber>10</revnumber>
	<date>19 June 2000</date>
	<authorinitials>MBW</authorinitials>
	<revremark>Added an MA206() program which sets up a custom
	menu allowing commonly used functions to be pasted into the
	entry line.</revremark>
      </revision>
      <revision>
	<revnumber>9</revnumber>
	<date>17 June 2000</date>
	<authorinitials>MBW</authorinitials>
	<revremark>Added appendix showing symbols, and procedure for
	normal probability plots.  Included RevHistory in the hypergeo
	program listing as an experiment; as set up in the print
	version, the data remains in the SGML file, but is suppressed
	in the printed version, exactly as hoped.</revremark>
      </revision>
      <revision>
	<revnumber>8</revnumber>
	<date>15 June 2000</date>
	<authorinitials>MBW</authorinitials>
	<revremark>Added procedures for graphical descriptive
	measures.  Some update of other areas.</revremark>
      </revision>
      <revision>
	<revnumber>7</revnumber>
	<date>14 June 2000</date>
	<authorinitials>MBW</authorinitials>
	<revremark>Added documentation for the hypergeo() program, and
	added the use of the callout element for documentation.</revremark>
      </revision>
      <revision>
	<revnumber>6</revnumber>
	<date>13 June 2000</date>
	<authorinitials>MBW</authorinitials>
	<revremark>Completed reference page entries for the four
	functions documented in this paper, including adding
	examples.  Moved the function definitions to the reference
	pages, rather than in the general discussion, for petter
	parallelism with the pre-defined functions.</revremark>
      </revision>
      <revision>
	<revnumber>5</revnumber>
	<date>13 June 2000</date>
	<authorinitials>MBW</authorinitials>
	<revremark>Added reference entries for hypergeometric
	distribution. The reference entries for the other defined
	programs still need to be done.</revremark>
      </revision>
      <revision>
	<revnumber>4</revnumber>
	<date>12 June 2000</date>
	<authorinitials>MBW</authorinitials>
	<revremark>Added function definitions for hypergeometric
	distribution.</revremark>
      </revision>
      <revision>
        <revnumber>3</revnumber> 
        <date>8 June 2000</date>
        <authorinitials>MBW</authorinitials> 
        <revremark>Added definitions for
        the uniform and exponential CDFs as example user defined
        functions.</revremark>
      </revision>
      <revision>
       <revnumber>2</revnumber> 
       <date>4 June 2000</date>
       <authorinitials>MBW</authorinitials> 
       <revremark>Added basic information on the functions built in to
       the statistics application.  Very limited coverage of the
       sections on estimation and hypothesis testing.</revremark>
      </revision>
      <revision>
       <revnumber>1</revnumber>
       <date>3 June 2000</date>
       <authorinitials>MBW</authorinitials>
       <revremark>Initial conversion to SGML, including only the chapter on
       upgrading the calculator.</revremark>
      </revision>
   </revhistory>
  </bookinfo>
  <chapter id="cha-intro">
    <title>Introduction</title>
    <sect1 id="sec-purpose">
      <title>Why This Document?</title>

      <para>Advanced calculators such as the
      <ProductName>HP-48</ProductName> and &ti89; present both an
      opportunity and and a challenge to students (and teachers) of
      probability and statistics. On one hand, the calculator makes
      actually <Emphasis>performing</Emphasis> the sometimes tedious
      calculations needed in <Abbrev>P & S</Abbrev> a matter of
      punching a few buttons. Advanced calculators also larqely or
      completely eliminate the need for cumbursum tables. But this
      capability comes with a price. Not only does the student have to
      master the concepts of the course&mdash;a challenge in
      itself&mdash;but they must also learn what the capabilities of
      the calculator are and how to invoke them.</para>

      <Para>This document is aimed at students (and teachers) who are
      trying to master the aspects of the advanced calculator
      (specifically the &ti89;) that apply to the basic probability
      and statistics course. It supplements the course textbook and
      the calculator handbook and focuses on those uses of the
      calculator specifically needed for this course. It covers both
      the built in operations of the calculator, and programs written
      specifically to assist with the subject.</Para>

      <Para>We assume that the student has been using the same
      calculator through the core math sequence, and is therefor
      familiar with basic calculator operations. In addition to basic
      arithmatic computation, this includes symbolic manipulation,
      basic calculus (particularly numerical quadrature) and graphing
      of functions.</Para>

      <Para>One of the powerful features of the advanced calculators
      is programmability.  In addition to briefly covering the built
      in functions of the calculator, this document discusses some
      programs written to assist with subjects covered in the basic
      <Abbrev>P & S</Abbrev> course.</Para>

    </Sect1>
    <Sect1 Id="sec-using">
      <Title>Using Advanced Calculators in Probabality and Statistics</Title>

      <Para>The focus of many <Abbrev>P & S</Abbrev> courses&mdash;and
      many students&mdash;appears to be on mastering the basic
      computations of the subject. For example, a major goal during a
      block on the exponential random variable is being able to
      correctly compute probabilities involving such a random
      variable. Facility with this calculation is then assumed later
      in the course. With a properly set up calculator, the
      calculation itself is simple; the challenge is in knowing when
      to use the distribution, what value to use for the parameter,
      and how to interpret the result.</Para>

      <Para>The calculator can also largely replace the use of tables,
      and hence of the need to standardize random variables for most
      purposes. The exception to this is that many statistical
      packages, including the &ti89;, use and display standardized
      random variables in statistical tests, so some understanding of
      the process is needed.</Para>

      <Para>The following sections are presented in an order generally
      conducive to a one semester course in probability and
      statistics, following the outline of MA206, the core course in
      the subject taught at <Acronym>USMA</Acronym> using <XRef
      Linkend="Devore"> as the text.  With some modification, it
      should be helpful in most basic probability and statistics
      courses.</Para>

    </Sect1>
    <sect1>
      <title>General Issues in Learning Probability and Statistics
      Armed with an Advanced Calculator</title>

      <sect2>
        <title>Interval Probabilities</title> 

        <para>Computing the probability that a random variable lies in
        a stated interval is a common task in the probability and
        statistics course. Especially with the capabilities of the
        &ti89;, there are several valid strategies students may use
        for computing such probabilities:</para>

<itemizedlist>
<listitem>
<para>Manipulate the <acronym>PDF</acronym> (or
<acronym>PMF</acronym>) directly. For example. integrate the
<acronym>PDF</acronym> over the interval. This approach implies the
need for a user-manipulable <acronym>PDF</acronym>
(<acronym>PMF</acronym>) functions.</para>
</listitem>
<listitem>
<para>Subtract the endpoint <acronym>CDF</acronym> values. Most easily
 executed at the &home; entry line, this
approach implies the need for a user-manipulable
<acronym>CDF</acronym> function for each distribution.</para>
</listitem>
<listitem>
<para>Create (or find) a calculator program which computes the
interval probability. Internally, such a program may use either
computation approach.</para>
</listitem>
</itemizedlist>

<para>There is no theoretical reason to choose between these
techniques. Ideally, a student would master all of the different
techniques and choose the technique appropriate to the particular
problem. </para>

<para>Common practice in teaching the computation is to cover
<acronym>PDF</acronym>-based approaches, but to emphasize
<acronym>CDF</acronym>-based approaches. This fits well with the use
of distribution tables, and may be easiest for some students because
of this connection. </para>

<para>At the same time, the primary user interface for the probability
computations in the &ti89; <application>Statistics with List
Editor</application> is a program based <acronym>GUI</acronym> which
allows the user to enter the distribution parameters and the ends of
the interval. While entry line functions are also provided in the
<application>Statistics with List Editor</application>, use of these
functions is essentially undocumented.  Consistency with the general
approach of the &ti89; would appear to suggest
<acronym>GUI</acronym>-based interfaces are desirable.  This requires
writing programs for the distributions which are not included in the
<application>Statistics with List Editor</application>
application.  For MA206, this would include the Hypergeometric,
Uniform, and Exponential distributions.</para>

<para>The &ti89; allows the student to approach the calculation of
interval probabilities any of the above ways&mdash;given the
availability of either existing programs or basic programming skills
for the third approach. To help gain understanding, it may be a good
idea for students to focus on one method and ensure
<emphasis>it</emphasis> is mastered. If <acronym>GUI</acronym>-based
programs are available for all of the distributions of interest,
focusing on this technique is likely to be the easiest.</para>

</sect2>

<sect2><title>Standardized Random Variables</title>

	<para>The use of the calculator largely eliminates the need to
use traditional probability tables.  Since being able to use the
standard normal probability tables is one of the main ways the use of
a standardized random variable is presented, eliminating the need to
use the tables at all also eliminates one of the major uses of
standardized variables.  It is tempting to simply ignore the topic
completely if the student has adequate calculator skills.</para>

	<para>However, there are several reasons to understand the basic
manipulations surrounding standardized random variables, and the
standard normal distribution in particular. Perhaps least important is
the fact that traditional tables, while in some sense obsolescent as
calculators with basic probability functions become more common, are
still available when calculators are not, so some ability to use them
is probably a good idea.  More important from the perspective of the
course material is that the manipulations to standardize the Normal
random variable are the basis of the manipulations by which we derive
the formulas for confidence intervals. So understanding how to
standardize the normal random variable is a lead in to the material on
confidence intervals.  Finally, statistical packages&mdash;including
the &ti89;'s advanced statistics functions&mdash; frequently state
hypothesis test results in terms of standardized test statistics.
Understanding the test results depends on understanding the normalized
versions of the statistics.</para>
</sect2>

</sect1>

</Chapter>
<Chapter Id="cha-TI-89Descriptive">
<Title>Descriptive Statistics</Title>
<Sect1>
<Title>Numerical Methods</Title>

<Para>The &ti89;'s one variable statistics
application computes the sample mean, variance and standard deviation
(using both the sample and population formulas), and the median and
quartiles.</Para>

<Procedure>
<Title>Computing One-Variable Sample Statistics</Title>
<Step>
<Para>Enter the sample data into a list.</Para>
</Step>
<Step>
<Para>Select the <GUIMenuItem>1: 1-Var Stats</GUIMenuItem> option from the <KeyCap>[F4] Calc</KeyCap> menu (of the <Application>Statistics with List Editor</Application>
application).</Para>
</Step>
<Step>
<Para>Enter the name of the list containing the sample data, either by entering the variable name
directly, or by selecting <KeyCap>[2nd] VAR-LINK</KeyCap> and selecting the
variable.</Para>
</Step>
<Step>
<Para>Select <KeyCap>ENTER</KeyCap> to confirm the selection, and again to compute the
statistics.</Para>
</Step>
</Procedure>
</Sect1>
<Sect1>
<Title>Graphical Methods</Title>
<Sect2>
<Title>Histograms</Title>
<Para>A basic histogram is one of the standard plot types
available. To create a histogram of data:</Para>
	<procedure>
	  <step>
	    <para>Enter the data into a list variable.</para>
	  </step>
	  <step>
	    <para>Select <keycap>[F2] Plots</keycap> to bring up the
	    <guimenu>Plots</guimenu> menu.</para>
	  </step>
	  <step>
	    <para>Select <guimenuitem>1:Plot Setup...</guimenuitem>.</para>
	  </step>
	  <step>
	    <para>Highlight a plot line.</para>
	  </step>
	  <step>
	    <para>Select <guimenuitem>[F1] Define</guimenuitem>.</para>
	  </step>
	  <step>
	    <para>Select <guilabel>Plot Type</guilabel>; on the popup
	    menu, select <guimenuitem>4:Histogram</guimenuitem></para>
	  </step>
	  <step>
	    <para>Enter the name of the list variable containing the
	    data in the <guilabel>x</guilabel> box.</para>
	  </step>
	  <step>
	    <para>Enter an appropriate width for the histogram
	    intervals in <guilabel>Hist. Bucket Width</guilabel>.</para>
	  </step>
	  <step>
	    <para>Ensure the <guimenuitem>NO</guimenuitem> option is
	    selected in the <guilabel>Use Freq and
	    Categories?</guilabel> popup.</para>
	  </step>
	  <step>
	    <para>Select <keycap>ENTER</keycap>.</para>
	  </step>
	  <step>
	    <para>Select <keycap>[F5] ZoomData</keycap>.</para>
	  </step>
	</procedure>
</Sect2>
<Sect2>
<Title>Box Plots</Title>
<Para>A basic box plot is one of the standard plot types
available.</Para>
	<procedure>
	  <step>
	    <para>Enter the data into a list variable.</para>
	  </step>
	  <step>
	    <para>Select <keycap>[F2] Plots</keycap> to bring up the
	    <guimenu>Plots</guimenu> menu.</para>
	  </step>
	  <step>
	    <para>Select <guimenuitem>1:Plot Setup...</guimenuitem>.</para>
	  </step>
	  <step>
	    <para>Highlight a plot line.</para>
	  </step>
	  <step>
	    <para>Select <guimenuitem>[F1] Define</guimenuitem>.</para>
	  </step>
	  <step>
	    <para>Select <guilabel>Plot Type</guilabel>; on the popup
	    menu, select <guimenuitem>3:Box Plot</guimenuitem></para>
	  </step>
	  <step>
	    <para>Enter the name of the list variable containing the
	    data in the <guilabel>x</guilabel> box.</para>
	  </step>
	  <step>
	    <para>Ensure the <guimenuitem>NO</guimenuitem> option is
	    selected in the <guilabel>Use Freq and
	    Categories?</guilabel> popup.</para>
	  </step>
	  <step>
	    <para>Select <keycap>ENTER</keycap>.</para>
	  </step>
	  <step>
	    <para>Select <keycap>[F5] ZoomData</keycap>.</para>
	  </step>
	</procedure>
<Para>The <KeyCap>[F3] Trace</KeyCap> function allows easy examination of the particular
values included in the plot.</Para>
</Sect2>
</Sect1>
</Chapter>
<Chapter Id="TI-89Counting">
<Title>Basic Operations</Title>
<Sect1>
<Title>Counting</Title>

<Para>The &ti89; computes several basic
functions useful for counting problems.</Para>

<Para>For most of these operations, there are two or three different
ways to access the same calculator function:

<ItemizedList>

<ListItem><Para>Select the function from a menu (usually
the <GUIMenu>Math</GUIMenu> menu, accessed with the <KeyCap>[2nd
MATH</KeyCap> key).</Para></ListItem>

<ListItem><Para>Type the name of the function in the <GUILabel>Entry
Line</GUILabel>, using the alphabetic keys.</Para></ListItem>

<ListItem><Para>Add the function to the <GUILabel>Entry Line</GUILabel>
using the <KeyCap>CATALOG</KeyCap>. Functions defined from flash
applications (such as <application>Statistics with List
Editor</application>) and user-defined functions are also available
through the <KeyCap>CATALOG</KeyCap> function.</Para> </ListItem>

</ItemizedList></Para>

</Sect1>
<Sect1>
<Title>Counting Techniques</Title>
<Sect2>
<Title>Factorials</Title>

<Para>The factorial function is accessed with the postfix operator
<Literal>!</Literal> which can be entered from the keyboard (using the
<KeyCap>[2nd] CHAR</KeyCap> function) or from the <KeyCap>[2nd]
MATH</KeyCap> <GUIMenu>7: Probability</GUIMenu> menu.</Para>
</Sect2>
<Sect2>
<Title>Permutations</Title>

<Para>The "permutations&rdquo; function can be accessed with the
function <Literal>nPr(</Literal> function. This can be accessed via
the <KeyCap>[2nd] MATH</KeyCap> <GUIMenu>7: Probability</GUIMenu>
<GUIMenuItem>nPr(</GUIMenuItem> menu pick.</Para>
</Sect2>
<Sect2>
<Title>Combinations</Title> <Para>The "combinations&rdquo; function
can be accessed through the <Literal>nCr(</Literal> function. This can
be accessed via the <KeyCap>[2nd] MATH</KeyCap> <GUIMenu>7:
Probability</GUIMenu> <GUIMenuItem>nCr(</GUIMenuItem> menu
pick, or by typing the function name in the entry line..</Para>
</Sect2>
</Sect1>
<Sect1>
<Title>Random Variables and Probability Distributions</Title>
<Sect2>
<Title>Discrete Random Variables</Title>
<Sect3>
<Title>Binomial Distribution</Title>

<Para>The Binomial probability distribution is one of the pre-defined
probability distribution in the <Application>Statistics with List
Editor</Application> application. It is accessed via the <GUIMenu>[F5]
Distr</GUIMenu> menu, using either the <GUIMenuItem>B: Binomial
Pdf</GUIMenuItem> or <GUIMenuItem>C: Binomial Cdf</GUIMenuItem> menu
items.</Para>

</Sect3>

<Sect3>
<Title>Hypergeometric Distribution</Title>

<Para>The hypergeometric probability distribution is not one of the
pre-defined distributions in the <Application>Statistics with List
Editor</Application>. Since it is not pre-defined for us, we can
define the <acronym>PDF</acronym> and <acronym>CDF</acronym> as
&ti89; functions.</Para>

<Para>The <Acronym>PDF</Acronym> of the hypergeometric distribution is
shown in <Xref linkend="fig-hypergeopdfdef">.</Para>

<Figure id="fig-hypergeopdfdef"><Title>Hypergeometric
<Acronym>PDF</Acronym></Title><BlockQuote>
<Para>(nCr(Succ, x) *
nCr(Pop - Succ, n - x))/(nCr(Pop, n))</para>

<Para>Where <Literal>Pop</Literal> is the number of elements in the
population, <Literal>Succ</Literal> is the number of elements coded
&ldquo;success&rdquo;, <Literal>n</Literal> is the sample size, and
max(0, n - Pop + Succ) &le; x &le; min(n, Succ) </Para></BlockQuote>
</Figure>
<para>The side conditions deal with the fact that the minimum number of
successes in the sample is limited by the total number of failures in
the population and the sample size (you can't have more failures in
the sample than there are in the population), and the maximum number
of successes in the sample is limited by the number of successes in
the population.</Para>

</Sect3>
<Sect3>
<Title>Poisson Distribution</Title>

<Para>The Poisson probability distribution is one of the pre-defined
probability distribution in the <Application>Statistics with List Editor</Application> application. It is accessed via the <GUIMenu>[F5]
Distr</GUIMenu> menu, using either the <GUIMenuItem>D: Poisson
Pdf</GUIMenuItem> or <GUIMenuItem>E: Poisson Cdf</GUIMenuItem> menu
items.</Para>

</Sect3>
</Sect2>
<Sect2>
<Title>Continuous Random Variables</Title>
<Sect3>
<Title>Arbitrary Distributions</Title>

<Para>The &ti89;&lsquo;s calculus
applications can significantly ease the manipulation of arbitrary
continuous probability distributions through their ability to find
both definite and indefinite integrals.  You reach these functions
through the &home; screen, and should already be
familiar from earlier calculus courses.</Para>

<Para>The major caution in applying the basic calculus functions to
the <Acronym>PDF</Acronym> is to ensure that the limits of integration
are correctly applied.  Like any computer, the
&ti89; will do what you tell it to, which
may not be what you intended, particularly for piecewise defined
functions!</Para>

<FormalPara>
<Title>Probabilities</Title>

<Para>Finding the probability that an arbitrarily defined continuous
random variable lies in a given interval is, by definition, a matter
of integrating the <Acronym>PDF</Acronym> over the interval.  For
simply defined functions (e.g. the Exponential distribution) this is
easily accomplished with the <GUIMenuItem>Integrate</GUIMenuItem>
function from the &home; <KeyCap>[F3] Calc</KeyCap>
menu.</Para>

</FormalPara>
<FormalPara>
<Title>Expected Value</Title>

<Para>Finding the expected value of an arbitrarily defined continuous
random variable can be accomplished by applying the definition of
expected value. For simply defined functions (e.g. the Exponential
distribution) this is easily accomplished with the
<GUIMenuItem>Integrate</GUIMenuItem> function from the
&home; <KeyCap>[F3] Calc</KeyCap> menu.</Para>

</FormalPara>
<FormalPara>
<Title>Variance</Title>

<Para>Finding the variance of an arbitrarily defined continuous random
variable can be accomplished by applying the definition of
variance. For simply defined functions (e.g. the Exponential
distribution) this is easily accomplished with the
<GUIMenuItem>Integrate</GUIMenuItem> function from the
&home; <KeyCap>[F3] Calc</KeyCap> menu. The
computational formula,
V(X)=E(X<Superscript>2</Superscript>)-[E(X)]<Superscript>2</Superscript>
can be applied by integrating to find the expected value of
X<Superscript>2</Superscript>; this may not be easier than applying
the definition directly.</Para>
</FormalPara>

<Para>Defining the <Acronym>PDF</Acronym> or the
<Acronym>CDF</Acronym> as a &ti89; function
allows it to be used in subsequent calculations.  Examples of
reasonable definitions are given for some of the probability
distributions used in the basic probability and statistics course
discussed below.</Para>
</Sect3>
<Sect3>
<Title>Uniform Distribution</Title> 

<Para>The Uniform distribution is not a separately defined probability
distribution in the <Application>Statistics with List
Editor</Application> application.  Therefore all manipulations of
random variables with this distribution depend on manipulating the
<Acronym>PDF</Acronym> directly, user defined programs, or on the use
of known formulas.</Para>

<Para>The cumulative distribution function can be defined as a
&ti89; function for convenience in
calculation.  An example of such a definition is shown in in the <XRef
Linkend="ref-unifcdf"> reference page.</Para>
</Sect3>

<Sect3>
<Title>Exponential Distribution</Title>

<Para>The Exponential distribution is not a separately defined
probability distribution in the <Application>Statistics with List
Editor</Application> application.  Therefore all manipulations of
random variables with this distribution depend on manipulating the
<Acronym>PDF</Acronym> directly, user-defined programs, or on the use
of known formulas.</Para>

<para>The <function>expcdf()</function> function (discussed in the <Xref
 linkend="ref-expcdf"> reference page) can be used on the
 &ti89; to compute probabilities related to
 exponential random variables.  It implements the piecewise definition
 of the function, and thus can be used without careful reference to
 the interval of definition.</para>
</Sect3>

<Sect3>
<Title>Normal (Gaussian) Distribution</Title>

<Para>The Normal, or Gaussian, probability distribution is one of the
pre-defined distributions in the <Application>Statistics with List
Editor</Application> application.  Because of its promenance in
statistical applications, there are a variety of built-in functions
for accessing and manipulating this distribuution.</Para>

<Sect4>
<Title>Computing Normal Probabilities</Title>

<Para>There are two main methods for computing probabilities involving
the Normal distribution; the <GUIMenuItem>Normal Cdf</GUIMenuItem>
function (accessed from the <KeyCap>[F5] Distr</KeyCap> menu of the
<Application>Statistics with List Editor</Application>), and with the
<GUIMenuItem>Shade</GUIMenuItem> function (also accessed from the
<KeyCap>[F5] Distr</KeyCap> menu of the <Application>Statistics with
List Editor</Application>). Both require the mean, standard deviation,
and limits of the interval; the <GUIMenuItem>Shade</GUIMenuItem>
function, in addition to computing the probability that the random
variable is in the interval, draws the <Acronym>PDF</Acronym> and
shades the area of interest.</Para>

</Sect4>
<Sect4>
<Title>Normal Probability Plots</Title>
<Para>The <KeyCap>[F2] Plots</KeyCap> menu includes the ability to create a normal
probability plot of data in one of the lists. To draw a normal
probability plot:</Para>
	    <procedure>
	      <step>
		<para>Start the <application>Statistics with List
		Editor</application> application.</para>
	      </step>
	      <step>
		<para>Enter the data into a list variable.</para>
	      </step>
	      <step>
		<para>Select the <guimenu>Plots</guimenu> menu by
		pressing <keycap>[F2] Plots</keycap>.</para>
	      </step>
	      <step>
		<para>Select <guimenuitem>2:Norm Prob
		Plot</guimenuitem>.</para>
	      </step>
	      <step>
		<para>Fill out the resulting <guilabel>Norm Prob
		Plot...</guilabel> requestor:</para>
		<procedure>
		  <step>
		    <para>Select an unused list variable at the
		    <guilabel>Plot Number</guilabel> popup.</para>
		  </step>
		  <step>
		    <para>Enter the name of the list variable
		    containing the data for which the probability plot
		    is needed in the <guilabel>List:</guilabel>
		    box.</para>
		  </step>
		  <step>
		    <para>Select values for the remaining entries on
		    the requestor.  The default values are probably
		    acceptable.</para>
		  </step>
		  <step>
		    <para>Select <keycap>ENTER</keycap> to close the
		    requestor.</para>
		  </step>
		</procedure>
	      </step>
	      <step>
		<para>Select the <guimenu>Plots</guimenu> menu by
		pressing <keycap>[F2] Plots</keycap>.</para>
	      </step>
	      <step>
		<para>Select <guimenuitem>1:Plot
		Setup</guimenuitem>.</para> 
	      </step>
	      <step>
		<para>Select the plot variable containing the normal
		scores (the name of this variable was chosen in the
		<guilabel>Plot Number</guilabel> popup of the <guilabel>Norm Prob
		Plot...</guilabel>) by highlighting it using the cursor
		keys and pressing <keycap>[F4]</keycap>.</para>
	      </step>
	      <step>
		<para>Display the plot by pressing <keycap>[F5]
		ZoomData </keycap>.</para>
	      </step>
	    </procedure>
          </Sect4>
        </Sect3>
      </Sect2>
    </Sect1>
  </Chapter>
  <chapter>
    <title>Estimation</title> 
    <sect1>
      <title>Point Estimation</title>
      <para>The primary mechanism for computing point estimates is the
      <guimenuitem>1: 1-Var Stats</guimenuitem> menu item of the
      <guimenu>F4 Calc</guimenu> menu of the <application>Stats/List
      Editor</application> Flash App.  This application returns a
      variety of point estimates based on the sample data contained in
      one of the data lists.</para>

      <para>A basic familiarity with the <application>List
      Editor</application> is very useful in computing point estimates
      from sample data.  This subject is covered in
      <citetitle>Statistics with List Editor Application for
      TI-89/TI-92</citetitle> manual.</para>
      <tip>
	<para>A particularly useful technique with the 1-Variable
	Statistics application is to use the <keycap>VAR-LINK</keycap>
	menu to select the specific list for which to calculate
	statistics.</para>
      </tip>
    </sect1>
    <sect1>
      <title>Interval Estimation</title>

      <para>The main &ti89; function supporting estimation (other than
      the functions used for calculating sample statistics) is the
      <guimenuitem>[F7] Ints</guimenuitem> menu, which includes
      functions for Z and T-based confidence intervals on the mean
      (among others).  These functions allow the interval to be
      calculated directly from sample data, or from previously
      computed sample statistics.</para>

      <para>The <guisubmenu>5: 1-PropZInt</guisubmenu> menu can be
      used to calculate confidence intervals on the population
      proportion of a binomial distribution.  However, this function
      appears to use the approximate formula defined by <xref
      linkend="devore"> in Equation 7.11 (which is the standard form
      used by most texts rather than the more exact form defined in
      Equation 7.11. The binomial interval programs <xref
      linkend="binomint"> defined in this document supplement the
      <function>1-proportion Z Interval</function> program by using
      the more exact formulation (<xref linkend="devore"> Equation
      7.11).</para>

      <para>The <function>chi2int()</function> and its companion
      <acronym>GUI</acronym> <function>chi2gui()</function> are
      user-defined programs that compute confidence intervals on the
      variance or standard deviation of a normal population. They are
      discussed in <xref linkend="chi2int">.</para>

      <para>The <guimenuitem>[F5] Distr</guimenuitem> menu&rsquo;s
      <GUISubmenu>2: Inverse</GUISubmenu> submenu includes functions
      for computing the critical values of the Normal, Student&rsquo;s
      T, and Chi-squared distributions (among others not covered in
      MA206).</para>

      <tip>
        <para>The various inverse functions ask for the
        <varname>AREA</varname> (probability) at which the inverse is
        to be calculated.  This area is the probability that the
        random variable is <emphasis>less than</emphasis> the returned
        inverse value. This is consistent with the general definition
        of a <acronym>CDF</acronym>.  However, the critical values of
        a distribution are defined in terms of the probability that
        the random variable is <emphasis>greater than</emphasis> the
        critical value. The translation between the two is, of course,
        that the area above the critical value is 1 minus the area the
        inverse function is expecting.</para> 

        <para>This difference can be ignored by taking the absolute
        value of the resulting critical value&mdash;if the
        distribution is symmetric around zero.  Becasue this
        relationship does <emphasis>not</emphasis> hold true for
        distribution not symmetric about zero (i.e. the Chi-squared
        distribution or the general normal distribution), relying on
        this property can lead the student into mistakes. It is more
        correct and more generally applicable to always remember that
        <varname>1-&alpha;</varname> = <varname>AREA</varname>, and
        make the entry into the invers function accordingly.</para>
      </tip>
    </sect1>
  </chapter>

<chapter>
<title>Hypothesis Testing</title>

<para>The <guimenu>[F6] Tests</guimenu> menu includes applications for
(among others), Z and T-based hypothesis tests. These tests allow the
test statistic to be provided, or to be computed from data entered in
one of the lists.  They also can display the distribution with the
acceptance region shaded or simply provide the numerical results.  In
both cases, the calculator provides the p-value relevant to the test,
rather than drawing a conclusion.</para>

  </chapter>
  <appendix id="app-symbols">
    <title>Symbols and Abbreviations</title>
    <para>This appendix lists various symbols and abbreviations used
    in the text.  In particular, it lists non-<acronym>ASCII</acronym>
    symbols; depending on the medium in which this document appears,
    these symbols may be differently rendered.</para>
    <variablelist>
      <varlistentry>
	<term>&cmt;</term>
	<listitem>
	  <para>Represents the &ti89; comment symbol. Usually
           rendered with the closest available glyph, which is
           frequently the copyright symbol.</para>
	</listitem>
      </varlistentry>
      <varlistentry>
	<term>&int;</term>
	<listitem>
	  <para>Integral sign.</para>
	</listitem>
      </varlistentry>
      <varlistentry>
	<term>&intersect;</term>
	<listitem>
	  <para>Set intersection.</para>
	</listitem>
      </varlistentry>
      <varlistentry>
	<term>&radic;</term>
	<listitem>
	  <para>Square root (surd or radical).</para>
	</listitem>
      </varlistentry>
      <varlistentry>
	<term>&alpha;</term>
	<listitem>
	  <para>Lower case Greek letter alpha.</para>
	</listitem>
      </varlistentry>
      <varlistentry>
	<term>&lambda;</term>
	<listitem>
          <para>Lower case Greek letter lambda; usually the parameter
          of a Poisson or exponential distribution.</para>
	</listitem>
  </varlistentry>
  <varlistentry>
	<term>&sum;</term>
	<listitem>
          <para>Summation operator, usually the upper case Greek Sigma.</para>
	</listitem>
  </varlistentry>
  <varlistentry>
	<term>&store;</term>
	<listitem>
           <para>The &ti89; &ldquo;<keycap>STORE</keycap>&rdquo;
           command as represented in the editor window.</para>
	</listitem>
  </varlistentry>
      <varlistentry>
	<term>&union;</term>
	<listitem>
	  <para>Set union.</para>
	</listitem>
      </varlistentry>
</variablelist>
</appendix>
  <appendix id="app-refentries">
    <title>Program and Function Reference</title>

	<para>The <application>TIStat</application> applications
	(belonging to the <application>Statistics with List
	Editor</application> flash application) need their own
	reference pages; the application manual (<xref
	linkend="TI-89statsle">) does not describe how to use the
	applications from the Home screen, although they are available
	from the <keycap>CATALOG</keycap> screen as well as from the
	<function>MA206()</function> program. Some of these have been
	added to this appendix, but this incomplete.</para>

    <refentry>
      <refmeta>
	<refentrytitle>MA206()</refentrytitle>
      </refmeta>
      <refnamediv>
	<refname>MA206()</refname>
	<refpurpose>Set up a custom menu allowing easy access to
	functions commonly used in the basic probability and
	statistics course. </refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>ma206()</synopsis>
	<variablelist>
	  <title>Inputs</title>
	  <varlistentry>
	    <term>none</term>
	    <listitem>
	      <para>This program has no inputs.</para>
	    </listitem>
	  </varlistentry>
	</variablelist>
	<variablelist>
	  <title>Outputs</title>
	  <varlistentry>
	    <term>none</term>
	    <listitem>
	      <para>This program returns no direct outputs; it sets up
	      a custom menu accessible by the user.</para>
	    </listitem>
	  </varlistentry>
	</variablelist>
      </refsynopsisdiv>
      <refsect1>
	<title>Description</title> <para>This program sets up a &ti89;
	<firstterm>custom menu</firstterm>, which allows function
	names to be easily inserted into the <guilabel>Entry
	Line</guilabel></para>
	<tip>
	  <para>Function and program names can also be easily pasted
	  into the <guilabel>Entry Line</guilabel> by using the
	  <keycap>CATALOG</keycap> key. Once in the
	  <application>Catalog</application> window, pressing
	  <keycap>[F3] Flash Apps</keycap> will bring up a list of the
	  functions installed by any flash applications, and
	  <keycap>[F4] User-Defined</keycap> will bring up a list of
	  user defined functions.</para>
	</tip>
	<tip>
	  <para>When a function has been highlighted in either the
	  <keycap>[F3] Flash Apps</keycap> or <keycap>[F2]
	  Built-in</keycap> panes of the
	  <application>Catalog</application> window, pressing
	  <keycap>[F1] Help</keycap> will bring up a terse description
	  of the inputs for the function.</para>
	</tip>
      </refsect1>
      <refsect1>
	<refsect1info>
	  <author>
	    <firstname>Mark</firstname>
	    <surname>Wroth</surname>
	  </author>
	  <revhistory>
            <revision>
	      <revnumber>2.1</revnumber>
	      <date>23 June 2001</date>
	      <revremark>Added additional menu items for the added
	      programs binomint and chi2int.</revremark>
	    </revision>
            <revision>
	      <revnumber>2.0</revnumber>
	      <date>19 June 2000</date>
	      <revremark>Added additional menus.</revremark>
	    </revision>
	    <revision>
	      <revnumber>1.0</revnumber>
	      <date>17 June 2000</date>
	      <revremark>Initial Implementation.</revremark>
	    </revision>
	  </revhistory>
	</refsect1info>
	<title>Implementation</title>
	<programlisting>
:MA206()
:Prgm
:&cmt; Program to set up an MA206 custom menu
:&cmt; Rev 2.1 23 JUN 01
:&cmt; D/MathSci USMA (Mark Wroth)
:Custom
:Title  "Tools"
: Item  "CustmOff"
:Title "Calc"
: Item "&int;"
: Item "&sum;(" <co id="ma206-sigma">
: Item "&radic;"
:Title  "Counting"
: Item  "nPr("
: Item  "nCr("
: Item  "!"
:Title  "Distr"
: Item  "TIStat.binomPdf("
: Item  "TIStat.binomCdf("
: Item  "TIStat.PoissPdf("
: Item  "TIStat.PoissCdf("
: Item  "hypergeo()"
: Item  "hygeoPdf("
: Item  "hygeoCdf("
: Item  "expCdf("
: Item  "unifCdf("
: Item  "TIStat.normCdf("
:Title "Intvl"
: Item "TIStat.zInt("
: Item "TIStat.tInt("
: Item "TIStat.zInt_1P("
: Item "BinomInt("
: Item "Chi2Int("
: Item "Chi2GUI()"
:EndCustm
:CustmOn
:EndPrgm
        </programlisting>
	<calloutlist>
	  <callout arearefs="ma206-sigma">
	    <para>The actual menu entry is the Greek letter Sigma,
	    which the &ti89; uses as a summation operator.  This
	    symbol is not available in the <acronym>HTML</acronym>
	    version of this document.</para>
	  </callout>
	</calloutlist>
	<para>It does not appear to be possible to insert a function
	prototype (i.e. to give variable names for arguments to a
	function to be pasted into the entry line).</para>
      </refsect1>
    </refentry>
    <refentry id="ref-hypergeo">
      <refmeta>
	<refentrytitle>Hypergeometric Distribution</refentrytitle>
      </refmeta>
      <refnamediv>
	<refname><function>hypergeo()</function></refname>
	<refpurpose>Compute probabilities related to a hypergeometric
	distribution, specifically the probability that a
	hypergeometric random variable lies between two constants a
	and b, inclusive.</refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>hypergeo()</synopsis>
        <variablelist>
          <title>Inputs</title>
	  <varlistentry>
	    <term>Sample size</term>
	    <listitem>
	      <para>The size of the sample drawn.</para>
	    </listitem>
 	  </varlistentry>
	  <varlistentry>
	    <term>Pop size</term>
	    <listitem>
	      <para>The total size of the population from which the
	      sample is drawn.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term>Successes</term>
	    <listitem>
	      <para>The number of successes in the population.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term>lower limit</term>
	    <listitem>
	      <para>The lower limit of the interval for which the
	      probability is desired.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term>upper limit</term>
	    <listitem>
	      <para>The upper limit of the interval for which the
	      probability is desired.</para>
	    </listitem>
	  </varlistentry>
        </variablelist>
	<variablelist>
          <title>Outputs</title>
	  <varlistentry>
	    <term><returnvalue>probability</returnvalue></term>
	    <listitem>
	      <para>The primary output of the program is the probability
      	      that the random variable lies in the closed interval
    	      [a,b].  The program also echoes the parameters entered
    	      into the program as a check on data entry error.</para>
	    </listitem>
	  </varlistentry>
	</variablelist>
      </refsynopsisdiv>
      <refsect1>
	<title>Description</title> 

        <para><function>hypergeo</function> is a program which prompts
        the user for the parameters of a hypergeometric distribution
        and the endpoints of an interval, and then computes the
        probability that the random variable lies in that
        interval.</para>

        <para>The hypergeometric distribution models a situation where
        a sample is taken from a finite population consisting of a
        fixed number of successes and failures
        <emphasis>without</emphasis> replacement.  The random variable
        is the number of successes drawn in the sample.</para>

        <para>The format of the program is intended to
        be similar to the format used in the <application>Statistics
        with List Editor</application> application.</para>
      </refsect1>
      <refsect1>
	<refsect1info>
	  <author>
	    <firstname>Mark</firstname>
	    <surname>Wroth</surname>
	  </author>
	  <revhistory>
	    <revision>
	      <revnumber>2</revnumber>
	      <date>16 June 2000</date>
	      <revremark>Changed the calculation implementation to use
	      hygeopdf, to take advantage of the error checking in
	      that program.</revremark>
	    </revision>
	    <revision>
	      <revnumber>1</revnumber>
	      <date>14 June 2000</date>
	      <revremark>Initial implementation.</revremark>
	    </revision>
	  </revhistory>
	</refsect1info>
	<title>&ti89; Implementation</title>
	<programlisting>
:hypergeo()
:Prgm
:&cmt;<co id="hypergeo-cmt"> Hypergeometric probabilities
:&cmt; Rev 2.0
:&cmt; Mark Wroth
:Local n,succ,pop,a,b,prob,usrmode
:getMode("ALL")&store;usrmode
:Dialog
:  Title "Hypergeometric Distn"
:  Request "Sample size:",n
:  Request "Pop size:",pop
:  Request "Successes:",succ
:  Request "lower limit:",a
:  Request "upper limit:",b
:EndDlog
:expr(n)&store;n<co id="hypergeo-expr">
:expr(pop)&store;pop
:expr(succ)&store;succ
:expr(a)&store;a
:expr(b)&store;b
:&cmt; check inputs
:&cmt; compute
:If a&lt;b Then
:  &sum;(hygeopdf(x,n,succ,pop), x, a, b)&store; prob<co id="hypergeo-calc">
:Else
:  40 &store; main\err
:  PassErr
:EndIf
:&cmt; Disp prob
:Dialog
:  Title "Hypergeometric Distn ..."
:  Text "P("&amp;string(a)&amp;"&le;X&le;"&amp;string(b)&amp;")=&amp;string(prob)
:  Text " "
:  Text "n = "&amp;string;(n)&amp;" N = "&amp;string(pop)&amp;" M = "&amp;string(succ)<co id="hypergeo-outvar">
:EndDlog
:setMode(usrMode)
:EndPrgm
        </programlisting>
	<calloutlist>
	  <callout arearefs="hypergeo-cmt">
	    <para>The &cmt; symbol is used to indicate the
	    &ti89; comment symbol.</para>
	  </callout>
	  <callout arearefs="hypergeo-expr">
	    <para>The <function>Request</function> function returns a
	    string value; since we need a numeric value, we have to
	    convert each stored value.</para>
	  </callout>
	  <callout arearefs="hypergeo-calc">
	    <para>The calculation here should probably either include
	    checks on the validity of the input parameters, or call
	    <function>hygeopdf</function> to allow that function to do
	    the error checking.</para>
	  </callout>
	  <callout arearefs="hypergeo-outvar">
            <para>The choice of variable names in the output summary
	    matches the convention used in <xref linkend="Devore">
	    rather than mirroring the descriptive strings used in the
	    input dialog.</para>
	  </callout>
	</calloutlist>
	<para></para>
      </refsect1>
    </refentry>
    <refentry id="ref-hygeopdf">
      <refnamediv>
	<refname><function>hygeopdf(x,n,succ,pop)</function></refname>
	<refpurpose>Evaluate the <acronym>PDF</acronym> of a
	hypergeometric random variable.</refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>hygeopdf(<parameter>x</parameter>,<parameter>n</parameter>,<parameter>succ</parameter>,<parameter>pop</parameter>)</synopsis>
	<variablelist>
	  <title>Inputs</title>
	  <varlistentry>
	    <term><parameter>x</parameter></term>
	    <listitem>
	      <para>The value at which the <acronym>PDF</acronym> is
	      to be evaluated.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term><parameter>n</parameter></term>
	    <listitem>
	      <para>The sample size.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term><parameter>succ</parameter></term>
	    <listitem>
	      <para>The total number of successes in the population.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term><parameter>pop</parameter></term>
	    <listitem>
	      <para>The total number of elements (successes and
	      failures) in the population.</para>
	    </listitem>
	  </varlistentry>
	</variablelist>
	<variablelist>
          <title>Outputs</title>
	  <varlistentry>
	    <term>probability</term>
	    <listitem>
	      <para>The <acronym>PDF</acronym>  value.</para>
	    </listitem>
	  </varlistentry>
	</variablelist>
      </refsynopsisdiv>
      <refsect1>
	<title>Description</title>
	<para><function>hygeopdf</function> computes the
	probability that a hypergeometric random variable with sample
	size <parameter>n</parameter>, possible number of successes
	<parameter>succ</parameter>, and population size
	<parameter>pop</parameter> assumes the value
	<parameter>x</parameter>.</para> <para>The hypergeometric
	<acronym>PDF</acronym> is defined as (nCr(Succ, x) * nCr(Pop -
	Succ, n - x))/(nCr(Pop, n)), where <Parameter>Pop</Parameter>
	is the number of elements in the population,
	<Parameter>Succ</Parameter> is the number of elements coded
	&ldquo;success&rdquo;, <Parameter>n</Parameter> is the sample
	size, and max(0, n - Pop + Succ) &le; x &le; min(n,
	Succ).</para>
      </refsect1>
      <refsect1>
	<title>Example</title>
	<para>To find the probabilitity that a
	random variable from a hypergeometric distribution with a
	population size of 50 with 15 successes and a sample size of
	10 has exactly 5 successes:</para>
	<procedure>
	  <step>
	    <para>Enter <literal>hygeopdf(5.,10,15,50)</literal> in
	    the entry line of the &home; window.</para>
	  </step>
	  <step>
	    <para>Press <keycap>Enter</keycap></para>
	  </step>
	  <step>
	    <para>The expression you entered and the answer,
	    <literal>.094903</literal>, will be displayed in the
	    <guilabel>History Area</guilabel>. </para>
	    <note>
	      <para>If you enter all of the parameters using exact
	      forms, the calculator will display the exact answer (in
	      this case <literal>904332/9529015</literal>).
	      Entering any parameter using a decimal form (the
	      <literal>5.</literal> in the example) cause the
	      calculator to provide the approximate answer.</para>
	    </note>
	  </step>
	</procedure>
      </refsect1>
      <refsect1>
	<title>&ti89; Implementation</title>

           <Para>Because of the very simple definition of
           <Function>hygeocdf()</Function>, it is important that we
           define <Function>hygeopdf()</Function> to return zero for
           invalid values of x. It is also appropriate to test for
           invalid parameter inputs; an invalid input here can
           propogate up to the <Acronym>CDF</Acronym>.</Para>

<ProgramListing id="prg-hygeopdf">
:hygeopdf(x, n, succ, pop)
:Func
:If n>pop or succ>pop Then
:  Return "'Invalid parameters"
:EndIf
:If max(0,n-pop+succ)&le;x and x &le; min(n, succ)<co id="hygeopdf-test"> Then
:  nCr(succ, x)*nCr(pop-succ, n-x)/(nCr(pop, n))
:Else
:  0
:EndIf
:&cmt;<co id="hygeopdf-cmt"> PDF for a
:&cmt; hypergeometric RV
:&cmt; Rev 1.1
:&cmt; Mark Wroth
:EndFunc
</ProgramListing>
	<calloutlist>
	  <callout arearefs="hygeopdf-test">
	    <para>Test for the side conditions on the values of the
	    random variable.</para>
	  </callout>
	  <callout arearefs="hygeopdf-cmt">
	    <para>The &cmt; symbol is used to represent the
	    &ti89; comment symbol.</para>
	  </callout>
	</calloutlist>
      </refsect1>
    </refentry>
    <refentry id="ref-hygeocdf">
      <refnamediv>
        <refname><function>hygeocdf</function></refname>
	<refpurpose>Evaluate the <acronym>CDF</acronym> of a
	hypergeometric random variable.</refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>hygeocdf(<parameter>x</parameter>,<parameter>n</parameter>, <parameter>succ</parameter>,<parameter>pop</parameter>)</synopsis>
	<variablelist>
	  <title>Inputs</title>
	  <varlistentry>
	    <term><parameter>x</parameter></term>
	    <listitem>
	      <para>The value at which the <acronym>CDF</acronym> is
	      to be evaluated.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term><parameter>n</parameter></term>
	    <listitem>
	      <para>The sample size.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term><parameter>succ</parameter></term>
	    <listitem>
	      <para>The total number of successes in the population.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term><parameter>pop</parameter></term>
	    <listitem>
	      <para>The total number of elements (successes and
	      failures) in the population.</para>
	    </listitem>
	  </varlistentry>
	</variablelist>
	<variablelist>
   	  <title>Outputs</title>
	  <varlistentry>
	    <term>probability</term>
	    <listitem>
	      <para>The <acronym>CDF</acronym> value.</para>
	    </listitem>
	  </varlistentry>
	</variablelist>
      </refsynopsisdiv>
      <refsect1>
	<title>Description</title>
	<para><function>hygeocdf(<parameter>x</parameter>,
	<parameter>n</parameter>, <parameter>succ</parameter>,
	<parameter>pop</parameter>)</function> computes the
	probability that a hypergeometric random variable with sample
	size <parameter>n</parameter>, possible number of successes
	<parameter>succ</parameter>, and population size
	<parameter>pop</parameter> assumes a value less than or equal
	to <parameter>x</parameter>.</para> <para>The hypergeometric
	<acronym>CDF</acronym> is defined as
	&sum;<superscript>x</superscript><subscript>i=0</subscript>(nCr
	(Succ, i) * nCr (Pop - Succ, n - i))/(nCr (Pop, n)), where
	<Parameter>Pop</Parameter> is the number of elements in the
	population, <Parameter>Succ</Parameter> is the number of
	elements coded &ldquo;success&rdquo;, <Parameter>n</Parameter>
	is the sample size.  Unlike the <acronym>PDF</acronym>, there
	are no limits (in principle) on <parameter>x</parameter>,
	although some care is needed to ensure that the function
	behaves properly at all values.</para>
      </refsect1>
      <refsect1>
	<title>Example</title>

        <para>To find the probability that a
	random variable from a hypergeometric distribution with a
	population size of 50 with 15 successes and a sample size of
	10 has 5 or fewer successes:</para>
	<procedure>
	  <step>
	    <para>Enter <literal>hygeocdf(5.,10,15,50)</literal> in
	    the entry line of the <keycap>Home</keycap> window.</para>
	  </step>
	  <step>
	    <para>Press <keycap>Enter</keycap></para>
	  </step>
	  <step>
	    <para>The expression you entered and the answer,
	    <literal>.969998</literal>, will be displayed in the
	    <guilabel>History Area</guilabel>. </para>
	    <note>
	      <para>If you enter all of the parameters using exact
	      forms, the calculator will display the exact answer (in
	      this case <literal>2813126/2900135</literal>).
	      Entering any parameter using a decimal form (the
	      <literal>5.</literal> in the example) cause the
	      calculator to provide the approximate answer.</para>
	    </note>
	  </step>
	</procedure>
      </refsect1>
      <refsect1>
	<title>&ti89; Implementation</title>

           <Para>The <Acronym>CDF</Acronym> for the Hypergeometric can
           be implemented easily given the existence of a
           <Acronym>PDF</Acronym> function which correctly returns
           zero for values of x which violate the side conditions (see
           <Xref linkend="ref-hygeopdf">).
           </Para>

<ProgramListing id="prg-hygeocdf">
:hygeocdf(x, n, succ, pop)
:Func
: &sum;(hygeopdf(i, m, succ, pop),i,0,x)<co id="hygeopdf-calc">
:&cmt;<co id="hygeocdf-cmt"> CDF for a 
:&cmt; hypergeometric RV
:&cmt; Rev 1.0
:&cmt; Mark Wroth
:EndFunc
</ProgramListing>
	<calloutlist>
	  <callout arearefs="hygeopdf-calc">
            <para>We depend on the error checking of
            <function>hygeopdf()</function> to catch any parameter
            errors, so the <acronym>CDF</acronym> does not need to do
            any independent error checking.</para>
	  </callout>
	  <callout arearefs="hygeocdf-cmt">
	    <para>The &cmt; symbol represents the
	    &ti89; comment symbol.</para>
	  </callout>
	</calloutlist>
      </refsect1>
    </refentry>
    <refentry id="ref-poissCdf">
      <refnamediv>
	<refname><function>TIStat.poissCdf</function></refname>
	<refpurpose>Evaluate the probability that a Poisson random
	variable lies between <varname>LOW</varname> and
	<varname>UP</varname> inclusive.</refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>TIStat.poissCdf(<parameter>&lambda</parameter><optional>,<parameter>LOW</parameter></optional>,<parameter>UP</parameter>)</synopsis>
	  <variablelist>
	  <title>Inputs</title>
	    <varlistentry>
	      <term><varname>&lambda;</varname> (required)</term>
	      <listitem>
		<para>The parameter of the Poisson distribution.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term><varname>LOW</varname> (optional)</term>
	      <listitem>
		<para>The lower bound of the interval. Defaults to
		negative infinity.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term><varname>UP</varname> (required)</term>
	      <listitem>
		<para>The upper bound of the interval.</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
	  <variablelist>
   	    <title>Outputs</title>
	    <varlistentry>
	      <term>Probability</term>
	      <listitem>
		<para>The probability of that the random variable lies
		within the given interval.</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
      </refsynopsisdiv>
      <refsect1>
	<title>Description</title>
	<para>This program computes various probabilities connected
	with Poisson random variables.  The use of the optional
	<parameter>LOW</parameter> argument allows the program to be
	used to compute the <acronym>PDF</acronym>,
	<acronym>CDF</acronym>, or the probability that the random
	variable lies in a specific interval.</para>
	<para>It is important to understand that the interval over
	which the probability is computed is a
	<emphasis>closed</emphasis> interval; in other words, the
	endpoints are included in the interval.</para>
      </refsect1>
    </refentry>
    <refentry id="ref-binomCdf">
      <refnamediv>
	<refname><function>TIStat.binomCdf</function></refname>
	<refpurpose>Evaluate the probability that a Binomial random
	variable lies between <varname>LOW</varname> and
	<varname>UP</varname> inclusive.</refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>TIStat.binomCdf(<parameter>n</parameter>,<parameter>p</parameter><optional>,<parameter>LOW</parameter></optional>,<parameter>UP</parameter>)</synopsis>
	  <variablelist>
	  <title>Inputs</title>
	    <varlistentry>
	      <term><varname>n</varname> (required)</term>
	      <listitem>
		<para>The number of trials.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term><varname>p</varname> (required)</term>
	      <listitem>
		<para>The probability of success.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term><varname>LOW</varname> (optional)</term>
	      <listitem>
		<para>The lower bound of the interval. Defaults to
		negative infinity.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term><varname>UP</varname> (required)</term>
	      <listitem>
		<para>The upper bound of the interval.</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
	  <variablelist>
	  <title>Outputs</title>
	    <varlistentry>
	      <term>Probability</term>
	      <listitem>
		<para>The probability of that the random variable lies
		within the given interval.</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
      </refsynopsisdiv>
      <refsect1>
	<title>Description</title>
	<para>This program computes various probabilities connected
	with binomial random variables.  The use of the optional
	<parameter>LOW</parameter> argument allows the program to be
	used to compute the <acronym>PDF</acronym>,
	<acronym>CDF</acronym>, or the probability that the random
	variable lies in a specific interval.</para>
	<para>It is important to understand that the interval over
	which the probability is computed is a
	<emphasis>closed</emphasis> interval; in other words, the
	endpoints are included in the interval.</para>
      </refsect1>
    </refentry>
    <refentry id="ref-unifcdf">
      <refnamediv>
	<refname><function>unifCdf</function></refname>
	<refpurpose>Evaluate the <acronym>CDF</acronym> of a uniformly
	distributed random variable.</refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>unifCdf(<parameter>x</parameter>,<parameter>a</parameter>,<parameter>b</parameter>)</synopsis>
	<variablelist>
	  <title>Inputs</title>
	  <varlistentry>
	    <term><parameter>x</parameter></term>
	    <listitem>
	      <para>The value at which the <acronym>CDF</acronym> is
	      to be evaluated.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term><parameter>a</parameter></term>
	    <listitem>
	      <para>The lower limit of the region for which the
	      <acronym>PDF</acronym> is non-zero.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term><parameter>b</parameter></term>
	    <listitem>
	      <para>The upper limit of the region for which the
	      <acronym>PDF</acronym> is non-zero.</para>
	    </listitem>
	  </varlistentry>
	</variablelist>
	<variablelist>
	  <title>Outputs</title>
	  <varlistentry>
	    <term>Cumulative probability</term>
	    <listitem>
	      <para>The probability that a uniformly distributed
	      random variable with the specified parameters is less
	      than or equal to <parameter>x</parameter>.</para>
	    </listitem>
	  </varlistentry>
	</variablelist>
      </refsynopsisdiv>
      <refsect1>
	<title>Description</title>
	<para>This function evaluates the <acronym>CDF</acronym> of a
	uniformly distributed random variable.  It will return zero
	for values less than the lower limit,
	<parameter>a</parameter>, one for values above the upper
	limit, <parameter>b</parameter>, and (x-a)/(b-a) between those
	two values.</para>
      </refsect1>
      <refsect1>
	<title>Example</title>
	<para>To find the probabilitity that a random variable
	uniformly distributed between 1 and 10 is less than 5:</para>
	<procedure>
	  <step>
	    <para>Enter <literal>unifcdf(5.,1,10)</literal> in the entry
	    line of the <keycap>Home</keycap> window.</para>
	  </step>
	  <step>
	    <para>Press <keycap>Enter</keycap></para>
	  </step>
	  <step>
	    <para>The expression you entered and the answer,
	    <literal>.444444</literal>, will be displayed in the
	    <guilabel>History Area</guilabel>. </para>
	    <note>
	      <para>If you enter all of the parameters using exact
	      forms, the calculator will display the exact answer (in
	      this case <literal>4/9</literal>).
	      Entering any parameter using a decimal form (the
	      <literal>5.</literal> in the example) cause the
	      calculator to provide the approximate answer.</para>
	    </note>
	  </step>
	</procedure>
      </refsect1>
      <refsect1>
	<title>&ti89; Implementation</title>

<programlisting id="prg-unifcdf">
:unifcdf(x,a,b) 
:Func 
: &cmt; CDF for an RV uniform 
: &cmt; on [a,b] 
: If a&lt;b Then <co id="co-unifintest">
:  If x&lt;a Then 
:   Return 0 
:  ElseIf x>b Then 
:   Return 1 
:  Else 
:   (X-a)/(b-a) 
:  EndIf 
: Else  <co id="co-uniferr">
:  "Parameters a < b"
: EndIf 
: &cmt; Rev 1.0 
: &cmt; Mark Wroth 
:EndFunc 
</programlisting>
	<calloutlist>
	  <callout arearefs="co-unifintest">
	    <para>Test for valid input.</para>
	  </callout>
	  <callout arearefs="co-uniferr">
	    <para>If the input is invalid, return a string explaining why.</para>
	  </callout>
	</calloutlist>
      </refsect1>
    </refentry>
    <refentry id="ref-expcdf">
      <refnamediv>
	<refname><function>expCdf</function></refname>
	<refpurpose>Evaluate the <acronym>CDF</acronym> of an exponentially
	distributed random variable.</refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>expCdf(<parameter>x</parameter>,<parameter>&lambda;</parameter>)</synopsis>
	<variablelist>
	<title>Inputs</title>
	  <varlistentry>
	    <term><parameter>x</parameter></term>
	    <listitem>
	      <para>The value of the random variable at which the
	      <acronym>CDF</acronym> is to be evaluated.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term><parameter>&lambda;</parameter></term>
	    <listitem>
	      <para>The parameter of the distribution. &lambda; is one
	      over the mean of the distribution.</para>
 	    </listitem>
	  </varlistentry>
	</variablelist>
	<variablelist>
 	  <title>Outputs</title>
	  <varlistentry>
	    <term>Cumulative probability</term>
	    <listitem>
	      <para>The probability that the random variable is less
	      than or equal to the supplied <parameter>x</parameter>.</para>

  	      <para>If an invalid parameter &lambda; is supplied, an
	      error string is returned, rather than a numeric
	      result.</para>

	    </listitem>
	  </varlistentry>
	</variablelist>
      </refsynopsisdiv>
      <refsect1>
	<title>Description</title>
	<para>This function implements the <acronym>CDF</acronym> for
	an exponentially distributed random variable with parameter
	<parameter>&lambda;</parameter>.  Such a random variable has
	<acronym>PDF</acronym> f(x) = &lambda; e<superscript>-&lambda;
	x</superscript>. </para>
      </refsect1>
      <refsect1>
	<title>Example</title>
	<para>To compute the probability that an exponentially
	distributed random variable with mean 5 is less than or equal
	to 3:</para>
	<procedure>
	  <step>
	    <para>Enter <literal>expcdf(3.,1/5)</literal> in the entry
	    line of the <keycap>Home</keycap> window.</para>
	  </step>
	  <step>
	    <para>Press <keycap>Enter</keycap></para>
	  </step>
	  <step>
	    <para>The expression you entered and the answer,
	    <literal>.451188</literal>, will be displayed in the
	    <guilabel>History Area</guilabel>. </para>
	    <note>
	      <para>If you enter both parameters using exact forms,
	      the calculator will display the exact answer (in this
	      case
	      <literal>1-e<superscript>-3/5</superscript></literal>).
	      Entering either parameter using a decimal form (the
	      <literal>3.</literal> in the example) cause the
	      calculator to provide the approximate answer.</para>
	    </note>
	  </step>
	</procedure>
 
      </refsect1>
      <refsect1>
	<title>&ti89; Implementation</title>

<ProgramListing id="prg-expcdf">
:expcdf(x,&lambda;) 
:Func 
: when(&lambda;<0, when(x&ge;0,1-e^(-&lambda;*x),0),&ldquo;&lambda; must be > 0&rdquo;) 
: &cmt; CDF of an exponential <LineAnnotation>The &ldquo;&cmt;&rdquo; symbol is used here to represent the &ti89; comment symbol</LineAnnotation> 
: &cmt; RV with parameter &lambda; 
: &cmt; Rev 1.0 JUN 00
: &cmt; D/MathSci USMA (Mark Wroth)
:EndFunc </ProgramListing>

<Para>The <function>expCdf</function> function wraps a simple call
to the usual mathematical definition inside two tests.  The first of
these tests checks that the required parameter &lambda; is greater than
zero, as required by the definition of the function.  The second test
checks whether the input value x is greater than or less than zero,
branching to the two piecewise definitions of the
<Acronym>CDF</Acronym> depending on the result.  Both tests use the
<Function>where()</Function> function, which is in essence a simple
branching structure.</Para>
      </refsect1>
    </refentry>
    <refentry id="normCDF">
      <refnamediv>
	<refname><function>TIStat.normCDF</function></refname>
	<refpurpose>Returns the probability that a normally
	distributed random variable with mean &mu; and standard
	deviation &sigma; lies between <varname>LOW</varname> and
	<varname>UP</varname>.</refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>
TIStat.normCDF(<parameter>LOW</parameter>,<parameter>UP</parameter><optional>, <parameter>&mu;</parameter>,<parameter>&sigma;</parameter></optional>)
        </synopsis>
	  <variablelist>
	    <title>Inputs</title>
	    <varlistentry>
	      <term><varname>LOW</varname> (required)</term>
	      <listitem>
		<para>The lower bound of the interval over which the
		probability is desired.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term><varname>UP</varname> (required)</term>
	      <listitem>
		<para>The upper bound of the interval over which the
		probability is desired.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term><varname>&mu;</varname> (optional)</term>
	      <listitem>
		<para>The mean of the normally distributed random
		variable. If the mean is not supplied, it defaults to 0.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term><varname>&sigma;</varname> (optional)</term>
	      <listitem>
		<para>The standard deviation of the normally
		distributed random variable. If the standard deviation
		is not supplied, it defaults to 1.</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
	  <variablelist>
	    <title>Outputs</title>
	    <varlistentry>
	      <term>Probability</term>
	      <listitem>
		<para>The probability of that the random variable lies
		in the interval [LOW, UP].</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
      </refsynopsisdiv>
      <refsect1>
	<title>Usage</title>
	<para>This function is used from the command line of the &home;
	screen, and may be entered either by typing the name of the
	function or selecting it from the <keycap>CATALOG</keycap>
	screen, where it is found under <guilabel>F3: Flash
	Apps</guilabel>.</para>

	<para>This function may also be accessed from the menu system,
	under <guilabel>F5 Distributions</guilabel>, <guimenu>4:
	Normal CDF</guimenu>.</para>

      </refsect1>
    </refentry>
    <refentry id="invNorm">
      <refnamediv>
	<refname><function>TIStat.invNorm</function></refname>
	<refpurpose><function>TIStat.invNorm</function> returns the
	value of a normally distributed random variable such that a
	probability of <varname>AREA</varname> lies to the left of the
	value.</refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>TIStat.invNorm(<parameter>AREA</parameter><optional>, <parameter>&mu;</parameter>, <parameter>&sigma;</parameter></optional>)</synopsis>
	  <variablelist>
	    <title>Inputs</title>
	    <varlistentry>
	      <term><varname>AREA</varname> (required)</term>
	      <listitem>
		<para>The cumulative probability that the random
		variable is less than the returned value.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term><varname>&mu;</varname> (optional)</term>
	      <listitem>
		<para>The mean of the random variable.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term><varname>&sigma;</varname> (optional)</term>
	      <listitem>
		<para>The standard deviation of the random variable.</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
	  <variablelist>
	    <title>Outputs</title>
	    <varlistentry>
	      <term>Value</term>
	      <listitem>
		<para>The value of the random variable below which the
		input probability falls.</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
      </refsynopsisdiv>
      <refsect1>
	<title>Usage</title>
	<para>This function is used from the command line of the &home;
	screen, and may be entered either by typing the name of the
	function or selecting it from the <keycap>CATALOG</keycap>
	screen, where it is found under <guilabel>F3: Flash
	Apps</guilabel>.</para>
	<para>This function may also be accessed from the menu system,
	under <guilabel>F5 Distributions</guilabel>, <guimenu>2:
	Inverse</guimenu>, <guisubmenu>1: Inverse Normal</guisubmenu>.</para>
      </refsect1>
    </refentry>
    <refentry id="ref-inv-t">
      <refnamediv>
	<refname><function>TIStat.inv_t</function></refname>
	<refpurpose><function>TIStat.inv_t</function> returns the
	value of a Student's T distributed random variable such that a
	probability of <varname>AREA</varname> lies to the left of the
	value.</refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>TIStat.inv_t(<parameter>AREA</parameter>, <parameter>DF</parameter>)</synopsis>
	  <variablelist>
	    <title>Inputs</title>
	    <varlistentry>
	      <term><varname>AREA</varname> (required)</term>
	      <listitem>
		<para>The cumulative probability that the random
		variable is less than the returned value.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term><varname>DF</varname> (required)</term>
	      <listitem>
		<para>The number of degrees of freedom.</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
	  <variablelist>
	    <title>Outputs</title>
	    <varlistentry>
	      <term>Value</term>
	      <listitem>
		<para>The value of the random variable below which the
		input probability falls.</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
      </refsynopsisdiv>
      <refsect1>
	<title>Usage</title>
	<para>This function is used from command line of the &home;
	screen, and may be entered either by typing the name of the
	function or selecting it from the <keycap>CATALOG</keycap>
	screen, where it is found under <guilabel>F3: Flash
	Apps</guilabel>.</para>
	<para>This function may also be accessed from the menu system,
	under <guilabel>F5 Distributions</guilabel>, <guimenu>2:
	Inverse</guimenu>, <guisubmenu>2: Inverse t</guisubmenu>.</para>
      </refsect1>
    </refentry>
    <refentry>
      <refnamediv>
	<refname><function>TIStat.invChi2</function></refname>
	<refpurpose>Compute the
	value of a &chi;<superscript>2</superscript> distributed
	random variable such that a probability of
	<varname>AREA</varname> lies to the left of the
	value.</refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>TIStat.invChi2(<parameter>AREA</parameter>, <parameter>DF</parameter>)</synopsis>
	  <variablelist>
	    <title>Inputs</title>
	    <varlistentry>
	      <term><varname>AREA</varname> (required)</term>
	      <listitem>
		<para>The cumulative probability that the random
		variable is less than the returned value.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term><varname>DF</varname> (required)</term>
	      <listitem>
		<para>The number of degrees of freedom.</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
	  <variablelist>
	    <title>Outputs</title>
	    <varlistentry>
	      <term>Value</term>
	      <listitem>
		<para>The value of the random variable below which the
		input probability falls.</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
      </refsynopsisdiv>
      <refsect1>
	<title>Usage</title>
	<para>This function is used from command line of the &home;
	screen, and may be entered either by typing the name of the
	function or selecting it from the <keycap>CATALOG</keycap>
	screen, where it is found under <guilabel>F3: Flash
	Apps</guilabel>.</para>

	<para>This function may also be accessed from the menu system,
	under <guilabel>F5 Distributions</guilabel>, <guimenu>2:
	Inverse</guimenu>, <guisubmenu>3: Inverse Chi-square</guisubmenu>.</para>

      </refsect1>
    </refentry>
    <refentry id="ref-zInt">
      <refnamediv>
	<refname><function>TIStat.zInt</function></refname>
	<refpurpose>Compute a confidence interval for the mean of a
        random variable.</refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>zInt(&sigma;,List[,FRQ,CLEV] | &sigma;,&xbar;,N[,CLEV])</synopsis>
      </refsynopsisdiv>
      <refsect1>
	<title>Usage</title>
	<para>This program takes two forms depending on whether the
	sample statistics are to be computed from data contained in a
	list or entered directly by the user.</para>
	<para>This program can also be accessed from the menu system.</para>
      </refsect1>
    </refentry>
    <refentry id="ref-tInt">
      <refnamediv>
	<refname><function>TIStat.tInt</function></refname>
	<refpurpose>Compute a confidence interval for the mean of a
        normally distributed random variable.</refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>TIStat.tInt(LIST[,FRQ,CLEV] | &xbar;,SX,N[,CLEV])</synopsis>
      </refsynopsisdiv>
      <refsect1>
	<title>Usage</title>
	<para>This program takes two forms depending on whether the
	sample statistics are to be computed from data contained in a
	list or entered directly by the user.</para>
	<para>This program can also be accessed from the menu system.</para>
      </refsect1>
    </refentry>
    <refentry id="chi2int">
      <refnamediv>
	<refname><function>chi2int</function></refname> 

        <refpurpose>The <function>chi2int()</function> program (and
	its companion <function>chi2gui()</function>, which provides a
	graphical user interface to the program) computes confidence
	intervals on the population variance or standard
	deviation of a normally distributed population.</refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>chi2int(<parameter>n</parameter>,<parameter>s2</parameter>,<parameter>clevel</parameter>,<parameter>type</parameter>)</synopsis>
        <variablelist>
	  <title>Inputs</title>
	  <varlistentry>
	    <term>n</term>
	    <listitem>
	      <para>The number of samples in the sample.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term>s2</term>
	    <listitem>
	      <para>The sample variance.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term>clevel</term>
	    <listitem>
	      <para>The desired confidence level for the confidence
	      interval.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term>type</term>
	    <listitem>
	      <para>The type of interval desired, where
	      <userinput>1</userinput> indicates a confidence
	      interval on the variance, and <userinput>2</userinput>
	      a confidence interval on the standard deviation.</para>
	    </listitem>
	  </varlistentry>
	</variablelist>
	<refsect2>
	  <title>Outputs</title>
	  <para>The <function>chi2int</function> program provides its
	  outputs in two forms: a graphical requester that provides
	  the requested confidence interval and echoes the user
	  inputs, and by storing the user inputs and the desired
	  confidence interval endpoints in the
	  <filename>statvars</filename> directory.</para>
	  <para>The set of stored variables are different for the
	  <function>chi2int</function> and the
	  <function>chi2gui</function> programs.  The
	  <function>chi2int</function> stores:<variablelist>
	      <varlistentry>
		<term>statvars\lower</term>
		<listitem>
		  <para>The lower end of the desired confidence
		  interval.</para>
		</listitem>
	      </varlistentry>
	      <varlistentry>
		<term>statvars\upper</term>
		<listitem>
		  <para>The upper end of the desired confidence
		  interval.</para>
		</listitem>
	      </varlistentry>
	    </variablelist>  In addition, the
	    <function>chi2gui</function> will store the following user
	    inputs to the indicated variables (and will use the values
	    in those variables as the default choices when it
	    opens).<variablelist>
	      <varlistentry>
		<term>statvars\n</term>
		<listitem>
		  <para>The sample size</para>
		</listitem>
	      </varlistentry>
	      <varlistentry>
		<term>statvars\ssdevx</term>
		<listitem>
		  <para>The sample standard deviation (square root of
		  the entered sample variance.</para>
		</listitem>
	      </varlistentry>
	      <varlistentry>
		<term>statvars\clevel</term>
		<listitem>
		  <para>The confidence level.</para>
		</listitem>
	      </varlistentry>
	    </variablelist>
          </para>
	</refsect2>
      </refsynopsisdiv>
      <refsect1>
	<title>Usage</title>

        <para>This function can be called in either of two ways: from
	the <guibutton>Home</guibutton> command line, as
	<userinput>chi2int(<replaceable>n</replaceable>,
	<replaceable>s2</replaceable>,
	<replaceable>clevel</replaceable>,
	<replaceable>type</replaceable>)</userinput> or by calling
	<userinput>chi2gui()</userinput>. If the
	<userinput>chi2int</userinput> for is used, the input
	arguments are:</para>

	<para>If the <userinput>chi2gui()</userinput> form is used,
	  there are no command line inputs; the program will raise a
	  requester to allow the user to supply the needed values.</para>

      </refsect1>
      <refsect1>
	<title>Example</title>

	<para>Given a sample of size n = 17, and a sample variance
	of 137,324.3, compute a 95% confidence interval on the
	population variance.</para>
	  <procedure>
	    <step>
	      <para>Begin at the <guibutton>Home</guibutton> screen.</para>
	    </step>
	    <step>
	      <para>Enter the command
	      <userinput>chi2int(17,137324.3,.95,1)<keycap>Enter</keycap></userinput>.<tip>
		  <para>As a shortcut to entering the command name,
	      use the <guibutton>Catalog</guibutton> function and
	      select the <guisubmenu>F4 User-Defined</guisubmenu>
	      tab.  Then select the desired function from the list.</para>
		</tip></para>
	    </step>
	    <step>
	      <para>Read the confidence interval (76171.3, 318080) on
	      the resulting requester.<footnote>
		  <para>This is Example 7.15 from Devore's 5th
	      edition. However, the use of the full accuracy of the
	      Chi-squared inverse function rather than the five
	      significant figures available from a set of tables
	      results in a slightly different answer than Devore
	      obtains. </para>
		</footnote>
              </para>
	    </step>
	  </procedure>
	  <para>Alternatively, using the <function>chi2gui</function>
	  to solve the same problem:</para>
	  <procedure>
	    <step>
	      <para>Start the <function>chi2gui</function> by entering
	      <userinput>chi2gui()</userinput> at the
	      <guibutton>Home</guibutton> screen.</para>
	    </step>
	    <step>
	      <para>Enter the values for n, the sample variance, and
	      the confidence level in the open requesters.</para>
	    </step>
	    <step>
	      <para>Select the desired confidence interval type from
	      the drop down menu.</para>
	    </step>
	    <step>
	      <para>Press <keycap>Enter</keycap>.</para>
	    </step>
	    <step>
	      <para>Read the confidence interval (76171.3, 318080) on
	      the resulting requester.</para>
	    </step>
	  </procedure>
      </refsect1>
      <refsect1>
	<title>&ti89; Implementation</title>
	<refsect2>
	  <title>The <function>chi2int</function> Program</title>
<programlisting id="prg-chi2int">
:chi2int(n,s2,clevel,type)
:Prgm
:&cmt; D/MathSci USMA (Mark Wroth)
:&cmt; Revision 1.1 21 JUN 01
:Local l,u,tstr
:(n-1)*s2/(tistat.invchi2(1-(1-clevel)/2,n-1))&store;l
:(n-1)*s2/(tistat.invchi2((1-clevel)/2,n-1))&store;u
:"CI on &sigma;<superscript>2</superscript>"&store;tstr
:If type=2 Then
: &radic;(l)&store;l
: &radic;(u)&store;u
: "CI on &sigma;"&store;tstr
:EndIf
:Dialog
: Title tstr
: Text "Cint = ( "&amp;string(l)&amp;" , "&amp;string(u)&amp;" )"
: Text "n    = "&amp;string(n)
: Text "s<superscript>2</superscript>    = "&amp;string(s2)
:EndDlog
:l&store;statvars\lower
:u&store;statvars\upper
:EndPrgm
</programlisting>
	</refsect2>
        <refsect2>
          <title>The <function>chi2gui</function> Program</title>
<programlisting id="prg-chi2gui">
chi2gui()
Prgm
&cmt; D/MathSci USMA
&cmt; Version 1.1 21 JUN 01
Local n,s2,clevel,type
string(statvars\n)&store;n
string(statvars\ssdevx^2)&store;s2
string(statvars\clevel)&store;clevel
Dialog
 Title "Chi Squared CI"
 Request "n      ",n
 Request "s<superscript>2</superscript>     ",s2
 Request "C level",clevel
 DropDown "CI on ",{"variance","std dev"},type
EndDlog
If ok=1 Then
expr(n)&store;n
expr(s2)&store;s2
expr(clevel)&store;clevel
chi2int(n,s2,clevel,type)
n&store;statvars\n
&radic;(s2)&store;statvars\ssdevx
clevel&store;statvars\clevel
EndIf
EndPrgm
</programlisting>
        </refsect2>
      </refsect1>
    </refentry>
    <refentry id="binomint">
      <refnamediv>
  	<refname><function>binomInt</function></refname> 

        <refpurpose>The <function>binomint()</function> program
        computes confidence intervals on the population proportion for a 
        binomially distributed random variable.</refpurpose>
      </refnamediv>
      <refsynopsisdiv>
	<synopsis>binomint(<parameter>success</parameter>,<parameter>n</parameter>,<parameter>clevel</parameter>)</synopsis>

	  <variablelist>
	    <title>Inputs</title>
	    <varlistentry>
	      <term>success</term>
	      <listitem>
		<para>The number of successes in the sample.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term>n</term>
	      <listitem>
		<para>The size of the sample.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term>clevel</term>
	      <listitem>
		<para>The desired confidence level (1-&alpha;).</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
	  <variablelist>
	    <title>Outputs</title>
	    <varlistentry>
	      <term>statvars\lower</term>
	      <listitem>
		<para>The lower endpoint of the resulting confidence
		interval.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term>statvars\upper</term>
	      <listitem>
		<para>The upper endpoint of the resulting confidence
		interval.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term>statvars\n</term>
	      <listitem>
		<para>The size of the sample.</para>
	      </listitem>
	    </varlistentry>
	    <varlistentry>
	      <term>statvars\clevel</term>
	      <listitem>
		<para>The desired confidence level (1-&alpha;).</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
      </refsynopsisdiv>
      <refsect1>
	<title>Usage</title>

        <para>This function is called by entering
	<userinput>binomint(<replaceable>success</replaceable>,
	<replaceable>n</replaceable>,
	<replaceable>clevel</replaceable>)</userinput> at the
	&home; screen.</para>

      </refsect1>
      <refsect1>
	<title>Example</title>
	<para>To compute a 90% confidence interval on the binomial
	parameter p based on a sample of 100 observations, 50 of which
	were successes:</para>
	<procedure>
	  <step>
	    <para>At the &home; screen, enter
	    <userinput>binomint(50,100,.9)<keycap>ENTER</keycap></userinput>.
	    </para>
	  </step>
	  <step>
	    <para>Read the resulting interval <returnvalue>(.418848,
	    .581152)</returnvalue> in the output requester.  This
	    requester also echoes the input values.</para>
	  </step>
	</procedure>
	<para>The ends of the confidence interval are also stored in
	<varname>statvars\lower</varname> and
	<varname>statvars\upper</varname>.</para>
      </refsect1>
      <refsect1>
        <title>&ti89; Implementation</title>
	<para>This function implements Equation 7.10 from <xref
	linkend="devore">.  This expression includes several terms
	which are usually neglected (as in the
	<function>TIStat.zInt_1P</function> or Devore's
	Equation&nbsp;7.11. The expanded function implemented here is
	considered acceptably accurate even if np or n(1-p) are not
	sufficiently large. </para>
<programlisting id="prg-binomint">
binomint(success,n,clevel)
Prgm
&cmt; Find a "7.10" CI for the binomial parameter "p"
&cmt; D/MathSci USMA (Mark Wroth)
&cmt; Revision 1.1 21 JUN 01
Local  l,u,phat,t1,t2,z
success/n&store;phat
tistat.invnorm(1-(1-clevel)/2,0,1)&store;z
z*&radic;(phat*(1-phat)/n+z^2/(4*n^2))&store;t1
1+z^2/n&store;t2
(phat+z^2/(2*n)-t1)/t2&store;l
(phat+z^2/(2*n)+t1)/t2&store;u
Dialog
Title  "CI on p"
 Text  "Cint = ( "&amp;string(l)&amp;" , "&amp;string(u)&amp;" )"
 Text  "trials    = "&amp;string(n)
 Text  "successes = "&amp;string(success)
 Text  "C Level   = "&amp;string(clevel)
 Text  "p-hat     = "&amp;string(phat)
EndDlog
l&store;statvars\lower
u&store;statvars\upper
EndPrgm
</programlisting>
      </refsect1>
    </refentry>
  </appendix>
<Appendix>
<appendixinfo>
  <Title>Upgrading a &ti89; Calculator  for  MA206 Probability and Statistics</Title>
  <Author>
    <Honorific>LTC</Honorific>
    <FirstName>Mark</FirstName>
    <Surname>Wroth</Surname>
  </Author>
  <RevHistory>
    <Revision>
      <RevNumber>2.0</RevNumber>
      <Date>3 June 2000</Date>
      <AuthorInitials>MBW</AuthorInitials>
      <RevRemark>Conversion to SGML as a chapter in a DocBook book.</RevRemark>
    </Revision>
    <Revision>
      <RevNumber>1.1</RevNumber>
      <Date>1 June 2000</Date>
      <AuthorInitials>MBW</AuthorInitials>
      <RevRemark>Minor edits after testing the procedures.</RevRemark>
    </Revision>
    <Revision>
      <RevNumber>1.0</RevNumber>
      <Date>30 May 2000</Date>
      <AuthorInitials>MBW</AuthorInitials>
      <RevRemark>Initial version.</RevRemark>
    </Revision>
  </RevHistory>
</appendixinfo>
<Title>Upgrading a &ti89; Calculator 
for  MA206 Probability and Statistics</Title>
<Sect1>
<Title>Overview</Title>
<Para>To load the &ti89; <Application>Statistics with List
Editor</Application> flash application, you need to load the  <ProductName>Advanced
Mathematics Software</ProductName> Operating System/base code, and then install the <Application>Statistics with List Editor</Application> application.  The <Acronym>TI</Acronym> manual indicates that it is about four times faster to do this from calculator
to calculator than from desktop to calculator.</Para>
<Para>This discussion assume you have two &ti89; calculators,
one with the <ProductName>Advanced  Mathematics Software</ProductName> and <Application>Statistics with Lists</Application> application installed, and one which you
are upgrading to that configuration, and that you have a calculator to calculator link 
cable.</Para>
</Sect1>
<Sect1>
<Title>Installing the <ProductName>Advanced Mathematics Software</ProductName> using 
another &ti89;</Title>
<Procedure>
<Step>
<Para>Ensure both calculators have fresh batteries.</Para>
<Warning>
<Para>A power loss (or any other interruption) during this operation will mean the  receiving unit
has to be reloaded using a computer.</Para>
</Warning>
</Step>
<Step>
<Para>Ensure any data which is to be retained on the receiving calculator is backed up to 
another calculator or computer.</Para>
<Warning>
<Para>This procedure will delete all user variables and reset the receiving  calculator to its
factory state.  This may include deleting flash applications.</Para>
</Warning>
</Step>
<Step>
<Para>Link the two &ti89;s using the calculator to calculator
cable (as described on page  366 of the <CiteTitle>TI-89 and TI-92 Plus Guidebook</CiteTitle>.</Para>
</Step>
<Step>
<Para>On both calculators, select the <GUIMenuItem>LINK</GUIMenuItem> menu</Para>
<Procedure>
<Step>
<Para>Select <KeyCap>[2nd ] VAR-LINK</KeyCap></Para>
</Step>
<Step>
<Para>Select <KeyCap>F-3 LINK</KeyCap>.</Para>
</Step>
</Procedure>
</Step>
<Step>
<Para>On the receiving calculator, select <GUIMenuItem>Receive Product Code</GUIMenuItem></Para>
<Procedure>
<Step>
<Para>Cursor down until option <GUIMenuItem>5: Receive Product Code</GUIMenuItem> is
highlighted </Para>
</Step>
<Step>
<Para>Press <KeyCap>ENTER</KeyCap> </Para>
</Step>
<Step>
<Para>A warning message will display.  Press <KeyCap>ENTER</KeyCap> to continue (or <KeyCode>ESC</KeyCode> to  abort).</Para>
</Step>
</Procedure>
</Step>
<Step>
<Para>On the sending calculator, select <GUIMenuItem>Send Product Software</GUIMenuItem></Para>
<Procedure>
<Step>
<Para>Cursor down until option <GUIMenuItem>4:Send Product SW</GUIMenuItem> is
highlighted </Para>
</Step>
<Step>
<Para>Press <KeyCap>Enter</KeyCap> </Para>
</Step>
<Step>
<Para>A warning message will display.  Press <KeyCap>ENTER</KeyCap> to continue (or <KeyCap>ESC</KeyCap>  to abort).</Para>
</Step>
</Procedure>
</Step>
<Step>
<Para>After a short pause (about five seconds), the receiving calculator will display a status 
message and progress indicator.  Wait until the display clears (about six minutes).  When
the display clears, the transfer is complete.</Para>
<Warning>
<Para>Interrupting the transmission will result in the receiving calculator  becoming inoperable
until it is reloaded from a computer.</Para>
</Warning>
</Step>
<Step>
<Para>Reload any backed-up data to be retained on the receiving calculator</Para>
</Step>
</Procedure>
<Para>For more information on installing base code updates, see Upgrading Product  Software
(Base Code), beginning on page 373 of the <CiteTitle>TI-89 and TI-92 Plus Guidebook</CiteTitle>.</Para>
</Sect1>
<Sect1>
<Title>Installing the <Application>Statistics with List Editor</Application> Flash  Application
Using Another &ti89;</Title>
<Procedure>
<Step>
<Para>Link the two TI-89s using the calculator to calculator cable (as described on page  366 of
the <CiteTitle>TI-89 and TI-92 Plus Guidebook</CiteTitle>.</Para>
</Step>
<Step>
<Para>On the sending calculator, select the LINK menu by selecting [2nd ] VAR-LINK</Para>
</Step>
<Step>
<Para>On the sending calculator, select the <GUIMenuItem>Stats/List Edi</GUIMenuItem>
flash application </Para>
<Procedure>
<Step>
<Para>Select <KeyCap>F-7 Flashapp</KeyCap> to display the list of flash applications</Para>
</Step>
<Step>
<Para>Highlight the <GUIMenuItem>Stats/List Edi</GUIMenuItem> application (it may already
be highlighted,  for example if its the only one there).</Para>
</Step>
<Step>
<Para>Press <KeyCap>F-4</KeyCap> to check mark the <GUIMenuItem>Stats/List Edi</GUIMenuItem> application.  A small check mark should appear next to the application
name.</Para>
</Step>
</Procedure>
</Step>
<Step>
<Para>On the receiving calculator, select the <GUIMenu>LINK</GUIMenu> menu by selecting <KeyCap>[2nd] VAR-LINK</KeyCap>.   Both calculators should now be in the <GUILabel>VAR-LINK</GUILabel> screen. </Para>
</Step>
<Step>
<Para>On the receiving calculator, select the receive option </Para>
<Procedure>
<Step><Para>Select <KeyCap>F3 LINK</KeyCap></Para></Step> 
<Step><Para>Move the highlight to option <GUIMenuItem>2:Receive</GUIMenuItem></Para></Step> 
<Step><Para>Press Enter.  The messages <Literal>VAR-LINK WAITING TO RECEIVE</Literal>  and <Literal>BUSY</Literal> should appear on the status line.</Para></Step></Procedure>
</Step>
<Step>
<Para>On the sending calculator, select the <GUIMenuItem>Send to TI-89/92 Plus</GUIMenuItem> option</Para>
<Procedure>
<Step>
<Para>Select <KeyCap>F3 LINK</KeyCap></Para>
</Step>
<Step>
<Para>Move the highlight to option <GUIMenuItem>3: Send to TI-89/92 Plus</GUIMenuItem></Para>
</Step>
<Step>
<Para>Press <KeyCap>ENTER</KeyCap>.</Para>
</Step>
</Procedure>
<Para>The message <Literal>SENDING TISTATLE</Literal>, a progress bar,
and the <Literal>BUSY</Literal> indicator should be displayed on the
receiving calculator.</Para>
</Step>
<Step>
<Para>Wait until the screen clears on the receiving calculator (about
75 seconds).  When the receiving calculators
<GUILabel>VAR-LINK</GUILabel> screen returns, the transmission is
complete.</Para>
</Step>
</Procedure>
<Para>For more information on installing flash applications, see
Transmitting Variables, Flash Applications, and Folders, beginning on
page 367 of the <CiteTitle>TI-89 and TI-92 Plus
Guidebook</CiteTitle></Para>
</Sect1>
</Appendix>
<Bibliography>
<BiblioEntry Id="Devore">
<Title>Probability and Statistics for Engineering and the Sciences</Title>
<Author>
<Surname>Devore</Surname>
<FirstName>Jay</FirstName>
<OtherName>L.</OtherName>
<Affiliation>
<OrgName>California Polytechnic State University</OrgName>
<OrgDiv>San Luis Obispo</OrgDiv>
</Affiliation>
</Author>
<Publisher>
<PublisherName>Duxbury Press</PublisherName>
<Address><City>Belmont</City><State>CA</State></Address>
</Publisher>
<Copyright>
<Year>1995</Year>
</Copyright>
<Edition>Fourth</Edition>
</BiblioEntry>
<BiblioEntry Id="TI-89Guide">
<Title>TI-89 Guidebook</Title>
<AuthorGroup>
<CorpAuthor>Texas Instruments</CorpAuthor>
</AuthorGroup>
<Abstract>
<Para>This is the users manual for the &ti89; itself, as purchased.</Para>
</Abstract>
</BiblioEntry>
<BiblioEntry Id="TI-89Guide2">
<Title>TI-89 and TI-92 Plus Guidebook for
Advanced Mathematics Software Version 2.0</Title>
<AuthorGroup>
<CorpAuthor>Texas
Instruments</CorpAuthor>
</AuthorGroup>
<Abstract>
<Para> <ULink URL="http://www.ti.com/calc/docs/8992pguide.htm">http://www.ti.com/calc/docs/8992pguide.htm</ULink>.  This  is the updated
manual for the <ProductName>Advanced Mathematics Software; it replaces
the  </ProductName>
package.</Para>
</Abstract>
</BiblioEntry>
<BiblioEntry Id="TI-89-22link">
<Title>Downloading Applications to the TI-89</Title>
<AuthorGroup>
<CorpAuthor>Texas
Instruments</CorpAuthor>
</AuthorGroup>
<Abstract>
<Para><ULink URL="http://www.ti.com/calc/pdf/gb/eng/8992p/22link.pdf">http://www.ti.com/calc/pdf/gb/eng/8992p/22link.pdf</ULink> (Chapter 22 of the<CiteTitle>TI-89 and TI-92 Plus Guidebook</CiteTitle>)</Para>
</Abstract>
</BiblioEntry>
<BiblioEntry Id="TI-89ams">
<Title>Advanced Mathematics Software</Title>
<AuthorGroup>
<CorpAuthor>Texas Instruments</CorpAuthor>
</AuthorGroup>
<Abstract>
<Para><ULink URL="http://www.ti.com/calc/flash/89ams.htm">http://www.ti.com/calc/flash/89ams.htm</ULink>.  This is an overview page for
the <Acronym>AMS</Acronym> upgrade. </Para>
</Abstract>
</BiblioEntry>
<BiblioEntry Id="TI-89stats">
<Title>Statistics with List Editor</Title>
<AuthorGroup>
<CorpAuthor>Texas Instruments</CorpAuthor>
</AuthorGroup>
<Abstract>
<Para><ULink URL="http://www.ti.com/calc/flash/89stats.htm">http://www.ti.com/calc/flash/89stats.htm</ULink>.  This is an overview page for
the <Application>Statistics with List Editor</Application> package</Para>
</Abstract>
</BiblioEntry>
<BiblioEntry Id="TI-89statsle">
<Title>Statistics with List Editor</Title>
<AuthorGroup>
<CorpAuthor>Texas Instruments</CorpAuthor>
</AuthorGroup>
<Abstract>
<Para><ULink URL="http://www.ti.com/calc/flash/pdf/statsle.pdf">http://www.ti.com/calc/flash/pdf/statsle.pdf</ULink>.  This is the users guide for
the  <Application>Statistics with List Editor</Application> application </Para>
</Abstract>
</BiblioEntry>
</Bibliography>
</Book>
<!-- RCS Information

     $Id: ti89ma206.sgm,v 1.2 2001/07/02 05:58:31 Mark Exp $
     $Log: ti89ma206.sgm,v $
     Revision 1.2  2001/07/02 05:58:31  Mark
     Added refsections for some of the TIStat functions and reformatted the
     refsections to use refsynopsisdiv.

     Revision 1.1  2001/06/24 03:46:08  Mark
     Initial revision

     Revision 1.11  2000/06/21 03:48:19  Penny
     Updated general discussion and general proofreading. For publication
     to the Math Department.

     Revision 1.10  2000/06/19 14:00:49  Penny
     See <revhistory>

     Revision 1.9  2000/06/17 07:05:39  Penny
     Changes recorded in RevHistory.

     Revision 1.7  2000/06/16 04:09:47  Penny
     Forced checkin at version 7.

     Revision 1.1  2000/06/16 04:04:38  Penny
     Initial revision


-->