Gradient-related

From formulasearchengine
Revision as of 02:45, 15 February 2013 by en>Addbot (Bot: Removing {{Multiple issues}} {{Orphan}} (Report Errors))
Jump to navigation Jump to search

29 yr old Orthopaedic Surgeon Grippo from Saint-Paul, spends time with interests including model railways, top property developers in singapore developers in singapore and dolls. Finished a cruise ship experience that included passing by Runic Stones and Church.

Template:Expert-subject

The partition of sums of squares is a concept that permeates much of inferential statistics and descriptive statistics. More properly, it is the partitioning of sums of squared deviations or errors. Mathematically, the sum of squared deviations is an unscaled, or unadjusted measure of dispersion (also called variability). When scaled for the number of degrees of freedom, it estimates the variance, or spread of the observations about their mean value. Partitioning of the sum of squared deviations into various components allows the overall variability in a dataset to be ascribed to different types or sources of variability, with the relative importance of each being quantified by the size of each component of the overall sum of squares.

Background

The distance from any point in a collection of data, to the mean of the data, is the deviation. This can be written as yiy, where yi is the ith data point, and y is the estimate of the mean. If all such deviations are squared, then summed, as in i=1n(yiy)2, this gives the "sum of squares" for these data.

When more data are added to the collection the sum of squares will increase, except in unlikely cases such as the new data being equal to the mean. So usually, the sum of squares will grow with the size of the data collection. That is a manifestation of the fact that it is unscaled.

In many cases, the number of degrees of freedom is simply the number of data in the collection, minus one. We write this as n − 1, where n is the number of data.

Scaling (also known as normalizing) means adjusting the sum of squares so that it does not grow as the size of the data collection grows. This is important when we want to compare samples of different sizes, such as a sample of 100 people compared to a sample of 20 people. If the sum of squares was not normalized, its value would always be larger for the sample of 100 people than for the sample of 20 people. To scale the sum of squares, we divide it by the degrees of freedom, i.e., calculate the sum of squares per degree of freedom, or variance. Standard deviation, in turn, is the square root of the variance.

The above information is how sum of squares is used in descriptive statistics; see the article on total sum of squares for an application of this broad principle to inferential statistics.

Partitioning the sum of squares in linear regression

Theorem. Given a linear regression model yi=β0+β1xi1++βpxip+εi including a constant based on a sample (yi,xi1,,xip),i=1,,n containing n observations, the total sum of squares i=1n(yiy¯)2 (TSS) can be partitioned as follows into the explained sum of squares (ESS) and the residual sum of squares (RSS):

TSS=ESS+RSS,

where this equation is equivalent to each of the following forms:

yy¯12=y^y¯12+ε^2,1=(1,1,,1)T,i=1n(yiy¯)2=i=1n(y^iy¯)2+i=1n(yiy^i)2,i=1n(yiy¯)2=i=1n(y^iy¯)2+i=1nε^i2.

Proof

i=1n(yiy)2=i=1n(yiy+y^iy^i)2=i=1n((y^iy¯)+(yiy^i)ε^i)2=i=1n((y^iy¯)2+2ε^i(y^iy¯)+ε^i2)=i=1n(y^iy¯)2+i=1nε^i2+2i=1nε^i(y^iy¯)=i=1n(y^iy¯)2+i=1nε^i2+2i=1nε^i(β^0+β^1xi1++β^pxipy)=i=1n(y^iy¯)2+i=1nε^i2+2(β^0y)i=1nε^i0+2β^1i=1nε^ixi10++2β^pi=1nε^ixip0=i=1n(y^iy¯)2+i=1nε^i2=ESS+RSS

The requirement that the model includes a constant or equivalently that the design matrix contains a column of ones ensures that i=1nε^i=0.

Some readers may find the following version of the proof, set in vector form, more enlightening:

SStotal=yy¯12=yy¯1+y^y^2,=(y^y¯1)+(yy^)2,=y^y¯12+ε^2+2ε^T(y^y¯1),=SSregression+SSerror+2ε^T(Xβ^y¯1),=SSregression+SSerror+2(ε^TX)β^2y¯ε^T1,=SSregression+SSerror.

The elimination of terms in the last line, used the fact that

ε^TX=(yy^)TX=yT(IX(XTX)1XT)X=yT(XX)=0.

Further partitioning

Note that the residual sum of squares can be further partitioned as the lack-of-fit sum of squares plus the sum of squares due to pure error.

See also

References

  • 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534 Pre-publication chapters are available on-line.
  • 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
  • 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
    Republished as: 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
  • 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534