Why is the null deviance of 1,1,0,11,1,0,1 not equal to −2log⁡((3/4)4)-2\log((3/4)^4), which would be the deviance if all four observations equalled 3/43/4

Four independent Bernoulli responses are 1,1,0,11,1,0,1. Why is the fitted intercept-only null deviance not −2log⁡((3/4)4)-2\log((3/4)^4)? Write the likelihood contribution of the zero response explicitly.

The fitted success probability is 3/43/4, so the zero contributes 1/41/4, not 3/43/4. The fitted likelihood is (3/4)3(1/4)(3/4)^3(1/4); the saturated Bernoulli likelihood is 11. Thus the deviance is −2[3log⁡(3/4)+log⁡(1/4)]≈4.4987-2[3\log(3/4)+\log(1/4)]\approx4.4987.