Stanford experiment the hypothesis was to understand the abusive given in regular prison situation.
The dependent variable on each study for both of them was the resulting behavior. On the Milgram study people were not stopping the shocks even if the ''Learner'' was unconscious and for the Stanford experiment the ''guards'' did not realized that they were taking their role too far.
The result in both was obedience to authority. Also in both experiments, participants had difficulty on ending their participation and continued to the end. Somehow it became