<HTML
><HEAD
><TITLE
>TTEST</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.54"><LINK
REL="HOME"
TITLE="Gnumeric's user manual"
HREF="gnumeric.html"><LINK
REL="UP"
TITLE="Reference"
HREF="function-reference.html#AEN1187"><LINK
REL="PREVIOUS"
TITLE="STDEVA"
HREF="r8024.html"><LINK
REL="NEXT"
TITLE="DISC"
HREF="r8081.html"></HEAD
><BODY
CLASS="REFENTRY"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Gnumeric's user manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="r8024.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="r8081.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="AEN8048"
><A
NAME="GNUMERIC-TTEST"
></A
>TTEST</A
></H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN8053"
></A
><H2
>Name</H2
>TTEST&nbsp;--&nbsp;</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN8056"
></A
><H2
>Synopsis</H2
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SYNOPSIS"
>TTEST(array1,array2,tails,type)</PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN8058"
></A
><H2
>Description</H2
><P
>TTEST function returns the probability of a Student's t-Test. </P
><P
>@array1 is the first data set and @array2 is the second data set.  If @tails is one, TTEST uses the one-tailed distribution and if @tails is two, TTEST uses the two-tailed distribution.  @type determines the kind of the test:</P
><P
>1  Paired test</P
><P
>2  Two-sample equal variance</P
><P
>3  Two-sample unequal variance</P
><P
></P
><P
>If the data sets contain a different number of data points and the test is paired (@type one), TTEST returns the #N/A error. @tails and @type are truncated to integers. If @tails is not one or two, TTEST returns #NUM! error. If @type is any other than one, two, or three, TTEST returns #NUM! error. This function is Excel compatible. </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN8067"
></A
><H2
>Examples</H2
><P
></P
><P
>Let us assume that the cells A1, A2, ..., A5 contain numbers 11.4, 17.3, 21.3, 25.9, and 40.1, and the cells B1, B2, ... B5 23.2, 25.8, 29.9, 33.5, and 42.7.  Then</P
><P
>TTEST(A1:A5,B1:B5,1,1) equals 0.003127619.</P
><P
>TTEST(A1:A5,B1:B5,2,1) equals 0.006255239.</P
><P
>TTEST(A1:A5,B1:B5,1,2) equals 0.111804322.</P
><P
>TTEST(A1:A5,B1:B5,1,3) equals 0.113821797.</P
><P
></P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN8076"
></A
><H2
>See also</H2
><P
>        <A
HREF="r2578.html#GNUMERIC-FDIST"
>FDIST</A
>
,         <A
HREF="r6951.html#GNUMERIC-FINV"
>FINV</A
>
      </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="r8024.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="gnumeric.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="r8081.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
NAME="GNUMERIC-STDEVA"
></A
>STDEVA</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="function-reference.html#AEN1187"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
NAME="GNUMERIC-DISC"
></A
>DISC</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>