Sum of squares
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]
- Variance
- Standard deviation
- Regression analysis
- ANOVA (Analysis of Variance)
- Optimization (mathematics)
Sum of squares Resources | |
---|---|
|
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's Wellness Encyclopedia |
Let Food Be Thy Medicine Medicine Thy Food - Hippocrates |
Translate this page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian
Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. 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