Black bears are like rats. Meaning they easily take up habitation amongst human kind. In my memory black bears have killed and eaten a couple of people beyond the events of last week. Brown bears usually do not feel comfortable amongst human kind. That said, it bears pointing out that we (humans) are dealing with an intelligent complex critter whenever we speak of bruins. Always remember that Bears respect size and force. Don't be a shrinking violet, remind the bear in question that you are the dominate creature. Carry an appropriate defensive weapon (most hand guns are of little value) THAT YOU ARE  CAPABLE OF HANDLING ( think muscle memory) and practice sound judgment whenever in bear country.   Running and biking bring you into the bears immediate domain quickly and shorten both the bears reaction time and yours.  Most bears do not want a fight and will seek escape. However you must be prepared.