<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.micahveilleux.com/statistics/index.php?action=history&amp;feed=atom&amp;title=Problem_4-1%2C_Randomized_blocks</id>
	<title>Problem 4-1, Randomized blocks - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.micahveilleux.com/statistics/index.php?action=history&amp;feed=atom&amp;title=Problem_4-1%2C_Randomized_blocks"/>
	<link rel="alternate" type="text/html" href="https://www.micahveilleux.com/statistics/index.php?title=Problem_4-1,_Randomized_blocks&amp;action=history"/>
	<updated>2026-05-06T14:16:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://www.micahveilleux.com/statistics/index.php?title=Problem_4-1,_Randomized_blocks&amp;diff=31&amp;oldid=prev</id>
		<title>Statadmin: Created page with &#039;==Problem Statement== &#039;&#039;A chemist wishes to test the effect of four chemical agents on the strength of a particular type of cloth.  Because there might be variability from one bo…&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.micahveilleux.com/statistics/index.php?title=Problem_4-1,_Randomized_blocks&amp;diff=31&amp;oldid=prev"/>
		<updated>2010-07-31T18:58:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;==Problem Statement== &amp;#039;&amp;#039;A chemist wishes to test the effect of four chemical agents on the strength of a particular type of cloth.  Because there might be variability from one bo…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Problem Statement==&lt;br /&gt;
&amp;#039;&amp;#039;A chemist wishes to test the effect of four chemical agents on the strength of a particular type of cloth.  Because there might be variability from one bolt to another, the chemist decides to use a randomized block design, with the bolts of cloth considered as blocks.  She selects five bolts and applies all four chemicals in random order to each bolt.  The resulting tensile strengths follow.  Analyze data from this experiment (use &amp;lt;math&amp;gt;\alpha = 0.05&amp;lt;/math&amp;gt;) and draw appropriate conclusions.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=1 cellspacing=0 cellpadding=4&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot;&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;th colspan=5 bgcolor=&amp;quot;#eeeeee&amp;quot;&amp;gt;Bolt&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot;&amp;gt;Chemical&amp;lt;/th&amp;gt;&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot;&amp;gt;1&amp;lt;/th&amp;gt;&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot;&amp;gt;2&amp;lt;/th&amp;gt;&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot;&amp;gt;3&amp;lt;/th&amp;gt;&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot;&amp;gt;4&amp;lt;/th&amp;gt;&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot;&amp;gt;5&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot;&amp;gt;1&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;73&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;68&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;74&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;71&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;67&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot;&amp;gt;2&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;73&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;67&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;75&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;72&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;70&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot;&amp;gt;3&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;75&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;68&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;78&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;73&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;68&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot;&amp;gt;4&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;73&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;71&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;75&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;75&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;69&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Solution==&lt;br /&gt;
[[Image:4-1dataplot.png|thumb|360px|left|&amp;#039;&amp;#039;&amp;#039;Figure 1:&amp;#039;&amp;#039;&amp;#039; Illustration of data.]]&lt;br /&gt;
&lt;br /&gt;
In this problem we need to compare &amp;lt;math&amp;gt;a = 4&amp;lt;/math&amp;gt; treatments (chemical agents), but the data is being influenced by &amp;lt;math&amp;gt;b = 5&amp;lt;/math&amp;gt; blocks (different bolts of fabric).  Each datapoint can be thought of as the sum of several factors:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; y_{ij} = \mu + \tau_i + \beta_j + \epsilon_{ij} &amp;lt;/math&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Where:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; i = 1,2,...,a &amp;lt;/math&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; j = 1,2,...,b &amp;lt;/math&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
and:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; y_{ij} = &amp;lt;/math&amp;gt; datapoint from the &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;th treatment and the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;th block&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \mu = &amp;lt;/math&amp;gt; the grand mean&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \tau_i = &amp;lt;/math&amp;gt; the effect of the &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;th treatment&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_j = &amp;lt;/math&amp;gt; the effect of the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;th block&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \epsilon_{ij} = &amp;lt;/math&amp;gt; a random error affecting the datapoint from the &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;th treatment and the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;th block&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the left plot of Figure 1, this equation is illustrated.  The blue line marks the grand sample mean &amp;lt;math&amp;gt;\bar{y}.. \approx \mu&amp;lt;/math&amp;gt;, and the red X marks the treatment mean &amp;lt;math&amp;gt;\bar{y}_i.&amp;lt;/math&amp;gt; (mean of all data treated by the same chemical).  The green number marks where the datapoint would be if the treatment effect and block effect were present, but there was no random error.  Finally, the black number marks the location of the datapoint – the sum of the grand mean and each effect.  The value of the numbers indicates which block that point was affected by.&lt;br /&gt;
&lt;br /&gt;
In order to examine only the effect of the chemical agent, each bolt was divided into four pieces, each of which was treated by a different chemical agent.  This serves to average out the effect of the different bolts. This is displayed in the left plot in Figure 1.  The green lines deviate from each treatment mean identically, illustrating that the block effect is constant across chemical treatments.&lt;br /&gt;
&lt;br /&gt;
The plot on the right in Figure 1 illustrates the data similarly, but the squares indicate the block means, and the treatment effects are shown deviating from them.  This is merely an alternate visualization of the sum of the grand mean and each effect.&lt;br /&gt;
&lt;br /&gt;
===Hypothesis Testing===&lt;br /&gt;
&lt;br /&gt;
As usual, our null hypothesis will be that all the treatment means are equal (and come from the same distribution).  Our alternative hypothesis is that they are not all equal:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;H_0\!:~\tau_1 = \tau_2 = ... = \tau_a = 0 &amp;lt;/math&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;H_1\!:~\tau_i \ne 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In order to test these hypotheses, we are interested in the sums of squares of all the error effects.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; SS_{Total} = \sum_{i=1}^a \sum_{j=1}^b y^2_{ij} - \frac{y^2\!\!..}{N} = 191.75&amp;lt;/math&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; SS_{Treatments} = \frac{1}{b}\sum_{i=1}^a y^2_i\!. - \frac{y^2\!\!..}{N} = 12.95&amp;lt;/math&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; SS_{Blocks} = \frac{1}{a} \sum_{j=1}^b y^2\!\!._j - \frac{y^2\!\!..}{N} = 157.00&amp;lt;/math&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; SS_{Error} = SS_{Total} - SS_{Treatments} - SS_{Blocks} = 21.80&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each of these is a measure of its respective type of error.  Graphically, in the left plot of Figure 1 &amp;lt;math&amp;gt;SS_{Total}&amp;lt;/math&amp;gt; is the sum of the squares of the distance along the x-axis from the grand mean to each of the black numbers.  &amp;lt;math&amp;gt;SS_{Treatments}&amp;lt;/math&amp;gt; is similar, but for the x-components of the red lines. For &amp;lt;math&amp;gt;SS_{Blocks}&amp;lt;/math&amp;gt; we are summing the squares of the x-component of the green lines.  And for &amp;lt;math&amp;gt;SS_{Error}&amp;lt;/math&amp;gt; it is the x-component of the black lines that are squared and summed (it is easier to calculate this by arithmetic as in the equation above).&lt;br /&gt;
&lt;br /&gt;
By dividing the statistics above by their respective degrees of freedom, we get a normalized measure of the error effects, or a &amp;#039;&amp;#039;mean sum of squares&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;MS_{Treatments} = \frac{SS_{Treatments}}{a-1} = 4.32&amp;lt;/math&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;MS_{Blocks} = \frac{SS_{Blocks}}{b-1} = 39.25&amp;lt;/math&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;MS_{Error} = \frac{SS_{Error}}{(a-1)(b-1)} = 1.81&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In order to test our hypothesis, we must compare the treatment error to random error.  We will do this with the F statistic, &amp;lt;math&amp;gt;F_0 = \frac{MS_{Treatments}}{MS_{Error}} = 2.38&amp;lt;/math&amp;gt;.  We compare this quantity to a &amp;lt;math&amp;gt;F_{\alpha,~a-1,~(a-1)(b-1)} = 3.49&amp;lt;/math&amp;gt;, which comes from the F-distribution (this can be calculated in Excel with &amp;lt;tt&amp;gt;FINV(α,a−1,N−a)&amp;lt;/tt&amp;gt;; in R use &amp;lt;tt&amp;gt;qf(1-alpha, a-1, (a-1)*(b-1))&amp;lt;/tt&amp;gt;.  If &amp;lt;math&amp;gt;F_{0} &amp;gt; F_{\alpha,~a-1,~(a-1)(b-1)}&amp;lt;/math&amp;gt;, we reject the null hypothesis.  As this is not the case, we cannot reject our null hypothesis.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table cellspacing=0 cellpadding=5 style=&amp;quot;border-top: 1px solid black; border-bottom: 1px solid black&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot; style=&amp;quot;border-bottom: 1px solid black;&amp;quot;&amp;gt; Source of Variation &amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot; style=&amp;quot;border-bottom: 1px solid black;&amp;quot;&amp;gt; Sum of Squares &amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot; style=&amp;quot;border-bottom: 1px solid black;&amp;quot;&amp;gt; Degrees of Freedom &amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot; style=&amp;quot;border-bottom: 1px solid black;&amp;quot;&amp;gt; Mean Square &amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot; style=&amp;quot;border-bottom: 1px solid black;&amp;quot;&amp;gt; &amp;lt;math&amp;gt;F_0&amp;lt;/math&amp;gt; &amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot; style=&amp;quot;border-bottom: 1px solid black;&amp;quot;&amp;gt; &amp;lt;math&amp;gt;F_{\alpha}&amp;lt;/math&amp;gt; &amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot; style=&amp;quot;border-bottom: 1px solid black;&amp;quot;&amp;gt; P-Value &amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot;&amp;gt; Treatments (Chemical agent) &amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt; 12.95 &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt; 3     &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt; 4.317 &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt; 2.376 &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt; 3.490 &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt; 0.121 &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot;&amp;gt; Blocks (Bolts) &amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt; 157.00 &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt; 4      &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt; 39.250 &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot;&amp;gt; Error &amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt; 21.80 &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt; 12    &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt; 1.817 &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#eeeeee&amp;quot; style=&amp;quot;border-top: 1px solid black;&amp;quot;&amp;gt; Total &amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: 1px solid black;&amp;quot;&amp;gt; 191.75 &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: 1px solid black;&amp;quot;&amp;gt; 19     &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: 1px solid black;&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: 1px solid black;&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: 1px solid black;&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: 1px solid black;&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;/div&gt;</summary>
		<author><name>Statadmin</name></author>
	</entry>
</feed>