Login
📚 Python for Introductory Statistics: Lab Workbook
Chapters ▾

7.1 Percentiles

Watch demo video

Lab 7.1.1

The salaries for all the Human Resources department of City of Chicago is listed below. Write a Python code to compute the 10th, 25th, 50th, 75th and 90th percentiles.

75408, 82368, 103968, 82368, 42996, 85992, 67464, 103716, 134292, 113484, 94848, 101628, 119712, 61776, 122496, 57720, 119712, 119712, 61140, 103716, 67464, 58680, 91020, 83268, 62712, 78828, 82788, 91020, 75408, 59820, 79812, 63348, 122496, 72744, 98628, 103968, 103968, 131664, 115788, 76248, 119712, 83268, 75408, 75408, 95172, 67824, 75408, 119712, 141696, 97392, 83268, 59820, 97668, 82368, 53736, 65676, 103716, 94848, 79020, 67824, 86856, 103716, 75408, 119712, 91944, 94848, 66336, 99480, 119712

view answer

Adapted from Python for Introductory Statistics: Student's Lab Workbook, by Simon Aman (Truman College, City Colleges of Chicago), licensed under CC BY 4.0. Changes were made: reformatted as an accessible XYZ web edition with live in-browser code cells. License: CC-BY-4.0.