<< Chapter < Page Chapter >> Page >
This module describes how to calculate the F Ratio and F Distribution based on the hypothesis test for the One-Way ANOVA.

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 forthe denominator.

For example, if F follows an F distribution and the degrees of freedom for the numerator are 4 and the degrees of freedom for the denominator are 10, then F ~ F 4 , 10 .

The F distribution is derived from the Student's-t distribution. One-Way ANOVA expands the t -test for comparing more than two groups. The scope of that derivation is beyond the level of this course.

To calculate the F ratio, two estimates of the variance are made.

  1. Variance between samples: An estimate of σ 2 that is the variance of the sample means multiplied by n (when there is equal n). If the samples are different sizes, the variance between samples is weighted toaccount for the different sample sizes. The variance is also called variation due to treatment or explainedvariation.
  2. Variance within samples: An estimate of σ 2 that is the average of the sample variances (also known as a pooled variance). When the sample sizes are different, thevariance within samples is weighted. The variance is also called the variation due to error or unexplained variation.
  • SS between = the sum of squares that represents the variation among the different samples.
  • SS within = the sum of squares that represents the variation within samples that is due to chance.

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 andthe sample standard deviation in Descriptive Statistics .

MS means "mean square." MS between is the variance between groups and MS within is the variance within groups.

    Calculation of sum of squares and mean square

  • k size 12{k} {} = the number of different groups
  • n j size 12{n rSub { size 8{j} } } {} = the size of the jth size 12{ ital "jth"} {} group
  • s j size 12{s rSub { size 8{j} } } {} = the sum of the values in the jth size 12{ ital "jth"} {} group
  • n size 12{n} {} = total number of all the values combined. (total sample size: n j size 12{ Sum {n rSub { size 8{j} } } } {} )
  • x = one value: x = s j size 12{ Sum {x} = Sum {s rSub { size 8{j} } } } {}
  • Sum of squares of all values from every group combined: x 2 size 12{ Sum {x rSup { size 8{2} } } ={}} {}
  • Between group variability: SS total = x 2 x 2 n size 12{ ital "SS" rSub { size 8{ ital "total"} } = Sum {x rSup { size 8{2} } } - { { left ( Sum {x} right ) rSup { size 8{2} } } over {n} } } {}
  • Total sum of squares: x 2 ( x ) 2 n size 12{ Sum {x rSup { size 8{2} } } - { { \( Sum {x} \) rSup { size 8{2} } } over {n} } } {}
  • Explained variation- sum of squares representing variation among the different samples SS between = [ ( sj ) 2 n j ] ( s j ) 2 n size 12{ ital "SS" rSub { size 8{ ital "between"} } = Sum { \[ { { \( ital "sj" \) rSup { size 8{2} } } over {n rSub { size 8{j} } } } \] } - { { \( Sum {s rSub { size 8{j} } \) rSup { size 8{2} } } } over {n} } } {}
  • Unexplained variation- sum of squares representing variation within samples due to chance: SS within = SS total SS between size 12{ ital "SS" rSub { size 8{ ital "within"} } = ital "SS" rSub { size 8{ ital "total"} } - ital "SS" rSub { size 8{ ital "between"} } } {}
  • df's for different groups (df's for the numerator): df between = k 1 size 12{ ital "df" rSub { size 8{ ital "between"} } =k - 1} {}
  • Equation for errors within samples (df's for the denominator): df within = n k size 12{ ital "df" rSub { size 8{ ital "within"} } = n - k} {}
  • Mean square (variance estimate) explained by the different groups: MS between = SS between df between size 12{ ital "MS" rSub { size 8{ ital "between"} } = { { ital "SS" rSub { size 8{ ital "between"} } } over { ital "df" rSub { size 8{ ital "between"} } } } } {}
  • Mean square (variance estimate) that is due to chance (unexplained): MS within = SS within df within size 12{ ital "MS" rSub { size 8{ ital "within"} } = { { ital "SS" rSub { size 8{ ital "within"} } } over { ital "df" rSub { size 8{ ital "within"} } } } } {}

MS between and MS within can be written as follows:

  • MS between = SS between df between = SS between k 1
  • MS within = SS within df within = SS within n k

The One-Way ANOVA test depends on the fact that MS between can be influenced by population differences among means of the several groups. Since MS within compares values of each group to its own group mean, the fact that group means might be different doesnot affect MS within .

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 samplegroups come from populations with different normal distributions. If the null hypothesis is true, MS between and MS within should both estimate the same value.

The null hypothesis says that all the group population means are equal. The hypothesis of equal means implies that the populations have the same normal distribution because it is assumed that the populations are normal and that they have equal variances.

F-ratio or f statistic

F = MS between MS within

If MS between and MS within estimate the same value (following the belief that H o is true), then the F-ratio should be approximately equal to 1. Mostly just sampling errorswould contribute to variations away from 1. As it turns out, MS between consists of the population variance plus a variance produced from the differences between thesamples. MS within is an estimate of the population variance. Since variances are always positive, if the null hypothesis is false, MS between will generally be larger than MS within . Then the F-ratio will be larger than 1.However, if the population effect size is small it is not unlikely that MS within will be larger in a give sample.

The above calculations were done with groups of different sizes. If the groups are the same size, the calculations simplify somewhat and the F ratio can be written as:

F-ratio formula when the groups are the same size

F = n s x _ 2 s 2 pooled

    Where ...

  • n = size 12{n={}} {} the sample size
  • df numerator = k 1 size 12{ ital "df" rSub { size 8{ ital "numerator"} } =k - 1} {}
  • df denominator = n k size 12{ ital "df" rSub { size 8{ ital "denominator"={}} } k \( n - 1 \) =N - k} {}
  • s 2 pooled = the mean of the sample variances (pooled variance)
  • s x 2 = the variance of the sample means

The data is typically put into a table for easy viewing. One-Way ANOVA results are often displayed in this manner by computer software.

Source of Variation Sum of Squares (SS) Degrees of Freedom (df) Mean Square (MS) F
Factor
(Between)
SS(Factor) k - 1 MS(Factor) = SS(Factor)/(k-1) F = MS(Factor)/MS(Error)
Error
(Within)
SS(Error) n - k MS(Error) = SS(Error)/(n-k)
Total SS(Total) n - 1

Three different diet plans are to be tested for mean weight loss. The entries in the table are the weight losses for the different plans. The One-Way ANOVA table is shown below.

Plan 1 Plan 2 Plan 3
5 3.5 8
4.5 7 4
4 3.5
3 4.5

One-Way ANOVA Table: The formulas for SS(Total), SS(Factor) = SS(Between) and SS(Error) = SS(Within) are shown above. This same information is provided by the TI calculator hypothesis test function ANOVA in STAT TESTS (syntax is ANOVA(L1, L2, L3) where L1, L2, L3 have the data from Plan 1, Plan 2, Plan 3 respectively).

Source of Variation Sum of Squares (SS) Degrees of Freedom (df) Mean Square (MS) F
Factor
(Between)
SS(Factor)
= SS(Between)
=2.2458
k - 1
= 3 groups - 1
= 2
MS(Factor)
= SS(Factor)/(k-1)
= 2.2458/2
= 1.1229
F =
MS(Factor)/MS(Error)
= 1.1229/2.9792
= 0.3769
Error
(Within)
SS(Error)
= SS(Within)
= 20.8542
n - k
= 10 total data - 3 groups
= 7
MS(Error)
= SS(Error)/(n-k)
= 20.8542/7
= 2.9792
Total SS(Total)
= 2.9792 + 20.8542
=23.1
n - 1
= 10 total data - 1
= 9

Got questions? Get instant answers now!

The One-Way ANOVA hypothesis test is always right-tailed because larger F-values are way out in the right tail of the F-distribution curve and tend to make us reject H o .

Notation

The notation for the F distribution is F ~ F df(num) , df(denom)

where df(num) = df between and df(denom) = df within

The mean for the F distribution is μ = df(num) df(denom) 1

Questions & Answers

differentiate between demand and supply giving examples
Lambiv Reply
differentiated between demand and supply using examples
Lambiv
what is labour ?
Lambiv
how will I do?
Venny Reply
how is the graph works?I don't fully understand
Rezat Reply
information
Eliyee
devaluation
Eliyee
t
WARKISA
hi guys good evening to all
Lambiv
multiple choice question
Aster Reply
appreciation
Eliyee
explain perfect market
Lindiwe Reply
In economics, a perfect market refers to a theoretical construct where all participants have perfect information, goods are homogenous, there are no barriers to entry or exit, and prices are determined solely by supply and demand. It's an idealized model used for analysis,
Ezea
What is ceteris paribus?
Shukri Reply
other things being equal
AI-Robot
When MP₁ becomes negative, TP start to decline. Extuples Suppose that the short-run production function of certain cut-flower firm is given by: Q=4KL-0.6K2 - 0.112 • Where is quantity of cut flower produced, I is labour input and K is fixed capital input (K-5). Determine the average product of lab
Kelo
Extuples Suppose that the short-run production function of certain cut-flower firm is given by: Q=4KL-0.6K2 - 0.112 • Where is quantity of cut flower produced, I is labour input and K is fixed capital input (K-5). Determine the average product of labour (APL) and marginal product of labour (MPL)
Kelo
yes,thank you
Shukri
Can I ask you other question?
Shukri
what is monopoly mean?
Habtamu Reply
What is different between quantity demand and demand?
Shukri Reply
Quantity demanded refers to the specific amount of a good or service that consumers are willing and able to purchase at a give price and within a specific time period. Demand, on the other hand, is a broader concept that encompasses the entire relationship between price and quantity demanded
Ezea
ok
Shukri
how do you save a country economic situation when it's falling apart
Lilia Reply
what is the difference between economic growth and development
Fiker Reply
Economic growth as an increase in the production and consumption of goods and services within an economy.but Economic development as a broader concept that encompasses not only economic growth but also social & human well being.
Shukri
production function means
Jabir
What do you think is more important to focus on when considering inequality ?
Abdisa Reply
any question about economics?
Awais Reply
sir...I just want to ask one question... Define the term contract curve? if you are free please help me to find this answer 🙏
Asui
it is a curve that we get after connecting the pareto optimal combinations of two consumers after their mutually beneficial trade offs
Awais
thank you so much 👍 sir
Asui
In economics, the contract curve refers to the set of points in an Edgeworth box diagram where both parties involved in a trade cannot be made better off without making one of them worse off. It represents the Pareto efficient allocations of goods between two individuals or entities, where neither p
Cornelius
In economics, the contract curve refers to the set of points in an Edgeworth box diagram where both parties involved in a trade cannot be made better off without making one of them worse off. It represents the Pareto efficient allocations of goods between two individuals or entities,
Cornelius
Suppose a consumer consuming two commodities X and Y has The following utility function u=X0.4 Y0.6. If the price of the X and Y are 2 and 3 respectively and income Constraint is birr 50. A,Calculate quantities of x and y which maximize utility. B,Calculate value of Lagrange multiplier. C,Calculate quantities of X and Y consumed with a given price. D,alculate optimum level of output .
Feyisa Reply
Answer
Feyisa
c
Jabir
the market for lemon has 10 potential consumers, each having an individual demand curve p=101-10Qi, where p is price in dollar's per cup and Qi is the number of cups demanded per week by the i th consumer.Find the market demand curve using algebra. Draw an individual demand curve and the market dema
Gsbwnw Reply
suppose the production function is given by ( L, K)=L¼K¾.assuming capital is fixed find APL and MPL. consider the following short run production function:Q=6L²-0.4L³ a) find the value of L that maximizes output b)find the value of L that maximizes marginal product
Abdureman
types of unemployment
Yomi Reply
What is the difference between perfect competition and monopolistic competition?
Mohammed
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Collaborative statistics. OpenStax CNX. Jul 03, 2012 Download for free at http://cnx.org/content/col10522/1.40
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Collaborative statistics' conversation and receive update notifications?

Ask