human
How does one compute a weighted average?
assistant
To compute a weighted average, one must first assign numerical weights to each of the data points being averaged and then calculate the sum of all the data points multiplied by the respective weights. Finally, one must divide this sum by the total sum of all the weights to compute the weighted average.