Python for Introductory Statistics: Lab WorkbookXYZ Homework Edition

⇩ Download ▾

5.1 Frequency Distributions

Watch demo video 1

Watch demo video 2

Watch demo video 3

Lab 5.1.1

Write a Python code to find the frequency counts of the following data: 20, 21, 25, 20, 29, 25, 22, 25, 21, 25

view answer

Lab 5.1.2

20 students were asked if they were registered to vote. Their responses are listed below. Construct a frequency distribution.

NO, NO, YES, YES, NO, YES, NO, NO, YES, NO, YES, NO, NO, YES, YES, YES, YES, NO, YES, YES

view answer

Lab 5.1.3

Write a Python code to construct a frequency distribution with 5 classes or bins for the following test scores:40,40,40,40,40,41,41,41,41,41,41,42,42,42,42,43,43,43,43,43,43,44,44,44,44,45.

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.