Behavior analysis helps us to understand observations of the environment in which a behavior occurs, and describes factors associated with a behavior, including what factors are present prior to (antecedents) and following (consequences) a behavior. This process can help explain how learning takes place.