Let's denote probability that phone is defected as p. Then, it's the binomial distribution:
Pr(x=k)=(k3)pk⋅(1−p)3−k, where k denotes number of defected phones.
Thus:
Pr(x=0)=(03)p0⋅(1−p)3−0=(1−p)3
Pr(x=1)=(13)p1⋅(1−p)3−1=3⋅p⋅(1−p)2
Pr(x=2)=(23)p2⋅(1−p)3−2=3⋅p2⋅(1−p)
Pr(x=3)=(33)p3⋅(1−p)3−3=3⋅p3
Comments