An insurance company compiled the number of doctor visits made by some patients last year

0(6)
1(3)
2(8)
3(1)
4(9)
5(4)
6(7)

To calculate the average number of doctor visits made by the patients, we can use the following formula:

Average = (0*6 + 1*3 + 2*8 + 3*1 + 4*9 + 5*4 + 6*7) / (6+3+8+1+9+4+7)

Average = (0 + 3 + 16 + 3 + 36 + 20 + 42) / 38
Average = 120 / 38
Average ≈ 3.16

Therefore, the average number of doctor visits made by the patients last year was approximately 3.16.