Count data
By Jude Wallis · Updated
Count data are whole-number tallies of how many observational units fall in a category or how many times an event happened.
A count is a whole number, zero or more, saying how many. Counts are quantitative and discrete: you can add them, average them, and 3 really is one more than 2. What makes them feel categorical is where they come from, since most counts are produced by sorting units into categories and tallying.
Two different objects get called counts, and the observational unit tells them apart. Eight households report 0, 0, 1, 1, 1, 2, 2 and 3 pets. The unit is a household, the count is a variable measured on each one, and pets is a real average of eight measurements. Now tally 100 students by favorite sport and get 40, 25 and 35. The unit is still a student, but those three numbers summarize one categorical variable rather than measuring three things: they add to , and their average of about 33.3 is the mean category size, which describes no student at all.
The wrong sentence is "the counts 40, 25 and 35 are categorical data." Favorite sport is the categorical variable. The tallies are frequencies, and frequencies are numbers. The type belongs to the thing being counted, not to the tally, which is exactly why a chi-square procedure runs on counts while the variable it is testing is categorical.
A count depends on how many units you counted, so raw counts mislead across groups of different sizes. 45 walkers in a 300-student school is a larger share than 60 walkers in a 600-student school, since against , and converting to a proportion or a rate is the fix. The exception runs the other way: chi-square needs the counts themselves, because the expected counts it compares against are counts, so feeding it percentages produces a statistic that answers nothing.
Tables and summary statistics for one categorical variable are topic 1.3. The chi-square tests for homogeneity and independence, topics 3.14 and 3.15, are where counts carry the inference.
More variables and data types terms, or browse the full statistics glossary.