weighted arithmetic mean (function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_EN/sdk.js#xfbml=1&version=v2.3&appId="; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));

Moderator: mindphp

numtan5839
PHP VIP Members
Posts: 1706
Joined: 04/11/2019 10:18 am

weighted arithmetic mean

weighted arithmetic mean will be used to calculate when each data is not important equal.
We will often see that is the calculation of GPA. so, GPA calculation we need to use a weighted arithmetic mean method.
forasmuch each subject that we study is of equal importance. Or to make it easier to understand, each subject has different credits.
so, if we use arithmetic mean method. the result will be tilted to the subjects with many credits.

The formula used for weighted averages
the sum of (the value x the weights) / sum of the weighted values
Sum.png (5.96 KiB) Viewed 212 times
For Example

Subject A: Grade 3 (3 credits)
Subject ฺB: Grade 4 (1 credits)
Subject C: Grade 4 (2 credits)
Subject D: Grade 3 (3 credits)

If we use an arithmetic mean method.
Data sum is (3+4+4+3) = 14
The result is 14 / 4 = 3.50

But, if we use a weighted arithmetic mean method.
Data sum is (3x3 + 4x1 + 4x2 + 3x3) = 30
Sum of the weighted values is (3+1+2+3) = 9
The result is 30 / 9 = 3.33
So, the GPA for this term is 3.33

References
https://www.mathpaper.net/index.php/en/5/755-arithmatics-mean