Python for Introductory Statistics: Lab WorkbookXYZ Homework Edition

⇩ Download ▾

6.2 Variance and Standard Deviation

Watch demo video

Lab 6.2.1

The salaries for all the Human Resources department employees of the City of Chicago is listed below. Write a Python code to compute the population variance and standard deviation.

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

Lab 6.2.2

A random sample of 54 annual salaries of Aviation employees of the City of Chicago is listed below. Write a Python code to compute the sample variance and standard deviation.

46776, 53736, 53736, 54840, 57408, 57408, 57408, 57408, 57408, 57408, 60108, 60108, 62712, 63552, 66852, 66852, 69732, 70032, 70044, 70272, 72024, 73380, 73380, 73380, 75408, 75468, 76248, 80484, 80484, 80484, 82476, 82788, 82836, 83676, 84324, 84324, 84324, 85848, 87564, 88272, 88272, 90828, 92004, 92304, 92520, 96060, 96096, 100680, 100716, 100716, 103764, 105420, 109620, 146868

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.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or any other accessibility standard. Every page is built against an automated accessibility gate, and our target for the published editions is WCAG 2.2 Level AA. If something is unusable, please tell us.