Member-only story
Statistics Interview Question: Which graphics can only be used for a single categorical value?
When going on an interview for any one of the disciplines in data science, such as statistics or Python programming, an interviewee may be asked questions about visuality, such as what graphics can only be used for a single categorical variable?
Pie charts and bar charts are the two graphs that can be used to visualise a single categorical value.
Pie charts
A pie chart displays data concerning one categorical value by partitioning a circle into ‘slices’ that represent the proportion of each category.
Below is an example of a pie chart that I constructed in Google Sheets. It is a chart of the percentage of individuals in each team of people. This chart could have just as easily been constructed in Excel because the methodology is very similar.
For those individuals who like to program in Python, below is an example of the code and resulting Pie chart:-