BUG: Fix to Issue #5202

Made updates to fix per discussion under pull request #5214
adding test cases in separate commit
TST: Test case on weighted average update

Added test case for updates to weighted average calculation.

New test case includes logic to assert that the dtype from a weighted
average matches expected result from np.result_type