I have only seen one bear on the trail in 50 years and he saw me first and was already running from me.  A good number of Nat. and state Parks required bear cannisters, so I comply.   Otherwise, I keep a clean camp, If I cook, I cook many yards away from my tent,   don't store food in camp...