Linking ice-cream is an attribute, so use test for proportion.
Given: n = 400, x = 280 (ice cream liked)
∴ Sample proportion : p \(\frac{x}{n}\)= \(\frac{280}{400}\) and
P0 = 0.5 (50% people like ice cream): α = 1%
H0: 50% people like ice cream (i.e., P0 = 0.5)
H1 : people liking ice cream differ from 50% (i.e., P0 ≠ 0.5 ) {two tailed test ±K) under H0 the test statistic is :
At α = 1% the two tail crtical values are ±K = ± 2.58
Here Zcal lies in Rejection Region (R.R)
∴ H0 is rejected and H1 is aceepted.
conclusion: P0 ≠ 0.5 : people liking ice cream differ from 50%.