p(a)=1/7 p(b)=1/2 p(a b)=1/4 is this an independent variable

no, since 1/7 * 1/2 ≠ 1/4

I suspect a typo -- if so, then yes