The test statistic for this sample is -5.55.
How to find test statistic?
The null hypothesis (H₀) is that the proportion of stocks that went up on the NYSE on January 31, 2006, is equal to 0.3. The alternative hypothesis (H₁) is that the proportion of stocks that went up is less than 0.3.
The sample proportion (
) is the proportion of stocks in the sample that went up. In this case,
= 6/54
= 0.111.
The standard error (SE) is a measure of the variability of the sample proportion. It is calculated by the following formula:

where:
= sample proportion
n = sample size
Plugging in the values:
SE = √(0.111(1 - 0.111) / 54) = 0.033
The test statistic (z) is a measure of how far the sample proportion is from the hypothesized proportion. It is calculated by the following formula:

where:
= sample proportion
p₀ = hypothesized proportion (0.3 in this case)
SE = standard error
Plugging in the values:
z = (0.111 - 0.3) / 0.033 = -5.55
Therefore, the test statistic for this sample is -5.55.