Get startedGet started for free

Bar chart expectations

Suppose you've asked 30 people, some young, some old, what their preferred flavor of pie is: apple or pumpkin. That data could be summarized in a side-by-side bar chart. Here are three possibilities for how it might look.

Which one of the bar charts shows no relationship between age and flavor? In other words, which shows that pie preference is the same for both young and old?

This exercise is part of the course

Exploratory Data Analysis in R

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise