The independent variable in the given scenario above is the attention from the teacher. It is because the attention from the teacher does not need to depend on both groups in order to act, for an independent variable is not depended on other which could be described above.