Shoe Statistics
A statistics question asked in Quant Developer round at Tower Research Capital
A shoe manufacturer offers rock climbing shoes in black, blue, and pink. Of the first 1000 shoes sold, 400 were black. Calculate the value of the appropriate test statistic to determine if customers have a preference for black rock climbing shoes. Assume random sampling, variance homogeneity, and that preference is approximately normally distributed.
Try to solve this problem yourself before moving on to the solution below
.
.
.
.
.
.
Solution
We are testing the null hypothesis
against the alternative hypothesis
The sample proportion
for n=1000
The Z statistic can be calculated as:
.
.
😃 Over to you: Were you able to solve this?
👉 If you liked this post, don’t forget to leave a like ❤️. It helps more people discover this newsletter on Substack and tells us that you appreciate solving these weekly questions. The button is located towards the bottom of this email.
👉 If you love reading this newsletter, feel free to share it with friends!
Just to continue this answer:
If we assume alpha to be 0.05 and p-value for this case would be 7.82e-06 for two-tailed test.
The p-value << alpha, so we can reject the null hypothesis.
(The p-value is obtained using scipy.stats.norm python function, 2*norm.sf(4.47) )