Hi Bailey,
Formula for this test statistic is:
z=(p^-p0)/sd(p^) where:
p^=sample probability
p0=hypothesized probability
sd(p^)=standard deviation of p^, which has its own formula
sd(p^)=sqrt(p0(1-p0))/sqrt(n) where:
p0=hypothesized probability
n=sample size
Now, let’s get the standard deviation for this problem:
p0=0.73
1-p0=0.27
n=100
sd(p^)=sqrt((0.73*0.27)/100)
sd(p^)=0.0444
Now, returning to our initial test stat formula:
z=(p^-p0)/sd(p^)
p^=10/100=0.10
p0=0.73
sd(p^)=0.0444 (computed above)
z=(0.10-0.73)/0.0444
z= -14.19
That is the answer to this question, but spoiler alert if you are ultimately asked to test this hypothesis: With a test stat like this, p-value will be essentially 0. You will be able to reject the null and conclude that true proportion of people who mind smoking near buildings is significantly less than 73%.