Skip to content

Calculating average cost with the harmonic mean

Felix edited this page Jun 6, 2014 · 1 revision

An investor purchases $10,000 of stock each month, and over the last three months the prices paid per share were $4.5, $5.2, and $4.8. What is the average cost per share for the shares acquired?

harmonic.mean(p = c(4.5, 5.2, 4.8))
[1] 4.816
Clone this wiki locally