4. The table below shows the rank attained by male and female officers in the New York City Police Department (NYPD).
rank male female
Officer 21,900 4,281
Detective 4,058 806
Sergeant 3,898 415
Lieutenant 1,333 89
Captain 359 12
higher ranks 218 10
a. State hypotheses for a chi-square test to see if these data indicate that men and women are equitably represented at all levels of the NYPD.
b. Find the chi-square statistic and the P value for the NYPD data.
c. State your conclusion for the test.