Sunday, August 22, 2010

Computing a weighted average

It's how your grades are computed

It's not too difficult to turn the points you earn on an assignment into a percentage. You just divide them by the total number of points possible and move the decimal point two places. For example, if you get 15 points on a 20-point quiz, your percentage score is 15/20 = 0.75 = 75%. No problem.

However, I do not use just a point system to figure grades for a class. I use a weighted average of the scores you earn in three categories: HWQ (homework & quizzes, lumped together), Exams (the chapter tests), and Final (the comprehensive final exam at the end of the semester). For example suppose that HWQ is 15% of your grade, Exams are 70% of your grade, and the Final is 15%. (If you check, you'll see that the percentages add up to 100%, as they should. I may vary these weights depending on the number of exams I give.)

Suppose that you earn 72% of all the points possible on the homework and quizzes, you average 84% on the exams, and you get 79% on the final. Did you earn a B? Let's find out. The weighted average is computed by multiplying each score by its percentage weight and then adding everything together. Recall that the percentage weight of HWQ is 15% of your grade, which we can write as the decimal 0.15. For Exams we have 70% or 0.70, and the Final is 15% or 0.15, just like HWQ. The formula for grades is

Course Grade = HWQ*0.15 + Exams*0.70 + Final*0.15.

Using the scores we pretended you got during the semester, your course grade would be given by

Course Grade = 72%(0.15) + 84%(0.70) + 79%(0.15) = 81.45%.

Congratulations! You earned a B for the class, with just a little bit to spare.

It's not too surprising. Most of the weight of the grade is on Exams. Homework and quizzes get only 15% because I treat them more as a learning experience. The final gets only 15% because it's only one exam. While other instructors might choose to give the final more weight, I prefer to limit the importance of any single exam.

In general

If you ever want to compute a weighted average for any reason, the main thing to keep in mind that the weights have to add up to 100%. If, for example, you wish to compute the weighted average of four numbers, X1, X2, X3, and X4, you can do it as long as the weights, w1, w2, w3, and w4, add up to 100%. Then you compute the sum of their respective products:

Weighted average = X1w1 + X2w2 +X3w3 +X4w4.

That's all there is to it. Of course, if you choose to use equal weights, so that w1 = w2 = w3 = w4 = 25% = 0.25, your result will just be the usual arithmetic average. (It would be simpler to add up the numbers and divide by 4.)

I'll leave it to you to figure out what to do if there are more than four numbers for which you wish to compute a weighted average.