<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Partitioning_the_Sums_of_Squares</id>
	<title>Partitioning the Sums of Squares - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Partitioning_the_Sums_of_Squares"/>
	<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Partitioning_the_Sums_of_Squares&amp;action=history"/>
	<updated>2026-05-13T10:25:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://training-course-material.com/index.php?title=Partitioning_the_Sums_of_Squares&amp;diff=17953&amp;oldid=prev</id>
		<title>Ahnboyoung: /* Quiz */</title>
		<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Partitioning_the_Sums_of_Squares&amp;diff=17953&amp;oldid=prev"/>
		<updated>2014-06-03T22:28:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Quiz&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Cat|Regression| 03}}&lt;br /&gt;
One useful aspect of regression is that it can divide the variation in Y into two parts: &lt;br /&gt;
* the variation of the predicted scores&lt;br /&gt;
* the variation in the errors of prediction&lt;br /&gt;
 &lt;br /&gt;
=The variation of Y=&lt;br /&gt;
*the sum of squares Y&lt;br /&gt;
*defined as the sum of the squared deviations of Y from the mean of Y&lt;br /&gt;
&lt;br /&gt;
==Formula of the Variation of Y== &lt;br /&gt;
In the population, the formula of The variation of Y &lt;br /&gt;
&lt;br /&gt;
 [[File:ClipCapIt-140603-230127.PNG]]&lt;br /&gt;
 where SSY is the sum of squares Y and &lt;br /&gt;
 Y is an individual value of Y, and my is the mean of Y&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
The mean of Y is 2.06 and SSY is the sum of the values in third column and is equal to 4.597 &lt;br /&gt;
&lt;br /&gt;
:[[File:ClipCapIt-140603-230748.PNG]]&lt;br /&gt;
&lt;br /&gt;
When computed in a sample, you should use the sample mean, M, in place of the population mean.&lt;br /&gt;
&lt;br /&gt;
[[File:ClipCapIt-140603-230127.PNG]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
:[[File:ClipCapIt-140603-230854.PNG]]&lt;br /&gt;
* The column Y&amp;#039; were computed according to this equation.&lt;br /&gt;
* The column y&amp;#039; contains deviations of Y&amp;#039; from the mean Y&amp;#039; &lt;br /&gt;
* The column y&amp;#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; is the square of this column. &lt;br /&gt;
* The column Y-Y&amp;#039; contains the actual scores (Y) minus the predicted scores (Y&amp;#039;)&lt;br /&gt;
* The column (Y-Y&amp;#039;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; contains the squares of these errors of prediction&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Sum of the squared deviations from the mean =&lt;br /&gt;
SSY is the sum of the squared deviations from the mean. &lt;br /&gt;
*It is therefore the sum of the y2 column and is equal to 4.597. &lt;br /&gt;
*SSY can be partitioned into two parts: &lt;br /&gt;
:1. the sum of squares predicted (SSY&amp;#039;)&lt;br /&gt;
::*The sum of squares predicted is the sum of the squared deviations of the predicted scores from the mean predicted score. &lt;br /&gt;
::*In other words, it is the sum of the y&amp;#039;2 column and is equal to 1.806&lt;br /&gt;
&lt;br /&gt;
:2.the sum of squares error (SSE)&lt;br /&gt;
::*The sum of squares error is the sum of the squared errors of prediction. &lt;br /&gt;
::*It is there fore the sum of the (Y-Y&amp;#039;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; column and is equal to 2.791. &lt;br /&gt;
::*This can be summed up as:&lt;br /&gt;
 SSY = SSY&amp;#039; + SSE &lt;br /&gt;
 4.597 = 1.806 + 2.791&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
[[File:ClipCapIt-140603-231354.PNG]]&lt;br /&gt;
;The sum of y and the sum of y&amp;#039; are both zero&lt;br /&gt;
:This will always be the case because these variables were created by subtracting their respective means from each value. &lt;br /&gt;
;The mean of Y-Y&amp;#039; is 0&lt;br /&gt;
:This indicates that although some Y&amp;#039;s are higher than there respective Y&amp;#039;s and some are lower, the average difference is zero.&lt;br /&gt;
&lt;br /&gt;
 SSY is the total variation&lt;br /&gt;
 SSY&amp;#039; is the variation explained&lt;br /&gt;
 SSE is the variation unexplained&lt;br /&gt;
&lt;br /&gt;
Therefore, the proportion of variation explained can be computed as:&lt;br /&gt;
 Proportion explained = SSY&amp;#039;/SSY&lt;br /&gt;
&lt;br /&gt;
Similarly, the proportion not explained is:&lt;br /&gt;
 Proportion not explained = SSE/SSY&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;==&lt;br /&gt;
There is an important relationship between the proportion of variation explained and Pearson&amp;#039;s correlation: &lt;br /&gt;
;r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; is the proportion of variation explained&lt;br /&gt;
&lt;br /&gt;
Therefore, &lt;br /&gt;
* if r = 1, then the proportion of variation explained is 1 &lt;br /&gt;
* if r = 0, then the proportion explained is 0;&lt;br /&gt;
* if r = 0.4, then the proportion of variation explained is 0.16&lt;br /&gt;
&lt;br /&gt;
Since the variance is computed by dividing the variation by N (for a population) or N-1 (for a sample), the relationships spelled out above in terms of variation also hold for variance&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
:[[File:ClipCapIt-140603-231640.PNG]]&lt;br /&gt;
*the first term is the variance total&lt;br /&gt;
*the second term is the variance of Y&amp;#039;&lt;br /&gt;
*the last term is the variance of the errors of prediction (Y-Y&amp;#039;) &lt;br /&gt;
&lt;br /&gt;
Similarly, r2 is the proportion of variance explained as well as the proportion of variation explained.&lt;br /&gt;
&lt;br /&gt;
=Summary Table=&lt;br /&gt;
It is often convenient to summarize the partitioning of the data in a table. &lt;br /&gt;
*The degrees of freedom column (df) shows the degrees of freedom for each source of variation. &lt;br /&gt;
*The degrees of freedom for the sum of squares explained is equal to the number of predictor variables. &lt;br /&gt;
*This will always be 1 in simple regression. &lt;br /&gt;
*The error degrees of freedom is equal to the total number of observations minus 2. &lt;br /&gt;
*In this example, it is 5 - 2 = 3. &lt;br /&gt;
*The total degrees of freedom is the total number of observations minus 1.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; background-color: white;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;80px&amp;quot; | Source &lt;br /&gt;
! width=&amp;quot;80px&amp;quot; | Sum of Squares&lt;br /&gt;
! width=&amp;quot;50px&amp;quot; | df&lt;br /&gt;
! width=&amp;quot;80px&amp;quot; | Mean Square&lt;br /&gt;
|-&lt;br /&gt;
| Explained&lt;br /&gt;
| 1.806&lt;br /&gt;
| 1&lt;br /&gt;
| 1.806&lt;br /&gt;
|-&lt;br /&gt;
| Error&lt;br /&gt;
| 2.791&lt;br /&gt;
| 3&lt;br /&gt;
| 0.930&lt;br /&gt;
|-&lt;br /&gt;
| Total&lt;br /&gt;
| 4.597&lt;br /&gt;
| 4&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Quiz=&lt;br /&gt;
&amp;lt;quiz display=simple &amp;gt;&lt;br /&gt;
{If these data are converted to deviation scores, the last value (15) would have a value of &lt;br /&gt;
&lt;br /&gt;
 Y&lt;br /&gt;
  2&lt;br /&gt;
  9&lt;br /&gt;
 11&lt;br /&gt;
 13&lt;br /&gt;
 15&lt;br /&gt;
&lt;br /&gt;
|type=&amp;quot;{}&amp;quot;}&lt;br /&gt;
{ 15 }&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
{{Show Answer|&lt;br /&gt;
15&lt;br /&gt;
&lt;br /&gt;
To compute a deviation score you subtract the mean. 15 - 10 is 5.&lt;br /&gt;
}}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
{Compute the sum of squares Y. &lt;br /&gt;
&lt;br /&gt;
 Y&lt;br /&gt;
  2&lt;br /&gt;
  9&lt;br /&gt;
 11&lt;br /&gt;
 13&lt;br /&gt;
 15&lt;br /&gt;
&lt;br /&gt;
|type=&amp;quot;{}&amp;quot;}&lt;br /&gt;
{ 100 }&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
{{Show Answer|&lt;br /&gt;
100&lt;br /&gt;
&lt;br /&gt;
To compute SSY, first compute the deviation scores (y) by subtracting the mean (10) from each number. Then square these values and add them together: (-8)2 + (-1)2 + 12 + 32 + 52 equals to 100&lt;br /&gt;
}}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
{If SSY is 25.5 and SSY&amp;#039; is 18.3, what is SSE? &lt;br /&gt;
&lt;br /&gt;
 Y&lt;br /&gt;
  2&lt;br /&gt;
  9&lt;br /&gt;
 11&lt;br /&gt;
 13&lt;br /&gt;
 15&lt;br /&gt;
&lt;br /&gt;
|type=&amp;quot;{}&amp;quot;}&lt;br /&gt;
{ 7.2 }&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
{{Show Answer|&lt;br /&gt;
7.2&lt;br /&gt;
&lt;br /&gt;
SSY is SSY&amp;#039; + SSE; &lt;br /&gt;
SSE is SSY - SSY&amp;#039;&lt;br /&gt;
25.5 - 18.3 equals to 7.2&lt;br /&gt;
}}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
{The larger ________ is, the larger the proportion of variation explained is. &lt;br /&gt;
&lt;br /&gt;
|type=&amp;quot;()&amp;quot;}&lt;br /&gt;
-SSY&lt;br /&gt;
+SSY&amp;#039;&lt;br /&gt;
-SSE&lt;br /&gt;
-Y&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
{{Show Answer|&lt;br /&gt;
False&lt;br /&gt;
&lt;br /&gt;
Proportion of variation explained is SSY&amp;#039;/SSY, so as SSY&amp;#039; increases, so does the proportion of variation explained.&lt;br /&gt;
}}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
{The proportion of variation explained is 0.3. If SSY is 20, what is SSY&amp;#039;? &lt;br /&gt;
&lt;br /&gt;
|type=&amp;quot;{}&amp;quot;}&lt;br /&gt;
{ 6 }&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
{{Show Answer|&lt;br /&gt;
6&lt;br /&gt;
&lt;br /&gt;
Proportion explained is SSY&amp;#039;/SSY; &lt;br /&gt;
SSY&amp;#039; is (.3)(20) equals to 6&lt;br /&gt;
}}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
{If r is .84, what proportion of variation is explained? &lt;br /&gt;
&lt;br /&gt;
|type=&amp;quot;{}&amp;quot;}&lt;br /&gt;
{ 0.71 }&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
{{Show Answer|&lt;br /&gt;
0.71&lt;br /&gt;
&lt;br /&gt;
r&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; is the proportion of variation explained. (.84)2 is .71&lt;br /&gt;
}}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/quiz&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ahnboyoung</name></author>
	</entry>
</feed>