<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/technology/cnxml/schema/dtd/0.5/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" xmlns:m="http://www.w3.org/1998/Math/MathML" id="new">
  <name>F Distribution and ANOVA: The F Distribution And The F Ratio</name>
  <metadata>
  <md:version>1.4</md:version>
  <md:created>2008/06/23 14:40:52 GMT-5</md:created>
  <md:revised>2008/07/15 11:00:55.434 GMT-5</md:revised>
  <md:authorlist>
      <md:author id="billowsky">
      <md:firstname>Barbara</md:firstname>
      
      <md:surname>Illowsky</md:surname>
      <md:email>illowskybarbara@deanza.edu</md:email>
    </md:author>
      <md:author id="sdean">
      <md:firstname>Susan</md:firstname>
      
      <md:surname>Dean</md:surname>
      <md:email>deansusan@deanza.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="cnxorg">
      <md:firstname/>
      
      <md:surname>Connexions</md:surname>
      <md:email>cnx@cnx.org</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>alternate hypothesis</md:keyword>
    <md:keyword>ANOVA</md:keyword>
    <md:keyword>degrees of freedom</md:keyword>
    <md:keyword>F Distribution</md:keyword>
    <md:keyword>F Ratio</md:keyword>
    <md:keyword>hypothesis test</md:keyword>
    <md:keyword>means square</md:keyword>
    <md:keyword>null hypothesis</md:keyword>
    <md:keyword>One-Way Analysis of Variance</md:keyword>
    <md:keyword>population</md:keyword>
    <md:keyword>sample</md:keyword>
    <md:keyword>Sir Ronald Fisher</md:keyword>
    <md:keyword>statistics</md:keyword>
    <md:keyword>sum of squares</md:keyword>
    <md:keyword>variance</md:keyword>
  </md:keywordlist>

  <md:abstract>This module describes how to calculate the F Ratio and F Distribution based on the hypothesis test for the ANOVA.</md:abstract>
</metadata>
  <content>
    <para id="delete_me">The distribution used for the hypothesis test is a new one. It is called the F distribution,
named after Sir Ronald Fisher, an English statistician. The F statistic is a ratio (a
fraction). There are two sets of degrees of freedom; one for the numerator and one for
the denominator.</para><para id="element-674">For example, if 
<m:math>
<m:mi>F</m:mi>
</m:math> follows an <m:math>
<m:mi>F</m:mi>
</m:math> distribution and the degrees of freedom for the
numerator are 4 and the degrees of freedom for the denominator are 10, then
<m:math>
<m:mi>F</m:mi></m:math> ~
<m:math>
<m:msub>
<m:mi>F</m:mi>
<m:mrow>
<m:mn>4</m:mn>
<m:mo>,</m:mo>
<m:mn>10</m:mn>
</m:mrow>
</m:msub>
</m:math>.</para><para id="element-967">To calculate the <m:math>
<m:mi>F</m:mi>
</m:math> 
ratio, two estimates of the variance are made.</para><list id="element-236" type="enumerated"><item><emphasis>Variance between samples:</emphasis> An estimate of <m:math>
<m:msup>
<m:mi>σ</m:mi>
<m:mn>2</m:mn>
</m:msup>
</m:math> that is the variance of the sample
means. If the samples are different sizes, the variance between samples is weighted to
account for the different sample sizes. It is also called <emphasis>variation due to treatment or
explained
variation.</emphasis></item>
<item><emphasis>Variance within samples:</emphasis> An estimate of <m:math>
<m:msup>
<m:mi>σ</m:mi>
<m:mn>2</m:mn>
</m:msup>
</m:math> that is the average of the sample
variances (also known as a pooled variance). When the sample sizes are different, the
variance within samples is weighted. It is also called the <emphasis>variation due to error or
unexplained variation.</emphasis></item>
</list><para id="element-545"><m:math>
<m:msub>
<m:mi>SS</m:mi>
<m:mtext>between</m:mtext>
</m:msub>
<m:mo>=</m:mo>
</m:math> the sum of squares that represents the variation among the different
samples.</para><para id="element-99"><m:math>
<m:msub>
<m:mi>SS</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
<m:mo>=</m:mo>
</m:math> the sum of squares that represents the variation within samples that is
due to chance.</para><para id="element-717">To find a "sum of squares" means to add together squared quantities which, in some
cases, may be weighted. We used sum of squares to calculate the sample variance and
the sample standard deviation in Chapter 2. In this very brief overview of ANOVA, we
will not go into detail explaining how <m:math>
<m:msub>
<m:mi>SS</m:mi>
<m:mtext>between</m:mtext>
</m:msub>
</m:math> and
<m:math>
<m:msub>
<m:mi>SS</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
</m:math> are calculated. If you take
another statistics course, you will cover sum of squares in detail. Your calculator can
easily do the calculations of <m:math>
<m:msub>
<m:mi>SS</m:mi>
<m:mtext>between</m:mtext>
</m:msub>
</m:math> and <m:math>
<m:msub>
<m:mi>SS</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
</m:math>. Remember that these two quantities
are measures of variability or variation.</para><para id="element-48"><m:math>
<m:msub>
<m:mi>df</m:mi>
<m:mtext>between</m:mtext>
</m:msub>
<m:mo>=</m:mo>
<m:mi>k</m:mi>
<m:mo>-</m:mo>
<m:mn>1</m:mn>
</m:math> where
<m:math>
<m:mi>k</m:mi>
</m:math> is the number of groups (samples).
This is the degrees of freedom for the numerator.</para><para id="element-399"><m:math>
<m:msub>
<m:mi>df</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
<m:mo>=</m:mo>
<m:mi>N</m:mi>
<m:mo>-</m:mo>
<m:mn>k</m:mn>
</m:math> where
<m:math>
<m:mi>N</m:mi>
</m:math>  is the total sample size.
This is the degrees of freedom for the denominator.</para><para id="element-348"><m:math><m:mi>MS</m:mi></m:math> means "mean square." 
<m:math>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>between</m:mtext>
</m:msub>
</m:math> is the variance between groups and
<m:math>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
</m:math> is the variance within groups.</para><para id="element-839"><m:math>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>between</m:mtext>
</m:msub>
<m:mo>=</m:mo>
<m:mfrac>
<m:mrow>
<m:msub>
<m:mi>SS</m:mi>
<m:mtext>between</m:mtext>
</m:msub>
</m:mrow>
<m:mrow>
<m:msub>
<m:mi>df</m:mi>
<m:mtext>between</m:mtext>
</m:msub>
</m:mrow>
</m:mfrac>
<m:mo>=</m:mo>
<m:mfrac>
<m:mrow>
<m:msub>
<m:mi>SS</m:mi>
<m:mtext>between</m:mtext>
</m:msub>
</m:mrow>
<m:mrow>
<m:mi>k</m:mi>
<m:mo>−</m:mo>
<m:mn>1</m:mn>
</m:mrow>
</m:mfrac>
</m:math></para><para id="element-255"><m:math>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
<m:mo>=</m:mo>
<m:mfrac>
<m:mrow>
<m:msub>
<m:mi>SS</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
</m:mrow>
<m:mrow>
<m:msub>
<m:mi>df</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
</m:mrow>
</m:mfrac>
<m:mo>=</m:mo>
<m:mfrac>
<m:mrow>
<m:msub>
<m:mi>SS</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
</m:mrow>
<m:mrow>
<m:mi>N</m:mi>
<m:mo>−</m:mo>
<m:mn>k</m:mn>
</m:mrow>
</m:mfrac>
</m:math></para><para id="element-138">The ANOVA test depends on the fact that 
<m:math>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>between</m:mtext>
</m:msub>
</m:math> can be influenced by population
differences among means of the several groups. Since <m:math>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
</m:math> compares values of
each group to its own group mean, the fact that group means might be different does
not affect <m:math>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
</m:math>.</para><para id="element-807">The null hypothesis says that all groups are samples from populations having the same
normal distribution. The alternate hypothesis says that at least two of the sample
groups come from populations with different normal distributions. If the null hypothesis
is true, 
<m:math>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>between</m:mtext>
</m:msub>
</m:math> and 
<m:math>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
</m:math> should both estimate the same value.</para><para id="element-713">The F-statistic or <emphasis>F-ratio</emphasis>, as it is often called, is 
<m:math>
<m:mi>F</m:mi>
<m:mo>=</m:mo>
<m:mfrac>
<m:mrow>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>between</m:mtext>
</m:msub>
</m:mrow>
<m:mrow>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
</m:mrow>
</m:mfrac>
</m:math></para><para id="element-712">If 
<m:math>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>between</m:mtext>
</m:msub>
</m:math> and 
<m:math>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
</m:math> estimate the same value (following the belief that 
<m:math>
<m:msub>
<m:mi>H</m:mi>
<m:mi>o</m:mi>
</m:msub>
</m:math> is
true), then the F-ratio should be approximately equal to 1. Only sampling errors
would contribute to variations away from 1. As it turns out, <m:math>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>between</m:mtext>
</m:msub>
</m:math> consists of
the population variance plus a variance produced from the differences between the
samples. <m:math>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
</m:math> is an estimate of the population variance. Since variances are
always positive, if the null hypothesis is false, <m:math>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>between</m:mtext>
</m:msub>
</m:math> will be larger than <m:math>
<m:msub>
<m:mi>MS</m:mi>
<m:mtext>within</m:mtext>
</m:msub>
</m:math>.
The F-ratio will be larger than 1.</para><para id="element-260"><emphasis>The ANOVA hypothesis test is always right-tailed</emphasis> because larger F-values are
way out in the right tail of the F-distribution curve and tend to make us reject 
<m:math>
<m:msub>
<m:mi>H</m:mi>
<m:mi>o</m:mi>
</m:msub>
</m:math>.</para><section id="element-628"><name>Notation</name>
<para id="element-999">The notation for the F distribution is 
<m:math>
<m:mi>F</m:mi></m:math> ~
<m:math>
<m:msub>
<m:mi>F</m:mi>
<m:mrow>
<m:mtext>df(num)</m:mtext>
<m:mo>,</m:mo>
<m:mtext>df(denom)</m:mtext>
</m:mrow>
</m:msub>
</m:math></para><para id="element-966">where 
<m:math>
<m:mtext> df(num)</m:mtext>
<m:mo>=</m:mo>
<m:msub>
<m:mi>df</m:mi>
<m:mtext>between</m:mtext>
</m:msub></m:math>
and
<m:math>
<m:mtext> df(denom) </m:mtext>
<m:mo>=</m:mo>
<m:msub>
<m:mi>df</m:mi>
<m:mtext> within </m:mtext>
</m:msub></m:math></para><para id="element-181">The mean for the F distribution is 
<m:math>
<m:mi>m</m:mi>
<m:mo>=</m:mo>
<m:mfrac>
<m:mi>df(num)</m:mi>
<m:mrow>
<m:mi>df(denom)</m:mi>
<m:mo>−</m:mo>
<m:mn>1</m:mn>
</m:mrow>
</m:mfrac>
</m:math></para></section>
  </content>
  
</document>
