Sum of squares

From WikiMD's Food, Medicine & Wellness Encyclopedia

Sum of squares refers to a concept in statistics, mathematics, and computer science that involves squaring each number in a set of numbers and then summing these squares. It is a fundamental concept with applications in various fields, including regression analysis, ANOVA (Analysis of Variance), and optimization problems. The sum of squares is used to measure the variance, standard deviation, and spread of a dataset, as well as in methods for fitting mathematical models to data.

Definition[edit | edit source]

The sum of squares (SS) for a set of numbers is calculated by taking each number, squaring it, and then summing all these squares. Mathematically, for a set of numbers \(x_1, x_2, ..., x_n\), the sum of squares is given by:

\[ SS = \sum_{i=1}^{n} (x_i)^2 \]

where \(x_i\) represents each individual number in the set, and \(n\) is the total number of observations in the dataset.

Types of Sum of Squares[edit | edit source]

There are several types of sum of squares used in different contexts:

Total Sum of Squares (TSS)[edit | edit source]

In the context of regression analysis, the total sum of squares measures the total variation in the dependent variable. It is calculated as the sum of squares of the differences between each observation and the overall mean of the dataset.

Explained Sum of Squares (ESS)[edit | edit source]

The explained sum of squares measures the amount of variation in the dependent variable that is explained by the independent variables in a regression model. It is the sum of squares of the differences between the predicted values and the mean of the dependent variable.

Residual Sum of Squares (RSS)[edit | edit source]

The residual sum of squares measures the amount of variation in the dependent variable that is not explained by the independent variables. It is calculated as the sum of squares of the residuals, which are the differences between the observed values and the predicted values.

Applications[edit | edit source]

The concept of sum of squares is widely used in various fields:

- In statistics, it is used to calculate the variance and standard deviation of a dataset, which are measures of the spread or dispersion of the data. - In regression analysis, the sum of squares is used to assess the fit of a model, through the calculation of the total, explained, and residual sum of squares. - In ANOVA (Analysis of Variance), the sum of squares is used to compare the means of three or more samples to determine if at least one sample mean is significantly different from the others. - In optimization problems, the sum of squares method is used to find the minimum or maximum of a function by converting it into a sum of squares form.

See Also[edit | edit source]

Sum of squares Resources
Doctor showing form.jpg
Wiki.png

Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD


Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD

WikiMD is not a substitute for professional medical advice. See full disclaimer.

Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD