A principal wondered if more than 50% of students at their school bring a lunch from home rather than eating the lunch offered by the cafeteria. The principal observed 100 randomly selected students and noticed that 58 brought their own lunch and 42 ate the cafeteria lunch.
What type of statical test used in this case?
A. A t-test for a mean
B. A z-test for a proportion
C. A paired t-interval for the mean difference
D. A z-interval for a proportion
E. A t-interval for a mean