6.4 Grouped Mean and Standard Deviation
Lab 6.4.1
Below is a frequency table of the salaries for the Human Resources department of City of Chicago is listed below. Write a Python code to compute the sample mean and standard deviation.
| salaries | freq |
|---|---|
| 5200 | 9 |
| 7200 | 21 |
| 9200 | 18 |
| 11200 | 16 |
| 13500 | 5 |
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.