The most important thing to remember in these situations is to ALWAYS REMAIN CALM. Important studies conducted by vitally important people have recently shown that these so-called attacks are actually hugs that are misinterpreted. Do not yell, or attempt to run in fear, but try to laugh, and make the bear believe that you are actually having a nice time with him.
In extreme cases, you might try to offer the bear a piece of candy, and perhaps take some time to quietly read him a story, while you want for park rangers or other professional people to assist you. Most North American giant stuffed polar bears are partial to books by Mo Willems about Pigeon.
Should you manage to survive, you might find that you have a new best friend, perfect for snuggles and warmth on cold and rainy winter nights.
This "Survival Guide" was made possible by Jellystone National Park and Viewers Like You. (And also the cousin's boyfriend who donated the bear.)