I not sure how accurate that is. my Sanctuary has never been attacked to my knowledge, there was a while were the settlers said we showed those raider. I have it set up as a money maker: Aka i have 6 level 3 trading stands for merchants and producing 122 or 140 water, I collect about 100 purified water every time and sell it off with my collected stash. Use the extra caps for either more vendors or by all junk and throw it into the workbench.
My defense is only like 60-70 and my food is 20 or so (corn, tatos and mufruit= vegetable starch)
The only thing i can maybe think of why i haven't been attacked is i walled off the entire workable area, aka there is a fence along the green border. The only entrance is by the bridge along with all my defense.
So water + food - defense = likely of attack vs number of attack
130 + 20 - 60 = 90 / 0