Question: what is the relationship between density and refractive index?
Answer: The refractive index is a measurement of optical density. A medium with a low optical density, would have also a low refractive index. For example air, having a low optical density has a refractive index of 1.0003, whereas water, with a higher optical density, has a higher refractive index of 1.333.