Probably don't have bears in the area: https://newrepublic.com/article/159662/libertarian-walks-int...
If there aren't cubs around, you yell, clap and raise your arms. It'll run in a heartbeat. If there are cubs around, you back away slowly- running will just make it chase you. If it follows, stop moving.
and then what!?
Realistically, it is a game of chicken. If you stop, you're signaling to the bear that you aren't intimidated. As long as it has an escape route, it'll back down.