The teacher wants to know if spanking relates to behavior problems in children. She wants to find a group of parents who spank their children and another group who does not.

What is the Independent variable?
Spanking
What is the dependent?
Children’s behavior

is this correct??

Agree, but you might want to designate specific behaviors that concern you, so they can be measured.