Independent variable: the number of sharks swimming in a coastal region
Because it is a variable not affected by change of any other variables
Dependent variable: the number of shark attacks on humans
Because it is a variable that respond/is affected by another variable(the number of sharks swimming in a coastal region). Also it is positively correlative with the independent variable(the number of sharks swimming in a coastal region).