what is the relationship between independent and dependent variables in the experiment of snell's law