I think bears are territorial. They KNOW your campsite is YOUR territory. So you can be aggressive within your territory. They also know that the woods are their territory, so in that case, you are correct- play your appropriate role as the intruder and avoid them and do not act like the agressor. The NPS is now recommending agressive action if a bear comes into your campsite. This is a change from thier previous recommendations.