Variability and the X-ray/UV ratio of active galactic nuclei