what is dependent and independent variable in regression code example Example: what is a dependent variable It is something that depends on other factors