Brian's linear and logistic regressions

Here I attempt both types of regressions, but I think a linear regression may have more to offer me.

What I want to do is demonstrate a pattern of behavior whereby UFO's are spying on military installations by disguising themselves as weather balloons or swamp gas.
Just an FYI, these 6 lines of code above are just to demonstrate the math. In reality, you would usually just predict your probabilities (line 2 of 6) and eliminate the rest.