As the height of the cylinder increases, its volume decreases.

Which is the independent variable?

height or volume