A density bar taller than one

Ten observations fall in two adjacent bins. Six are in [0,0.2)[0,0.2) and four are in [0.2,1)[0.2,1). Find the heights and areas of a density histogram. Is a bar height greater than one an error?

The widths are 0.20.2 and 0.80.8. The density heights are 6/(10⋅0.2)=36/(10\cdot0.2)=3 and 4/(10⋅0.8)=0.54/(10\cdot0.8)=0.5. The areas are 3⋅0.2=0.63\cdot0.2=0.6 and 0.5⋅0.8=0.40.5\cdot0.8=0.4, summing to one. Height 33 is valid: density is probability per unit of the horizontal scale, while each bar’s area is its probability share.