My wife's parents occasionally had a black bear or deer in their yard, as they lived on the mountain after living near the city before retirement. They were afraid to sit on the back patio, which they loved to do in their old age. As far as I know, none of them were ever aggressive but I was the only one in the family who didn't run inside when one strolled through the large yard before the fence as they never got too close, usually at the far end of the yard at the tree line (about 40 yards) although I did have my pistol at the ready and was only several feet from the door. I hunted on that mountain for many years, never saw a brown bear, or had what I would call an aggressive encounter with a black bear. The siblings all got together and had 8' chain link fence installed at the perimeter of the yard so their parents could enjoy their remaining years although they missed seeing the occasional deer through the sliding glass door.
Edit to correct auto correct.