Invertible matrix and Weighted average: Difference between pages

From TCS Wiki
(Difference between pages)
Jump to navigation Jump to search
imported>Osiris
m (migrate interwikis/resolve conflicts; cleanup using AWB)
 
imported>Auntof6Bot
m (Heading levels (WP ck err 7,19,83) and/or general cleanup using AWB)
 
Line 1: Line 1:
In [[linear algebra]] there are certain [[Matrix (mathematics)|matrices]] which have the property that when they are multiplied with another matrix, the result is the [[identity matrix]]. This matrix has ones on its main diagonal, and 0 everywhere else. The matrix which can achieve this result is called ''inverse'':
A '''weighted average''' is the [[average]] of values which are scaled by importance. The weighted average of values is the [[sum]] of weights [[multiplication|times]] values [[division (mathematics)|divided by]] the sum of the weights.
:<math>A \cdot A^{-1} = I</math>
There are [[algorithm]]s to calculate the inverse of a matrix, for example [[Gaussian elimination]]. The problem is that finding the inverse is relatively ''expensive'' to do for big matrices. Matrix inversion is used extensively in [[computer graphics]].


[[Category:Linear algebra]]
== Basic example ==


Given two school classes, one with 20 students, and one with 30 students, the grades in each class on a test were:


{{math-stub}}
:Morning class = 62, 67, 71, 74, 76, 77, 78, 79, 79, 80, 80, 81, 81, 82, 83, 84, 86, 89, 93, 98
 
:Afternoon class = 81, 82, 83, 84, 85, 86, 87, 87, 88, 88, 89, 89, 89, 90, 90, 90, 90, 91, 91, 91, 92, 92, 93, 93, 94, 95, 96, 97, 98, 99
 
The straight average for the morning class is 80 and the straight average of the afternoon class is 90. The straight average of 80 and 90 is 85, the mean of the two class means. However, this does not account for the difference in number of students in each class, hence the value of 85 does not reflect the average student grade (independent of class). The average student grade can be obtained by averaging all the grades, without regard to classes (add all the grades up and divide by the total number of students):
 
:<math>
\bar{x} = \frac{4300}{50} = 86.
</math>
 
Or, this can be accomplished by weighting the class means by the number of students in each class (using a weighted mean of the class means):
 
:<math>\bar{x} = \frac{(20\times80) + (30\times90)}{20 + 30} = 86.</math>
 
Thus, the weighted mean makes it possible to find the average student grade in the case where only the class means and the number of students in each class are available.
 
{{Math-stub}}
[[Category:Mathematics]]

Latest revision as of 20:05, 9 August 2014

A weighted average is the average of values which are scaled by importance. The weighted average of values is the sum of weights times values divided by the sum of the weights.

Basic example

Given two school classes, one with 20 students, and one with 30 students, the grades in each class on a test were:

Morning class = 62, 67, 71, 74, 76, 77, 78, 79, 79, 80, 80, 81, 81, 82, 83, 84, 86, 89, 93, 98
Afternoon class = 81, 82, 83, 84, 85, 86, 87, 87, 88, 88, 89, 89, 89, 90, 90, 90, 90, 91, 91, 91, 92, 92, 93, 93, 94, 95, 96, 97, 98, 99

The straight average for the morning class is 80 and the straight average of the afternoon class is 90. The straight average of 80 and 90 is 85, the mean of the two class means. However, this does not account for the difference in number of students in each class, hence the value of 85 does not reflect the average student grade (independent of class). The average student grade can be obtained by averaging all the grades, without regard to classes (add all the grades up and divide by the total number of students):

[math]\displaystyle{ \bar{x} = \frac{4300}{50} = 86. }[/math]

Or, this can be accomplished by weighting the class means by the number of students in each class (using a weighted mean of the class means):

[math]\displaystyle{ \bar{x} = \frac{(20\times80) + (30\times90)}{20 + 30} = 86. }[/math]

Thus, the weighted mean makes it possible to find the average student grade in the case where only the class means and the number of students in each class are available.

Template:Math-stub