Since 4 coins are tossed, then there are 5 values that variable Z might take (from 0 to 4)
Z has binomial distribution Bin(4*0.5, 4*0.5*0.5) = Bin(2, 1)
P(Z=n)=(n4)∗0.5n∗0.54−n=(n4)∗0.54
The probabilities of taking each value are presented in a table below
