5.1 Frequency Distributions
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
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
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.
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.