Don't ever run from a bear!
If a bear spots you and is a couple hundred feet to you or closer stand your ground and talk in a calm voice while slowly backing away unless you notice the bear even getting closer. If its getting closer you stay there and get as big as you can. Don't show fear and keep talking calmly so it knows you are human. Don't make eye contact with the bear but make sure its in your sights still.
Even if the bear starts to charge you you must stay there act big and talk still in a calm manner. The first charge is always a bluff and if you stay your ground the bear won't want to risk it. At the end of the day they will be confused if you act big and aren't moving and won't want the conflict and will move away. Once it starts to move away you slowly do the same. Ive been in this situation a handful of times and have not been hurt. Id like everyone to remain safe here. cheers.