UPI Study › Courses › Marketing Research › Free lessons › Lesson 10.1 Free lesson
Analyzing Categorical Data with Statistical Techniques
Marketing Research · Chapter 10: Categorical Analysis, Cross-Tabulation, and Descriptive vs. Inferential StatisticsSection 10.1 · lesson 69 of 10110 min · free to watch
Lesson complete
Earn the 3 college credits for Marketing Research
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: Making Estimates and Predictions from Categorical Data →← Detecting Trends and Investigating Relationships in Marketing DataNext lesson: Making Estimates and Predictions from Categorical Data →
In this lesson
Summarize word answers with counts, shares, the mode and charts.
- Recognize categorical data and choose techniques that suit it
- Compute frequencies, proportions and the mode by hand and in Excel
- Choose between a bar chart and a pie chart for category data
- Explain why the mode is not the same as a majority
Free study notes
Get this lesson's notes by email
The key points and 4 practice questions with answers, in your inbox. One email, free.
One email. Unsubscribe in one click.
Transcript
Everything said in the video, section by section (1,512 words). Read along, or search it.
Opening Question
Forty Answers Written in Words
Nadia has 40 survey answers on her screen. They are not numbers of bars, or dollars. They are words. Online. Grocery. Oat. Berry. You cannot add words, or take their average. So how do you turn a column of words into something you can use in a meeting? The answer is surprisingly simple. You count them.
Fernway Snacks is a composite case built for teaching. The survey in this lesson is invented. But every marketing survey has questions like these. Where do you shop? Which do you prefer? Yes, or no?
In this lesson, you will recognize categorical data, and choose the techniques that suit it. You will build counts, proportions, and the mode, by hand, in Excel, and in Python. And you will choose between a bar chart and a pie chart.
Categorical Data
Counting Candy Colors, Not Averaging Them
First: words, not numbers. Think of sorting a bag of colored candy. You cannot say what the average color is. But you can count each color. And you can say which color is most common. Those two answers are useful. If you were buying candy for a party, they would tell you a lot. And nobody would miss the average color.
That is how categorical data works. Each answer puts a shopper in a group. The group might be a channel, such as online, grocery, or corner store. It might be a flavor, or a region. Or it might be a simple yes or no.
Some categories have an order. Small, medium, and large is one example. But even then, the usual tools are counts and shares, not means. A medium is bigger than a small. But nobody can say it is exactly twice as big, or one step bigger. So adding them up, and dividing, would pretend to know more than the data says. You met the four scale levels in lesson 5.5.
Three Techniques
Frequency, Proportion and Mode
Three techniques cover most of what you need. The first is a frequency. It is a count: how many shoppers fall into a category. The second is a proportion. It is a count, divided by the total. The third is the mode. It is the category with the highest frequency.
There is a fourth question, too. How do I show it? The answer is usually a bar chart. Sometimes, it is a pie. And notice what is missing from the list. A mean is not on it. Averaging labels such as oat, berry, and nut means nothing.
Grace uses this survey in the next few lessons. Forty shoppers were each asked two things. Where do they usually buy bars? And which flavor do they like best? Both answers are words. Both are categories. And both can be summarized with the same three tools.
Now, the channel answers. Grocery stores are the most common channel, at 37.5%. Online is close behind, at 35.0%. And corner stores take 27.5%.
Mode Versus Majority
Top Answer Is Not Most Answers
For flavors, oat leads, at thirty five percent. Berry has twenty seven point five. Nut has 20.0%. And cocoa has 17.5%.
What does it mean? Oat is the top flavor. That makes it the mode. But look at the rest. Most of the shoppers chose something else. Add up berry, nut, and cocoa, and you get 65%. So the top answer is not the same as most answers. A mode is not the same as a majority. This matters in a meeting. If someone says shoppers prefer oat, the room may hear that most shoppers prefer oat. They do not. The honest sentence is, oat is the single most popular flavor, but most shoppers chose something else.
Now to Excel. Grace types the forty channel answers into column B. Beside them, she builds a small summary table, with one row per channel. COUNTIF counts how many cells in the answer column match the channel name, in the row beside it. That gives the frequency.
Excel Build
COUNTIF and COUNTA Summary Table
Then she divides each count by COUNTA. COUNTA counts the cells that are not empty. So it gives the total number of answers. The result is the proportion. And the dollar signs keep the range fixed, as the formula is filled down. So one formula, written once, works for every row of the summary. Add a new channel row, and the same formula counts it too.
In her table, online has 14 shoppers. Grocery has 15. Corner store has 11. And the total row adds up to forty, and one hundred percent. Grace also checks the counts in Python. They agree.
Quick Rule
Proportions Versus Percentages
Here is a quick rule for percentages. A proportion is a decimal. So 0.375 is a proportion. Multiply by one hundred, and it becomes a percentage. Thirty seven point five percent. Same number, two ways of writing it. In a report, percentages are usually easier to read. In a formula, the decimal is usually easier to use. Just never mix the two in the same column.
Bar or Pie
Lengths Beat Angles for Comparisons
Next: showing it, bar or pie? A table is exact. But a chart is faster to read. For categories, there are two classic choices.
A bar chart draws one bar per category. The height shows the count, or the share. A pie chart splits a circle into slices. Each slice is one category.
Is a pie ever right? Yes. It works when you have a few categories, about five or fewer. The shares must add to a meaningful whole. And the message should be, this slice is big.
But people judge lengths better than angles. That is simply how our eyes work, every time. Two bars side by side are easy to compare. Two slices on opposite sides of a circle are not. So when you want to compare categories, as Nadia usually does, bars win. Look at berry, at twenty seven point five percent, and nut, at twenty percent. In a pie, those two slices look close. As bars, the difference is clear.
Case in Action
Pie for the Summary, Bars for Analysis
Here is how it plays out at Fernway. The survey analyst has to show forty survey answers on one slide.
Leo asks for a pie, because "it looks friendly." Grace makes both.
In the pie, berry and nut look about the same. In the bar chart, the first flavor is clearly ahead of the second. Leo looks at the two side by side. Then he agrees to bars, for the analysis slide, where the team must compare flavors. And he keeps the pie for the one-line summary. Both charts have a job. They are just different jobs.
Chart Habits
Start at Zero and Sort by Size
Finally: good habits for category charts. A few habits make category charts honest.
Start the bar axis at zero, because the eye reads height as size. Write the share on the bar, so no one has to guess. And sort nominal categories, from largest to smallest. Then the tallest bar is the mode, sitting right at the front. The reader sees the ranking in a single glance, without hunting. And a chart that does not start at zero can make a small gap look huge. That is how honest data becomes a misleading slide.
There is one exception to sorting. If the categories have a natural order, keep it. A rating from 1 to 5 is one example. Small to large is another. Lesson 10.3 shows how. And if many categories each hold only a sliver, combine them into one other group. But keep it small enough that it is not the biggest bar. If other is the winner, the chart is hiding the real story.
Common Mistake
Flavor 2.2 Does Not Exist
Here is a common mistake. Someone codes the four flavors as numbers. One is oat, two is berry, three is nut, and four is cocoa. Then they ask Excel for the average.
The answer, perhaps 2.2, is a number. But it is not a flavor. Nobody likes flavor two point two. The codes are only labels. Swap the order of the codes, and the average changes, even though no shopper changed their mind. That is the clue that the average means nothing. So use the mode, and the shares.
And a pro tip. Always report the total number of answers next to the percentages. Here, that is n equals forty. Shares from a tiny group are shaky. One extra answer can move a share by several points. Lesson 10.2 shows how to put a margin around them.
Key Takeaways
Tally a Survey and Report the Total
Try it yourself. Ask 10 friends which of four flavors they would pick. Make a tally. Compute the shares, and name the mode. Then ask a harder question. Does the mode have more than half? If not, what would you tell a brand manager? Try writing that sentence in plain words. It is harder than it looks, and it is exactly the skill a research team is paid for.
Key takeaways. Categorical data put each shopper in a group. So the tools are counts, proportions, and the mode, not means. Use a bar chart to compare categories. Use a pie only for a few parts of one whole. Write the share on each bar, start at zero, and always report n. Next, in lesson ten point two, you will put a margin around a sample proportion. This lesson was made by UPI Study.
About Marketing Research at UPI Study
Marketing Research (Marketing 300) is a self-paced online course of 101 video lessons in 13 chapters, from consumer behavior, segmentation and the research process to qualitative methods, surveys and sampling, measurement, experiments, secondary and syndicated data, descriptive statistics, hypothesis tests, correlation and regression, research ethics and reports. It carries a NCCRS credit recommendation for 3 semester credits.
Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus All Business courses Every credit course with PRO →
Why take it here
Why students take Marketing Research with UPI Study
Where the credit goes
Universities that work with NCCRS
Marketing Research carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About Analyzing Categorical Data with Statistical Techniques
What is categorical data in marketing research?
Should I use a bar chart or a pie chart for survey results?
Why can't you average coded categories?
Is the mode the same as the majority?
About the Marketing Research course
How many college credits is Marketing Research?
How much does Marketing Research cost and what is included?
Which universities accept UPI Study credits?
How long does Marketing Research take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 3 credits in Marketing Research.
101 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
Updated
3 credits · NCCRSEnroll →