Calculating mean price for a sample